b50223d485878e3e2532da678ed3e5ce7c941c5c
[gnulib.git] / ChangeLog
1 2011-06-09  Bruno Haible  <bruno@clisp.org>
2
3         rmdir: Avoid test failure on HP-UX 10.20.
4         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5         EEXIST.
6
7 2011-06-08  Eric Blake  <eblake@redhat.com>
8
9         perror: fix test on mingw
10         * modules/perror-tests (Depends-on): Add dup2.
11
12         strerror_r-posix: fix on MacOS
13         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15         logic bug.
16         * lib/strerror_r.c (strerror_r): Fix the bug.
17         * lib/strerror.c (strerror): Likewise.
18         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19         problem.
20         * doc/posix-functions/strerror.texi (strerror): Likewise.
21         * doc/posix-functions/perror.texi (perror): Likewise.
22         * tests/test-strerror.c (main): Enhance test.
23         * tests/test-strerror_r.c (main): Likewise.
24
25 2011-06-08  Bruno Haible  <bruno@clisp.org>
26
27         gnulib-tool: Better isolation between different gnulib-tool invocations.
28         * gnulib-tool: New option --witness-c-macro.
29         (witness_c_macro): New variable.
30         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
31         AM_CPPFLAGS define it as a C macro.
32         (func_emit_tests_Makefile_am): Likewise.
33         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
34         read it from there.
35         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
36         m4_define, not AC_DEFUN.
37         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
39         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
40         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
41         s|...|...|, to substitute the values of the GNULIB_* module indicator
42         variables.
43         * modules/dirent (Makefile.am): Likewise.
44         * modules/fcntl-h (Makefile.am): Likewise.
45         * modules/iconv-h (Makefile.am): Likewise.
46         * modules/langinfo (Makefile.am): Likewise.
47         * modules/locale (Makefile.am): Likewise.
48         * modules/math (Makefile.am): Likewise.
49         * modules/netdb (Makefile.am): Likewise.
50         * modules/poll-h (Makefile.am): Likewise.
51         * modules/pty (Makefile.am): Likewise.
52         * modules/search (Makefile.am): Likewise.
53         * modules/signal (Makefile.am): Likewise.
54         * modules/spawn (Makefile.am): Likewise.
55         * modules/stdio (Makefile.am): Likewise.
56         * modules/stdlib (Makefile.am): Likewise.
57         * modules/string (Makefile.am): Likewise.
58         * modules/sys_ioctl (Makefile.am): Likewise.
59         * modules/sys_select (Makefile.am): Likewise.
60         * modules/sys_socket (Makefile.am): Likewise.
61         * modules/sys_stat (Makefile.am): Likewise.
62         * modules/sys_times (Makefile.am): Likewise.
63         * modules/sys_utsname (Makefile.am): Likewise.
64         * modules/sys_wait (Makefile.am): Likewise.
65         * modules/termios (Makefile.am): Likewise.
66         * modules/time (Makefile.am): Likewise.
67         * modules/unistd (Makefile.am): Likewise.
68         * modules/wchar (Makefile.am): Likewise.
69
70 2011-06-08  Eric Blake  <eblake@redhat.com>
71
72         strerror: simplify replacement
73         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
74         * modules/strerror (configure.ac): No prereqs needed here...
75         * modules/strerror-override (configure.ac): ...but this needs it.
76         (Files): Add file for needed prereq macro.
77
78 2011-06-08  Bruno Haible  <bruno@clisp.org>
79
80         strerror_r-posix: Tweaks.
81         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
82         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
83         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
84         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
85         (gl_FUNC_STRERROR_R): ... to here.
86         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
87
88 2011-06-07  Eric Blake  <eblake@redhat.com>
89
90         perror: document fixed bugs
91         * doc/posix-functions/perror.texi (perror): Document recent
92         patches.
93
94 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
95
96         stat-time: get_stat_birthtime failure is better-defined
97         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
98         return a timestamp whose tv_sec and tv_nsec values are both -1.
99         Previously, the spec said only that the tv_nsec value was negative.
100         This upward-compatible change simplifies GNU tar a bit.
101
102 2011-06-07  Eric Blake  <eblake@redhat.com>
103
104         strerror_r-posix: work around cygwin 1.7.9
105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
106         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
107         bug without replacing strerror_r.
108         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
109         strerror_r is buggy, but without requiring strerror_r compilation.
110         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
111
112         test-perror: relax test to ignore cygwin bug
113         * tests/test-perror2.c (main): Relax test on requiring detection
114         of stream errors, and use unbuffered stream.
115         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
116         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
117         * doc/posix-functions/fputc.texi (fputc): Likewise.
118         * doc/posix-functions/fputs.texi (fputs): Likewise.
119         * doc/posix-functions/fputws.texi (fputws): Likewise.
120         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
121         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
122         * doc/posix-functions/getopt.texi (getopt): Likewise.
123         * doc/posix-functions/perror.texi (perror): Likewise.
124         * doc/posix-functions/printf.texi (printf): Likewise.
125         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
126         * doc/posix-functions/psignal.texi (psignal): Likewise.
127         * doc/posix-functions/putc.texi (putc): Likewise.
128         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
129         Likewise.
130         * doc/posix-functions/putchar.texi (putchar): Likewise.
131         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
132         Likewise.
133         * doc/posix-functions/puts.texi (puts): Likewise.
134         * doc/posix-functions/putwc.texi (putwc): Likewise.
135         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
136         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
137         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
138         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
139         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
140         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
141         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
142         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
143
144 2011-05-22  Bruno Haible  <bruno@clisp.org>
145
146         strerror: Move AC_LIBOBJ invocations to module description.
147         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
148         gl_PREREQ_STRERROR invocations from here...
149         * modules/strerror (configure.ac): ... to here.
150
151 2011-05-21  Bruno Haible  <bruno@clisp.org>
152
153         perror: Use common idiom.
154         * modules/perror (configure.ac): Reorder statements.
155
156 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
157
158         tests: fix usage message in 'mktempd_'
159         * tests/init.sh (mktempd_): In the usage message, use literal
160         'mktempd_', not '$ME' (which is even undefined), as the name of
161         the subroutine.
162
163 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
164
165         tests init: new function 'fatal_', for hard errors
166         Before this patch, the only way offered by tests/init.sh to
167         properly signal a hard error was the `framework_failure_'
168         function.  But the error message issued by that function,
169         as its name would suggest, refers to a set-up failure in the
170         testsuite, while hard errors can obviously also be due to
171         other reasons.  The best way to fix this inconsistency is to
172         introduce a new function with a more general error message.
173         * tests/init.sh (fatal_): New function.
174
175 2011-06-06  Eric Blake  <eblake@redhat.com>
176
177         canonicalize-lgpl: use common idiom
178         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
179         over newer POSIX -Rf.
180         Reported by Bruno Haible.
181
182         canonicalize-lgpl: work around AIX realpath bug
183         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
184         * doc/posix-functions/realpath.texi (realpath): Document it.
185         Reported by Bruno Haible.
186
187         strerror: work around FreeBSD bug
188         * lib/strerror.c (strerror): Special case 0.
189         Reported by Bruno Haible.
190
191         strerror-override: avoid bloating errno module
192         * modules/errno (Files, configure.ac): Move replacement strings...
193         * modules/strerror-override: ...to new module.
194         * modules/strerror (Depends-on): Add strerror-override.
195         * modules/strerror_r-posix (Depends-on): Likewise.
196         * MODULES.html.sh: Document new module.
197         Reported by Bruno Haible.
198
199 2011-06-06  Bruno Haible  <bruno@clisp.org>
200
201         spawn-pipe tests: Rename program.
202         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
203         * tests/test-spawn-pipe-child.c: Update comment.
204         * tests/test-spawn-pipe.sh: Update.
205         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
206
207         spawn-pipe tests: Link the child program only against libc.
208         * tests/test-spawn-pipe-child.c: New file, extracted from
209         tests/test-spawn-pipe.c.
210         (main): Expect only one argument.
211         (is_open): New function, copied from tests/test-pipe.c.
212         * tests/test-spawn-pipe.c: Don't include <errno.h>.
213         (child_main): Remove function.
214         (test_pipe): Pass only one argument to the child program.
215         (main): Remove child process code. Expect the child program's name as
216         first argument.
217         * tests/test-spawn-pipe.sh: Pass the child program's name as first
218         argument.
219         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
220         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
221         test-spawn-pipe-child against no libraries.
222
223 2011-06-06  Bruno Haible  <bruno@clisp.org>
224
225         careadlinkat: Avoid mismatch between ssize_t and int.
226         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
227         * lib/careadlinkat.c (careadlinkatcwd): Define always.
228
229 2011-06-06  Jim Meyering  <meyering@redhat.com>
230
231         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
232         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
233         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
234
235 2011-06-05  Bruno Haible  <bruno@clisp.org>
236
237         ansi-c++-opt: Interoperability with libtool.
238         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
239         set the variable to "no", not to ":".
240         * NEWS: Mention the change.
241
242 2011-06-05  Bruno Haible  <bruno@clisp.org>
243
244         acl: Fix test failure on AIX 7.
245         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
246         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
247
248 2011-06-05  Bruno Haible  <bruno@clisp.org>
249
250         pipe-filter-ii: Fix test failure on AIX and IRIX.
251         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
252         with EAGAIN, retry with a smaller buffer size.
253
254 2011-06-05  Bruno Haible  <bruno@clisp.org>
255
256         localename: Fix link dependencies.
257         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
258         * modules/localename-tests (Makefile.am): Link test-localename with
259         $(LIBTHREAD).
260
261 2011-06-05  Bruno Haible  <bruno@clisp.org>
262
263         error: Avoid gcc warning.
264         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
265
266 2011-06-05  Bruno Haible  <bruno@clisp.org>
267
268         unsetenv: Avoid gcc warning.
269         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
270
271 2011-06-05  Bruno Haible  <bruno@clisp.org>
272
273         setenv: Avoid gcc warning.
274         * lib/setenv.c (setenv): Provide declaration if system lacks it.
275
276 2011-06-05  Bruno Haible  <bruno@clisp.org>
277
278         sys_select: Ensure memset is declared also on AIX 7.
279         * lib/sys_select.in.h: Include <string.h> also on AIX.
280         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
281         self-contained also on AIX 7.1.
282
283 2011-06-04  Jim Meyering  <meyering@redhat.com>
284
285         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
286         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
287         function name, "error".
288         (_gl_translatable_diag_func_re): New configurable variable.
289
290 2011-06-04  Bruno Haible  <bruno@clisp.org>
291
292         getopt: Avoid gcc warning.
293         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
294
295 2011-06-04  Bruno Haible  <bruno@clisp.org>
296
297         strerror_r: Fix comments.
298         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
299         commit.
300
301 2011-06-04  Bruno Haible  <bruno@clisp.org>
302
303         perror: Fix compilation error.
304         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
305         Undefine fprintf, not sprintf.
306         * modules/perror (Depends-on): Remove intprops, verify.
307
308 2011-06-04  Bruno Haible  <bruno@clisp.org>
309
310         setlocale: Enable replacement on Cygwin 1.5.
311         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
312         Cygwin 1.5.x.
313         * doc/posix-functions/setlocale.texi: Mention that the problem with the
314         LC_CTYPE category also exists on Cygwin 1.5.x.
315
316 2011-06-04  Bruno Haible  <bruno@clisp.org>
317
318         strerror-override: Don't disable symbol renamings.
319         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
320         * lib/strerror-override.c: Include config.h.
321         (strerror_override): Don't undefine.
322
323 2011-06-03  Bruno Haible  <bruno@clisp.org>
324
325         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
326         * lib/localename.h: Update copyright header.
327         * lib/localename.c: Likewise.
328         * lib/relocatable.h: Likewise.
329         * lib/relocatable.c: Likewise.
330
331 2011-06-02  Bruno Haible  <bruno@clisp.org>
332
333         doc: Fix a module name.
334         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
335
336 2011-06-02  Bruno Haible  <bruno@clisp.org>
337
338         pipe2: Remove dependency on 'nonblocking' module.
339         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
340         O_NONBLOCK is defined by gnulib.
341         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
342         is zero.
343         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
344         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
345         defined by gnulib.
346         (get_nonblocking_flag): New function.
347         (main): Test O_NONBLOCK flag only if it is nonzero.
348         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
349
350 2011-06-03  Jim Meyering  <meyering@redhat.com>
351
352         maint: three new prohibit-header-without-use rules
353         Prohibit use of cloexec.h, posixver.h, same.h without use.
354         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
355         (sc_prohibit_posixver_without_use): Likewise.
356         (sc_prohibit_same_without_use): Likewise.
357
358 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
359
360         allocator: 'die' routine is now given requested size
361         * lib/allocator.h (struct allocator.die): New size arg.
362         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
363         If the actual problem is an ssize_t limitation, not a size_t or
364         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
365
366 2011-06-01  Eric Blake  <eblake@redhat.com>
367
368         strerror: drop strerror_r dependency
369         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
370         * lib/strerror-override.c (strerror_override): ...to new file.
371         * lib/strerror-override.h: Add prototype.
372         * lib/strerror-impl.h: Delete.
373         * lib/strerror.c (strerror): New implementation.
374         * modules/errno (Files): Add new files.
375         (configure.ac): Compile new file as appropriate.
376         * modules/strerror (Files): Drop unused file.
377         (Depends-on): Drop strerror_r-posix.
378         * MODULES.html.sh: Document strerror_r-posix.
379         Requested by Sam Steingold.
380
381         perror: call strerror_r directly
382         * modules/perror (Files): Drop strerror-impl.h.
383         * lib/perror.c (perror): Use our own stack buffer, rather than
384         calling a wrapper that uses static storage.
385         * doc/posix-functions/perror.texi (perror): Document a limitation
386         of our replacement.
387
388         strerror_r: fix includes for FreeBSD
389         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
390         since we use abort on some platforms.
391         Reported by Matthias Bolte.
392
393 2011-05-31  Bruno Haible  <bruno@clisp.org>
394
395         Fix link errors in tests: openat-die uses gettext-h.
396         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
397         against $(LIBINTL).
398         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
399         against $(LIBINTL).
400         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
401         $(LIBINTL).
402         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
403         against $(LIBINTL).
404         * modules/linkat-tests (Makefile.am): Link test-linkat against
405         $(LIBINTL).
406         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
407         $(LIBINTL).
408         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
409         against $(LIBINTL).
410         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
411         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
412         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
413         $(LIBINTL).
414         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
415         $(LIBINTL).
416         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
417         $(LIBINTL).
418         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
419
420 2011-05-31  Bruno Haible  <bruno@clisp.org>
421
422         Fix link errors in tests: wait-process uses gettext-h.
423         * modules/nonblocking-pipe-tests (Makefile.am): Set
424         test_nonblocking_pipe_main_LDADD.
425         * modules/nonblocking-socket-tests (Makefile.am): Link
426         test-nonblocking-socket-main against $(LIBINTL).
427         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
428
429 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
430
431         assert-h: work around 'verify' incompatibility
432         * lib/verify.h: Use @...@ directives, not ifdef.
433         * modules/assert-h (assert.h): Implement the directives.
434         (assert.h): Substitute the symbol-prefix more consistently.
435
436 2011-05-29  Jim Meyering  <meyering@redhat.com>
437
438         trim: remove three superfluous assignments
439         * lib/trim.c (trim2): Remove three superfluous assignments
440         and correct brace positioning.
441
442 2011-05-29  Bruno Haible  <bruno@clisp.org>
443
444         wctype-h: Avoid namespace pollution on Solaris 2.6.
445         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
446         identifiers.
447         * doc/posix-headers/wctype.texi: Mention the problem.
448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
449
450 2011-05-28  Jim Meyering  <meyering@redhat.com>
451
452         parse-datetime.y: accommodate -Wstrict-overflow
453         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
454         placate -Wstrict-overflow.
455
456         trim: avoid a warning from -O2 -Wstrict-overflow
457         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
458
459 2011-05-29  Bruno Haible  <bruno@clisp.org>
460
461         gnulib-tool: Fix bug in yesterday's commit.
462         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
463         twice.
464
465 2011-05-29  Bruno Haible  <bruno@clisp.org>
466
467         Allow multiple gnulib generated include files to be combined.
468         * gnulib-tool (func_compute_include_guard_prefix): New function.
469         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
470         ${gl_include_guard_prefix} references.
471         (func_import, func_create_testdir): Invoke
472         func_compute_include_guard_prefix.
473         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
474         * lib/ctype.in.h: Likewise.
475         * lib/dirent.in.h: Likewise.
476         * lib/errno.in.h: Likewise.
477         * lib/fcntl.in.h: Likewise.
478         * lib/float.in.h: Likewise.
479         * lib/getopt.in.h: Likewise.
480         * lib/iconv.in.h: Likewise.
481         * lib/langinfo.in.h: Likewise.
482         * lib/locale.in.h: Likewise.
483         * lib/math.in.h: Likewise.
484         * lib/netdb.in.h: Likewise.
485         * lib/netinet_in.in.h: Likewise.
486         * lib/poll.in.h: Likewise.
487         * lib/pthread.in.h: Likewise.
488         * lib/pty.in.h: Likewise.
489         * lib/sched.in.h: Likewise.
490         * lib/se-selinux.in.h: Likewise.
491         * lib/search.in.h: Likewise.
492         * lib/signal.in.h: Likewise.
493         * lib/spawn.in.h: Likewise.
494         * lib/stdarg.in.h: Likewise.
495         * lib/stddef.in.h: Likewise.
496         * lib/stdint.in.h: Likewise.
497         * lib/stdio.in.h: Likewise.
498         * lib/stdlib.in.h: Likewise.
499         * lib/string.in.h: Likewise.
500         * lib/strings.in.h: Likewise.
501         * lib/sys_file.in.h: Likewise.
502         * lib/sys_ioctl.in.h: Likewise.
503         * lib/sys_select.in.h: Likewise.
504         * lib/sys_socket.in.h: Likewise.
505         * lib/sys_stat.in.h: Likewise.
506         * lib/sys_time.in.h: Likewise.
507         * lib/sys_times.in.h: Likewise.
508         * lib/sys_uio.in.h: Likewise.
509         * lib/sys_utsname.in.h: Likewise.
510         * lib/sys_wait.in.h: Likewise.
511         * lib/sysexits.in.h: Likewise.
512         * lib/termios.in.h: Likewise.
513         * lib/time.in.h: Likewise.
514         * lib/unistd.in.h: Likewise.
515         * lib/wchar.in.h: Likewise.
516         * lib/wctype.in.h: Likewise.
517         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
518         * modules/ctype (Makefile.am): Likewise.
519         * modules/dirent (Makefile.am): Likewise.
520         * modules/errno (Makefile.am): Likewise.
521         * modules/fcntl-h (Makefile.am): Likewise.
522         * modules/float (Makefile.am): Likewise.
523         * modules/getopt-posix (Makefile.am): Likewise.
524         * modules/iconv-h (Makefile.am): Likewise.
525         * modules/langinfo (Makefile.am): Likewise.
526         * modules/locale (Makefile.am): Likewise.
527         * modules/math (Makefile.am): Likewise.
528         * modules/netdb (Makefile.am): Likewise.
529         * modules/netinet_in (Makefile.am): Likewise.
530         * modules/poll-h (Makefile.am): Likewise.
531         * modules/pthread (Makefile.am): Likewise.
532         * modules/pty (Makefile.am): Likewise.
533         * modules/sched (Makefile.am): Likewise.
534         * modules/search (Makefile.am): Likewise.
535         * modules/selinux-h (Makefile.am): Likewise.
536         * modules/signal (Makefile.am): Likewise.
537         * modules/spawn (Makefile.am): Likewise.
538         * modules/stdarg (Makefile.am): Likewise.
539         * modules/stddef (Makefile.am): Likewise.
540         * modules/stdint (Makefile.am): Likewise.
541         * modules/stdio (Makefile.am): Likewise.
542         * modules/stdlib (Makefile.am): Likewise.
543         * modules/string (Makefile.am): Likewise.
544         * modules/strings (Makefile.am): Likewise.
545         * modules/sys_file (Makefile.am): Likewise.
546         * modules/sys_ioctl (Makefile.am): Likewise.
547         * modules/sys_select (Makefile.am): Likewise.
548         * modules/sys_socket (Makefile.am): Likewise.
549         * modules/sys_stat (Makefile.am): Likewise.
550         * modules/sys_time (Makefile.am): Likewise.
551         * modules/sys_times (Makefile.am): Likewise.
552         * modules/sys_uio (Makefile.am): Likewise.
553         * modules/sys_utsname (Makefile.am): Likewise.
554         * modules/sys_wait (Makefile.am): Likewise.
555         * modules/sysexits (Makefile.am): Likewise.
556         * modules/termios (Makefile.am): Likewise.
557         * modules/time (Makefile.am): Likewise.
558         * modules/unistd (Makefile.am): Likewise.
559         * modules/wchar (Makefile.am): Likewise.
560         * modules/wctype-h (Makefile.am): Likewise.
561         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
562
563 2011-05-29  Bruno Haible  <bruno@clisp.org>
564
565         assert-h: Allow multiple gnulib generated replacements to coexist.
566         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
567
568 2011-05-29  Bruno Haible  <bruno@clisp.org>
569
570         argp: Allow coexistence with strerror_r-posix module.
571         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
572         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
573         by gnulib's <string.h> replacement), assume it has the POSIX signature,
574         not the glibc signature.
575
576 2011-05-28  Bruno Haible  <bruno@clisp.org>
577
578         gnulib-tool: Alternative structure of testdirs, similar to --import.
579         * gnulib-tool: New option --single-configure.
580         (func_usage): Document it.
581         (single_configure): New variable.
582         (func_modules_transitive_closure_separately,
583         func_modules_transitive_closure_separately,
584         func_determine_use_libtests, func_modules_add_dummy_separately,
585         func_modules_to_filelist_separately): New functions, extracted from
586         func_import.
587         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
588         (func_import): Use the new functions.
589         (func_create_testdir): Set final_modules. Handle $single_configure =
590         true case.
591
592 2011-05-28  Bruno Haible  <bruno@clisp.org>
593
594         getloadavg: Remove an unreliable safety check.
595         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
596         getloadavg.c is in place.
597         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
598         Reported by Sam Steingold <sds@gnu.org>.
599
600 2011-05-28  Bruno Haible  <bruno@clisp.org>
601
602         doc: Cleanup yet another file produced by texinfo.tex.
603         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
604
605 2011-05-28  Bruno Haible  <bruno@clisp.org>
606
607         Finish the conditional dependencies mechanism.
608         * gnulib-tool: New option --no-conditional-dependencies.
609         (func_usage): Document it. Don't mark --conditional-dependencies as
610         experimental.
611         (cond_dependencies): The possible values can now be true, false, empty.
612         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
613         (func_import): Store setting in gnulib-cache.m4 and read it from there.
614         * doc/gnulib-tool.texi (Conditional dependencies): New section.
615
616 2011-05-28  Bruno Haible  <bruno@clisp.org>
617
618         doc: Use a recent texinfo.tex.
619         * doc/Makefile (tex_opts): New variable.
620         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
621
622 2011-05-28  Jim Meyering  <meyering@redhat.com>
623
624         intprops.h: adjust comment to match code change
625         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
626         only once, it *may* have side effects.  Also fix an unrelated typo.
627         (_GL_INT_SIGNED): Likewise.
628
629 2011-05-26  Simon Josefsson  <simon@josefsson.org>
630
631         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
632
633 2011-05-26  Bruno Haible  <bruno@clisp.org>
634
635         mbsrchr: Avoid collision with system function on Interix.
636         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
637         Reported by Markus Duft <mduft@gentoo.org>.
638
639 2011-05-15  James Youngman  <jay@gnu.org>
640
641         getopt: for ambiguous options, enumerate the possibilities.
642         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
643         the ambiguous options when an ambiguous prefix is given. This was
644         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
645         glibc change was
646         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
647
648 2011-05-25  Eric Blake  <eblake@redhat.com>
649
650         getcwd: work around mingw bug
651         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
652         * doc/posix-functions/getcwd.texi (getcwd): Document it.
653         Reported by Matthias Bolte.
654
655 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
656
657         test-intprops: disable -Wtype-limits diagnostics
658         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
659         diagnostics.  Otherwise, the integer overflow macros generate many
660         diagnostics.  Reported by Jim Meyering in
661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
662
663         intprops: shorten, to pacify gcc -Woverlength-strings
664         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
665         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
666         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
667         likely to run afoul of C compiler limits for string constant lengths.
668         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
669
670 2011-05-24  Eric Blake  <eblake@redhat.com>
671
672         docs: document recently fixed glibc printf bug
673         * doc/posix-functions/fprintf.texi (fprintf): Document it.
674         * doc/posix-functions/printf.texi (printf): Likewise.
675         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
676         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
677
678         closein-tests: convert to init.sh
679         * modules/closein-tests (Files): Add init.sh
680         * tests/test-closein.sh Use it.
681
682         yesno-tests: convert to init.sh
683         * modules/yesno-tests (Files): Add init.sh.
684         * tests/test-yesno.sh: Use it.
685
686         atexit-tests: ensure reliable exit status
687         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
688         Reported by Bruno Haible.
689
690 2011-05-24  Bruno Haible  <bruno@clisp.org>
691
692         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
693         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
694         gl_PREREQ_STRERROR_R invocations from here...
695         * modules/strerror_r-posix (configure.ac): ... to here.
696
697 2011-05-24  Eric Blake  <eblake@redhat.com>
698
699         strerror_r: fix missing header
700         * lib/strerror_r.c: Avoid compiler warning about snprintf.
701
702         strerror_r: fix AIX test failures
703         * lib/strerror_r.c (strerror_r): Convert silent truncation to
704         ERANGE failure.
705
706         strerror_r: fix Solaris test failures
707         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
708         failures.
709         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
710
711         strerror_r: enforce POSIX recommendations
712         * lib/strerror_r.c (safe_copy): New helper method.
713         (strerror_r): Guarantee a non-empty string.
714         * tests/test-strerror_r.c (main): Enhance tests to incorporate
715         recent POSIX rulings and to match our strerror guarantees.
716         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
717
718 2011-05-24  Jim Meyering  <meyering@redhat.com>
719
720         test-perror2.c: avoid warning about unused variable
721         * tests/test-perror2.c (main): Remove declaration of unused "fp".
722
723 2011-05-24  Eric Blake  <eblake@redhat.com>
724
725         perror: avoid spurious test failure on HP-UX
726         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
727
728         tests: fix logic bug in init.sh
729         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
730         shell.
731
732 2011-05-24  Jim Meyering  <meyering@redhat.com>
733
734         utimensat: do not reference an out-of-scope buffer
735         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
736         declared in an inner scope, yet "times" would be dereferenced outside
737         the scope in which "ts" was valid.
738         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
739         of ts[2] "out/up", so that the use of aliased "times" (via
740         "times = ts;") does not end up referencing an out-of-scope "ts"
741
742         opendir-safer.c: don't clobber errno; don't close negative FD
743         * lib/opendir-safer.c (opendir_safer):
744         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
745         file descriptor, and more importantly, don't clobber the
746         offending errno value with EINVAL.  Before, upon failure
747         of dup_safer, we would pass the negative file descriptor to
748         fdopendir, which would clobber errno.
749
750 2011-05-23  Bruno Haible  <bruno@clisp.org>
751
752         idcache: Fix module description.
753         * modules/idcache (Include): Set to "idcache.h".
754
755 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
756
757         gnulib-tool: fix portability problem with MacOS sed
758         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
759         before the "}".  Problem reported by Leo in
760         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
761         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
762         sed_extract_condition1, sed_extract_condition2.
763
764 2011-05-23  Bruno Haible  <bruno@clisp.org>
765
766         hash: Simplify autoconf macro.
767         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
768
769 2011-05-23  Bruno Haible  <bruno@clisp.org>
770
771         getugroups: Fix module description.
772         * modules/getugroups (Include): Set to "getugroups.h".
773
774 2011-05-23  Bruno Haible  <bruno@clisp.org>
775
776         linkat: Simplify autoconf macro.
777         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
778
779 2011-05-23  Bruno Haible  <bruno@clisp.org>
780             Eric Blake  <eblake@redhat.com>
781
782         linkat, renameat: Update dependencies.
783         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
784         * modules/linkat (Depends-on): Likewise. Remove also readlink,
785         symlinkat.
786
787 2011-05-23  Jim Meyering  <meyering@redhat.com>
788
789         maint.mk: more tight_scope improvements
790         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
791         (_gl_TS_headers): Define only in if-0'd block.
792         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
793         sometimes we must *not* use it.  Adjust uses accordingly.
794         (sc_tight_scope): Use much simpler grep-based test to determine
795         whether we skip this rule.
796
797         maint.mk: generalize/improve the tight-scope rule
798         * top/maint.mk: Emit a warning when the test is skipped.
799         (_gl_TS_dir): Add $(srcdir)/ prefix.
800         (_gl_TS_function_match): Simplify, rather than trying
801         to enumerate common types.  Otherwise, it would fail to match an
802         "extern unsigned char const *" declaration in idutils.
803         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
804         a way to support use of that type of macro.
805         (_gl_TS_var_match): Simplify regexp.
806         (_gl_TS_obj_files): New configurable variable.
807         (_gl_TS_headers): Likewise.
808
809 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
810
811         verify: fix bug when gnulib <assert.h> is also included
812         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
813         is defined, not if _GL_STATIC_ASSERT_H is not defined.
814         Perhaps there's a better way, but this fixes the immediate problem.
815         Problem reported by Bruno Haible in
816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
817
818 2011-05-22  Bruno Haible  <bruno@clisp.org>
819
820         xgetcwd: Simplify autoconf macro.
821         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
822
823 2011-05-22  Bruno Haible  <bruno@clisp.org>
824
825         New module 'mktime-internal'.
826         * modules/mktime-internal: New file.
827         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
828         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
829         mktime_internal as a C macro if libc has __mktime_internal.
830         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
831         conditions.
832         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
833
834 2011-05-22  Bruno Haible  <bruno@clisp.org>
835
836         timegm: Correct mktime replacement statements.
837         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
838         defining mktime as a C macro. This completes a 2009-07-28 commit.
839
840 2011-05-22  Bruno Haible  <bruno@clisp.org>
841
842         timegm: Simplify autoconf macro.
843         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
844
845 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
846
847         clock-time: change to LGPLv2+.
848         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
849         BSD-like but we have no mark for that; this is good enough for now.
850
851 2011-05-21  Bruno Haible  <bruno@clisp.org>
852
853         strerror_r: Fix comments.
854         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
855
856 2011-05-21  Bruno Haible  <bruno@clisp.org>
857
858         relocatable-prog-wrapper: Fix possible link error.
859         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
860         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
861         (gl_FUNC_SETENV): ... to here.
862         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
863         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
864
865 2011-05-21  Bruno Haible  <bruno@clisp.org>
866
867         relocatable-prog-wrapper: Assume strerror() exists.
868         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
869         m4/strerror.m4.
870         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
871         * lib/relocwrapper.c: Remove mention of strerror module.
872         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
873         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
874         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
875         C macro.
876
877 2011-05-21  Bruno Haible  <bruno@clisp.org>
878
879         select: Simplify replacement idiom.
880         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
881         Win32 platforms.
882         * lib/sys_select.in.h (select): Simplify accordingly.
883         * modules/select (Depends-on): Likewise.
884
885 2011-05-21  Bruno Haible  <bruno@clisp.org>
886
887         mkdir-p: Simplify autoconf macro.
888         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
889         gl_FUNC_LCHOWN.
890
891 2011-05-21  Eric Blake  <eblake@redhat.com>
892
893         strerror_r: avoid clobbering strerror on cygwin
894         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
895         fall back instead to sys_errlist.
896         * modules/strerror (configure.ac): Add witness.
897         * tests/test-strerror_r.c (main): Enhance test.
898         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
899         * tests/test-perror2.c (main): Free memory before exit.
900
901 2011-05-21  Bruno Haible  <bruno@clisp.org>
902
903         mkdtemp: Use gnulib naming conventions.
904         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
905         * modules/mkdtemp (configure.ac): Update.
906
907 2011-05-20  Eric Blake  <eblake@redhat.com>
908
909         strerror_r: avoid corrupting errno on Solaris
910         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
911         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
912
913         strerror_r: avoid compiler warning
914         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
915
916         strerror_r: simplify AIX code
917         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
918
919         test-perror: avoid spurious failure on FreeBSD
920         * modules/perror-tests (Depends-on): Add strerror, now that
921         strerror_r no longer pulls it in.
922
923 2011-05-20  Bruno Haible  <bruno@clisp.org>
924
925         strerror_r-posix: Remove unused dependencies.
926         * modules/strerror_r-posix (Depends-on): Remove strerror.
927         Reported by Eric Blake.
928
929 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
930
931         intprops: remove assumption about A|B representation
932         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
933         is a valid integer if both A and B are.  Although this is true for
934         all known practical hosts, the C standard doesn't guarantee it,
935         and the code need not assume it.  Also, this change may work around
936         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
938
939 2011-05-20  Eric Blake  <eblake@redhat.com>
940
941         perror: work around FreeBSD bug
942         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
943         is broken.  Move AC_LIBOBJ...
944         * modules/perror (configure.ac): Here.
945         * doc/posix-functions/perror.texi (perror): Document this.
946         * tests/test-perror2.c (main): Enhance test.
947
948         test-perror: check for strerror interactions
949         * tests/macros.h (STREQ): Add macro.
950         * modules/perror-tests (Files): Add second test.
951         * tests/test-perror2.c (main): New file.
952         * doc/posix-functions/perror.texi (perror): Document glibc bug.
953
954         test-perror: rewrite to use init script
955         * modules/perror-tests (Files): Add init.sh.
956         * tests/test-perror.sh: Use temporary directory.
957
958 2011-05-20  Jim Meyering  <meyering@redhat.com>
959
960         maint: replace misused "a" with "an"
961         * doc/intprops.texi: "a integer"
962         * doc/regex.texi: "a explanation"
963         * lib/alignof.h: "a object"
964         * lib/argmatch.h: "a explanation"
965         * lib/argp-help.c: "a option" and "a OPTION_DOC"
966         * lib/stdint.in.h: "a integer"
967         * lib/userspec.c: "a owner"
968         * doc/gnulib.texi: Fix "a idea", and reword.
969
970 2011-05-19  Jim Meyering  <meyering@redhat.com>
971
972         maint: correct misuse of "a" and "an"
973         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
974         * lib/argp-help.c: "an docum...": s/an/a/
975         * lib/argp-parse.c: "An vector": s/An/A/
976         * lib/execute.c: "an native": s/an/a/
977         * lib/spawn-pipe.c: Likewise.
978         * lib/gc.h: "an Gc_rc": s/an/a/
979         * lib/unigbrk.in.h: "an grapheme": s/an/a/
980         * lib/fts.c: "an stat.st_dev": s/an/a/
981
982 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
983
984         intprops-tests: work around HP-UX 11.23 cc bug with constants
985         * tests/test-intprops.c (VERIFY): New macro.
986         (main): Use it, instead of verify, to work around the compiler bug; see
987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
988
989         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
990         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
991         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
992         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
993         (_GL_REMAINDER_OVERFLOW): Use it.
994
995         intprops-tests: revert unsigned part of previous change
996         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
997         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
998         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1000
1001 2011-05-19  Bruno Haible  <bruno@clisp.org>
1002
1003         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1004         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1005         strerror_r() returned without filling the buffer.
1006         Reported by Eric Blake.
1007
1008 2011-05-19  Eric Blake  <eblake@redhat.com>
1009
1010         strerror_r: guarantee unchanged errno
1011         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1012         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1013         failure.
1014         * tests/test-strerror_r.c (main): Enhance test.
1015
1016 2011-05-19  Bruno Haible  <bruno@clisp.org>
1017
1018         strerror_r: Reorder #if blocks.
1019         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1020         for consistency with the previous commit.
1021
1022 2011-05-19  Bruno Haible  <bruno@clisp.org>
1023
1024         perror: Avoid clobbering the strerror buffer when possible.
1025         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1026         * lib/strerror.c: Include it.
1027         * modules/strerror (Files): Add lib/strerror-impl.h.
1028         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1029         (my_strerror): New function, defined through lib/strerror-impl.h.
1030         (perror): Use it instead of strerror.
1031         * modules/perror (Files): Add lib/strerror-impl.h.
1032         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1033
1034 2011-05-19  Eric Blake  <eblake@redhat.com>
1035
1036         strerror_r: fix on newer cygwin
1037         * lib/strerror_r.c (strerror_r): Cygwin now has
1038         __xpg_strerror_r, use it.
1039
1040 2011-05-19  Bruno Haible  <bruno@clisp.org>
1041
1042         strerror_r: Avoid clobbering the strerror buffer when possible.
1043         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1044         (sys_nerr, sys_errlist): New declarations.
1045         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1046         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1047         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1048
1049 2011-05-19  Bruno Haible  <bruno@clisp.org>
1050
1051         strerror_r: Fix test failure on mingw.
1052         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1053         EXTEND_STRERROR_R.
1054         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1055         macros from errno.in.h instead.
1056
1057 2011-05-19  Eric Blake  <eblake@redhat.com>
1058
1059         strerror: relax test for Solaris
1060         * tests/test-strerror.c (main): Permit Solaris behavior.
1061         * tests/test-strerror_r.c (main): Likewise.
1062
1063         strerror: enforce POSIX ruling on strerror(0)
1064         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1065         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1066         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1067         * doc/posix-functions/strerror.texi (strerror): Document it.
1068         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1069         * tests/test-strerror.c (main): Strengthen test.
1070         * tests/test-strerror_r.c (main): Likewise.
1071
1072 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1073
1074         intprop-tests: port to older and more-pedantic compilers
1075         * modules/intprops-tests (Files): Add tests/macros.h.
1076         * tests/test-intprops.c: Include macros.h.
1077         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1078         it's no longer documented to expand to an integer constant expression.
1079         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1080         argument is floating point, as it's no longer documented to expand
1081         to an integer constant expression in that case.
1082         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1083         compiler bugs reported by Bruno Haible.  See
1084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1085         (U0, U1): New constants, to work around the same bugs.  Also,
1086         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1087
1088         intprops: work around C compiler bugs
1089         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1090         bug in Sun C 5.11 2010/08/13 and other compilers; see
1091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1092
1093         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1094         * doc/intprops.texi (Integer Type Determination): Fix
1095         documentation for TYPE_IS_INTEGER: it returns an constant
1096         expression, not an integer constant expression.  Fix doc for
1097         TYPE_SIGNED: it returns an integer constant expression only if its
1098         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1099         hardly worth documented that way....)
1100
1101 2011-05-18  Bruno Haible  <bruno@clisp.org>
1102
1103         strerror_r: Avoid clobbering the strerror buffer when possible.
1104         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1105         Handle gnulib defined errno values here. When strerror() returns NULL
1106         or an empty string, return EINVAL.
1107         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1108         gnulib defined errno values here.
1109         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1110
1111 2011-05-18  Eric Blake  <eblake@redhat.com>
1112
1113         fnmatch: avoid compiler warning
1114         * lib/fnmatch_loop.c (FCT): Use correct type.
1115         Reported by Matthias Bolte.
1116
1117 2011-05-13  Jim Meyering  <meyering@redhat.com>
1118
1119         maint.mk: three new prohibit_<HDR>_without_use rules
1120         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1121         (sc_prohibit_stdio-safer_without_use): Likewise.
1122         (sc_prohibit_xfreopen_without_use): Likewise.
1123
1124 2011-05-17  Jim Meyering  <meyering@redhat.com>
1125
1126         announce-gen: fail if the NEWS delta is empty
1127         If there's nothing noteworthy in NEWS, then either you forgot
1128         or you shouldn't be releasing.
1129         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1130
1131 2011-05-17  Pádraig Brady <P@draigBrady.com>
1132
1133         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1134         reserved symbols starting with double underscore from the check.
1135
1136 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1137
1138         intprops: add doc
1139         * doc/intprops.texi: New file, documenting intprops.
1140         * doc/gnulib.texi (Particular Modules): Include it.
1141
1142         verify: add doc to gnulib manual and fix example
1143         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1144         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1145         (Compile-time Assertions): Fix example so it can't overflow.
1146
1147 2011-05-17  Jim Meyering  <meyering@redhat.com>
1148
1149         warnings.m4: don't usurp save_CPPFLAGS variable name
1150         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1151
1152         doc: fix typo
1153         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1154
1155 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1156             Bruno Haible  <bruno@clisp.org>
1157
1158         doc: Tweak recent change.
1159         * README (Portability guidelines): Tweak new text.
1160         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1161         Interix 6.1.
1162
1163 2011-05-16  Eric Blake  <eblake@redhat.com>
1164
1165         inttypes: avoid autoconf warning
1166         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1167         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1168
1169 2011-05-16  Sam Steingold <sds@gnu.org>
1170         and Eric Blake  <eblake@redhat.com>
1171
1172         vc-list-files: accept multiple directory operands
1173         * build-aux/vc-list-files: Iterate over all remaining operands.
1174
1175 2011-05-16  Bruno Haible  <bruno@clisp.org>
1176
1177         Fix confusion regarding deprecated modules.
1178         * modules/calloc (Status, Notice): Mark module as deprecated, not
1179         obsolete.
1180         * modules/fnmatch-posix (Status, Notice): Likewise.
1181         * modules/getdate (Status, Notice): Likewise.
1182         * modules/getopt (Status, Notice): Likewise.
1183         * modules/malloc (Status, Notice): Likewise.
1184         * modules/pipe (Status, Notice): Likewise.
1185         * modules/realloc (Status, Notice): Likewise.
1186         * modules/rename-dest-slash (Status, Notice): Likewise.
1187         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1188         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1189         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1190         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1191         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1192
1193 2011-05-16  Bruno Haible  <bruno@clisp.org>
1194
1195         doc: List the target platforms.
1196         * doc/gnulib-intro.texi (Target Platforms): New section.
1197         * doc/gnulib.texi (Introduction): Update menu.
1198         * README (Portability guidelines): Refer to the new section. Update
1199         statement about oldest supported environment. Remove rationale why
1200         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1201         unportable C89 function.
1202         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1203         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1204
1205 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1206
1207         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1208
1209 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1210
1211         intprops-tests: new module
1212         * modules/intprops-tests, tests/test-intprops.c: New files.
1213
1214         intprops: add safe, portable integer overflow checking
1215         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1216         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1217         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1218         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1219         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1220         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1221         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1222         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1223         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1224         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1225         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1226
1227 2011-05-12  James Youngman  <jay@gnu.org>
1228
1229         Add a test for glibc's Bugzilla bug #12378.
1230         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1231         doesn't allow the literal matching of a lone "[" (which is
1232         required by POSIX).
1233         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1234
1235 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1236
1237         Sync glibc change fixing Bugzilla bug #12378.
1238         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1239         beginning and fall back to matching as normal character if the
1240         string ends before the matching ']' is found.  This is what POSIX
1241         requires.
1242
1243 2011-05-13  Eric Blake  <eblake@redhat.com>
1244
1245         getcwd-lgpl: relax test for FreeBSD
1246         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1247         issue.
1248         * tests/test-getcwd-lgpl.c (main): Relax test.
1249         Reported by Matthias Bolte.
1250
1251 2011-05-11  Eric Blake  <eblake@redhat.com>
1252
1253         test-fflush: silence compiler warning
1254         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1255
1256 2011-05-11  Bruno Haible  <bruno@clisp.org>
1257
1258         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1259         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1260         * modules/canonicalize (Depends-on): Add 'nocrash'.
1261         * modules/canonicalize-lgpl (Depends-on): Likewise.
1262         * doc/posix-functions/realpath.texi: Update platforms list.
1263         Reported by Ryan Schmidt <ryandesign@macports.org>.
1264
1265 2011-05-11  Bruno Haible  <bruno@clisp.org>
1266
1267         group-member: Declare function in <unistd.h>.
1268         * lib/unistd.in.h (group_member): New declaration.
1269         * lib/group-member.h: Remove file.
1270         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1271         * tests/test-unistd-c++.cc: Check signature of group_member.
1272         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1273         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1274         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1275         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1276         HAVE_GROUP_MEMBER.
1277         * modules/group-member (Files): Remove lib/group-member.h.
1278         (Depends-on): Add unistd. Specify conditions.
1279         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1280         (Include): Change to <unistd.h>.
1281         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1282         HAVE_GROUP_MEMBER.
1283         * NEWS: Mention the change.
1284         * lib/euidaccess.c: Don't include group-member.h.
1285
1286 2011-05-11  Bruno Haible  <bruno@clisp.org>
1287
1288         group-member: Document module.
1289         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1290         module.
1291
1292 2011-05-11  Bruno Haible  <bruno@clisp.org>
1293
1294         fclose: Fix mistake earlier today.
1295         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1296
1297 2011-05-11  Eric Blake  <eblake@redhat.com>
1298
1299         fclose: preserve fflush errors
1300         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1301         Reported by Jim Meyering.
1302
1303         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1304         * build-aux/bootstrap (check_versions): When no specific version
1305         is required, merely check that the app produces an exit status
1306         that indicates its existence.
1307
1308         maint.mk: drop redundant check
1309         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1310         the same but better.
1311
1312 2011-05-11  Bruno Haible  <bruno@clisp.org>
1313
1314         fclose: Fix possible link error.
1315         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1316         unregister_shadow_fd. Improve comments.
1317         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1318         Eric Blake.
1319
1320 2011-05-11  Jim Meyering  <meyering@redhat.com>
1321
1322         maint.mk: improve "can not" detection and generalize rule name
1323         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1324         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1325         Use the same technique as in sc_prohibit_doubled_word, so that
1326         we recognize "can not" also when the words are separated by a newline.
1327         Suggested by Eric Blake.
1328         (perl_filename_lineno_text_): Define.  Factored out of...
1329         (prohibit_doubled_word_): ...here.  Use the new definition.
1330         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1331         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1332         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1333
1334 2011-05-10  Eric Blake  <eblake@redhat.com>
1335
1336         fclose: avoid double close race when possible
1337         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1338         all but WINDOWS_SOCKETS.
1339
1340 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1341
1342         openat: correct new comment
1343         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1344
1345 2011-05-10  Jim Meyering  <meyering@redhat.com>
1346
1347         openat: add comments
1348         * lib/openat-proc.c (openat_proc_name): Add comments,
1349         mostly from Eric Blake.
1350
1351 2011-05-09  Eric Blake  <eblake@redhat.com>
1352
1353         openat: reduce syscalls in first probe of /proc
1354         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1355         be a directory.  Simplify the probe for .. bugs.
1356         * modules/openat (Depends-on): Drop same-inode.
1357         Reported by Bastien ROUCARIES.
1358
1359 2011-05-09  Jim Meyering  <meyering@redhat.com>
1360
1361         maint.mk: change semantics/name of tight_scope variables
1362         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1363         Rename variables to align with semantics that make them more useful.
1364
1365         maint.mk: tweak new rule's name not to impinge
1366         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1367         (sc_tight_scope): Use new rule name rather than $@-0.
1368
1369         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1370         * top/maint.mk (sc_tight_scope): New rule.
1371         (sc_tight_scope-0): New rule, ifdef'd out.
1372         (_gl_TS_dir): Default.
1373         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1374         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1375
1376 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1377
1378         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1379         Haible <bruno@clisp.org>.
1380
1381 2011-05-08  Bruno Haible  <bruno@clisp.org>
1382
1383         Comments.
1384         * m4/isnanf.m4: Add comment.
1385         * m4/isnanl.m4: Likewise.
1386
1387 2011-05-08  Bruno Haible  <bruno@clisp.org>
1388
1389         glob: Remove obsolete macro.
1390         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1391
1392 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1393
1394         intprops: Sun C 5.11 supports __typeof__
1395         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1396         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1397         which is new.
1398         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1399
1400         intprops: switch to usual gnulib indenting and naming
1401         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1402         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1403
1404         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1405
1406 2011-05-08  Jim Meyering  <meyering@redhat.com>
1407
1408         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1409         * top/maint.mk (release-prep): Use make's --no-print-directory
1410         option when generating the announcement.  This eliminates the
1411         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1412         generated announcement template.
1413
1414 2011-05-08  Bruno Haible  <bruno@clisp.org>
1415
1416         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1417         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1418         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1419
1420 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1421
1422         ignore-value, verify: Omit include files from lib_SOURCES.
1423         * modules/ignore-value, modules/verify (Makefile.am):
1424         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1425         that leads Automake to duplicate use of am__objects_... variables
1426         in Makefile.in.  See
1427         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1428
1429 2011-05-07  Bruno Haible  <bruno@clisp.org>
1430
1431         fclose: Simplify autoconf macro.
1432         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1433         defined.
1434
1435 2011-05-07  Bruno Haible  <bruno@clisp.org>
1436
1437         canonicalize-lgpl: Fix autoconf macro ordering bug.
1438         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1439         gl_STDLIB_H_DEFAULTS.
1440
1441 2011-05-06  Eric Blake  <eblake@redhat.com>
1442
1443         maintainer-makefile: make sc_po_check easier to tune
1444         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1445         to probe for strings, such as an alternate location for gnulib.
1446
1447         fclose: guarantee behavior on seekable stdin
1448         * modules/fclose (Depends-on): Add fflush.
1449         * doc/posix-functions/fclose.texi (fclose): Document this.
1450         * tests/test-fclose.c (main): Make test for this unconditional.
1451
1452 2011-05-06  Bruno Haible  <bruno@clisp.org>
1453
1454         fflush, fpurge: Relicense under LGPLv2+.
1455         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1456         * modules/fpurge (License): Likewise.
1457         With permission from Eric Blake and Jim Meyering.
1458         Suggested by Eric Blake.
1459
1460 2011-05-06  Karl Berry  <karl@gnu.org>
1461
1462         * MODULES.html.sh (func_all_modules): remove exit.
1463
1464 2011-05-06  Jim Meyering  <meyering@redhat.com>
1465
1466         maint.mk: use info-gnu@ as the default only for a stable release
1467         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1468         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1469         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1470         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1471
1472 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1473
1474         assert-h: new module, which supports C1X-style static_assert
1475         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1476         * lib/verify.h: Revamp so that this can be copied into assert.h,
1477         while retaining the ability to use it standalone as before.
1478         Rename private identifiers so as not to encroach on the
1479         standard C namespace, since this is now used by assert.h.
1480         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1481         the old verify_true.
1482         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1483         the old verify_true.  Use _GL_VERIFY_TYPE.
1484         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1485         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1486         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1487         defined when this file is copied into the replacement assert.h.
1488         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1489         and _Static_assert is not built in.
1490         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1491         defined, and use the new macros mentioned above.
1492         * doc/posix-headers/assert.texi: Document this.
1493
1494 2011-05-05  Bruno Haible  <bruno@clisp.org>
1495
1496         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1497         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1498         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1499         gl_REPLACE_FCLOSE here.
1500         * modules/fflush (Depends-on): Remove fclose.
1501         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1502         combination with module 'fclose'.
1503
1504 2011-05-05  Bruno Haible  <bruno@clisp.org>
1505
1506         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1507         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1508         gl_FUNC_FFLUSH.
1509         (gl_FUNC_FFLUSH): Use it.
1510         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1511         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1512         gl_REPLACE_FSEEKO here.
1513
1514 2011-05-05  Bruno Haible  <bruno@clisp.org>
1515
1516         tzset: Relicense under LGPL.
1517         * modules/tzset (License): Change to LGPL.
1518         No agreement needed; it's a no-op.
1519
1520         strtoimax, strtoumax: Relicense under LGPL.
1521         * modules/strtoimax (License): Change to LGPL.
1522         * modules/strtoumax (License): Likewise.
1523         With permission from Jim Meyering, Paul Eggert:
1524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1526
1527         getgroups: Relicense under LGPL.
1528         * modules/getgroups (License): Change to LGPL.
1529         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1533
1534         nanosleep: Relicense under LGPL.
1535         * modules/nanosleep (License): Change to LGPL.
1536         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1537         Haible:
1538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1542
1543         futimens: Relicense under LGPL.
1544         * modules/futimens (License): Change to LGPL.
1545         With permission from Eric Blake:
1546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1547
1548         fflush: Relicense under LGPL.
1549         * modules/fflush (License): Change to LGPL.
1550         With permission from Eric Blake, Bruno Haible, Jim Meyering:
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         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1554
1555         tmpfile: Relicense under LGPL.
1556         * modules/tmpfile (License): Change to LGPL.
1557         With permission from Ben Pfaff:
1558         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1559
1560         isfinite: Relicense under LGPL.
1561         * modules/isfinite (License): Change to LGPL.
1562         With permission from Ben Pfaff, Bruno Haible:
1563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1565
1566         acosl..tanl: Relicense under LGPL.
1567         * modules/acosl (License): Change to LGPL.
1568         * modules/asinl (License): Likewise.
1569         * modules/atanl (License): Likewise.
1570         * modules/cosl (License): Likewise.
1571         * modules/expl (License): Likewise.
1572         * modules/logl (License): Likewise.
1573         * modules/sinl (License): Likewise.
1574         * modules/sqrtl (License): Likewise.
1575         * modules/tanl (License): Likewise.
1576         Source code originally from glibc and Paolo Bonzini. Agreements:
1577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1579
1580 2011-05-05  Bruno Haible  <bruno@clisp.org>
1581
1582         signal: Define sighandler_t.
1583         * lib/signal.in.h (sighandler_t): New type.
1584         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1585         whether sighandler_t is defined.
1586         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1587         * modules/signal (Depends-on): Add extensions.
1588         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1589         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1590         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1591
1592 2011-05-05  Eric Blake  <eblake@redhat.com>
1593
1594         maint: remove useless REPLACE_*_H macros
1595         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1596         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1597         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1598         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1599         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1600         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1601         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1602         * m4/btowc.m4: Update callers.
1603         * m4/dirfd.m4: Likewise.
1604         * m4/duplocale.m4: Likewise.
1605         * m4/fchdir.m4: Likewise.
1606         * m4/fdopendir.m4: Likewise.
1607         * m4/inet_ntop.m4: Likewise.
1608         * m4/inet_pton.m4: Likewise.
1609         * m4/ioctl.m4: Likewise.
1610         * m4/mbrlen.m4: Likewise.
1611         * m4/mbrtowc.m4: Likewise.
1612         * m4/mbsinit.m4: Likewise.
1613         * m4/mbsnrtowcs.m4: Likewise.
1614         * m4/mbsrtowcs.m4: Likewise.
1615         * m4/poll.m4: Likewise.
1616         * m4/setlocale.m4: Likewise.
1617         * m4/wcrtomb.m4: Likewise.
1618         * m4/wcsnrtombs.m4: Likewise.
1619         * m4/wcsrtombs.m4: Likewise.
1620         * m4/wctob.m4: Likewise.
1621         * m4/wcwidth.m4: Likewise.
1622         * modules/posix_spawn: Likewise.
1623         * modules/posix_spawn_file_actions_addclose: Likewise.
1624         * modules/posix_spawn_file_actions_adddup2: Likewise.
1625         * modules/posix_spawn_file_actions_addopen: Likewise.
1626         * modules/posix_spawn_file_actions_destroy: Likewise.
1627         * modules/posix_spawn_file_actions_init: Likewise.
1628         * modules/posix_spawnattr_destroy: Likewise.
1629         * modules/posix_spawnattr_getflags: Likewise.
1630         * modules/posix_spawnattr_getpgroup: Likewise.
1631         * modules/posix_spawnattr_getschedparam: Likewise.
1632         * modules/posix_spawnattr_getschedpolicy: Likewise.
1633         * modules/posix_spawnattr_getsigdefault: Likewise.
1634         * modules/posix_spawnattr_getsigmask: Likewise.
1635         * modules/posix_spawnattr_init: Likewise.
1636         * modules/posix_spawnattr_setflags: Likewise.
1637         * modules/posix_spawnattr_setpgroup: Likewise.
1638         * modules/posix_spawnattr_setschedparam: Likewise.
1639         * modules/posix_spawnattr_setschedpolicy: Likewise.
1640         * modules/posix_spawnattr_setsigdefault: Likewise.
1641         * modules/posix_spawnattr_setsigmask: Likewise.
1642         * modules/posix_spawnp: Likewise.
1643
1644 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1645
1646         Add option to do-release-commit-and-tag to specify branch.
1647         * build-aux/do-release-commit-and-tag: Add --branch.
1648
1649 2011-05-03  Bruno Haible  <bruno@clisp.org>
1650
1651         Avoid unnecessary compilation units, through conditional dependencies.
1652         * modules/accept (Depends-on): Add conditions to the dependencies.
1653         * modules/acosl (Depends-on): Likewise.
1654         * modules/argz (Depends-on): Likewise.
1655         * modules/asinl (Depends-on): Likewise.
1656         * modules/atanl (Depends-on): Likewise.
1657         * modules/atoll (Depends-on): Likewise.
1658         * modules/bind (Depends-on): Likewise.
1659         * modules/btowc (Depends-on): Likewise.
1660         * modules/canonicalize-lgpl (Depends-on): Likewise.
1661         * modules/ceil (Depends-on): Likewise.
1662         * modules/ceilf (Depends-on): Likewise.
1663         * modules/ceill (Depends-on): Likewise.
1664         * modules/chdir-long (Depends-on): Likewise.
1665         * modules/chown (Depends-on): Likewise.
1666         * modules/close (Depends-on): Likewise.
1667         * modules/connect (Depends-on): Likewise.
1668         * modules/cosl (Depends-on): Likewise.
1669         * modules/dirfd (Depends-on): Likewise.
1670         * modules/dprintf (Depends-on): Likewise.
1671         * modules/dprintf-posix (Depends-on): Likewise.
1672         * modules/error (Depends-on): Likewise.
1673         * modules/euidaccess (Depends-on): Likewise.
1674         * modules/expl (Depends-on): Likewise.
1675         * modules/faccessat (Depends-on): Likewise.
1676         * modules/fchdir (Depends-on): Likewise.
1677         * modules/fclose (Depends-on): Likewise.
1678         * modules/fcntl (Depends-on): Likewise.
1679         * modules/fdopendir (Depends-on): Likewise.
1680         * modules/fflush (Depends-on): Likewise.
1681         * modules/floor (Depends-on): Likewise.
1682         * modules/floorf (Depends-on): Likewise.
1683         * modules/floorl (Depends-on): Likewise.
1684         * modules/fnmatch (Depends-on): Likewise.
1685         * modules/fopen (Depends-on): Likewise.
1686         * modules/fprintf-posix (Depends-on): Likewise.
1687         * modules/frexp (Depends-on): Likewise.
1688         * modules/frexp-nolibm (Depends-on): Likewise.
1689         * modules/frexpl (Depends-on): Likewise.
1690         * modules/frexpl-nolibm (Depends-on): Likewise.
1691         * modules/fseek (Depends-on): Likewise.
1692         * modules/fsusage (Depends-on): Likewise.
1693         * modules/ftell (Depends-on): Likewise.
1694         * modules/ftello (Depends-on): Likewise.
1695         * modules/futimens (Depends-on): Likewise.
1696         * modules/getcwd (Depends-on): Likewise.
1697         * modules/getcwd-lgpl (Depends-on): Likewise.
1698         * modules/getdelim (Depends-on): Likewise.
1699         * modules/getdomainname (Depends-on): Likewise.
1700         * modules/getgroups (Depends-on): Likewise.
1701         * modules/gethostname (Depends-on): Likewise.
1702         * modules/getline (Depends-on): Likewise.
1703         * modules/getlogin_r (Depends-on): Likewise.
1704         * modules/getopt-posix (Depends-on): Likewise.
1705         * modules/getpeername (Depends-on): Likewise.
1706         * modules/getsockname (Depends-on): Likewise.
1707         * modules/getsockopt (Depends-on): Likewise.
1708         * modules/getsubopt (Depends-on): Likewise.
1709         * modules/getusershell (Depends-on): Likewise.
1710         * modules/glob (Depends-on): Likewise.
1711         * modules/grantpt (Depends-on): Likewise.
1712         * modules/iconv_open (Depends-on): Likewise.
1713         * modules/iconv_open-utf (Depends-on): Likewise.
1714         * modules/inet_ntop (Depends-on): Likewise.
1715         * modules/inet_pton (Depends-on): Likewise.
1716         * modules/ioctl (Depends-on): Likewise.
1717         * modules/isapipe (Depends-on): Likewise.
1718         * modules/isfinite (Depends-on): Likewise.
1719         * modules/isinf (Depends-on): Likewise.
1720         * modules/lchown (Depends-on): Likewise.
1721         * modules/ldexpl (Depends-on): Likewise.
1722         * modules/link (Depends-on): Likewise.
1723         * modules/linkat (Depends-on): Likewise.
1724         * modules/listen (Depends-on): Likewise.
1725         * modules/logl (Depends-on): Likewise.
1726         * modules/lstat (Depends-on): Likewise.
1727         * modules/mbrlen (Depends-on): Likewise.
1728         * modules/mbrtowc (Depends-on): Likewise.
1729         * modules/mbsinit (Depends-on): Likewise.
1730         * modules/mbsnrtowcs (Depends-on): Likewise.
1731         * modules/mbsrtowcs (Depends-on): Likewise.
1732         * modules/mbtowc (Depends-on): Likewise.
1733         * modules/memcmp (Depends-on): Likewise.
1734         * modules/mkdir (Depends-on): Likewise.
1735         * modules/mkdtemp (Depends-on): Likewise.
1736         * modules/mkfifo (Depends-on): Likewise.
1737         * modules/mkfifoat (Depends-on): Likewise.
1738         * modules/mknod (Depends-on): Likewise.
1739         * modules/mkostemp (Depends-on): Likewise.
1740         * modules/mkostemps (Depends-on): Likewise.
1741         * modules/mkstemp (Depends-on): Likewise.
1742         * modules/mkstemps (Depends-on): Likewise.
1743         * modules/mktime (Depends-on): Likewise.
1744         * modules/nanosleep (Depends-on): Likewise.
1745         * modules/open (Depends-on): Likewise.
1746         * modules/openat (Depends-on): Likewise.
1747         * modules/perror (Depends-on): Likewise.
1748         * modules/poll (Depends-on): Likewise.
1749         * modules/popen (Depends-on): Likewise.
1750         * modules/posix_spawn (Depends-on): Likewise.
1751         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1752         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1753         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1754         * modules/posix_spawnp (Depends-on): Likewise.
1755         * modules/pread (Depends-on): Likewise.
1756         * modules/printf-posix (Depends-on): Likewise.
1757         * modules/ptsname (Depends-on): Likewise.
1758         * modules/putenv (Depends-on): Likewise.
1759         * modules/pwrite (Depends-on): Likewise.
1760         * modules/readline (Depends-on): Likewise.
1761         * modules/readlink (Depends-on): Likewise.
1762         * modules/readlinkat (Depends-on): Likewise.
1763         * modules/recv (Depends-on): Likewise.
1764         * modules/recvfrom (Depends-on): Likewise.
1765         * modules/regex (Depends-on): Likewise.
1766         * modules/remove (Depends-on): Likewise.
1767         * modules/rename (Depends-on): Likewise.
1768         * modules/renameat (Depends-on): Likewise.
1769         * modules/rmdir (Depends-on): Likewise.
1770         * modules/round (Depends-on): Likewise.
1771         * modules/roundf (Depends-on): Likewise.
1772         * modules/roundl (Depends-on): Likewise.
1773         * modules/rpmatch (Depends-on): Likewise.
1774         * modules/select (Depends-on): Likewise.
1775         * modules/send (Depends-on): Likewise.
1776         * modules/sendto (Depends-on): Likewise.
1777         * modules/setenv (Depends-on): Likewise.
1778         * modules/setlocale (Depends-on): Likewise.
1779         * modules/setsockopt (Depends-on): Likewise.
1780         * modules/shutdown (Depends-on): Likewise.
1781         * modules/sigaction (Depends-on): Likewise.
1782         * modules/signbit (Depends-on): Likewise.
1783         * modules/sigprocmask (Depends-on): Likewise.
1784         * modules/sinl (Depends-on): Likewise.
1785         * modules/sleep (Depends-on): Likewise.
1786         * modules/snprintf (Depends-on): Likewise.
1787         * modules/snprintf-posix (Depends-on): Likewise.
1788         * modules/socket (Depends-on): Likewise.
1789         * modules/sprintf-posix (Depends-on): Likewise.
1790         * modules/sqrtl (Depends-on): Likewise.
1791         * modules/stat (Depends-on): Likewise.
1792         * modules/strchrnul (Depends-on): Likewise.
1793         * modules/strdup-posix (Depends-on): Likewise.
1794         * modules/strerror (Depends-on): Likewise.
1795         * modules/strerror_r-posix (Depends-on): Likewise.
1796         * modules/strndup (Depends-on): Likewise.
1797         * modules/strnlen (Depends-on): Likewise.
1798         * modules/strptime (Depends-on): Likewise.
1799         * modules/strsep (Depends-on): Likewise.
1800         * modules/strsignal (Depends-on): Likewise.
1801         * modules/strstr-simple (Depends-on): Likewise.
1802         * modules/strtod (Depends-on): Likewise.
1803         * modules/strtoimax (Depends-on): Likewise.
1804         * modules/strtok_r (Depends-on): Likewise.
1805         * modules/strtoumax (Depends-on): Likewise.
1806         * modules/symlink (Depends-on): Likewise.
1807         * modules/symlinkat (Depends-on): Likewise.
1808         * modules/tanl (Depends-on): Likewise.
1809         * modules/tcgetsid (Depends-on): Likewise.
1810         * modules/tmpfile (Depends-on): Likewise.
1811         * modules/trunc (Depends-on): Likewise.
1812         * modules/truncf (Depends-on): Likewise.
1813         * modules/truncl (Depends-on): Likewise.
1814         * modules/uname (Depends-on): Likewise.
1815         * modules/unlink (Depends-on): Likewise.
1816         * modules/unlockpt (Depends-on): Likewise.
1817         * modules/unsetenv (Depends-on): Likewise.
1818         * modules/usleep (Depends-on): Likewise.
1819         * modules/utimensat (Depends-on): Likewise.
1820         * modules/vasprintf (Depends-on): Likewise.
1821         * modules/vdprintf (Depends-on): Likewise.
1822         * modules/vdprintf-posix (Depends-on): Likewise.
1823         * modules/vfprintf-posix (Depends-on): Likewise.
1824         * modules/vprintf-posix (Depends-on): Likewise.
1825         * modules/vsnprintf (Depends-on): Likewise.
1826         * modules/vsnprintf-posix (Depends-on): Likewise.
1827         * modules/vsprintf-posix (Depends-on): Likewise.
1828         * modules/wcrtomb (Depends-on): Likewise.
1829         * modules/wcscasecmp (Depends-on): Likewise.
1830         * modules/wcscspn (Depends-on): Likewise.
1831         * modules/wcsdup (Depends-on): Likewise.
1832         * modules/wcsncasecmp (Depends-on): Likewise.
1833         * modules/wcsnrtombs (Depends-on): Likewise.
1834         * modules/wcspbrk (Depends-on): Likewise.
1835         * modules/wcsrtombs (Depends-on): Likewise.
1836         * modules/wcsspn (Depends-on): Likewise.
1837         * modules/wcsstr (Depends-on): Likewise.
1838         * modules/wcstok (Depends-on): Likewise.
1839         * modules/wcswidth (Depends-on): Likewise.
1840         * modules/wctob (Depends-on): Likewise.
1841         * modules/wctomb (Depends-on): Likewise.
1842         * modules/wctype (Depends-on): Likewise.
1843         * modules/wcwidth (Depends-on): Likewise.
1844         * modules/write (Depends-on): Likewise.
1845
1846 2011-05-03  Bruno Haible  <bruno@clisp.org>
1847
1848         Support for conditional dependencies.
1849         * doc/gnulib.texi (Module description): Document the syntax of
1850         conditional dependencies.
1851         * gnulib-tool: New option --conditional-dependencies.
1852         (func_usage): Document it.
1853         (cond_dependencies): New variable.
1854         (func_get_automake_snippet_conditional,
1855         func_get_automake_snippet_unconditional): New functions, extracted from
1856         func_get_automake_snippet.
1857         (func_get_automake_snippet): Use them.
1858         (sed_first_32_chars): New variable.
1859         (func_module_shellfunc_name): New function.
1860         (func_module_shellvar_name): New function.
1861         (func_module_conditional_name): New function.
1862         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1863         func_cond_module_condition): New functions.
1864         (func_modules_transitive_closure): Add support for conditional
1865         dependencies.
1866         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1867         conditional automake snippet in an automake conditional.
1868         (func_emit_autoconf_snippets): Emit shell functions that contain the
1869         code for conditional modules.
1870         (func_import, func_create_testdir): Update specification.
1871
1872 2011-05-03  Eric Blake  <eblake@redhat.com>
1873
1874         test-getaddrinfo: report error information
1875         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1876
1877 2011-05-03  Jim Meyering  <meyering@redhat.com>
1878
1879         bootstrap: avoid build failure when $GZIP is set
1880         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1881         program name.  If defined at all, it is supposed to list gzip options.
1882         Reported by Alan Curry in http://debbugs.gnu.org/8609
1883
1884 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1885
1886         readme-release: new module with release instructions
1887         * modules/readme-release: New module.
1888         * top/README-release: New file, from coreutils, grep, diffutils.
1889         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1890
1891 2011-05-02  Eric Blake  <eblake@redhat.com>
1892
1893         fflush: also replace fclose when fixing fflush
1894         * modules/fflush (Depends-on): Add fclose.
1895         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1896         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1897         memstreams with no backing fd.
1898         * doc/posix-functions/fclose.texi (fclose): Document the use of
1899         fflush module to fix the bug.
1900         * tests/test-fclose.c (main): Relax test when fclose is used in
1901         isolation.
1902
1903         fclose: add some tests
1904         * modules/fclose-tests: New test module.
1905         * tests/test-fclose.c: New file.
1906         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1907
1908         fclose: reduced dependencies
1909         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1910         simpler lseek.
1911         * lib/fclose.c (rpl_fclose): Likewise.
1912         Reported by Simon Josefsson.
1913
1914         exit: drop remaining clients
1915         * modules/argmatch (Depends-on): Replace exit with stdlib.
1916         * modules/copy-file (Depends-on): Likewise.
1917         * modules/execute (Depends-on): Likewise.
1918         * modules/exitfail (Depends-on): Likewise.
1919         * modules/obstack (Depends-on): Likewise.
1920         * modules/pagealign_alloc (Depends-on): Likewise.
1921         * modules/pipe-filter-gi (Depends-on): Likewise.
1922         * modules/pipe-filter-ii (Depends-on): Likewise.
1923         * modules/savewd (Depends-on): Likewise.
1924         * modules/spawn-pipe (Depends-on): Likewise.
1925         * modules/wait-process (Depends-on): Likewise.
1926         * modules/xsetenv (Depends-on): Likewise.
1927         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1928         * modules/git-merge-changelog (Depends-on): Likewise.
1929         * modules/long-options (Depends-on): Likewise.
1930         * modules/pt_chown (Depends-on): Likewise.
1931         * modules/sysexits (Depends-on): Likewise.
1932
1933         freading: relax license from LGPLv3+ to LGPLv2+
1934         * modules/freading (License): Relax LGPL version.
1935
1936 2011-05-02  Bruno Haible  <bruno@clisp.org>
1937
1938         fchdir: Remove unused dependencies.
1939         * modules/fchdir (Depends-on): Remove include_next.
1940
1941 2011-05-02  Bruno Haible  <bruno@clisp.org>
1942
1943         gnulib-tool: Refactor.
1944         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1945         from func_emit_autoconf_snippets.
1946         (func_emit_autoconf_snippets): Use it.
1947
1948 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1949
1950         * NEWS: Document removal of 'exit'.
1951         * modules/exit: Remove file.
1952
1953 2011-05-01  Bruno Haible  <bruno@clisp.org>
1954
1955         Update DEPENDENCIES.
1956         * DEPENDENCIES (gettext): Recommend the newest release.
1957         Reported by Simon Josefsson.
1958
1959 2011-05-01  Bruno Haible  <bruno@clisp.org>
1960
1961         gnulib-tool: Reduce code duplication.
1962         * gnulib-tool (func_emit_autoconf_snippets): New function.
1963         (func_import, func_create_testdir): Use it.
1964
1965 2011-04-30  Eric Blake  <eblake@redhat.com>
1966
1967         fclose: don't fail on non-seekable input stream
1968         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1969         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1970         since fflush is allowed to fail in that case.
1971
1972 2011-04-30  Bruno Haible  <bruno@clisp.org>
1973
1974         dup3: cleanup
1975         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1976
1977 2011-04-30  Bruno Haible  <bruno@clisp.org>
1978
1979         netdb: Make it work in C++ mode.
1980         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1981         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1982         module.
1983         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1984         gl_MODULE_INDICATOR_FOR_TESTS.
1985         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1986         * modules/netdb-c++-tests: New file.
1987         * tests/test-netdb-c++.cc: New file.
1988
1989 2011-04-30  Bruno Haible  <bruno@clisp.org>
1990
1991         New modules 'vfscanf', 'vscanf'.
1992         * modules/vfscanf: New file.
1993         * modules/vscanf: New file.
1994         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1995         here.
1996         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1997         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1998
1999 2011-04-30  Bruno Haible  <bruno@clisp.org>
2000
2001         passfd: Add comments.
2002         * lib/passfd.c: Add comments about platforms.
2003
2004 2011-04-30  Bruno Haible  <bruno@clisp.org>
2005
2006         sys_uio: Make <sys/uio.h> self-contained.
2007         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2008         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2009
2010 2011-04-30  Bruno Haible  <bruno@clisp.org>
2011
2012         sys_socket: Ensure 'struct iovec' definition.
2013         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2014         <sys/socket.h>.
2015         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2016
2017 2011-04-30  Bruno Haible  <bruno@clisp.org>
2018
2019         sys_uio: Protect definition of 'struct iovec'.
2020         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2021         it as a C struct.
2022
2023 2011-04-30  Bruno Haible  <bruno@clisp.org>
2024
2025         manywarnings: fix indentation
2026         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2027
2028 2011-04-30  Pádraig Brady <P@draigBrady.com>
2029
2030         manywarnings: add -Wno-missing-field-initializers if needed.
2031         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2032         option if it's needed to allow initialization with { 0, }
2033
2034 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2035
2036         announce-gen: cosmetic improvement
2037         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2038
2039 2011-04-29  Jim Meyering  <meyering@redhat.com>
2040
2041         vc-list-files: indent with spaces, not TABs
2042         * build-aux/vc-list-files: Convert leading TABs to spaces,
2043         to match the style of most other files in gnulib.
2044
2045         announce-gen: indent with spaces, not TABs
2046         * build-aux/announce-gen: Convert all TABs to spaces, to match
2047         the style of most other files in gnulib.
2048
2049 2011-04-29  Eric Blake  <eblake@redhat.com>
2050
2051         quotearg: avoid uninitialized variable use
2052         * lib/quotearg.c (quoting_options_from_style): Initialize
2053         remaining fields, and ensure that custom styles are only used via
2054         quoting_options rather than quoting_style.
2055
2056 2011-04-29  Jim Meyering  <meyering@redhat.com>
2057
2058         maint.mk: remove unused VC-tag variable
2059         * top/maint.mk (VC-tag): Remove unused variable.
2060
2061 2011-04-29  Bruno Haible  <bruno@clisp.org>
2062
2063         netdb: fix gai_strerror replacements
2064         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2065         * modules/netdb: Substitute it.
2066
2067 2011-04-29  Jim Meyering  <meyering@redhat.com>
2068
2069         test-getcwd.c: avoid new set-but-not-used warning
2070         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2071         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2072         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2073         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2074
2075         test-hash.c: avoid a new shadowing warning
2076         * tests/test-hash.c (main): Don't shadow "dup".
2077
2078 2011-04-28  Eric Blake  <eblake@redhat.com>
2079
2080         getaddrinfo: fix gai_strerror signature
2081         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2082         and work around mingw with UNICODE defined.
2083         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2084         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2085         * modules/netdb (Makefile.am): Substitute it.
2086         * lib/netdb.in.h (gai_strerror): Declare replacement.
2087         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2088         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2089         the fix.
2090
2091         getsockopt: avoid compiler warning
2092         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2093         Reported by Matthias Bolte.
2094
2095         tests: drop unused link dependency
2096         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2097         * modules/dirent-safer-tests (Makefile.am): Likewise.
2098         * modules/fdopendir-tests (Makefile.am): Likewise.
2099         * modules/mkfifoat-tests (Makefile.am): Likewise.
2100         * modules/openat-safer-tests (Makefile.am): Likewise.
2101         * modules/openat-tests (Makefile.am): Likewise.
2102         * modules/readlinkat-tests (Makefile.am): Likewise.
2103         * modules/symlinkat-tests (Makefile.am): Likewise.
2104         * modules/linkat-tests (Makefile.am): Likewise.
2105         (Depends-on): Switch to filenamecat-lgpl.
2106         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2107         LIBINTL.
2108         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2109         * tests/test-linkat.c (main): Don't require xalloc.
2110
2111         hash, mgetgroups: drop xalloc dependency
2112         * lib/hash.c (includes): Adjust includes.
2113         * lib/mgetgroups.c (includes): Likewise.
2114         (xgetgroups): Move...
2115         * lib/xgetgroups.c: ...to new file.
2116         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2117         * modules/xgetgroups: New file, split from...
2118         * modules/mgetgroups: ...here.
2119         (Depends-on): Add xalloc-oversized.
2120         * modules/hash (Depends-on): Likewise.
2121         * modules/hash-tests (Depends-on): Drop xalloc.
2122         (test_hash_LDADD): Drop unused library.
2123         * tests/test-hash.c (main): Break xalloc dependency.
2124         (includes): Drop unused include.
2125
2126         xalloc-oversized: new module
2127         * modules/xalloc-oversized: New module.
2128         * modules/xalloc (Depends-on): Add it.
2129         * lib/xalloc.h (xalloc_oversized): Move...
2130         * lib/xalloc-oversized.h: ...into new file.
2131
2132         utimecmp: drop dependency on xmalloc
2133         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2134         due to memory pressure.
2135         * modules/utimecmp (Depends-on): Drop xalloc.
2136
2137 2011-04-27  Eric Blake  <eblake@redhat.com>
2138
2139         getcwd: fix mingw bugs
2140         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2141         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2142         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2143
2144 2011-04-27  Bruno Haible  <bruno@clisp.org>
2145
2146         mkstemps: Ensure declaration on MacOS X 10.5.
2147         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2148         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2149         MacOS X.
2150
2151 2011-04-27  Bruno Haible  <bruno@clisp.org>
2152
2153         mkstemp: More documentation.
2154         * doc/posix-functions/mkstemp.texi: Document header file problem on
2155         MacOS X.
2156
2157 2011-04-27  Bruno Haible  <bruno@clisp.org>
2158
2159         mkstemp: Tweak configure message when cross-compiling.
2160         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2161         result as a guess.
2162
2163 2011-04-27  Bruno Haible  <bruno@clisp.org>
2164
2165         clean-temp: Clarify what it does.
2166         * lib/clean-temp.h: Add more comments.
2167         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2168         module.
2169         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2170         * doc/glibc-functions/mkstemps.texi: Likewise.
2171         * doc/glibc-functions/mkostemps.texi: Likewise.
2172
2173 2011-04-27  Eric Blake  <eblake@redhat.com>
2174
2175         fchdir: avoid extra chdir and fix test
2176         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2177         getcwd-lgpl.
2178         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2179         have to be canonical.
2180         (canonicalize_file_name): Drop unused macro.
2181         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2182
2183         filenamecat-lgpl: fix licence
2184         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2185         when it was first created.
2186
2187         linkat, renameat: add missing dependency
2188         * modules/linkat (Depends-on): Require getcwd-lgpl.
2189         * modules/renameat (Depends-on): Likewise.
2190
2191         tests: reduce dependencies
2192         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2193         * tests/test-renameat.c (main): Likewise.
2194         * modules/linkat-tests (Depends-on): Relax dependency.
2195         * modules/renameat-tests (Depends-on): Likewise.
2196         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2197         dependency explicit.
2198
2199         save-cwd: reduce default dependency
2200         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2201         * lib/save-cwd.c: Update comments.
2202         * NEWS: Document the semantic change.
2203
2204         getcwd: enhance tests
2205         * tests/test-getcwd-lgpl.c: New file, taken from...
2206         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2207         repeat long path stress tests from m4 probe.
2208         * modules/getcwd-lgpl-tests: New module.
2209         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2210         * m4/getcwd-abort-bug.m4: Update comment.
2211         * m4/getcwd-path-max.m4: Likewise.
2212
2213         getcwd-lgpl: new module
2214         * modules/getcwd-lgpl: New module.
2215         * lib/getcwd-lgpl.c: New file.
2216         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2217         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2218         * modules/getcwd (configure.ac): Set C witness.
2219         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2220
2221         getcwd: tweak comments
2222         * m4/getcwd-abort-bug.m4: Fix comments.
2223         * m4/getcwd-path-max.m4: Likewise.
2224         * m4/getcwd.m4: Likewise.
2225
2226 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2227         and Eric Blake  <eblake@redhat.com>
2228
2229         mkstemp: replace if system version uses wrong permissions
2230         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2231         read/write mode bits set in file created by mkstemp.
2232         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2233
2234 2011-04-27  Eric Blake  <eblake@redhat.com>
2235
2236         passfd: avoid compiler warning
2237         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2238         Reported by Laine Stump.
2239
2240 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2241
2242         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2243         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2244
2245 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2246         and Eric Blake  <eblake@redhat.com>
2247
2248         mkstemp: mention clean-temp module
2249         * lib/mkstemp.c: Add comment.
2250         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2251
2252 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2253
2254         inttypes: also provide default values for 32-bit tests
2255         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2256         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2257
2258 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2259
2260         strtoumax: remove dependency on strtoimax
2261         This is like the strtoull change of yesterday.
2262         * modules/strtoumax (Files): Add lib/strtoimax.c.
2263         (Depends-on): Remove strtoimax and add verify.
2264
2265         inttypes-incomplete: new module
2266         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2267         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2268         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2269         of gl_INTTYPES_H.
2270         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2271         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2272         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2273         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2274         * modules/strtoumax, modules/xstrtol (Depends-on):
2275         Depend on inttypes-incomplete, not inttypes.
2276         * modules/inttypes-incomplete: New module, containing the contents
2277         of the old modules/inttypes module, except that the Files: section
2278         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2279         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2280         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2281         (Depends-on): Depend only on inttypes-incomplete.
2282         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2283
2284         inttypes: omit now-redundant strtoimax and strtoumax work
2285         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2286         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2287
2288         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2289         This supports apps that need pointers to strtoimax and strtoumax,
2290         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2291         nonexistent functions.  See
2292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2293         et seq.
2294         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2295         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2296         a macro.
2297         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2298
2299 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2300
2301         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2302
2303 2011-04-25  Bruno Haible  <bruno@clisp.org>
2304
2305         strtol, strtoul: Mark modules as obsolete.
2306         * modules/strtol (Status, Notice): New sections.
2307         * modules/strtoul (Status, Notice): New sections.
2308
2309 2011-04-25  Bruno Haible  <bruno@clisp.org>
2310
2311         strtod: Remove check for strtod, unless supporting old platforms.
2312         * modules/strtod-obsolete: New file.
2313         * m4/strtod-obsolete.m4: New file.
2314         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2315         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2316         * modules/strtod (Depends-on): Add strtod-obsolete.
2317         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2318
2319 2011-04-25  Bruno Haible  <bruno@clisp.org>
2320
2321         strcase: Make module obsolete.
2322         * modules/strcase (Status, Notice): New sections.
2323
2324 2011-04-25  Bruno Haible  <bruno@clisp.org>
2325
2326         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2327         * modules/dup2-obsolete: New file.
2328         * m4/dup2-obsolete.m4: New file.
2329         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2330         gl_FUNC_DUP2_OBSOLETE is not also defined.
2331         * modules/dup2 (Depends-on): Add dup2-obsolete.
2332         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2333
2334 2011-04-25  Bruno Haible  <bruno@clisp.org>
2335
2336         strnlen: Avoid memchr related link error on old obsolete platforms.
2337         * modules/memchr-obsolete: New file.
2338         * m4/memchr-obsolete.m4: New file.
2339         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2340         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2341         * modules/memchr (Depends-on): Add memchr-obsolete.
2342         * modules/strnlen (Depends-on): Likewise.
2343         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2344
2345 2011-04-25  Jim Meyering  <meyering@redhat.com>
2346
2347         maint.mk: makefile_at_at_check extend and clean up
2348         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2349         in addition to */Makefile.am.
2350         Exempt legitimate uses of @VAR@ notation, e.g.,
2351         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2352         Remove obsolete coreutils-specific comment.
2353         Prompted by discussion here:
2354         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2355
2356 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2357
2358         strtoul: remove dependency on strtol
2359         This is so that 'configure' need not check for strtol merely because
2360         the application needs strtoul.
2361         * modules/strtoul (Files): Add lib/strtol.c.
2362         (Depends-on): Remove strtol.
2363
2364         strtoull: remove dependency on strtoul
2365         This is like the strtoll change.
2366         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2367         (Depends-on): Remove strtoul.
2368
2369         strtoll: remove dependency on strtol
2370         This is so that 'configure' need not check for strtol merely because
2371         the application needs strtoll.
2372         * modules/strtoll (Files): Add lib/strtol.c.
2373         (Depends-on): Remove strtol.
2374
2375 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2376
2377         inttypes: Move some configure check to module 'imaxdiv'.
2378         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2379         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2380         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2381
2382 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2383
2384         inttypes: Move some configure check to module 'imaxabs'.
2385         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2386         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2387         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2388
2389 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2390
2391         inttypes: Remove configure tests that are not needed since 2009-12-31.
2392         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2393         gl_cv_header_working_inttypes_h.
2394
2395 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2396
2397         * modules/strnlen (Depends-on): Remove memchr.
2398         The strnlen implementation doesn't need the memchr module's fixes; see
2399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2400
2401         strtol: remove dependency on wchar
2402         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2403         * modules/strtol (Depends-on): Remove wchar.
2404
2405 2011-04-21  Eric Blake  <eblake@redhat.com>
2406
2407         passfd: fix test regression on Linux
2408         * modules/passfd-tests (configure.ac): Correct socketpair check.
2409
2410         passfd: speed up configure and drop unused code
2411         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2412         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2413         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2414         Instead of probing at configure for unix_scm_rights_bsd44_way,
2415         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2416         check to a struct member probe.
2417         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2418         (sendfd, recvfd): Update preprocessor checks.
2419         * modules/passfd (Files): Reflect rename, and drop unused file.
2420         (Depends-on): Drop unused dependency.
2421
2422         passfd: allow compilation on mingw
2423         * modules/sys_socket (Depends-on): Add sys_uio.
2424         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2425         iovec and a minimal struct msghdr.
2426         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2427         * tests/test-sys_socket.c (main): Enhance test.
2428         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2429         guaranteed to provide what we need.
2430         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2431         * modules/passfd-tests (Depends-on): Add sys_wait.
2432         * tests/test-passfd.c (main): Skip test on mingw, for now.
2433         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2434         partial 'struct msghdr' implementation.
2435
2436         sys_uio: new module
2437         * modules/sys_uio: New module.
2438         * modules/sys_uio-tests: Likewise.
2439         * lib/sys_uio.in.h: New file.
2440         * m4/sys_uio_h.m4: Likewise.
2441         * tests/test-sys_uio.c: Likewise.
2442         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2443         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2444
2445 2011-04-20  Jim Meyering  <meyering@redhat.com>
2446
2447         useless-if-before-free: avoid false-positive
2448         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2449         disjunct so that it too requires a terminating ";".  Without that,
2450         this script would identify as useless one statement from gcc that
2451         was not:
2452           if (aligned_ptr)
2453             free (((void **) aligned_ptr) [-1]);
2454
2455 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2456
2457         doc: update users.txt.
2458         * users.txt: Add barcode.
2459
2460 2011-04-19  Bruno Haible  <bruno@clisp.org>
2461
2462         ioctl: Remove link dependency on native Windows.
2463         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2464         (gl_close_fn, gl_ioctl_fn): New types.
2465         (struct fd_hook): Renamed from struct close_hook. Change type of
2466         private_close_fn field. Add private_ioctl_fn field.
2467         (close_hook_fn): Add parameter for primary close method.
2468         (execute_close_hooks, execute_all_close_hooks): Likewise.
2469         (ioctl_hook_fn): New type.
2470         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2471         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2472         argument.
2473         (unregister_fd_hook): Renamed from unregister_close_hook.
2474         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2475         Don't include <unistd.h>.
2476         (close): Remove undef.
2477         (anchor): Update.
2478         (execute_close_hooks): Add argument for primary close method.
2479         (execute_all_close_hooks): Likewise.
2480         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2481         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2482         argument. Allow each argument to be NULL.
2483         (unregister_fd_hook): Renamed from unregister_close_hook.
2484         * lib/close.c (rpl_close): Pass 'close' function pointer to
2485         execute_all_close_hooks.
2486         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2487         (primary_ioctl): New function.
2488         (ioctl): Don't call ioctlsocket here. Instead, call
2489         execute_all_ioctl_hooks.
2490         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2491         close method.
2492         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2493         (fd_sockets_hook): Renamed from close_sockets_hook.
2494         (gl_sockets_startup, gl_sockets_cleanup): Update.
2495         * modules/fd-hook: Renamed from modules/close-hook. Update.
2496         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2497         * modules/sockets (Depends-on): Likewise.
2498         * modules/ioctl (Depends-on): Add fd-hook.
2499         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2500         GNULIB_SOCKET.
2501
2502 2011-04-19  Bruno Haible  <bruno@clisp.org>
2503
2504         Move the support of O_NONBLOCK in open() to the 'open' module.
2505         * modules/nonblocking (Depends-on): Remove 'open'.
2506         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2507         gl_cv_have_open_O_NONBLOCK.
2508         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2509         O_NONBLOCK support.
2510         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2511
2512 2011-04-17  Bruno Haible  <bruno@clisp.org>
2513
2514         pipe2: Simplify code.
2515         * lib/pipe2.c (pipe2): Reduce code duplication.
2516
2517 2011-04-17  Bruno Haible  <bruno@clisp.org>
2518
2519         nonblocking: Add comment.
2520         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2521
2522 2011-04-17  Bruno Haible  <bruno@clisp.org>
2523
2524         nonblocking: Add tests for sockets.
2525         * tests/test-nonblocking-socket.sh: New file.
2526         * tests/test-nonblocking-socket-main.c: New file.
2527         * tests/test-nonblocking-socket-child.c: New file.
2528         * tests/test-nonblocking-socket.h: New file.
2529         * tests/socket-server.h: New file.
2530         * tests/socket-client.h: New file.
2531         * modules/nonblocking-socket-tests: New file.
2532         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2533
2534 2011-04-17  Bruno Haible  <bruno@clisp.org>
2535
2536         nonblocking: Add tests for pipes.
2537         * tests/test-nonblocking-pipe.sh: New file.
2538         * tests/test-nonblocking-pipe-main.c: New file.
2539         * tests/test-nonblocking-pipe-child.c: New file.
2540         * tests/test-nonblocking-pipe.h: New file.
2541         * tests/test-nonblocking-writer.h: New file.
2542         * tests/test-nonblocking-reader.h: New file.
2543         * tests/test-nonblocking-misc.h: New file.
2544         * modules/nonblocking-pipe-tests: New file.
2545         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2546
2547 2011-04-16  Bruno Haible  <bruno@clisp.org>
2548
2549         gettext: Clarify the needed programmer actions.
2550         * modules/gettext (Notice): New field.
2551         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2552
2553 2011-04-16  Bruno Haible  <bruno@clisp.org>
2554
2555         strchrnul: Tweak last commit.
2556         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2557         bug.
2558         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2559         as in _GL_FUNCDECL_SYS.
2560         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2561         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2562
2563 2011-04-15  Eric Blake  <eblake@redhat.com>
2564
2565         strchrnul: work around cygwin bug
2566         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2567         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2569         * modules/string (Makefile.am): Substitute it.
2570         * lib/string.in.h (strchrnul): Use it.
2571
2572 2011-04-15  Bruno Haible  <bruno@clisp.org>
2573
2574         Don't require lib/stdio-write.c when only module 'stdio' is used.
2575         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2576         invocation.
2577         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2578
2579 2011-04-14  Bruno Haible  <bruno@clisp.org>
2580
2581         Support non-blocking pipe I/O in read() on native Windows.
2582         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2583         (read): New declaration.
2584         * lib/read.c: New file.
2585         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2586         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2587         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2588         vscanf): New declarations.
2589         * lib/stdio-read.c: New file.
2590         * m4/read.m4: New file.
2591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2592         REPLACE_READ.
2593         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2594         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2595         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2596         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2597         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2598         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2599         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2600         * modules/read: New file.
2601         * modules/nonblocking (Files): Add lib/stdio-read.c.
2602         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2603         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2604         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2605         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2606         * modules/pread (Depends-on): Add read.
2607         * modules/safe-read (Depends-on): Likewise.
2608         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2609         gets, scanf, vfscanf, vscanf): Verify signatures.
2610         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2611         problem with non-blocking pipes.
2612         * doc/posix-functions/fgetc.texi: Likewise.
2613         * doc/posix-functions/fgets.texi: Likewise.
2614         * doc/posix-functions/fread.texi: Likewise.
2615         * doc/posix-functions/fscanf.texi: Likewise.
2616         * doc/posix-functions/getc.texi: Likewise.
2617         * doc/posix-functions/getchar.texi: Likewise.
2618         * doc/posix-functions/gets.texi: Likewise.
2619         * doc/posix-functions/scanf.texi: Likewise.
2620         * doc/posix-functions/vfscanf.texi: Likewise.
2621         * doc/posix-functions/vscanf.texi: Likewise.
2622
2623 2011-04-14  Bruno Haible  <bruno@clisp.org>
2624
2625         Support non-blocking pipe I/O in write() on native Windows.
2626         * lib/write.c (rpl_write): Split a write request that failed merely
2627         because the byte count was larger than the pipe buffer's size.
2628         * doc/posix-functions/write.texi: Mention the problem with large byte
2629         counts.
2630
2631 2011-04-14  Bruno Haible  <bruno@clisp.org>
2632
2633         wchar: Ensure that wchar_t gets defined on uClibc.
2634         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2635         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2636
2637 2011-04-13  Bruno Haible  <bruno@clisp.org>
2638
2639         safe-write, full-read: Avoid unnecessary compilation units.
2640         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2641         (Depends-on): Remove safe-read. Add ssize_t.
2642         * modules/full-read (Files): Add lib/full-write.c.
2643         (Depends-on): Add full-write.
2644
2645 2011-04-13  Bruno Haible  <bruno@clisp.org>
2646
2647         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2648         * modules/pwrite (Depends-on): Add 'write'.
2649
2650 2011-04-13  Bruno Haible  <bruno@clisp.org>
2651
2652         Support non-blocking pipe I/O in write() on native Windows.
2653         * lib/unistd.in.h (write): Enable replacement also if
2654         GNULIB_UNISTD_H_NONBLOCKING is 1.
2655         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2656         (rpl_write): When failing to write on a non-blocking pipe, change
2657         errno from ENOSPC to EAGAIN.
2658         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2659         putchar, puts, vfprintf, vprintf): Enable replacement also if
2660         GNULIB_STDIO_H_NONBLOCKING is 1.
2661         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2662         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2663         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2664         CALL_WITH_SIGPIPE_EMULATION.
2665         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2666         * m4/nonblocking.m4: New file.
2667         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2668         for non-blocking I/O support.
2669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2670         GNULIB_UNISTD_H_NONBLOCKING.
2671         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2672         required for non-blocking I/O support.
2673         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2674         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2675         lib/stdio-write.c, m4/asm-underscore.m4.
2676         (Depends-on): Add stdio, unistd.
2677         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2678         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2679         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2680         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2681         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2682         problem with non-blocking pipes.
2683         * doc/posix-functions/fputc.texi: Likewise.
2684         * doc/posix-functions/fputs.texi: Likewise.
2685         * doc/posix-functions/fwrite.texi: Likewise.
2686         * doc/posix-functions/printf.texi: Likewise.
2687         * doc/posix-functions/putc.texi: Likewise.
2688         * doc/posix-functions/putchar.texi: Likewise.
2689         * doc/posix-functions/puts.texi: Likewise.
2690         * doc/posix-functions/vfprintf.texi: Likewise.
2691         * doc/posix-functions/vprintf.texi: Likewise.
2692         * doc/posix-functions/write.texi: Likewise.
2693
2694 2011-04-10  Jim Meyering  <meyering@redhat.com>
2695
2696         maint.mk: prohibit doubled words
2697         Detect them also when they're separated by a newline.
2698         There are 3 ways to customize it:
2699           - disable the test on a per file basis, as usual with rules using
2700             $(VC_LIST_EXCEPT)
2701           - replace the default doubled-word-selecting regexp (affects all files)
2702           - ignore a particular file-vs-doubled-word match
2703         I nearly used that last one to ignore the "is is" match in
2704         coreutils' NEWS file, since the text was "ls -is is ..."
2705         To do that, I would have added this line to cfg.mk:
2706           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2707         but it would have ignored any "is is" match in NEWS.
2708         Low probability, but still...
2709         Instead, I changed the text, slightly:
2710           -  ls -is is now consistent with ls -lis in ignoring values returned
2711           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2712         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2713         (prohibit_doubled_word_): Define.
2714         (sc_prohibit_doubled_word): New rule.
2715         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2716
2717 2011-04-10  Jim Meyering  <meyering@redhat.com>
2718
2719         maint: fix doubled-word typo in comment
2720         * m4/gethostname.m4: s/is is/it is/
2721         * m4/getdomainname.m4: Likewise.
2722
2723 2011-04-10  Jim Meyering  <meyering@redhat.com>
2724
2725         maint: remove doubled word: s/it it/it/
2726         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2727
2728 2011-04-10  Jim Meyering  <meyering@redhat.com>
2729
2730         maint.mk: remove useless semicolon and backslash
2731         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2732         semicolon and backslash.
2733
2734 2011-04-10  Bruno Haible  <bruno@clisp.org>
2735
2736         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2737         * modules/stdint-tests (Depends-on): Add wchar.
2738
2739 2011-04-10  Jim Meyering  <meyering@redhat.com>
2740
2741         maint: remove doubled words in comments, e.g., s/a a/a/
2742         * lib/strptime.c (day_of_the_week): s/the the/the/
2743         * tests/test-chown.h (test_chown): s/a a/a/
2744
2745         test-chown.h: correct a cast
2746         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2747         when the destination is a stat.st_gid.
2748
2749 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2750
2751         getaddrinfo: Fix test for sa_len member.
2752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2753         include <sys/types.h> before <sys/socket.h>.
2754
2755 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2756
2757         maint: change "can not" to "cannot"
2758         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2759         boundaries.
2760
2761 2011-04-09  Jim Meyering  <meyering@redhat.com>
2762
2763         maint: change "a a" to "a"
2764         * tests/test-lchown.h (test_lchown): s/a a/a/
2765
2766         maint.mk: prohibit \<the the\>
2767         * top/maint.mk (sc_prohibit_the_the): New rule.
2768
2769         maint: fix "the the" in comment
2770         * lib/count-one-bits.h: s/the the/the/
2771
2772         maint: change "can not" to "cannot"
2773         But do not change the occurrences in maintain.texi or in
2774         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2775         * doc/gnulib-tool.texi: s/can not/cannot/
2776         * doc/posix-functions/accept.texi (accept): Likewise.
2777         * doc/posix-functions/socket.texi (socket): Likewise.
2778         * lib/mbrtowc.c: Likewise.
2779
2780         maint.mk: prohibit use of "can not"
2781         * top/maint.mk (sc_prohibit_can_not): New rule.
2782         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2783
2784 2011-04-09  Bruno Haible  <bruno@clisp.org>
2785
2786         careadlinkat: Guard against misuse of careadlinkatcwd.
2787         * lib/careadlinkat.c: Include <stdlib.h>.
2788         (careadlinkatcwd): Check that the fd argument is as expected.
2789
2790 2011-04-09  Bruno Haible  <bruno@clisp.org>
2791
2792         careadlinkat: Use common coding style.
2793         * lib/careadlinkat.c: Move gnulib includes after system includes.
2794
2795 2011-04-09  Bruno Haible  <bruno@clisp.org>
2796
2797         careadlinkat: Clarify specification.
2798         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2799         (careadlinkatcwd): Add comment.
2800         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2801
2802 2011-04-09  Bruno Haible  <bruno@clisp.org>
2803
2804         areadlinkat: Avoid link error on many platforms.
2805         * modules/areadlinkat (Depends-on): Add areadlink.
2806
2807 2011-04-09  Bruno Haible  <bruno@clisp.org>
2808
2809         allocator, careadlinkat: Fix double-inclusion guard.
2810         * lib/allocator.h: Fix double-inclusion guard.
2811         * lib/careadlinkat.h: Likewise.
2812
2813 2011-04-09  Bruno Haible  <bruno@clisp.org>
2814
2815         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2816         * lib/relocwrapper.c: Update dependencies hierarchy.
2817         * build-aux/install-reloc: Update list of files to be compiled.
2818         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2819         lib/allocator.[hc].
2820
2821 2011-04-08  Eric Blake  <eblake@redhat.com>
2822
2823         strftime: silence gnulib-tool warning
2824         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2825
2826 2011-04-08  Bruno Haible  <bruno@clisp.org>
2827
2828         verify: Fix syntax error with GCC 4.6 in C++ mode.
2829         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2830         (HAVE_STATIC_ASSERT): New macro.
2831         (verify_true, verify): Use 'static_assert' if it is supported and
2832         '_Static_assert' is not supported.
2833
2834 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2835
2836         allocator: New module.
2837         * modules/allocator, lib/allocator.c: New files.
2838         * lib/allocator.h (stdlib_allocator): New decl.
2839         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2840         Remove.  Do not include <stdlib.h>.
2841         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2842         * modules/careadlinkat (Files): Remove lib/allocator.h.
2843         (Depends-on): Add allocator.
2844
2845         stdlib: let modules use system malloc, realloc
2846         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2847         if !_GL_USE_STDLIB_ALLOC.
2848         (malloc, realloc): Limit this change to a smaller scope.
2849
2850         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2851         (malloc, realloc): Don't #undef; no longer needed.
2852         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2853         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2854         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2855         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2856         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2857         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2858         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2859         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2860
2861         careadlinkat: rename members to avoid problem
2862         * lib/allocator.h (struct allocator): Rename members from
2863         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2864         and realloc are #define'd.  Reported by Eric Blake in
2865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2866         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2867
2868 2011-04-08  Eric Blake  <eblake@redhat.com>
2869
2870         nonblocking: reduce dependency
2871         * tests/test-nonblocking.c: Only test sockets when in use.
2872         * modules/nonblocking-tests (Depends-on): Drop socket.
2873         (Makefile.am): Link even if sockets are not present.
2874         * modules/pipe2-tests (Makefile.am): Likewise.
2875         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2876
2877         pipe2: fix O_NONBLOCK support on mingw
2878         * modules/pipe2 (Depends-on): Add nonblocking.
2879         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2880         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2881         * tests/test-nonblocking.c (main): Likewise.
2882         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2883
2884         fcntl-h: fix O_ACCMODE on cygwin
2885         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2886         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2887
2888         pipe-filter: drop O_NONBLOCK workarounds
2889         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2890         * modules/pipe-filter-ii (Depends-on): Likewise.
2891         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2892
2893         nonblocking: provide O_NONBLOCK for mingw
2894         * modules/nonblocking (Depends-on): Add open.
2895         (configure.ac): Set new witness macro.
2896         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2897         * modules/fcntl-h (Makefile.am): Substitute it.
2898         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2899         nonblocking module is in use.
2900         * lib/nonblocking.c: Adjust portability test.
2901         * lib/open.c (open): Don't let native open see gnulib flag.
2902         * tests/test-fcntl-h.c (main): Enhance test.
2903         * tests/test-open.h (test_open): Likewise.
2904         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2905
2906         careadlinkat: fix compilation error on mingw
2907         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2908         within struct allocator.
2909
2910 2011-04-06  Eric Blake  <eblake@redhat.com>
2911
2912         binary-io: relicense under LGPLv2+
2913         * modules/binary-io (License): Relax to LGPLv2+.
2914         Requested for libvirt, and required by pipe2.
2915
2916 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2917
2918         verify: use _Static_assert if available
2919         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2920         (verify_true, verify): Use it if available.  This generates better
2921         diagnostics with GCC 4.6.0 and later.
2922
2923 2011-04-05  Bruno Haible  <bruno@clisp.org>
2924
2925         Remove leftover generated .h files after config.status changed.
2926
2927         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2928         GL_GENERATE_ALLOCA_H.
2929         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2930         GL_GENERATE_ALLOCA_H evaluates to false.
2931
2932         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2933         GL_GENERATE_ARGZ_H.
2934         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2935         evaluates to false.
2936
2937         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2938         GL_GENERATE_BYTESWAP_H.
2939         * modules/byteswap (Makefile.am): Remove byteswap.h if
2940         GL_GENERATE_BYTESWAP_H evaluates to false.
2941
2942         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2943         GL_GENERATE_ERRNO_H.
2944         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2945         evaluates to false.
2946
2947         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2948         GL_GENERATE_FLOAT_H.
2949         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2950         evaluates to false.
2951
2952         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2953         GL_GENERATE_FNMATCH_H.
2954         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2955         GL_GENERATE_FNMATCH_H evaluates to false.
2956
2957         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2958         GL_GENERATE_GLOB_H.
2959         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2960         evaluates to false.
2961
2962         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2963         automake conditional GL_GENERATE_ICONV_H.
2964         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2965         evaluates to false.
2966
2967         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2968         GL_GENERATE_NETINET_IN_H.
2969         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2970         GL_GENERATE_NETINET_IN_H evaluates to false.
2971
2972         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2973         conditional GL_GENERATE_PTHREAD_H.
2974         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2975         * modules/pthread (Makefile.am): Remove pthread.h if
2976         GL_GENERATE_PTHREAD_H evaluates to false.
2977
2978         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2979         GL_GENERATE_SCHED_H.
2980         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2981         evaluates to false.
2982
2983         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2984         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2985         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2986         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2987
2988         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2989         GL_GENERATE_STDARG_H.
2990         * modules/stdarg (Makefile.am): Remove stdarg.h if
2991         GL_GENERATE_STDARG_H evaluates to false.
2992
2993         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2994         GL_GENERATE_STDBOOL_H.
2995         * modules/stdbool (Makefile.am): Remove stdbool.h if
2996         GL_GENERATE_STDBOOL_H evaluates to false.
2997
2998         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2999         conditional GL_GENERATE_STDDEF_H.
3000         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3001         * modules/stddef (Makefile.am): Remove stddef.h if
3002         GL_GENERATE_STDDEF_H evaluates to false.
3003
3004         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3005         GL_GENERATE_STDINT_H.
3006         * modules/stdint (Makefile.am): Remove stdint.h if
3007         GL_GENERATE_STDINT_H evaluates to false.
3008
3009         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3010         GL_GENERATE_SYSEXITS_H.
3011         * modules/sysexits (Makefile.am): Remove sysexits.h if
3012         GL_GENERATE_SYSEXITS_H evaluates to false.
3013
3014         Reported by Karl Berry and Ralf Wildenhues.
3015
3016 2011-04-05  Bruno Haible  <bruno@clisp.org>
3017
3018         Ensure to rebuild generated .h files when config.status has changed.
3019         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3020         config.status.
3021         * modules/ctype (Makefile.am): Likewise.
3022         * modules/dirent (Makefile.am): Likewise.
3023         * modules/errno (Makefile.am): Likewise.
3024         * modules/fcntl-h (Makefile.am): Likewise.
3025         * modules/float (Makefile.am): Likewise.
3026         * modules/getopt-posix (Makefile.am): Likewise.
3027         * modules/glob (Makefile.am): Likewise.
3028         * modules/iconv-h (Makefile.am): Likewise.
3029         * modules/inttypes (Makefile.am): Likewise.
3030         * modules/langinfo (Makefile.am): Likewise.
3031         * modules/locale (Makefile.am): Likewise.
3032         * modules/math (Makefile.am): Likewise.
3033         * modules/netdb (Makefile.am): Likewise.
3034         * modules/netinet_in (Makefile.am): Likewise.
3035         * modules/poll-h (Makefile.am): Likewise.
3036         * modules/pthread (Makefile.am): Likewise.
3037         * modules/pty (Makefile.am): Likewise.
3038         * modules/sched (Makefile.am): Likewise.
3039         * modules/search (Makefile.am): Likewise.
3040         * modules/selinux-h (Makefile.am): Likewise.
3041         * modules/signal (Makefile.am): Likewise.
3042         * modules/spawn (Makefile.am): Likewise.
3043         * modules/stdarg (Makefile.am): Likewise.
3044         * modules/stdbool (Makefile.am): Likewise.
3045         * modules/stddef (Makefile.am): Likewise.
3046         * modules/stdint (Makefile.am): Likewise.
3047         * modules/stdio (Makefile.am): Likewise.
3048         * modules/stdlib (Makefile.am): Likewise.
3049         * modules/string (Makefile.am): Likewise.
3050         * modules/strings (Makefile.am): Likewise.
3051         * modules/sys_file (Makefile.am): Likewise.
3052         * modules/sys_ioctl (Makefile.am): Likewise.
3053         * modules/sys_select (Makefile.am): Likewise.
3054         * modules/sys_socket (Makefile.am): Likewise.
3055         * modules/sys_stat (Makefile.am): Likewise.
3056         * modules/sys_time (Makefile.am): Likewise.
3057         * modules/sys_times (Makefile.am): Likewise.
3058         * modules/sys_utsname (Makefile.am): Likewise.
3059         * modules/sys_wait (Makefile.am): Likewise.
3060         * modules/sysexits (Makefile.am): Likewise.
3061         * modules/termios (Makefile.am): Likewise.
3062         * modules/time (Makefile.am): Likewise.
3063         * modules/unistd (Makefile.am): Likewise.
3064         * modules/wchar (Makefile.am): Likewise.
3065         * modules/wctype-h (Makefile.am): Likewise.
3066         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3067
3068 2011-04-05  Bruno Haible  <bruno@clisp.org>
3069
3070         pipe2: Relicense under LGPLv2+.
3071         * modules/pipe2 (License): Change to LGPLv2+.
3072         Requested by Eric Blake, for libvirt.
3073
3074 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3075
3076         bootstrap: compute gnulib_extra_files after updating build_aux
3077         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3078         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3079
3080 2011-04-05  Eric Blake  <eblake@redhat.com>
3081
3082         bootstrap: preserve git whitelist item sorting
3083         * build-aux/bootstrap (sort_patterns): New function.
3084         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3085
3086 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3087
3088         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3089         sc_space_tab check.
3090
3091 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3092
3093         areadlink, areadlinkat: rewrite in terms of careadlinkat
3094         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3095         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3096         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3097         (malloc, realloc): Remove #undefs.
3098         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3099         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3100         readlink, ssize_t, stdint, unistd.
3101         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3102         areadlink, stdint.
3103
3104         careadlinkat: new module
3105         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3106         * modules/careadlinkat: New files, written by me with
3107         a review and feedback from Ben Pfaff in
3108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3109
3110 2011-04-01  Bruno Haible  <bruno@clisp.org>
3111
3112         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3113         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3114         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3115         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3116         Reported by Bruce Korb <bruce.korb@gmail.com>.
3117
3118 2011-04-01  Bruno Haible  <bruno@clisp.org>
3119
3120         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3121         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3122         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3123         * modules/wcpcpy (Depends-on): Add extensions.
3124         * modules/wcpncpy (Depends-on): Likewise.
3125         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3126         systems.
3127         * doc/posix-functions/wcpncpy.texi: Likewise.
3128         * doc/posix-functions/wcwidth.texi: Likewise.
3129
3130 2011-03-31  Eric Blake  <eblake@redhat.com>
3131
3132         nonblocking: fix mingw test failures
3133         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3134         non-blocking flag on regular file.
3135         (get_nonblocking_flag): Set errno on invalid fd.
3136         * tests/test-nonblocking.c (main): Avoid test failure on
3137         directories if fchdir is not active.
3138         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3139
3140 2011-03-31  Bruno Haible  <bruno@clisp.org>
3141
3142         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3143         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3144         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3145         Reported by Simon Josefsson <simon@josefsson.org>.
3146
3147 2011-03-31  Bruno Haible  <bruno@clisp.org>
3148         and Eric Blake  <eblake@redhat.com>
3149
3150         nonblocking: new module
3151         * modules/nonblocking: New module.
3152         * modules/nonblocking-tests: Likewise.
3153         * lib/nonblocking.h: New file.
3154         * lib/nonblocking.c: Likewise.
3155         * tests/test-nonblocking.c: New test.
3156         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3157
3158 2011-03-30  Bruno Haible  <bruno@clisp.org>
3159
3160         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3161         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3162         instead of 'printf' format for GCC >= 4.4.
3163         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3164         (fprintf, printf, vfprintf, vprintf): Declare with
3165         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3166         the system's vfprintf() function.
3167         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3168
3169 2011-03-30  Eric Blake  <eblake@redhat.com>
3170
3171         passfd: fix scoping bug
3172         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3173         before sendmsg/recvmsg.
3174
3175         passfd: standardize coding conventions
3176         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3177         can be learned at compile time.
3178         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3179         ifdefs.
3180         (sendfd, recvfd): Follow gnulib code conventions.
3181
3182         passfd: fix incorrect sendmsg arguments
3183         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3184         incorrect msg_controllen value.
3185         * modules/passfd-tests (Depends-on): Check for alarm.
3186         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3187         Reported by Bastien ROUCARIES.
3188
3189 2011-03-30  Bruno Haible  <bruno@clisp.org>
3190
3191         c-strcasestr: Relicense under LGPLv2+.
3192         * modules/c-strcasestr (License): Change to LGPLv2+.
3193         Requested by Eric Blake, for libvirt.
3194
3195 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3196
3197         * users.txt: Add libidn2.  Fix libtasn1 link.
3198
3199 2011-03-30  Jim Meyering  <meyering@redhat.com>
3200
3201         tests: readlink* ("",... fails with EINVAL on newer kernels
3202         readlink and readlinkat have typically failed with ENOENT for
3203         the invalid, empty file name,  "".  However, with the advent
3204         of linux-2.6.39, they fail with EINVAL.
3205         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3206         when operating on the empty file name.
3207         * tests/test-readlink.h (test_readlink): Likewise.
3208
3209 2011-03-29  Bruno Haible  <bruno@clisp.org>
3210
3211         Relicense some modules under LGPLv2+, for libidn2.
3212         * modules/array-mergesort (License): Change to LGPLv2+.
3213         * modules/c-strcaseeq (License): Likewise.
3214         * modules/striconveh (License): Likewise.
3215         * modules/striconveha (License): Likewise.
3216         * modules/uniconv/base (License): Likewise.
3217         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3218         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3219         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3220         * modules/unictype/base (License): Likewise.
3221         * modules/unictype/bidiclass-of (License): Likewise.
3222         * modules/unictype/category-M (License): Likewise.
3223         * modules/unictype/category-none (License): Likewise.
3224         * modules/unictype/category-of (License): Likewise.
3225         * modules/unictype/category-test (License): Likewise.
3226         * modules/unictype/category-test-withtable (License): Likewise.
3227         * modules/unictype/combining-class (License): Likewise.
3228         * modules/unictype/joiningtype-of (License): Likewise.
3229         * modules/unictype/scripts (License): Likewise.
3230         * modules/uninorm/base (License): Likewise.
3231         * modules/uninorm/canonical-decomposition (License): Likewise.
3232         * modules/uninorm/composition (License): Likewise.
3233         * modules/uninorm/decompose-internal (License): Likewise.
3234         * modules/uninorm/decomposition-table (License): Likewise.
3235         * modules/uninorm/nfc (License): Likewise.
3236         * modules/uninorm/nfd (License): Likewise.
3237         * modules/uninorm/u32-normalize (License): Likewise.
3238         * modules/unistr/base (License): Likewise.
3239         * modules/unistr/u32-cpy (License): Likewise.
3240         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3241         * modules/unistr/u32-to-u8 (License): Likewise.
3242         * modules/unistr/u32-uctomb (License): Likewise.
3243         * modules/unistr/u8-check (License): Likewise.
3244         * modules/unistr/u8-mblen (License): Likewise.
3245         * modules/unistr/u8-mbtouc (License): Likewise.
3246         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3247         * modules/unistr/u8-mbtoucr (License): Likewise.
3248         * modules/unistr/u8-prev (License): Likewise.
3249         * modules/unistr/u8-strlen (License): Likewise.
3250         * modules/unistr/u8-to-u32 (License): Likewise.
3251         * modules/unistr/u8-uctomb (License): Likewise.
3252         * modules/unitypes (License): Likewise.
3253         Requested by Simon Josefsson.
3254
3255 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3256
3257         lib-symbol-visibility: Add a notice.
3258         * modules/lib-symbol-visibility (Notice): New field.
3259
3260 2011-03-29  Bruno Haible  <bruno@clisp.org>
3261
3262         getaddrinfo: Doc fix.
3263         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3264         section "fixed in Gnulib".
3265
3266 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3267
3268         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3269         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3270
3271 2011-03-26  Bruno Haible  <bruno@clisp.org>
3272
3273         unictype/property-byname: Reduce the number of load-time relocations.
3274         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3275         (UC_PROPERTY_INDEX_*): New enumeration values.
3276         (uc_property_byname): Convert an index from the lookup table to an
3277         uc_property_t.
3278         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3279         values.
3280
3281 2011-03-26  Bruno Haible  <bruno@clisp.org>
3282
3283         unictype/property-byname: Allow omitted word separators and aliases.
3284         * lib/unictype/pr_byname.gperf: Add property names without word
3285         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3286         for 'space'.
3287
3288 2011-03-26  Bruno Haible  <bruno@clisp.org>
3289
3290         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3291         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3292         also hyphens to space.
3293         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3294         without spaces.
3295         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3296
3297 2011-03-26  Bruno Haible  <bruno@clisp.org>
3298
3299         unictype/joiningtype-byname: Recognize long names as well.
3300         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3301         a long name.
3302         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3303         unictype/joiningtype_byname.h.
3304         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3305         * lib/unictype/joiningtype_byname.gperf: New file.
3306         * modules/unictype/joiningtype-byname (Files): Add
3307         lib/unictype/joiningtype_byname.gperf.
3308         (Depends-on): Add gperf.
3309         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3310         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3311         long names.
3312
3313         Tests for module 'unictype/joiningtype-longname'.
3314         * modules/unictype/joiningtype-longname-tests: New file.
3315         * tests/unictype/test-joiningtype_longname.c: New file.
3316
3317         New module 'unictype/joiningtype-longname'.
3318         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3319         * lib/unictype/joiningtype_longname.c: New file.
3320         * modules/unictype/joiningtype-longname: New file.
3321         * modules/unictype/joiningtype-all (Depends-on): Add
3322         unictype/joiningtype-longname.
3323
3324 2011-03-26  Bruno Haible  <bruno@clisp.org>
3325
3326         unictype/bidiclass-byname: Recognize long names as well.
3327         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3328         name.
3329         * lib/unictype/bidi_byname.c: Include <string.h>,
3330         unictype/bidi_byname.h.
3331         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3332         * lib/unictype/bidi_byname.gperf: New file.
3333         * modules/unictype/bidiclass-byname (Files): Add
3334         lib/unictype/bidi_byname.gperf.
3335         (Depends-on): Add gperf.
3336         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3337         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3338         long names.
3339
3340         Tests for module 'unictype/bidiclass-longname'.
3341         * modules/unictype/bidiclass-longname-tests: New file.
3342         * tests/unictype/test-bidi_longname.c: New file.
3343
3344         New module 'unictype/bidiclass-longname'.
3345         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3346         * lib/unictype/bidi_longname.c: New file.
3347         * modules/unictype/bidiclass-longname: New file.
3348         * modules/unictype/bidiclass-all (Depends-on): Add
3349         unictype/bidiclass-longname.
3350
3351 2011-03-26  Bruno Haible  <bruno@clisp.org>
3352
3353         unictype/bidi*: Rename modules.
3354         * modules/unictype/bidiclass-all: Renamed from
3355         modules/unictype/bidicategory-all.
3356         * modules/unictype/bidiclass-name: Renamed from
3357         modules/unictype/bidiclass-name.
3358         (Description): Update.
3359         * modules/unictype/bidiclass-name-tests: Renamed from
3360         modules/unictype/bidicategory-name-tests.
3361         * modules/unictype/bidiclass-byname: Renamed from
3362         modules/unictype/bidicategory-byname.
3363         (Description): Update.
3364         * modules/unictype/bidiclass-byname-tests: Renamed from
3365         modules/unictype/bidicategory-byname-tests.
3366         * modules/unictype/bidiclass-of: Renamed from
3367         modules/unictype/bidicategory-of.
3368         (Description): Update.
3369         * modules/unictype/bidiclass-of-tests: Renamed from
3370         modules/unictype/bidicategory-of-tests.
3371         * modules/unictype/bidiclass-test: Renamed from
3372         modules/unictype/bidicategory-test.
3373         (Description): Update.
3374         * modules/unictype/bidiclass-test-tests: Renamed from
3375         modules/unictype/bidicategory-test-tests.
3376         * modules/unictype/bidicategory-all: New file, a simple redirection.
3377         * modules/unictype/bidicategory-name: Likewise.
3378         * modules/unictype/bidicategory-byname: Likewise.
3379         * modules/unictype/bidicategory-of: Likewise.
3380         * modules/unictype/bidicategory-test: Likewise.
3381         * modules/unictype/property-bidi-* (Dependencies): Update.
3382         * lib/unictype/bidi_*.c: Update comment.
3383
3384 2011-03-26  Bruno Haible  <bruno@clisp.org>
3385
3386         unictype/bidi*: Rename functions, part 2.
3387         * modules/unictype/bidicategory-name (configure.ac): Update required
3388         libunistring version.
3389         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3390
3391 2011-03-25  Bruno Haible  <bruno@clisp.org>
3392
3393         New module 'unictype/combining-class-all'.
3394         * modules/unictype/combining-class-all: New file.
3395
3396         Tests for module 'unictype/combining-class-byname'.
3397         * modules/unictype/combining-class-byname-tests: New file.
3398         * tests/unictype/test-combiningclass_byname.c: New file.
3399
3400         New module 'unictype/combining-class-byname'.
3401         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3402         * lib/unictype/combiningclass_byname.c: New file.
3403         * lib/unictype/combiningclass_byname.gperf: New file.
3404         * modules/unictype/combining-class-byname: New file.
3405
3406         Tests for module 'unictype/combining-class-longname'.
3407         * modules/unictype/combining-class-longname-tests: New file.
3408         * tests/unictype/test-combiningclass_longname.c: New file.
3409
3410         New module 'unictype/combining-class-longname'.
3411         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3412         * lib/unictype/combiningclass_longname.c: New file.
3413         * modules/unictype/combining-class-longname: New file.
3414
3415         Tests for module 'unictype/combining-class-name'.
3416         * modules/unictype/combining-class-name-tests: New file.
3417         * tests/unictype/test-combiningclass_name.c: New file.
3418
3419         New module 'unictype/combining-class-name'.
3420         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3421         * lib/unictype/combiningclass_name.c: New file.
3422         * modules/unictype/combining-class-name: New file.
3423
3424 2011-03-25  Bruno Haible  <bruno@clisp.org>
3425
3426         unictype/combining-class: Rename source files.
3427         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3428         of unictype/combining.h.
3429         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3430         Update.
3431         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3432         * modules/unictype/combining-class (Description): Fix.
3433         (Files, Makefile.am): Update.
3434         * tests/unictype/test-combiningclass.c: Renamed from
3435         tests/unictype/test-combining.c.
3436         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3437
3438 2011-03-25  Bruno Haible  <bruno@clisp.org>
3439
3440         unictype: Update list of canonical combining classes.
3441         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3442
3443 2011-03-25  Bruno Haible  <bruno@clisp.org>
3444
3445         unictype/category-byname: Recognize long names as well.
3446         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3447         a long name.
3448         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3449         unictype/categ_byname.h.
3450         (UC_CATEGORY_INDEX_*): New enumeration values.
3451         (uc_general_category_byname): Use uc_general_category_lookup and
3452         convert from index to value.
3453         * lib/unictype/categ_byname.gperf: New file.
3454         * modules/unictype/category-byname (Files): Add
3455         lib/unictype/categ_byname.gperf.
3456         (Depends-on): Add gperf.
3457         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3458         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3459         long names.
3460
3461         Tests for module 'unictype/category-longname'.
3462         * modules/unictype/category-longname-tests: New file.
3463         * tests/unictype/test-categ_longname.c: New file.
3464
3465         New module 'unictype/category-longname'.
3466         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3467         * lib/unictype/categ_longname.c: New file.
3468         * modules/unictype/category-longname: New file.
3469         * modules/unictype/category-all (Depends-on): Add it.
3470
3471 2011-03-25  Bruno Haible  <bruno@clisp.org>
3472
3473         Tests for module 'unictype/category-LC'.
3474         * modules/unictype/category-LC-tests: New file.
3475         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3476
3477         New module 'unictype/category-LC'.
3478         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3479         (UC_CATEGORY_LC): New declaration.
3480         (UC_CASED_LETTER): New macro.
3481         * lib/gen-uni-tables.c (is_category_LC): New function.
3482         (output_categories): Also handle category LC.
3483         (UC_CATEGORY_MASK_LC): New enumeration value.
3484         (general_category_byname): Also handle category LC.
3485         * lib/unictype/categ_LC.c: New file.
3486         * lib/unictype/categ_LC.h: New file, automatically generated.
3487         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3488         category LC.
3489         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3490         * modules/unictype/category-LC: New file.
3491         * modules/unictype/category-byname (Depends-on): Add
3492         unictype/category-LC.
3493         * modules/unictype/category-all (Depends-on): Likewise.
3494
3495 2011-03-25  Eric Blake  <eblake@redhat.com>
3496
3497         xmalloc: revert yesterday's regression
3498         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3499         realloc's underlying behavior (allowing allocation of zero-size
3500         objects, especially if malloc-gnu is also in use).
3501
3502 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3503
3504         maint.mk: add missing version to VC-tag
3505         * top/maint.mk: git tag was missing actual tag name; add it.
3506
3507         valgrind: do leak checking, and exit with code 1 on error (not 0)
3508         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3509         to VALGRIND.
3510
3511 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3512
3513         posix-modules: say what it does.
3514         * posix-modules: Add a line to the --help output saying what it does.
3515
3516 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3517
3518         xmalloc: Do not leak if underlying realloc is C99 compatible.
3519         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3520         This avoids a leak on C99-based systems.  See
3521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3522
3523 2011-03-24  Eric Blake  <eblake@redhat.com>
3524
3525         realloc: document portability problem
3526         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3527         passing 0 size to realloc.
3528
3529 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3530
3531         doc: update users.txt
3532         * users.txt: Add cvsps, tmpwatch
3533
3534 2011-03-23  Matt Rice  <ratmice@gmail.com>
3535
3536         doc: update users.txt
3537         * users.txt: Add gdb.
3538
3539 2011-03-23  Jim Meyering  <meyering@redhat.com>
3540
3541         doc: update users.txt
3542         Looking through matches up to the following URL (there are still
3543         several more pages), I found several projects that use gnulib:
3544         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3545         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3546         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3547
3548 2011-03-22  Bruno Haible  <bruno@clisp.org>
3549
3550         unictype/bidi*: Rename functions.
3551         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3552         uc_bidi_class, uc_is_bidi_class): New declarations.
3553         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3554         uc_bidi_category_byname.
3555         (uc_bidi_category_byname): New function.
3556         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3557         u_bidi_category_name.
3558         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3559         (uc_bidi_category_name): New function.
3560         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3561         uc_bidi_category.
3562         (uc_bidi_category): New function.
3563         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3564         uc_is_bidi_category. Invoke uc_bidi_class.
3565         (uc_is_bidi_category): New function.
3566         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3567         instead of uc_bidi_category_byname.
3568         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3569         instead of uc_bidi_category_name.
3570         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3571         uc_bidi_category.
3572         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3573         instead of uc_is_bidi_category.
3574
3575 2011-03-21  Bruno Haible  <bruno@clisp.org>
3576
3577         New module 'unictype/joininggroup-all'.
3578         * modules/unictype/joininggroup-all: New file.
3579
3580         Tests for module 'unictype/joininggroup-of'.
3581         * modules/unictype/joininggroup-of-tests: New file.
3582         * tests/unictype/test-joininggroup_of.c: New file.
3583         * tests/unictype/test-joininggroup_of.h: New file, automatically
3584         generated by gen-uni-tables.
3585
3586         New module 'unictype/joininggroup-of'.
3587         * modules/unictype/joininggroup-of: New file.
3588         * lib/unictype/joininggroup_of.c: New file.
3589         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3590         gen-uni-tables.
3591
3592         Tests for module 'unictype/joininggroup-byname'.
3593         * modules/unictype/joininggroup-byname-tests: New file.
3594         * tests/unictype/test-joininggroup_byname.c: New file.
3595
3596         New module 'unictype/joininggroup-byname'.
3597         * modules/unictype/joininggroup-byname: New file.
3598         * lib/unictype/joininggroup_byname.c: New file.
3599         * lib/unictype/joininggroup_byname.gperf: New file.
3600
3601         Tests for module 'unictype/joininggroup-name'.
3602         * modules/unictype/joininggroup-name-tests: New file.
3603         * tests/unictype/test-joininggroup_name.c: New file.
3604
3605         New module 'unictype/joininggroup-name'.
3606         * modules/unictype/joininggroup-name: New file.
3607         * lib/unictype/joininggroup_name.c: New file.
3608         * lib/unictype/joininggroup_name.h: New file.
3609
3610         New module 'unictype/joiningtype-all'.
3611         * modules/unictype/joiningtype-all: New file.
3612
3613         Tests for module 'unictype/joiningtype-of'.
3614         * modules/unictype/joiningtype-of-tests: New file.
3615         * tests/unictype/test-joiningtype_of.c: New file.
3616         * tests/unictype/test-joiningtype_of.h: New file, automatically
3617         generated by gen-uni-tables.
3618
3619         New module 'unictype/joiningtype-of'.
3620         * modules/unictype/joiningtype-of: New file.
3621         * lib/unictype/joiningtype_of.c: New file.
3622         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3623         gen-uni-tables.
3624
3625         Tests for module 'unictype/joiningtype-byname'.
3626         * modules/unictype/joiningtype-byname-tests: New file.
3627         * tests/unictype/test-joiningtype_byname.c: New file.
3628
3629         New module 'unictype/joiningtype-byname'.
3630         * modules/unictype/joiningtype-byname: New file.
3631         * lib/unictype/joiningtype_byname.c: New file.
3632
3633         Tests for module 'unictype/joiningtype-name'.
3634         * modules/unictype/joiningtype-name-tests: New file.
3635         * tests/unictype/test-joiningtype_name.c: New file.
3636
3637         New module 'unictype/joiningtype-name'.
3638         * modules/unictype/joiningtype-name: New file.
3639         * lib/unictype/joiningtype_name.c: New file.
3640
3641         unictype: Add support for Arabic shaping properties.
3642         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3643         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3644         declarations.
3645         (UC_JOINING_GROUP_*): New enumeration values.
3646         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3647         declarations.
3648         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3649         (unicode_joining_type): New variable.
3650         (UC_JOINING_GROUP_*): New enumeration values.
3651         (unicode_joining_group): New variable.
3652         (fill_arabicshaping, joining_type_as_c_identifier,
3653         output_joining_type_test, output_joining_type,
3654         joining_group_as_c_identifier, output_joining_group_test,
3655         output_joining_group): New functions.
3656         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3657         fill_arabicshaping and output_joining_type_test, output_joining_type,
3658         output_joining_group_test, output_joining_group.
3659         Reported by Simon Josefsson.
3660
3661 2011-03-21  Jim Meyering  <meyering@redhat.com>
3662
3663         strftime: fix a bug in yesterday's change
3664         * lib/strftime.c (add): Accommodate width's initial value of -1.
3665         Otherwise, nstrftime would copy uninitialized data into
3666         the result buffer.
3667
3668 2011-03-21  Jim Meyering  <meyering@redhat.com>
3669
3670         tests: add strftime-tests module
3671         * tests/test-strftime.c: New file.
3672         * modules/strftime-tests: New module.
3673
3674 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3675
3676         strftime: don't assume a byte count fits in 'int'
3677         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3678         found this problem by static analysis, using gcc -Wstrict-overflow
3679         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3680         on an integer overflow having undefined behavior, but it turns out
3681         that the argument is a size, which might not fit in 'int' anyway,
3682
3683 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3684
3685         stdio: don't require ignore_value around fwrite
3686
3687         This patch works around libc bug 11959
3688         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3689         Without this patch, applications must often write
3690         ignore_value (fwrite (...)) even though the ignore_value is
3691         not helpful here.  It's common to write many objects, using
3692         fwrite/printf/etc., and then use ferror to detect output error.
3693
3694         I considered making this patch optional, but decided against it,
3695         because libc is obviously being inconsistent here: there is no
3696         reason libc should insist that user code must inspect fwrite
3697         return's value without also insisting that it inspect printf's,
3698         putchar's, etc.  If user code wants to have a strict style where
3699         all these functions' values are checked (so that ferror need not
3700         be checked), we could add support for that style in a new gnulib
3701         module, but in the meantime it's better to be consistent and to
3702         support common usage.
3703
3704         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3705         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3706         that we are compiling in checking mode, and if not C++, and
3707         if not already wrapping fwrite for some other reason.
3708         (fwrite): #define to rpl_fwrite if the latter is defined.
3709
3710 2011-03-20  Bruno Haible  <bruno@clisp.org>
3711
3712         verror: Fix compilation error introduced on 2011-02-13.
3713         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3714         instead of __attribute__.
3715         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3716
3717 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3718             Bruno Haible  <bruno@clisp.org>
3719
3720         socklen: do not depend on sys_socket
3721         While trying to modify Emacs to use gnulib's socklen module,
3722         I discovered a circular dependency: socklen depends on sys_socket
3723         and vice versa.  Emacs can use socklen, but it does not need
3724         sys_socket because it has its own substitute for sys/socket.h.
3725         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3726         gl_TYPE_SOCKLEN_T.
3727         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3728         gl_PREREQ_SYS_H_SOCKET.
3729         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3730         gl_PREREQ_SYS_H_SOCKET.
3731         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3732         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3733         * modules/socklen (Depends-on): Do not depend on sys_socket.
3734         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3735
3736 2011-03-20  Jim Meyering  <meyering@redhat.com>
3737
3738         maint.mk: sort file names *after* new transformation
3739         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3740         prefix would have led to an unwarranted failure in GNU parted.
3741         Sort after that transformation.
3742
3743 2011-03-19  Jim Meyering  <meyering@redhat.com>
3744
3745         maint.mk: fix po-file syntax-check rule
3746         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3747         Patch by Bruno Haible.
3748
3749 2011-03-19  Bruno Haible  <bruno@clisp.org>
3750
3751         socklen: Update comment.
3752         * m4/socklen.m4: Update comment about platforms.
3753
3754 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3755             Bruno Haible  <bruno@clisp.org>
3756
3757         inet_ntop, inet_pton: Simplify.
3758         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3759         documented to provide socklen_t and we already depend on sys_socket.
3760         * modules/inet_pton (Depends-on): Likewise.
3761         * lib/arpa_inet.in.h: Adjust comment.
3762
3763 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3764             Bruno Haible  <bruno@clisp.org>
3765
3766         netdb: Simplify.
3767         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3768         documented to provide socklen_t and we already depend on sys_socket.
3769         * lib/netdb.in.h: Adjust comment.
3770
3771 2011-03-19  Bruno Haible  <bruno@clisp.org>
3772
3773         sys_socket, netdb: Document problem with socklen_t.
3774         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3775         platforms.
3776         * doc/posix-headers/netdb.texi: Likewise.
3777
3778 2011-03-18  Eric Blake  <eblake@redhat.com>
3779
3780         maint.mk: let po check work in VPATH build
3781         * top/maint.mk (po_file): Allow cfg.mk override.
3782         (sc_po_check): Allow VPATH use.
3783         Reported by Jiri Denemark.
3784
3785 2011-03-16  Jim Meyering  <meyering@redhat.com>
3786
3787         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3788         Before, you would have had to create one .x-sc_ file per rule in order
3789         to exempt offending files.  Now, you may instead use a Make variable --
3790         usually defined in cfg.mk -- whose name identifies the affected rule.
3791         * top/maint.mk (_sc_excl): Define.
3792         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3793         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3794
3795 2011-03-13  Bruno Haible  <bruno@clisp.org>
3796
3797         ignore-value tests: Avoid warnings.
3798         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3799         empty for gcc < 3.4.
3800
3801 2011-03-13  Bruno Haible  <bruno@clisp.org>
3802
3803         passfd: Fix link error on Solaris.
3804         * modules/passfd (Description): Correct.
3805         (Depends-on): Add socketlib.
3806         (Link): New section.
3807         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3808
3809 2011-03-13  Bruno Haible  <bruno@clisp.org>
3810
3811         passfd: Fix link error on AIX 5.2.
3812         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3813
3814 2011-03-13  Bruno Haible  <bruno@clisp.org>
3815
3816         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3817         * lib/sys_socket.in.h: Include <stddef.h>.
3818         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3819         CMSG_FIRSTHDR. Remove unused variable.
3820
3821 2011-03-13  Bruno Haible  <bruno@clisp.org>
3822
3823         passfd: Fix compilation error on OpenBSD.
3824         * lib/passfd.c: Include <sys/uio.h>.
3825
3826 2011-03-13  Bruno Haible  <bruno@clisp.org>
3827
3828         passfd test: Fix warnings.
3829         * tests/test-passfd.c: Include <sys/wait.h>.
3830         (main): Fix typo.
3831
3832 2011-03-13  Bruno Haible  <bruno@clisp.org>
3833
3834         passfd module, part 4, tweaks.
3835         * tests/test-passfd.c: Reorder includes.
3836         (main): Fix perror and printf calls.
3837
3838 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3839
3840         passfd module, part 4.
3841         * modules/passfd-tests: New file.
3842         * tests/test-passfd.c: New file.
3843
3844 2011-03-13  Jim Meyering  <meyering@redhat.com>
3845
3846         Makefile: rely on GNU make; derive syntax-check rule names
3847         Rather than requiring that each sc_ rule be listed as a dependent
3848         of "check", use features of GNU make to derive the list.
3849         * Makefile (syntax-check-rules): Define.
3850         (check): Depend on the new variable, not the hard-coded list.
3851
3852 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3853             Bruno Haible  <bruno@clisp.org>
3854
3855         passfd module, part 3.
3856         * lib/passfd.h (recvfd): Add a flags argument.
3857         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3858         (recvfd): Add a flags argument.
3859         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3860         exists.
3861         * modules/passfd (Depends-on): Add cloexec.
3862         Suggested by Eric Blake.
3863
3864 2011-03-13  Bruno Haible  <bruno@clisp.org>
3865
3866         passfd module, part 2, tweaks.
3867         * modules/passfd (Files): Reorder.
3868         (Depends-on): Remove errno.
3869         (Include): Remove <sys/socket.h>, <sys/un.h>.
3870         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3871         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3872         specification header. Include <sys/socket.h> always. Don't include
3873         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3874         (sendfd): Clarify that it sets errno when it fails.
3875         (recvfd): Fix specification.
3876
3877 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3878
3879         passfd module, part 2.
3880         * modules/passfd: New file.
3881         * lib/passfd.h: New file.
3882         * lib/passfd.c: New file.
3883
3884 2011-03-12  Bruno Haible  <bruno@clisp.org>
3885
3886         wcswidth, mbswidth: Avoid integer overflow.
3887         * lib/wcswidth.c: Include <limits.h>.
3888         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3889         * lib/mbswidth.c: Include <limits.h>.
3890         (mbsnwidth): Avoid 'int' overflow.
3891         Reported by Jim Meyering.
3892
3893 2011-03-12  Bruno Haible  <bruno@clisp.org>
3894
3895         futimens, utimensat: Avoid endless recursion on Solaris 10.
3896         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3897         Solaris.
3898         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3899         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3900
3901 2011-03-11  Jim Meyering  <meyering@redhat.com>
3902
3903         maint.mk: relax a regexp to accommodate other formatting styles
3904         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3905         between "ngettext" and the following "(".
3906
3907 2011-03-11  Pádraig Brady <P@draigBrady.com>
3908
3909         maint.mk: suppress a false positive warning
3910         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3911         diagnostics are marked with ngettext.
3912
3913 2011-03-10  Eric Blake  <eblake@redhat.com>
3914
3915         wchar: add explicit dependencies, for Tru64
3916         * modules/mbmemcasecoll (Depends-on): Add wchar.
3917         * modules/mbtowc (Depends-on): Likewise.
3918         * modules/vasnprintf (Depends-on): Likewise.
3919         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3920         * modules/wctomb (Depends-on): Likewise.
3921         Reported by Peter O'Gorman.
3922
3923 2011-03-08  Bruno Haible  <bruno@clisp.org>
3924
3925         passfd module, part 1, tweaks.
3926         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3927         Improve indentation. Improve AC_MSG_CHECKING messages.
3928         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3929         gl_SOCKET_FAMILIES.
3930
3931 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3932
3933         passfd module, part 1.
3934         * m4/afunix.m4: New file.
3935         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3936         sockets.
3937
3938 2011-03-08  Bruno Haible  <bruno@clisp.org>
3939
3940         regex-quote: New API.
3941         * lib/regex-quote.h: Include <stdbool.h>.
3942         (struct regex_quote_spec): New type.
3943         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3944         New declarations.
3945         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3946         'const struct regex_quote_spec *' argument.
3947         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3948         (pcre_special): New constant.
3949         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3950         New functions.
3951         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3952         'const struct regex_quote_spec *' argument.
3953         * modules/regex-quote (Depends-on): Add stdbool.
3954         * tests/test-regex-quote.c (check): Update for new API. Add test for
3955         anchored results.
3956         * NEWS: Mention the API change.
3957         Reported by Reuben Thomas and Eric Blake.
3958
3959 2011-03-06  Bruno Haible  <bruno@clisp.org>
3960
3961         regex-quote: Fix creation of POSIX extended regular expressions.
3962         * lib/regex-quote.c (ere_special): Add grouping and alternation
3963         operators.
3964
3965 2011-03-05  Bruno Haible  <bruno@clisp.org>
3966
3967         doc: Improve doc regarding autopoint vs. gnulib.
3968         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3969         disable autopoint while running autoreconf.
3970         Suggested by Ralf Wildenhues.
3971
3972 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3973
3974         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3975         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3976
3977 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3978
3979         parse-duration: remove xalloc.h dependency
3980         * lib/parse-duration.c (parse_period): handle NULL return from
3981         strdup instead of calling xstrdup().
3982         * modules/parse-duration: remove "xalloc" dependency
3983
3984 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3985
3986         bootstrap: honor m4_base when running aclocal
3987         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3988
3989 2011-03-02  Jim Meyering  <meyering@redhat.com>
3990
3991         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3992         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3993         on request from Matt Booth.
3994
3995 2011-03-01  Eric Blake  <eblake@redhat.com>
3996
3997         test-link: work on Hurd
3998         * tests/test-link.h (test_link): Hurd rejects linking directories
3999         with EISDIR instead of the POSIX-mandated EPERM.
4000
4001 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4002
4003         stdio: simplify by moving files to printf-posix, sigpipe
4004         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4005         since this symbol is needed only if printf is replaced.
4006         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4007         Require gl_ASM_SYMBOL_PREFIX.
4008         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4009         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4010         (Depends-on): Add 'raise'.
4011         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4012         * modules/stdio (Files): Remove lib/stdio-write.c,
4013         m4/asm-underscore.m4.
4014         (Depends-on): Remove 'raise'.
4015
4016         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4017         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4018         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4019         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4020
4021 2011-02-28  Bruno Haible  <bruno@clisp.org>
4022
4023         localcharset: Assume ANSI C behaviour of free().
4024         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4025         calling free().
4026         Suggested by Simon Josefsson <simon@josefsson.org>.
4027
4028 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4029             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4030             Bruno Haible  <bruno@clisp.org>  (tiny change)
4031
4032         On Cygwin, use /proc file system instead of win32 API.
4033         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4034         Win32 file names.
4035         (DllMain): Simplify by removing Cygwin specific code.
4036         (find_shared_library_fullname): Use Linux specific implementation also
4037         for Cygwin.
4038         (get_shared_library_fullname): Update accordingly.
4039         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4040         Win32 file names.
4041         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4042         Cygwin specific code.
4043
4044 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4045             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4046
4047         Fix OpenMP flag detection for various Fortran compilers.
4048         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4049         OpenMP-conditional compilation construct, to force compile
4050         failure with missing OpenMP flag.
4051         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4052
4053 2011-02-25  Eric Blake  <eblake@redhat.com>
4054
4055         strstr: expand test coverage
4056         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4057         compilation.
4058         * tests/test-memmem.c (main): Duplicate tests.
4059         * tests/test-strcasestr.c (main): Likewise.
4060         * tests/test-c-strcasestr.c (main): Likewise.
4061
4062 2011-02-25  Jim Meyering  <meyering@redhat.com>
4063
4064         maint.mk: detect missing-NL-at-EOF, too
4065         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4066         it also detects when a file lacks a newline at EOF.
4067         (require_exactly_one_NL_at_EOF_): Renamed from
4068         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4069         since people may well have .x-sc_... file names tied to the
4070         existing name.  Suggested by Eric Blake.
4071
4072 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4073
4074         dirname: move m4/dos.m4 functionality into lib/dosname.h
4075
4076         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4077         extracts symbols from it, puts them into config.h; but it's much
4078         easier to use the symbols directly.  filename.h already does this,
4079         but it disagrees with dos.m4 in some respects.  This patch
4080         introduces a different include file dosname.h that packages up
4081         dos.m4, and then later we can work on merging filename.h and
4082         dosname.h.  Applications that need only the easy-to-configure
4083         symbols should consider including dosname.h rather than dirname.h.
4084         * NEWS: Mention incompatible changes.
4085         * m4/dos.m4: Remove.
4086         * lib/dosname.h, modules/dosname: New files.
4087         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4088         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4089         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4090         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4091         Include dosname.h, not dirname.h.
4092         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4093         Include dosname.h, for definitions of symbols like ISSLASH
4094         that used to be in config.h.
4095         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4096         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4097         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4098         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4099         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4100         * modules/rmdir (Files): Likewise.
4101         * modules/stat (Files): Likewise.
4102         * modules/unlink (Files): Likewise.
4103         * modules/dirname-lgpl (Depends-on): Add dosname.
4104         * modules/lstat (Depends-on): Likewise.
4105         * modules/openat (Depends-on): Likewise.
4106         * modules/rmdir (Depends-on): Likewise.
4107         * modules/savewd (Depends-on): Likewise.
4108         * modules/stat (Depends-on): Likewise.
4109         * modules/unlink (Depends-on): Likewise.
4110         * modules/openat (Depends-on): Remove dirname-lgpl.
4111         * modules/savewd (Depends-on): Likewise.
4112         * tests/test-dirname.c: Do not use removed symbols like
4113         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4114         the remaining symbols, e.g., ISSLASH ('\\').
4115
4116 2011-02-25  Eric Blake  <eblake@redhat.com>
4117
4118         strstr: revert patches that introduced bug and pessimization
4119         * lib/str-two-way.h: Add another reference.
4120         (two_way_short_needle, two_way_long_needle): Revert changes from
4121         2011-02-24; they pessimize search speed.
4122         (critical_factorization): Partially revert changes from
4123         2010-06-22; they violate the requirement that the left half of the
4124         needle be smaller than the period of the needle.
4125
4126 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4127
4128         filenamecat: remove unnecessary dependency on dirname-lgpl
4129         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4130         is no direct dependency, just an indirect one via filenamecat-lgpl.
4131
4132         remove: remove unnecessary use of m4/dos.m4
4133         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4134         * modules/remove (FILES): Remove m4/dos.m4.
4135
4136         * lib/openat-proc.c: Don't include dirname.h; not needed.
4137
4138         backupfile: remove unnecessary use of m4/dos.m4
4139         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4140         of its symbols are used by the backupfile code.  backupfile.c does
4141         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4142         for the rare case of programs that want all their backup file
4143         names to live within 8+3 limits, and dos.m4 doesn't address that.
4144         * modules/backupfile (Files): Remove m4/dos.m4.
4145
4146 2011-02-24  Jim Meyering  <meyering@redhat.com>
4147
4148         strstr: fix a bug whereby strstr would mistakenly return NULL
4149         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4150         in period calculation.
4151         (two_way_long_needle): Likewise.
4152         The original problem was reported by Mike Stump in
4153         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4154         Ralf Wildenhues provided the short needle and haystack.
4155         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4156         Add a more involved test to trigger the bug in two_way_long_needle.
4157
4158 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4159
4160         gnulib-tool: remove use of bold display in help screen
4161         * gnulib-tool (func_usage): Do not use bold display anymore in the
4162         help screen.  That was just meant to be a temporary emphasis for a
4163         backward-incompatible change.
4164
4165 2011-02-23  Bruno Haible  <bruno@clisp.org>
4166
4167         Fix misindentation of preprocessor directives.
4168         * lib/argp-namefrob.h: Reindent preprocessor directives.
4169         * lib/getopt_int.h (struct _getopt_data): Likewise.
4170         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4171         * lib/vasnprintf.c (decode_long_double): Likewise.
4172         * tests/test-argmatch.c: Insert blank lines, for clarity.
4173         * tests/test-exclude.c: Likewise.
4174
4175 2011-02-22  Bruno Haible  <bruno@clisp.org>
4176
4177         ioctl: Fix for MacOS X in 64-bit mode.
4178         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4179         value.
4180         Suggested by Eric Blake.
4181         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4182
4183 2011-02-22  Jim Meyering  <meyering@redhat.com>
4184
4185         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4186         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4187         in lib/.
4188
4189 2011-02-22  Eric Blake  <eblake@redhat.com>
4190
4191         maint: avoid any CDPATH issue
4192         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4193
4194         maint: adjust cpp indentation for my modules, as well
4195         * Makefile (sc_cpp_indent_check): Add my name.
4196         * lib/fbufmode.c: Filter through cppi.
4197         * lib/fpurge.c: Likewise.
4198         * lib/freadable.c: Likewise.
4199         * lib/freading.c: Likewise.
4200         * lib/fwritable.c: Likewise.
4201         * lib/fwriting.c: Likewise.
4202         * lib/sigaction.c: Likewise.
4203
4204 2011-02-22  Jim Meyering  <meyering@redhat.com>
4205
4206         maint: adjust cpp indentation to reflect nesting depth
4207         I.e., in a block of code that begins with an unnested "#if",
4208         put one space between the "#" in column 1 and following token.
4209         For example,
4210         -#include <sys/vfs.h>
4211         +# include <sys/vfs.h>
4212         Do this only in .c files that are part of a module I maintain.
4213         * lib/linkat.c: Filter through cppi.
4214         * lib/nanosleep.c: Likewise.
4215         * lib/openat.c: Likewise.
4216         * lib/openat-die.c: Likewise.
4217         * lib/dup3.c: Likewise.
4218         * lib/fchownat.c: Likewise.
4219         * lib/flock.c: Likewise.
4220         * lib/fsync.c: Likewise.
4221         * lib/fts.c: Likewise.
4222         * lib/getpass.c: Likewise.
4223         * lib/gettimeofday.c: Likewise.
4224         * lib/userspec.c: Likewise.
4225         * Makefile (sc_cpp_indent_check): New rule, to check this.
4226
4227 2011-02-22  Bruno Haible  <bruno@clisp.org>
4228
4229         New module 'wctomb'.
4230         * lib/stdlib.in.h (wctomb): New declaration.
4231         * lib/wctomb.c: New file.
4232         * lib/wctomb-impl.h: New file.
4233         * m4/wctomb.m4: New file.
4234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4235         REPLACE_WCTOMB.
4236         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4237         REPLACE_WCTOMB.
4238         * modules/wctomb: New file.
4239         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4240         * doc/posix-functions/wctomb.texi: Mention the new module.
4241         * modules/wctob (Depends-on): Add wctomb.
4242
4243 2011-02-22  Bruno Haible  <bruno@clisp.org>
4244
4245         New module 'mbtowc'.
4246         * lib/stdlib.in.h (mbtowc): New declaration.
4247         * lib/mbtowc.c: New file.
4248         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4249         * m4/mbtowc.m4: New file.
4250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4251         REPLACE_MBTOWC.
4252         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4253         REPLACE_MBTOWC.
4254         * modules/mbtowc: New file.
4255         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4256         * doc/posix-functions/mbtowc.texi: Mention the new module.
4257         * modules/btowc (Depends-on): Add mbtowc.
4258
4259 2011-02-22  Bruno Haible  <bruno@clisp.org>
4260
4261         wcrtomb: Add more tests for native Windows platforms.
4262         * tests/test-wcrtomb-w32-1.sh: New file.
4263         * tests/test-wcrtomb-w32-2.sh: New file.
4264         * tests/test-wcrtomb-w32-3.sh: New file.
4265         * tests/test-wcrtomb-w32-4.sh: New file.
4266         * tests/test-wcrtomb-w32-5.sh: New file.
4267         * tests/test-wcrtomb-w32.c: New file.
4268         * modules/wcrtomb-tests (Files): Add them.
4269         (Makefile.am): Arrange to run these tests.
4270         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4271         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4272
4273 2011-02-20  Bruno Haible  <bruno@clisp.org>
4274
4275         wcrtomb: Enhance test.
4276         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4277
4278 2011-02-20  Bruno Haible  <bruno@clisp.org>
4279
4280         mbrtowc: Tiny optimization.
4281         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4282
4283 2011-02-20  Jim Meyering  <meyering@redhat.com>
4284
4285         test-exclude.c: remove unmatched #endif
4286         * tests/test-exclude.c: Remove stray #endif, left over from
4287         the change of a week ago.
4288
4289 2011-02-19  Jim Meyering  <meyering@redhat.com>
4290
4291         git-version-gen: skip "-dirty" check when appropriate
4292         * build-aux/git-version-gen: Don't run any git commands when the
4293         version string comes from .tarball-version.  Prior to this, we
4294         would run git update-index --refresh even from a just-unpacked
4295         tarball directory, and that could affect a .git/ directory in a
4296         parent of the build directory.  Reported by Mike Frysinger.
4297
4298 2011-02-19  Bruno Haible  <bruno@clisp.org>
4299
4300         unictype/property-byname: Reduce the size of the 'data' segment.
4301         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4302
4303 2011-02-19  Bruno Haible  <bruno@clisp.org>
4304
4305         unictype/scripts: Reduce the size of the 'data' segment.
4306         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4307         '%pic'.
4308         * lib/unictype/scripts_byname.gperf: Regenerated.
4309
4310 2011-02-19  Bruno Haible  <bruno@clisp.org>
4311
4312         stdint: Update documentation.
4313         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4314
4315 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4316
4317         stdint: omit redundant check for wchar.h
4318         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4319         always tests whether wchar.h exists, so remove the now-redundant test.
4320
4321 2011-02-18  Bruno Haible  <bruno@clisp.org>
4322
4323         stdint: Cut dependency to module 'wchar'.
4324         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4325         include the necessary prerequisites.
4326         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4327         * modules/stdint (Depends-on): Remove wchar.
4328         (Makefile.am): Substitute HAVE_WCHAR_H.
4329         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4330
4331 2011-02-18  Eric Blake  <eblake@redhat.com>
4332
4333         longlong: skip, rather than fail, on cross-compilation
4334         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4335         when cross-compiling; regression from 2011-02-16.
4336
4337 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4338
4339         * NEWS: Mention 2011-02-08 change to stdlib.
4340
4341 2011-02-17  Bruno Haible  <bruno@clisp.org>
4342
4343         getloadavg: Add comments about platforms.
4344         * m4/getloadavg.m4: Add comment.
4345         * lib/getloadavg.c: Likewise.
4346
4347 2011-02-17  Bruno Haible  <bruno@clisp.org>
4348
4349         getloadavg: Fix link error on Solaris 2.6.
4350         * modules/getloadavg (Link): New section.
4351         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4352         linking test-getloadavg.
4353         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4354         getloadavg.
4355
4356 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4357
4358         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4359         It was 'int', but this doesn't match the IRIX 6.5 manual.
4360         Suggested by Bruno Haible in
4361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4362
4363 2011-02-17  Bruno Haible  <bruno@clisp.org>
4364
4365         havelib: Fix comments.
4366         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4367         change.
4368
4369 2011-02-17  Bruno Haible  <bruno@clisp.org>
4370
4371         havelib: Update config.rpath.
4372         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4373
4374 2011-02-17  Bruno Haible  <bruno@clisp.org>
4375
4376         getloadavg test: Add some plausibility checks.
4377         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4378         is improbable.
4379
4380 2011-02-16  Eric Blake  <eblake@redhat.com>
4381
4382         maintainer-makefile: make syntax-check a no-op from tarballs
4383         * top/maint.mk (no-vc-detected): New rule.
4384         (local-checks-available): Use it to avoid hanging if someone tries
4385         'make syntax-check' from a tarball.  Also append to any non-syntax
4386         checks already defined in cfg.mk.
4387
4388 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4389
4390         longlong: tune, particularly for common case of c99
4391
4392         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4393         or running anything if c99, or if unsigned long long int does not
4394         work.  In either case, we know the answer without further tests.
4395         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4396         it at most once, and use its results for both long long int and
4397         unsigned long long int.  This is more likely to be efficient in
4398         the common case where the program wants to check for both long
4399         long int and unsigned long long int.
4400         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4401         since the answer is already known.
4402
4403 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4404
4405         getloadavg: set errno
4406         * lib/getloadavg.c: Set errno when returning -1.  If no other
4407         error number looks appropriate, set it to ENOSYS if the getloadavg
4408         looks like it can't possibly ever work, ENOTSUP otherwise.
4409         Suggested by Bruno Haible in
4410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4411
4412         getloadavg: trim unused parts and speed up 'configure'
4413         * NEWS: Document this.
4414         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4415         always compiled if getloadavg is absent.
4416         Move test code to ...
4417         * tests/test-getloadavg.c: New file, containing previous
4418         contents of test from lib/getloadavg.c.  It also contains
4419         suggestions by Bruno Haible in
4420         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4421         * modules/getloadavg-tests: New file.
4422         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4423         Do tests in the same order as they're needed for getloadavg.c.
4424         Omit setgid-related tests that generate symbols KMEM_GROUP,
4425         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4426         Do only the tests that are needed to see whether the system has
4427         getloadavg, moving the other tests into ...
4428         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4429         NLIST_NAME_UNION; nobody should be using it.  Do not define
4430         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4431         relevant, as the user of this module shouldn't care how getloadavg
4432         is implemented.
4433
4434         getloadavg: omit unused var
4435         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4436
4437 2011-02-15  Jim Meyering  <meyering@redhat.com>
4438
4439         doc: update users.txt
4440         * users.txt: Update iwhd's URL.
4441
4442 2011-02-13  Bruno Haible  <bruno@clisp.org>
4443
4444         Consistent macro naming for macros that use GCC __attribute__.
4445         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4446         _ATTRIBUTE_NONNULL_.
4447         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4448         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4449         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4450         ATTRIBUTE_DEPRECATED.
4451         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4452         ATTRIBUTE_NORETURN.
4453         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4454         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4455         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4456         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4457         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4458         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4459         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4460         ATTRIBUTE_SENTINEL.
4461         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4462         ATTRIBUTE_RETURN_CHECK.
4463         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4464         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4465         ATTRIBUTE_NORETURN.
4466         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4467         Reported by Paul Eggert.
4468
4469 2011-02-13  Bruno Haible  <bruno@clisp.org>
4470
4471         Don't interfere with a program's definition of __attribute__.
4472         * lib/argp.h (__attribute__): Remove definition.
4473         (_GL_ATTRIBUTE_FORMAT): New macro.
4474         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4475         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4476         (_GL_ATTRIBUTE_FORMAT): New macro.
4477         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4478         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4479         GCC 3 or newer.
4480         * lib/error.h (__attribute__): Remove definition.
4481         (_GL_ATTRIBUTE_FORMAT): New macro.
4482         (error, error_at_line): Use it.
4483         * lib/hash.h (__attribute__): Remove definition.
4484         (ATTRIBUTE_WUR): Update definition. Define always.
4485         * lib/openat.h (__attribute__): Remove definition.
4486         (ATTRIBUTE_NORETURN): Update definition. Define always.
4487         * lib/sigpipe-die.h (__attribute__): Remove definition.
4488         (ATTRIBUTE_NORETURN): Update definition. Define always.
4489         * lib/vasnprintf.h (__attribute__): Remove definition.
4490         (_GL_ATTRIBUTE_FORMAT): New macro.
4491         (asnprintf, vasnprintf): Use it.
4492         * lib/xalloc.h (__attribute__): Remove definition.
4493         (ATTRIBUTE_NORETURN): Update definition. Define always.
4494         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4495         * lib/xmemdup0.h (__attribute__): Remove definition.
4496         (ATTRIBUTE_NORETURN): Update definition. Define always.
4497         * lib/xprintf.h (__attribute__): Remove definition.
4498         (_GL_ATTRIBUTE_FORMAT): New macro.
4499         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4500         * lib/xstrtol.h (__attribute__): Remove definition.
4501         (ATTRIBUTE_NORETURN): Update definition. Define always.
4502         * lib/xvasprintf.h (__attribute__): Remove definition.
4503         (_GL_ATTRIBUTE_FORMAT): New macro.
4504         (xasprintf, xvasprintf): Use it.
4505         * tests/test-argmatch.c (__attribute__): Remove definition.
4506         (ATTRIBUTE_NORETURN): Update definition. Define always.
4507         * tests/test-exclude.c (__attribute__): Remove definition.
4508         (ATTRIBUTE_NORETURN): Update definition. Define always.
4509         Reported by Paul Eggert.
4510
4511 2011-02-13  Bruno Haible  <bruno@clisp.org>
4512
4513         mbrtowc: Add more tests for native Windows platforms.
4514         * tests/test-mbrtowc-w32-1.sh: New file.
4515         * tests/test-mbrtowc-w32-2.sh: New file.
4516         * tests/test-mbrtowc-w32-3.sh: New file.
4517         * tests/test-mbrtowc-w32-4.sh: New file.
4518         * tests/test-mbrtowc-w32-5.sh: New file.
4519         * tests/test-mbrtowc-w32.c: New file.
4520         * modules/mbrtowc-tests (Files): Add them.
4521         (Makefile.am): Arrange to run these tests.
4522         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4523         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4524
4525 2011-02-13  Bruno Haible  <bruno@clisp.org>
4526
4527         mbrtowc: Work around native Windows bug.
4528         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4529         guess when no suitable locale for testing was found.
4530         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4531
4532 2011-02-13  Bruno Haible  <bruno@clisp.org>
4533
4534         mbsinit: Work around mingw bug.
4535         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4536         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4537         Windows.
4538         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4539
4540 2011-02-13  Bruno Haible  <bruno@clisp.org>
4541
4542         mbsinit: Don't crash for a NULL argument.
4543         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4544         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4545
4546 2011-02-13  Bruno Haible  <bruno@clisp.org>
4547
4548         Don't interfere with a program's definition of __attribute__.
4549         * lib/stdio.in.h (__attribute__): Remove definition.
4550         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4551         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4552         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4553         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4554         * lib/string.in.h (__attribute__): Remove definition.
4555         Reported by Paul Eggert.
4556
4557 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4558
4559         stdlib: don't get in the way of non-GCC __attribute__
4560         See thread starting at
4561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4562         Revert previous stdlib change, installing the following instead:
4563         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4564         to get in the way of a non-GCC compiler that supports __attribute__.
4565         (_GL_ATTRIBUTE_RETURN): New macro.
4566         (_Exit): Use it instead of __attribute__.
4567
4568 2011-02-12  Bruno Haible  <bruno@clisp.org>
4569
4570         quotearg test: Avoid test failure on mingw.
4571         * tests/test-quotearg.sh: Convert the locale identifier from native
4572         Windows syntax to Unix syntax.
4573
4574 2011-02-12  Bruno Haible  <bruno@clisp.org>
4575
4576         setlocale: Prefer gnulib's override over libintl's override.
4577         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4578         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4579         GNULIB_defined_setlocale is set.
4580
4581 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4582
4583         stdlib: support non-GCC __attribute__
4584
4585         Fix a serious and tricky problem encountered when attempting to
4586         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4587         5.5, but it crashed due to memory corruption on Solaris 10 with
4588         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4589         bits that are otherwise zero.  This tagging is optional inside
4590         Emacs but is preferred and is used when __attribute__ ((__aligned
4591         (8))) works, as it does with both recent-enough GCC and with Sun C
4592         5.11.  However, Sun C 5.11 is not GCC and does not #define
4593         __GNUC__ and __GNUC_MINOR__.
4594
4595         When I added the getloadavg module to Emacs, it brought in
4596         stdlib.in.h, which contained this fragment:
4597
4598            #ifndef __attribute__
4599            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4600            #  define __attribute__(Spec)   /* empty */
4601            # endif
4602            #endif
4603
4604         When files that include <stdlib.h> were compiled with Sun C 5.11,
4605         the above code disabled __attribute__ ((__aligned (8))), which
4606         caused variables to not be properly aligned, which eventually led
4607         to the pointer corruption mentioned above.  (This was a bit hard
4608         to diagnose, unfortunately.)
4609
4610         Several "#define __attribute__(X) /* empty */" code snippets need
4611         to be eradicated from Gnulib to work with non-GCC compilers that
4612         support __attribute__.  The Autoconf way to do this is to test for
4613         each kind of attribute that we want support for, and selectively
4614         enable that in source code.
4615
4616         Fix this problem just for stdlib.h, by adding a test for the
4617         __noreturn__ attribute, and change stdlib.in.h to use that test
4618         when needed.  This technique can be easily generalized to the
4619         other *.in.h files and attributes, and a similar technique can be
4620         used for *.h and *.c files.  This patch is enough to solve the
4621         problem for Emacs + getloadavg, and I thought I'd publish it for
4622         feedback before undertaking further, similar fixes in other
4623         modules.
4624
4625         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4626         because it's not needed for stdlib.h.  It merely substitutes the
4627         value directly into stdlib.h.  We may well need to #define it, or
4628         similar symbols, for other modules, but it's nice to also have an
4629         option to not #define it for applications like Emacs that do not
4630         need it.
4631
4632         * lib/stdlib.in.h (__attribute__): Do not #define.
4633         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4634         be defined only if the _Exit module is also used.
4635         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4637         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4638         platforms.
4639         * modules/_Exit (Files): Add m4/attribute.m4.
4640         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4641         * m4/attribute.m4: New file.
4642
4643 2011-02-12  Bruno Haible  <bruno@clisp.org>
4644
4645         wcsrtombs: Work around bug on native Windows.
4646         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4647         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4648         instead of len.
4649         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4650
4651 2011-02-12  Bruno Haible  <bruno@clisp.org>
4652
4653         mbsrtowcs: Work around bug on native Windows.
4654         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4655         against mingw bug.
4656         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4657
4658 2011-02-12  Bruno Haible  <bruno@clisp.org>
4659
4660         Avoid setlocale bugs in tests.
4661         * modules/btowc (Dependencies): Add setlocale.
4662         * modules/c-strcase (Dependencies): Likewise.
4663         * modules/mbmemcasecmp (Dependencies): Likewise.
4664         * modules/mbmemcasecoll (Dependencies): Likewise.
4665         * modules/mbrtowc (Dependencies): Likewise.
4666         * modules/mbscasecmp (Dependencies): Likewise.
4667         * modules/mbscasestr (Dependencies): Likewise.
4668         * modules/mbschr (Dependencies): Likewise.
4669         * modules/mbscspn (Dependencies): Likewise.
4670         * modules/mbsinit (Dependencies): Likewise.
4671         * modules/mbsncasecmp (Dependencies): Likewise.
4672         * modules/mbsnrtowcs (Dependencies): Likewise.
4673         * modules/mbspbrk (Dependencies): Likewise.
4674         * modules/mbspcasecmp (Dependencies): Likewise.
4675         * modules/mbsrchr (Dependencies): Likewise.
4676         * modules/mbsrtowcs (Dependencies): Likewise.
4677         * modules/mbsspn (Dependencies): Likewise.
4678         * modules/mbsstr (Dependencies): Likewise.
4679         * modules/nl_langinfo (Dependencies): Likewise.
4680         * modules/quotearg (Dependencies): Likewise.
4681         * modules/unicase/locale-language (Dependencies): Likewise.
4682         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4683         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4684         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4685         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4686         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4687         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4688         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4689         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4690         * modules/vasnprintf-posix (Dependencies): Likewise.
4691         * modules/wcrtomb (Dependencies): Likewise.
4692         * modules/wcsnrtombs (Dependencies): Likewise.
4693         * modules/wcsrtombs (Dependencies): Likewise.
4694
4695 2011-02-12  Bruno Haible  <bruno@clisp.org>
4696
4697         setlocale: Workaround native Windows bug.
4698         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4699         succeeds but sets LC_CTYPE to "C", report a failure.
4700         * tests/test-setlocale2.sh: New file.
4701         * tests/test-setlocale2.c: New file.
4702         * modules/setlocale-tests (Files): Add the new files.
4703         (Makefile.am): Enable test-setlocale2.sh test.
4704         * doc/posix-functions/setlocale.texi: Mention workaround.
4705
4706 2011-02-11  Bruno Haible  <bruno@clisp.org>
4707
4708         Tests for module 'setlocale'.
4709         * modules/setlocale-tests: New file.
4710         * tests/test-setlocale1.sh: New file.
4711         * tests/test-setlocale1.c: New file.
4712
4713         New module 'setlocale'.
4714         * lib/locale.in.h (setlocale): New declaration.
4715         * lib/setlocale.c: New file, based on
4716         gettext/gettext-runtime/intl/setlocale.c.
4717         * m4/setlocale.m4: New file.
4718         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4719         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4720         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4721         REPLACE_SETLOCALE.
4722         * modules/setlocale: New file.
4723         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4724         * doc/posix-functions/setlocale.texi: Mention the new module.
4725
4726 2011-02-11  Bruno Haible  <bruno@clisp.org>
4727
4728         Prepare for locale dependent tests on mingw.
4729         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4730         because it has the wrong locale encoding.
4731         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4732         French_France.1252 instead of "fr".
4733         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4734         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4735         because it has the wrong locale encoding.
4736         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4737         native Windows, try Turkish_Turkey.65001.
4738         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4739         Chinese_China.54936.
4740
4741         Prepare for locale dependent tests on mingw.
4742         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4743         differently.
4744         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4745         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4746         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4747         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4748
4749 2011-02-11  Eric Blake  <eblake@redhat.com>
4750
4751         strptime: avoid compiler warnings
4752         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4753         compiler warnings about dead code.
4754         Reported by Daniel P. Berrange.
4755
4756 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4757
4758         doc: update users.txt
4759         * users.txt: Add rcs.
4760
4761 2011-02-10  John W. Eaton  <jwe@gnu.org>
4762
4763         doc: update users.txt
4764         * users.txt: Add octave.
4765
4766 2011-02-10  Jim Meyering  <meyering@redhat.com>
4767
4768         doc: update users.txt
4769         * users.txt: Add iwhd.
4770
4771 2011-02-09  Bruno Haible  <bruno@clisp.org>
4772
4773         gnulib-tool: Make copyright notice adjustment more robust.
4774         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4775         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4776         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4777         License".
4778         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4779
4780 2011-02-06  Bruno Haible  <bruno@clisp.org>
4781
4782         New module 'towctrans'.
4783         * modules/towctrans: New file.
4784         * lib/wctype.in.h (towctrans): New declaration.
4785         * lib/towctrans.c: New file.
4786         * lib/towctrans-impl.h: New file.
4787         * m4/towctrans.m4: New file.
4788         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4789         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4790         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4791         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4792         * doc/posix-functions/towctrans.texi: Mention the new module.
4793
4794 2011-02-06  Bruno Haible  <bruno@clisp.org>
4795
4796         New module 'wctrans'.
4797         * modules/wctrans: New file.
4798         * lib/wctype.in.h (wctrans): New declaration.
4799         * lib/wctrans.c: New file.
4800         * lib/wctrans-impl.h: New file.
4801         * m4/wctrans.m4: New file.
4802         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4803         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4804         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4805         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4806         * doc/posix-functions/wctrans.texi: Mention the new module.
4807
4808 2011-02-06  Bruno Haible  <bruno@clisp.org>
4809
4810         New module 'iswctype'.
4811         * modules/iswctype: New file.
4812         * lib/wctype.in.h (iswctype): New declaration.
4813         * lib/iswctype.c: New file.
4814         * lib/iswctype-impl.h: New file.
4815         * m4/iswctype.m4: New file.
4816         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4817         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4818         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4819         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4820         * doc/posix-functions/iswctype.texi: Mention the new module and the
4821         HP-UX 11.00 problem.
4822
4823 2011-02-06  Bruno Haible  <bruno@clisp.org>
4824
4825         New module 'wctype'.
4826         * modules/wctype: Change to represent the wctype() substitute.
4827         * lib/wctype.in.h (wctype): New declaration.
4828         * lib/wctype.c: New file.
4829         * lib/wctype-impl.h: New file.
4830         * m4/wctype.m4: New file.
4831         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4832         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4833         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4834         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4835         * doc/posix-functions/wctype.texi: Mention the new module and the
4836         HP-UX 11.00 problem.
4837
4838 2011-02-06  Bruno Haible  <bruno@clisp.org>
4839
4840         wctype-h: Ensure wctype_t and wctrans_t are defined.
4841         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4842         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4843         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4844         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4845         HAVE_WCTRANS_T.
4846         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4847
4848 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4849
4850         flock: fix license typo
4851
4852         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4853         omitted.
4854
4855 2011-02-08  Bruno Haible  <bruno@clisp.org>
4856
4857         Split large sed scripts, for HP-UX sed.
4858         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4859         to avoid HP-UX limit of 99 commands, in the near future.
4860         * modules/stdlib (Makefile.am): Likewise.
4861         * modules/unistd (Makefile.am): Likewise.
4862         * modules/wchar (Makefile.am): Likewise.
4863         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4864         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4865         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4866
4867 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4868             Bruno Haible  <bruno@clisp.org>
4869
4870         stdlib: improve random_r modularization
4871         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4872         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4873         you also need the random_r module to get this material right.
4874         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4875         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4876         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4877
4878 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4879
4880         stdlib: don't depend on stdint
4881         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4882         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4883         be independent of whether stdint.h is needed.
4884         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4885         here, instead of ...
4886         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4887         struct random_data should be using the random_r module, not just
4888         the stdlib module (which wouldn't make sense: what package needs
4889         just struct random_data without also needing random_r?).
4890         * modules/stdlib (Depends-on): Remove stdint.
4891
4892         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4893         See the thread rooted at
4894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4895         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4896         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4897         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4898         __VMS)); previously it was always included (via fcntl--.h).
4899         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4900         hand; this is good enough for load averages.  Also, do not use
4901         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4902         flags directly if available and don't bother otherwise.  (Packages
4903         that need the extra reliability should use the modules that define
4904         these flags on older platforms that lack them.)
4905         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4906         fcntl-safer.
4907
4908 2011-02-08  Jim Meyering  <meyering@redhat.com>
4909
4910         di-set.h, ino-map.h: add multiple-inclusion guard
4911         Technically, the guard is required only for ino-map.h, due to its
4912         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4913         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4914         * lib/ino-map.h: Likewise.
4915
4916 2011-02-06  Bruno Haible  <bruno@clisp.org>
4917
4918         iswblank: Ensure declaration on glibc systems.
4919         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4920         * modules/iswblank (Dependencies): Add 'extensions'.
4921         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4922
4923 2011-02-06  Bruno Haible  <bruno@clisp.org>
4924
4925         New module 'iswblank'.
4926         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4927         * modules/iswblank: New file.
4928         * modules/wctype-h (Files): Remove lib/iswblank.c.
4929         (Makefile.am): Substitute GNULIB_ISWBLANK.
4930         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4931         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4932         (gl_WCTYPE_H_DEFAULTS): New macro.
4933         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4934         * modules/iswblank-tests: New file.
4935         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4936         * tests/test-wctype-h.c (main): Remove iswblank tests.
4937         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4938         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4939         of 'wctype-h'.
4940         * NEWS: Mention the change.
4941         * modules/mbchar (Depends-on): Add iswblank.
4942
4943 2011-02-08  Bruno Haible  <bruno@clisp.org>
4944
4945         di-set tests: Refactor.
4946         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4947         unnecessary includes.
4948         (ASSERT): Remove macro.
4949         (main): Make C90 compliant by avoiding variable declaration after
4950         statement.
4951         * modules/di-set-tests (Files): Add tests/macros.h.
4952
4953 2011-02-08  Bruno Haible  <bruno@clisp.org>
4954
4955         ino-map tests: Refactor.
4956         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4957         unnecessary includes.
4958         (ASSERT): Remove macro.
4959         (main): Make C90 compliant by avoiding variable declaration after
4960         statement.
4961         * modules/ino-map-tests (Files): Add tests/macros.h.
4962
4963 2011-02-08  Jim Meyering  <meyering@redhat.com>
4964
4965         di-set: add "const" to a cast
4966         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4967         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4968
4969 2011-02-06  Bruno Haible  <bruno@clisp.org>
4970
4971         Rename module 'wctype' to 'wctype-h'.
4972         * modules/wctype-h: Renamed from modules/wctype.
4973         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4974         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4975         (Files, Depends-on, Makefile.am): Update.
4976         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4977         (Files, Makefile.am): Update.
4978         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4979         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4980         * doc/posix-headers/wctype.texi: Update.
4981         * doc/posix-functions/iswalnum.texi: Update.
4982         * doc/posix-functions/iswalpha.texi: Update.
4983         * doc/posix-functions/iswblank.texi: Update.
4984         * doc/posix-functions/iswcntrl.texi: Update.
4985         * doc/posix-functions/iswdigit.texi: Update.
4986         * doc/posix-functions/iswgraph.texi: Update.
4987         * doc/posix-functions/iswlower.texi: Update.
4988         * doc/posix-functions/iswprint.texi: Update.
4989         * doc/posix-functions/iswpunct.texi: Update.
4990         * doc/posix-functions/iswspace.texi: Update.
4991         * doc/posix-functions/iswupper.texi: Update.
4992         * doc/posix-functions/iswxdigit.texi: Update.
4993         * doc/posix-functions/towlower.texi: Update.
4994         * doc/posix-functions/towupper.texi: Update.
4995         * NEWS: Mention the change.
4996         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4997         * modules/mbchar (Dependencies): Likewise.
4998         * modules/mbswidth (Dependencies): Likewise.
4999         * modules/quotearg (Dependencies): Likewise.
5000         * modules/regex (Dependencies): Likewise.
5001         * modules/wcscasecmp (Dependencies): Likewise.
5002         * modules/wcsncasecmp (Dependencies): Likewise.
5003         * modules/wcwidth (Dependencies): Likewise.
5004
5005 2011-02-06  Bruno Haible  <bruno@clisp.org>
5006
5007         New module 'wcswidth'.
5008         * modules/wcswidth: New file.
5009         * lib/wchar.in.h (wcswidth): New declaration.
5010         * lib/wcswidth.c: New file.
5011         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5012         * m4/wcswidth.m4: New file.
5013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5015         REPLACE_WCSWIDTH.
5016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5017         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5018         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5019         * doc/posix-functions/wcswidth.texi: Mention the new module.
5020
5021 2011-02-06  Bruno Haible  <bruno@clisp.org>
5022
5023         New module 'wcstok'.
5024         * modules/wcstok: New file.
5025         * lib/wchar.in.h (wcstok): New declaration.
5026         * lib/wcstok.c: New file.
5027         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5028         * m4/wcstok.m4: New file.
5029         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5030         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5031         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5032         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5033         * doc/posix-functions/wcstok.texi: Mention the new module.
5034
5035 2011-02-06  Bruno Haible  <bruno@clisp.org>
5036
5037         New module 'wcsstr'.
5038         * modules/wcsstr: New file.
5039         * lib/wchar.in.h (wcsstr): New declaration.
5040         * lib/wcsstr.c: New file.
5041         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5042         * m4/wcsstr.m4: New file.
5043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5046         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5047         * doc/posix-functions/wcsstr.texi: Mention the new module.
5048
5049 2011-02-06  Bruno Haible  <bruno@clisp.org>
5050
5051         New module 'wcspbrk'.
5052         * modules/wcspbrk: New file.
5053         * lib/wchar.in.h (wcspbrk): New declaration.
5054         * lib/wcspbrk.c: New file.
5055         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5056         * m4/wcspbrk.m4: New file.
5057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5060         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5061         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5062
5063 2011-02-06  Bruno Haible  <bruno@clisp.org>
5064
5065         New module 'wcsspn'.
5066         * modules/wcsspn: New file.
5067         * lib/wchar.in.h (wcsspn): New declaration.
5068         * lib/wcsspn.c: New file.
5069         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5070         * m4/wcsspn.m4: New file.
5071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5074         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5075         * doc/posix-functions/wcsspn.texi: Mention the new module.
5076
5077 2011-02-06  Bruno Haible  <bruno@clisp.org>
5078
5079         New module 'wcscspn'.
5080         * modules/wcscspn: New file.
5081         * lib/wchar.in.h (wcscspn): New declaration.
5082         * lib/wcscspn.c: New file.
5083         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5084         * m4/wcscspn.m4: New file.
5085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5088         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5089         * doc/posix-functions/wcscspn.texi: Mention the new module.
5090
5091 2011-02-06  Bruno Haible  <bruno@clisp.org>
5092
5093         New module 'wcsrchr'.
5094         * modules/wcsrchr: New file.
5095         * lib/wchar.in.h (wcsrchr): New declaration.
5096         * lib/wcsrchr.c: New file.
5097         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5098         * m4/wcsrchr.m4: New file.
5099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5102         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5103         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5104
5105 2011-02-06  Bruno Haible  <bruno@clisp.org>
5106
5107         New module 'wcschr'.
5108         * modules/wcschr: New file.
5109         * lib/wchar.in.h (wcschr): New declaration.
5110         * lib/wcschr.c: New file.
5111         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5112         * m4/wcschr.m4: New file.
5113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5116         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5117         * doc/posix-functions/wcschr.texi: Mention the new module.
5118
5119 2011-02-06  Bruno Haible  <bruno@clisp.org>
5120
5121         New module 'wcsdup'.
5122         * modules/wcsdup: New file.
5123         * lib/wchar.in.h (wcsdup): New declaration.
5124         * lib/wcsdup.c: New file.
5125         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5126         * m4/wcsdup.m4: New file.
5127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5130         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5131         * doc/posix-functions/wcsdup.texi: Mention the new module.
5132
5133 2011-02-06  Bruno Haible  <bruno@clisp.org>
5134
5135         New module 'wcsxfrm'.
5136         * modules/wcsxfrm: New file.
5137         * lib/wchar.in.h (wcsxfrm): New declaration.
5138         * lib/wcsxfrm.c: New file.
5139         * lib/wcsxfrm-impl.h: New file.
5140         * m4/wcsxfrm.m4: New file.
5141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5144         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5145         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5146
5147 2011-02-06  Bruno Haible  <bruno@clisp.org>
5148
5149         New module 'wcscoll'.
5150         * modules/wcscoll: New file.
5151         * lib/wchar.in.h (wcscoll): New declaration.
5152         * lib/wcscoll.c: New file.
5153         * lib/wcscoll-impl.h: New file.
5154         * m4/wcscoll.m4: New file.
5155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5158         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5159         * doc/posix-functions/wcscoll.texi: Mention the new module.
5160
5161 2011-02-06  Bruno Haible  <bruno@clisp.org>
5162
5163         New module 'wcsncasecmp'.
5164         * modules/wcsncasecmp: New file.
5165         * lib/wchar.in.h (wcsncasecmp): New declaration.
5166         * lib/wcsncasecmp.c: New file.
5167         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5168         * m4/wcsncasecmp.m4: New file.
5169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5172         HAVE_WCSNCASECMP.
5173         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5174         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5175
5176 2011-02-06  Bruno Haible  <bruno@clisp.org>
5177
5178         New module 'wcscasecmp'.
5179         * modules/wcscasecmp: New file.
5180         * lib/wchar.in.h (wcscasecmp): New declaration.
5181         * lib/wcscasecmp.c: New file.
5182         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5183         * m4/wcscasecmp.m4: New file.
5184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5186         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5187         HAVE_WCSCASECMP.
5188         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5189         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5190
5191 2011-02-05  Bruno Haible  <bruno@clisp.org>
5192
5193         New module 'wcsncmp'.
5194         * modules/wcsncmp: New file.
5195         * lib/wchar.in.h (wcsncmp): New declaration.
5196         * lib/wcsncmp.c: New file.
5197         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5198         * m4/wcsncmp.m4: New file.
5199         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5200         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5201         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5202         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5203         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5204
5205 2011-02-05  Bruno Haible  <bruno@clisp.org>
5206
5207         New module 'wcscmp'.
5208         * modules/wcscmp: New file.
5209         * lib/wchar.in.h (wcscmp): New declaration.
5210         * lib/wcscmp.c: New file.
5211         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5212         * m4/wcscmp.m4: New file.
5213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5215         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5216         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5217         * doc/posix-functions/wcscmp.texi: Mention the new module.
5218
5219 2011-02-05  Bruno Haible  <bruno@clisp.org>
5220
5221         New module 'wcsncat'.
5222         * modules/wcsncat: New file.
5223         * lib/wchar.in.h (wcsncat): New declaration.
5224         * lib/wcsncat.c: New file.
5225         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5226         * m4/wcsncat.m4: New file.
5227         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5228         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5229         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5230         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5231         * doc/posix-functions/wcsncat.texi: Mention the new module.
5232
5233 2011-02-05  Bruno Haible  <bruno@clisp.org>
5234
5235         New module 'wcscat'.
5236         * modules/wcscat: New file.
5237         * lib/wchar.in.h (wcscat): New declaration.
5238         * lib/wcscat.c: New file.
5239         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5240         * m4/wcscat.m4: New file.
5241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5243         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5244         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5245         * doc/posix-functions/wcscat.texi: Mention the new module.
5246
5247 2011-02-05  Bruno Haible  <bruno@clisp.org>
5248
5249         New module 'wcpncpy'.
5250         * modules/wcpncpy: New file.
5251         * lib/wchar.in.h (wcpncpy): New declaration.
5252         * lib/wcpncpy.c: New file.
5253         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5254         * m4/wcpncpy.m4: New file.
5255         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5256         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5257         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5258         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5259         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5260
5261 2011-02-05  Bruno Haible  <bruno@clisp.org>
5262
5263         New module 'wcsncpy'.
5264         * modules/wcsncpy: New file.
5265         * lib/wchar.in.h (wcsncpy): New declaration.
5266         * lib/wcsncpy.c: New file.
5267         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5268         * m4/wcsncpy.m4: New file.
5269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5271         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5272         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5273         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5274
5275 2011-02-05  Bruno Haible  <bruno@clisp.org>
5276
5277         New module 'wcpcpy'.
5278         * modules/wcpcpy: New file.
5279         * lib/wchar.in.h (wcpcpy): New declaration.
5280         * lib/wcpcpy.c: New file.
5281         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5282         * m4/wcpcpy.m4: New file.
5283         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5284         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5285         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5286         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5287         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5288
5289 2011-02-05  Bruno Haible  <bruno@clisp.org>
5290
5291         New module 'wcscpy'.
5292         * modules/wcscpy: New file.
5293         * lib/wchar.in.h (wcscpy): New declaration.
5294         * lib/wcscpy.c: New file.
5295         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5296         * m4/wcscpy.m4: New file.
5297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5299         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5300         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5301         * doc/posix-functions/wcscpy.texi: Mention the new module.
5302
5303 2011-02-05  Bruno Haible  <bruno@clisp.org>
5304
5305         New module 'wcsnlen'.
5306         * modules/wcsnlen: New file.
5307         * lib/wchar.in.h (wcsnlen): New declaration.
5308         * lib/wcsnlen.c: New file.
5309         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5310         * m4/wcsnlen.m4: New file.
5311         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5312         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5313         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5314         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5315         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5316
5317 2011-02-05  Bruno Haible  <bruno@clisp.org>
5318
5319         New module 'wcslen'.
5320         * modules/wcslen: New file.
5321         * lib/wchar.in.h (wcslen): New declaration.
5322         * lib/wcslen.c: New file.
5323         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5324         * m4/wcslen.m4: New file.
5325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5328         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5329         * doc/posix-functions/wcslen.texi: Mention the new module.
5330
5331 2011-02-05  Bruno Haible  <bruno@clisp.org>
5332
5333         New module 'wmemset'.
5334         * modules/wmemset: New file.
5335         * lib/wchar.in.h (wmemset): New declaration.
5336         * lib/wmemset.c: New file.
5337         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5338         * m4/wmemset.m4: New file.
5339         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5340         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5341         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5342         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5343         * doc/posix-functions/wmemset.texi: Mention the new module.
5344
5345 2011-02-05  Bruno Haible  <bruno@clisp.org>
5346
5347         New module 'wmemmove'.
5348         * modules/wmemmove: New file.
5349         * lib/wchar.in.h (wmemmove): New declaration.
5350         * lib/wmemmove.c: New file.
5351         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5352         * m4/wmemmove.m4: New file.
5353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5355         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5356         HAVE_WMEMMOVE.
5357         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5358         * doc/posix-functions/wmemmove.texi: Mention the new module.
5359
5360 2011-02-05  Bruno Haible  <bruno@clisp.org>
5361
5362         New module 'wmemcpy'.
5363         * modules/wmemcpy: New file.
5364         * lib/wchar.in.h (wmemcpy): New declaration.
5365         * lib/wmemcpy.c: New file.
5366         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5367         * m4/wmemcpy.m4: New file.
5368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5370         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5371         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5372         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5373
5374 2011-02-05  Bruno Haible  <bruno@clisp.org>
5375
5376         New module 'wmemcmp'.
5377         * modules/wmemcmp: New file.
5378         * lib/wchar.in.h (wmemcmp): New declaration.
5379         * lib/wmemcmp.c: New file.
5380         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5381         * m4/wmemcmp.m4: New file.
5382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5384         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5385         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5386         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5387
5388 2011-02-07  Jim Meyering  <meyering@redhat.com>
5389
5390         di-set, ino-map: new modules, from coreutils
5391         * lib/di-set.c: New file.
5392         * lib/di-set.h: Likewise.
5393         * lib/ino-map.c: Likewise.
5394         * lib/ino-map.h: Likewise.
5395         * modules/di-set: Likewise.
5396         * modules/di-set-tests: Likewise.
5397         * modules/ino-map: Likewise.
5398         * modules/ino-map-tests: Likewise.
5399         * tests/test-di-set.c: Likewise.
5400         * tests/test-ino-map.c: Likewise.
5401
5402 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5403
5404         getloadavg: merge minor changes from Emacs
5405
5406         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5407         (getloadavg): Use memset, not bzero.
5408
5409         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5410         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5411         clash (bug#86).
5412
5413 2010-11-14  Bruno Haible  <bruno@clisp.org>
5414
5415         Allow multiple gnulib generated replacements to coexist.
5416         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5417         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5418         * lib/langinfo.in.h (nl_item): Likewise.
5419         * lib/math.in.h (_NaN, NAN): Likewise.
5420         * lib/netdb.in.h (struct addrinfo): Likewise.
5421         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5422         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5423         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5424         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5425         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5426         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5427         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5428         pthread_mutexattr_init, pthread_mutexattr_settype,
5429         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5430         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5431         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5432         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5433         * lib/sched.in.h (struct sched_param): Likewise.
5434         * lib/se-selinux.in.h (security_class_t, security_context_t,
5435         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5436         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5437         lsetfilecon, fsetfilecon, security_check_context,
5438         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5439         Likewise.
5440         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5441         Likewise.
5442         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5443         _gl_function_taking_int_returning_void_t, union sigval,
5444         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5445         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5446         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5447         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5448         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5449         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5450         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5451         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5452         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5453         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5454         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5455         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5456         socklen_t, rpl_fd_isset): Likewise.
5457         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5458         * lib/sys_time.in.h (struct timeval): Likewise.
5459         * lib/sys_times.in.h (struct tms): Likewise.
5460         * lib/sys_utsname.in.h (struct utsname):
5461         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5462         * lib/unistd.in.h (getpagesize): Likewise.
5463         * lib/wchar.in.h (mbstate_t): Likewise.
5464         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5465         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5466         towlower, towupper): Likewise.
5467         Reported by Sam Steingold <sds@gnu.org>.
5468
5469 2011-02-05  Eric Blake  <eblake@redhat.com>
5470
5471         unsetenv: work around Haiku issues
5472         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5473         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5474
5475 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5476
5477         libposix: avoid calling error() within libposix
5478         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5479         is defined.
5480
5481 2011-02-05  Eric Blake  <eblake@redhat.com>
5482
5483         strerror_r-posix: port to cygwin
5484         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5485         implementation.
5486         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5487         * tests/test-strerror_r.c (main): Fix test.
5488         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5489         issue.
5490
5491 2011-02-05  Bruno Haible  <bruno@clisp.org>
5492
5493         New module 'wmemchr'.
5494         * modules/wmemchr: New file.
5495         * lib/wchar.in.h (wmemchr): New declaration.
5496         * lib/wmemchr.c: New file.
5497         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5498         * m4/wmemchr.m4: New file.
5499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5501         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5502         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5503         * doc/posix-functions/wmemchr.texi: Mention the new module.
5504
5505 2011-02-04  Eric Blake  <eblake@redhat.com>
5506
5507         fdopendir: detect FreeBSD bug
5508         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5509         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5510
5511 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5512
5513         stdbool: do not define HAVE_STDBOOL_H
5514         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5515         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5516         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5517         imported from the latest Autoconf git.  It was motivated by Emacs,
5518         which uses gnulib but does not need HAVE_STDBOOL_H.
5519
5520 2011-02-04  Bruno Haible  <bruno@clisp.org>
5521
5522         wcsnrtombs: Prepare for new module wwcsnrtombs.
5523         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5524         * lib/wcsnrtombs.c: Include it.
5525         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5526
5527         wcsrtombs: Prepare for new module wwcsrtombs.
5528         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5529         * lib/wcsrtombs.c: Include it.
5530         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5531
5532         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5533         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5534         * lib/mbsnrtowcs.c: Include it.
5535         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5536
5537         mbsrtowcs: Prepare for new module mbsrtowwcs.
5538         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5539         * lib/mbsrtowcs.c: Include it.
5540         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5541
5542 2011-02-04  Bruno Haible  <bruno@clisp.org>
5543
5544         vasnprintf: Reduce use of malloc for small format strings.
5545         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5546         (arguments): Add room for the first 7 arguments.
5547         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5548         (char_directives, u8_directives, u16_directives, u32_directives): Add
5549         room for the first 7 directives.
5550         * lib/printf-parse.c: Include <string.h>.
5551         (PRINTF_PARSE): Change memory handling code so that it uses the first
5552         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5553         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5554         Reported by Pádraig Brady <P@draigbrady.com>.
5555
5556 2011-01-31  Eric Blake  <eblake@redhat.com>
5557
5558         dup2: work around Haiku bug
5559         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5560         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5561         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5562         * tests/test-dup2.c (main): Enhance test.
5563
5564 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5565
5566         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5567         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5568         declared by eglibc 2.11.2.
5569         * lib/stdio.in.h: Likewise.
5570
5571 2011-01-31  Eric Blake  <eblake@redhat.com>
5572
5573         ignore-value: add missing test dependency
5574         * tests/test-ignore-value.c: Revert previous change; stdio.h
5575         provides off_t.
5576         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5577
5578 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5579
5580         mktime: clarify long_int width checking
5581         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5582         the top level, to make it clearer that the assumption about
5583         long_int width is being checked.  See
5584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5585
5586 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5587
5588         ignore-value: Fix self-test.
5589         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5590
5591 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5592
5593         TYPE_MAXIMUM: avoid theoretically undefined behavior
5594         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5595         negative number, which the C Standard says has undefined behavior.
5596         In practice this is not a problem, but might as well do it by the book.
5597         Reported by Rich Felker and Eric Blake; see
5598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5599         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5600         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5602         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5604         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5605
5606         mktime: #undef mktime before #defining it
5607         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5608
5609         mktime: systematically normalize tm_isdst comparisons
5610         * lib/mktime.c (isdst_differ): New function.
5611         (__mktime_internal): Use it systematically for all isdst comparisons.
5612         This completes the fix for libc BZ #6723, and removes the need for
5613         normalizing tm_isdst.  See
5614         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5615         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5616
5617         mktime: fix some integer overflow issues and sidestep the rest
5618
5619         This was prompted by a bug report by Benjamin Lindner for MinGW
5620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5621         His bug is due to signed integer overflow (0 - INT_MIN), and I
5622         I scanned through mktime.c looking for other integer overflow
5623         problems, fixing all the bugs I found.
5624
5625         Although the C Standard says the resulting code is still not safe
5626         in the presence of integer overflow, in practice it should be good
5627         enough for all real-world two's-complement implementations, except
5628         for debugging environments that deliberately trap on integer
5629         overflow (e.g., gcc -ftrapv).
5630
5631         * lib/mktime.c (WRAPV): New macro.
5632         (SHR): Also check that long_int and time_t shift right in the
5633         usual way, before using the fast-but-unportable method.
5634         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5635         used.  The code already assumed two's complement, so there's
5636         no need to test for alternatives.  All uses removed.
5637         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5638         the C standard.  Problem reported by Rich Felker in
5639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5640         (twos_complement_arithmetic): Also check long_int and time_t.
5641         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5642         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5643         (__mktime_internal): Avoid integer overflow with unary subtraction
5644         in two instances where -1 - X is an adequate replacement for -X,
5645         since the calculations are approximate.
5646
5647 2011-01-29  Eric Blake  <eblake@redhat.com>
5648
5649         mktime: avoid infinite loop
5650         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5651         type; behavior is still undefined but portable to all known targets.
5652         Reported by Rich Felker.
5653
5654 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5655
5656         rename, unlink, same-inode: Relicense.
5657         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5658         * modules/unlink (License): Likewise.
5659         * modules/same-inode (License): Likewise.
5660
5661 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5662
5663         mktime: avoid problems on NetBSD 5 / i386
5664         * lib/mktime.c (long_int): New type.  This works around a problem
5665         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5666         but time_t is 64 bits, and where I expect the existing code is
5667         wrong in some cases.
5668         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5669         (ydhms_diff): Bring back the compile-time check for wide-enough
5670         year and yday.
5671
5672         mktime: fix misspelling in comment
5673         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5674         This merges all recent glibc changes of importance.
5675
5676 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5677
5678         move-if-change: cope with concurrent mv of identical file.
5679         * build-aux/move-if-change (CMPPROG): Accept environment
5680         variable as an override for `cmp'.
5681         (usage): Document CMPPROG.
5682         Adjust comparison to drop stdout.  Cope with failure of mv if
5683         the target file exists and is identical to the source, for
5684         parallel builds.
5685         Report from H.J. Lu against binutils in PR binutils/12283.
5686
5687 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5688
5689         * users.txt: Mention sharutils.
5690
5691 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5692
5693         * users.txt: Mention OATH Toolkit.
5694
5695 2011-01-27  Bruno Haible  <bruno@clisp.org>
5696
5697         Prepare for supporting FreeBSD 10.
5698         * build-aux/config.libpath: Remove handling of freebsd1*.
5699
5700 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5701
5702         Prepare for supporting FreeBSD 10.
5703         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5704         match FreeBSD 10.0.
5705
5706 2011-01-27  Bruno Haible  <bruno@clisp.org>
5707
5708         vma-iter, get-rusage-as: Add OpenBSD support.
5709         * modules/vma-iter (configure.ac): Test for mquery.
5710         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5711         * lib/vma-iter.c: Include <sys/mman.h>.
5712         (vma_iterate): Add an implementation based on mquery().
5713         * lib/resource-ext.h (get_rusage_as): Update comments.
5714         * lib/get-rusage-as.c: Likewise.
5715         * lib/get-rusage-data.c: Likewise.
5716
5717 2011-01-26  Karl Berry  <karl@gnu.org>
5718
5719         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5720         variables to make it easier to override the makeinfo program used.
5721
5722 2011-01-26  Eric Blake  <eblake@redhat.com>
5723
5724         fcntl: work around Haiku F_DUPFD bugs
5725         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5726         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5727         cloexec bit on duplication.
5728         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5729
5730 2011-01-26  Bruno Haible  <bruno@clisp.org>
5731
5732         Enable memory leak tests on AIX.
5733         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5734         * tests/test-fprintf-posix3.c (main): Likewise.
5735
5736 2011-01-26  Bruno Haible  <bruno@clisp.org>
5737
5738         Tests for module 'get-rusage-data'.
5739         * modules/get-rusage-data-tests: New file.
5740         * tests/test-get-rusage-data.c: New file.
5741
5742         New module 'get-rusage-data'.
5743         * lib/resource-ext.h (get_rusage_data): New declaration.
5744         * lib/get-rusage-data.c: New file.
5745         * modules/get-rusage-data: New file.
5746
5747 2011-01-25  Bruno Haible  <bruno@clisp.org>
5748
5749         get-rusage-as: Allow for easier testing.
5750         * lib/resource-ext.h (get_rusage_as): Add comment.
5751         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5752         (main): New function for interactive testing.
5753
5754 2011-01-25  Bruno Haible  <bruno@clisp.org>
5755
5756         vma-iter: Treat Haiku like BeOS.
5757         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5758         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5759
5760 2011-01-25  Eric Blake  <eblake@redhat.com>
5761
5762         c-stack: fix regression on cygwin when libsigsegv is present
5763         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5764
5765 2011-01-24  Bruno Haible  <bruno@clisp.org>
5766
5767         vma-iter: Avoid empty intervals.
5768         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5769         on an empty interval.
5770
5771 2011-01-24  Jim Meyering  <meyering@redhat.com>
5772
5773         u64: remove unnecessary #include
5774         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5775
5776 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5777
5778         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5779         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5780
5781 2011-01-23  Bruno Haible  <bruno@clisp.org>
5782
5783         New module 'vma-iter'.
5784         * lib/vma-iter.h: New file.
5785         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5786         * modules/vma-iter: New file.
5787         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5788         for get_rusage_as_via_iterator.
5789         (vma_iterate_callback): New function.
5790         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5791         * modules/get-rusage-as (Depends-on): Add vma-iter.
5792
5793 2011-01-23  Bruno Haible  <bruno@clisp.org>
5794
5795         uninorm: Tweak includes.
5796         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5797         Reported by Jim Meyering.
5798
5799 2011-01-23  Bruno Haible  <bruno@clisp.org>
5800
5801         get-rusage-as: Improve on NetBSD.
5802         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5803         /proc, like on FreeBSD.
5804
5805 2011-01-23  Jim Meyering  <meyering@redhat.com>
5806
5807         xreadlink.h: remove unnecessary #include
5808         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5809
5810         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5811         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5812
5813 2011-01-23  Bruno Haible  <bruno@clisp.org>
5814
5815         get-rusage-as: Fix bug.
5816         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5817         original limit when aborting the first loop.
5818
5819 2011-01-23  Bruno Haible  <bruno@clisp.org>
5820
5821         wctype: Ensure valid C syntax.
5822         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5823         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5824
5825 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5826
5827         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5829         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5830         as they are needed only for configure's test case.
5831         This removes two unnecessary symbols from config.h.
5832
5833         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5834         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5835         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5836         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5837         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5838         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5839         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5840         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5841         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5842         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5843         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5844         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5845         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5846         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5847         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5848         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5849         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5850         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5851
5852 2011-01-21  Eric Blake  <eblake@redhat.com>
5853
5854         maintainer-makefile: work with older git for submodule check
5855         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5856         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5857         Reported by Matthias Bolte.
5858
5859         bootstrap: minor portability fixes
5860         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5861         (usage): Omit leading capital and trailing . on help phrases, per
5862         GNU Coding Standards.
5863         (check_versions, top level): Prefix messages with script name.
5864
5865 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5866
5867         bootstrap: support --no-git option
5868         * build-aux/bootstrap: Add --no-git option, to be used when
5869         --gnulib-srcdir points to the exact desired checkout.
5870
5871 2011-01-21  Eric Blake  <eblake@redhat.com>
5872
5873         strerror_r-posix: work with glibc 2.13
5874         * lib/strerror_r.c (strerror_r): Fix return type.
5875
5876 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5877             Bruno Haible  <bruno@clisp.org>
5878
5879         uN_strstr: New unit tests.
5880         * modules/unistr/u8-strstr-tests: New file.
5881         * modules/unistr/u16-strstr-tests: New file.
5882         * modules/unistr/u32-strstr-tests: New file.
5883         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5884         * tests/unistr/test-u8-strstr.c: New file.
5885         * tests/unistr/test-u16-strstr.c: New file.
5886         * tests/unistr/test-u32-strstr.c: New file.
5887
5888 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5889             Bruno Haible  <bruno@clisp.org>
5890
5891         Make uN_strstr functions O(n) worst-case.
5892         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5893         16-bit and 32-bit unit cases, use the unibyte algorithm from
5894         lib/mbsstr.c.
5895         * lib/unistr/u8-strstr.c: Include <string.h>.
5896         (UNIT_IS_UINT8_T): New macro.
5897         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5898         (U_STRLEN, U_STRNLEN): New macros.
5899         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5900         (U_STRLEN, U_STRNLEN): New macros.
5901         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5902         (configure.ac): Update required libunistring version.
5903         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5904         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5905         malloca.
5906         (configure.ac): Update required libunistring version.
5907         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5908         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5909         malloca.
5910         (configure.ac): Update required libunistring version.
5911
5912 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5913             Bruno Haible  <bruno@clisp.org>
5914
5915         Prepare for faster uN_strstr functions.
5916         * lib/str-kmp.h: Support definable UNITs.
5917         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5918         needle_len argument.
5919         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5920         * lib/mbscasestr.c (mbscasestr): Likewise.
5921
5922 2011-01-21  Pádraig Brady <P@draigBrady.com>
5923
5924         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5925         * tests/test-malloca.c (main): Unset the environment variable
5926         to greatly speed up the test.
5927         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5928         * modules/malloca-tests: Depend on unsetenv.
5929
5930 2011-01-21  Pádraig Brady <P@draigBrady.com>
5931
5932         ignore-value: remove stdint dependency
5933         * lib/ignore-value.h: Remove <stdint.h>
5934         * modules/ignore-value: Remove stdint dependency.
5935
5936 2011-01-21  Jim Meyering  <meyering@redhat.com>
5937
5938         maint.mk: adjust variable name to be consistent with other gl_ vars
5939         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5940         to be lower case.
5941
5942 2011-01-20  Jim Meyering  <meyering@redhat.com>
5943
5944         maint.mk: make "check" depend on public-submodule-commit by default
5945         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5946
5947 2011-01-20  Bruno Haible  <bruno@clisp.org>
5948
5949         mbfile, mbiter: Complete change from 2008-12-21.
5950         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5951         * m4/mbiter.m4 (gl_MBITER): Likewise.
5952
5953 2011-01-20  Jim Meyering  <meyering@redhat.com>
5954
5955         init.sh: insert space between each function name and "()"
5956         * tests/init.sh: Make it a little easier to see that a function's
5957         name is "warn_", and not "warn" when looking at the first part of
5958         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5959
5960 2011-01-20  Jim Meyering  <meyering@redhat.com>
5961
5962         mountlist: clean up code formatting
5963         * lib/mountlist.c (read_file_system_list): Split a long line,
5964         correct bracing style, use NULL in place of "(struct statfs *)0",
5965         don't parenthesize return value, add spaces around "=" and after
5966         ";-in-for-stmt".
5967
5968 2011-01-14  Markus Duft <mduft@gentoo.org>
5969
5970         mountlist: add support for Interix
5971         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5972         Apply statvfs to all entries of /dev/fs.
5973         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5974         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5975
5976 2011-01-20  Jim Meyering  <meyering@redhat.com>
5977
5978         maint.mk: improve the public-submodule-commit rule
5979         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5980         to suppress printing of its commands... unless V=1.
5981         Add git submodule's --quiet option to suppress printing of e.g.,
5982         "Entering gnulib" output.
5983         "cd" into $(srcdir) before running git submodule.
5984
5985 2011-01-20  Bruno Haible  <bruno@clisp.org>
5986
5987         include_next: Fix bug introduced on 2011-01-18.
5988         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5989         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5990         ac_cv_header_... variable if the second argument is not 'check'.
5991         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5992         gl_NEXT_HEADERS_INTERNAL.
5993
5994 2011-01-20  Bruno Haible  <bruno@clisp.org>
5995
5996         Allow the user to avoid the GNULIB_TEST_* macros.
5997         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5998         Suggested by Paul Eggert.
5999
6000 2011-01-14  Jim Meyering  <meyering@redhat.com>
6001
6002         bootstrap: avoid failure when there is no .gitmodules file
6003         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6004         has been assigned to, even when its value is the empty string.
6005         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6006         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6007         Reported by John W. Eaton <jwe@gnu.org>.
6008
6009 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6010
6011         assume <ctype.h>, ..., <time.h> exist
6012         For years gnulib has been assuming the existence of the headers
6013         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6014         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6015         them, since they don't appear to be needed.
6016         * README (Portability guidelines): Document this.
6017         * lib/flock.c: Assume <fcntl.h> exists.
6018         * lib/regex_internal.h: Assume <locale.h> exists.
6019         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6020         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6021         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6022         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6023         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6024         * m4/regex.m4 (gl_REGEX): Likewise.
6025         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6026         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6027         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6028         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6029         * tests/test-argp.c: Likewise.
6030         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6031
6032         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6033         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6034         AA_APPLE_UNIVERSAL_BUILD.  See
6035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6036         * NEWS: Document this.
6037
6038 2011-01-19  Eric Blake  <eblake@redhat.com>
6039
6040         c-stack: assume stack overflow if SA_SIGINFO unsupported
6041         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6042         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6043         sigaction will work.
6044         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6045         behavior match Linux.
6046         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6047
6048         stdbool-tests: accomodate Haiku
6049         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6050
6051         binary-io: fix O_TEXT on Haiku
6052         * modules/binary-io (Depends-on): Add fcntl-h.
6053         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6054         than blindly undefining O_TEXT.
6055         Reported by Scott McCreary.
6056
6057 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6058
6059         include_next: do not check for standard headers like stddef.h
6060
6061         I found this problem when modifying Emacs to use gnulib.
6062         I noticed that it added HAVE_STDDEF_H to config.h, even though
6063         gnulib always assumes <stddef.h> exists as per README and this
6064         symbol is unnecessary.
6065         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6066         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6067         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6068         faster for headers like stddef.h that are known to exist.
6069         (gl_CHECK_NEXT_HEADERS): Use it.
6070         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6071         rather than gl_CHECK_NEXT_HEADERS.
6072         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6073         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6074
6075 2011-01-18  Eric Blake  <eblake@redhat.com>
6076
6077         ansi-c++-opt: skip C++ dependency style if C++ is unused
6078         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6079         tests when we know C++ compilation is not desired.
6080         Reported by Scott McCreary.
6081
6082 2011-01-18  Bruno Haible  <bruno@clisp.org>
6083
6084         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6085         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6086         (main): Perform test also when getrlimit and setrlimit don't exist or
6087         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6088         limiting the address space size using setrlimit, compare the address
6089         space size before and after the the test.
6090         * tests/test-dprintf-posix2.c: Likewise.
6091         * tests/test-fprintf-posix3.sh: Update skip messages.
6092         * tests/test-dprintf-posix2.sh: Likewise.
6093         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6094         * modules/dprintf-posix-tests (Depends-on): Likewise.
6095         Reported by Bruce Korb <bkorb@gnu.org> and
6096         Gary V. Vaughan <gary@gnu.org>.
6097
6098 2011-01-18  Bruno Haible  <bruno@clisp.org>
6099
6100         get-rusage-as: Improvement for Cygwin.
6101         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6102         areas that are merely reserved.
6103
6104 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6105
6106         strftime: remove dependencies on multibyte modules
6107
6108         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6109         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6110         only if __osf__ is defined, and I suspect OSF doesn't need these
6111         other modules.  If my guess is wrong, we'll need to come up with a
6112         variant of strftime that doesn't need the multibyte modules.
6113
6114         I discovered this problem when attempting modify Emacs to use the
6115         strftime module.  With the previous gnulib, this caused Emacs to
6116         need 31 new files, ranging from lib/config.charset to
6117         m4/wint_t.m4.  This was overkill and I expect would be offputting
6118         to the Emacs maintainers.  After this change, only 6 new files are
6119         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6120         stdbool.m4, and tm_gmtoff.m4.
6121
6122         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6123         Suggested by Bruno Haible in
6124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6125         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6126         and do not check for wchar.h.
6127         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6128         (Depends-on): Remove mbrlen, mbsinit, wchar.
6129
6130 2011-01-18  Bruno Haible  <bruno@clisp.org>
6131
6132         Tests for module 'get-rusage-as'.
6133         * modules/get-rusage-as-tests: New file.
6134         * tests/test-get-rusage-as.c: New file.
6135
6136         New module 'get-rusage-as'.
6137         * modules/get-rusage-as: New file.
6138         * lib/resource-ext.h: New file.
6139         * lib/get-rusage-as.c: New file.
6140
6141 2011-01-17  Eric Blake  <eblake@redhat.com>
6142
6143         sigaction: relax license from LGPLv3+ to LGPLv2+
6144         * modules/sigaction (License): Relax to LGPLv2+.
6145
6146 2011-01-14  Bruno Haible  <bruno@clisp.org>
6147
6148         filemode: Make function declarations usable in C++ mode.
6149         * lib/filemode.h: Enclose function declarations in extern "C" block.
6150         Reported by John W. Eaton <jwe@gnu.org>.
6151
6152 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6153
6154         save-cwd: no longer include "xgetcwd.h"
6155         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6156         This avoids a compilation failure in projects that use save-cwd
6157         without also using the xgetcwd module.
6158
6159 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6160
6161         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6162         This is so that a program like Emacs, which needs only dtoastr,
6163         does not have to bother with distributing and compiling ftoastr
6164         and ldtoastr.
6165         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6166         * modules/dtoastr, modules/ldtoastr: New files.
6167         * modules/ftoastr: Now works just for 'float'.
6168         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6169         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6170         dtoastr.c, ldtoastr.c.
6171
6172 2011-01-11  Jim Meyering  <meyering@redhat.com>
6173
6174         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6175         There is no need to work around the lack of the fchdir function,
6176         since gnulib can now provide a replacement when required.
6177         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6178         * modules/save-cwd (Depends-on): Add fchdir.
6179
6180 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6181
6182         openat, save-cwd: avoid xmalloc
6183
6184         This removes a direct (but undocumented) dependency of openat on
6185         xalloc, along with an indirect dependency via save-cwd.  It also
6186         removes a dependency of save-cwd on xgetcwd, and thereby
6187         indirectly on xalloc.  This change causes the openat substitute
6188         to fall back on save_cwd when memory is tight, and for save_cwd to
6189         fail instead of dying when memory is tight, but that's good enough.
6190         Problem and initial idea for fix reported by Bastien Roucaries in
6191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6192
6193         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6194         xalloc.h (for xmalloc).
6195         (openat_proc_name): Use malloc, not xmalloc.
6196         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6197         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6198
6199         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6200         This avoids heap allocation for file names whose lengths are in
6201         the range 512..1023, with the upper bound increasing to at most
6202         4031 depending on the platform's PATH_MAX.  (We do not want
6203         pathmax.h here as it might supply a non-constant PATH_MAX.)
6204         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6205         Perhaps they should be moved to malloca.h?
6206         (OPENAT_BUFFER_SIZE): Use them.
6207
6208 2011-01-10  Bruno Haible  <bruno@clisp.org>
6209
6210         doc: Update users.txt.
6211         * users.txt: Add recutils.
6212
6213 2011-01-09  Karl Berry  <karl@gnu.org>
6214
6215         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6216
6217         * doc/configmake.texi: New file.
6218         * doc/gnulib.texi: Include it.
6219         * modules/configmake: Move documentation from here.
6220
6221 2011-01-09  Bruno Haible  <bruno@clisp.org>
6222
6223         Update to Unicode 6.0.0.
6224         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6225         (get_lbp): Update for Unicode 6.0.0.
6226         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6227         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6228         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6229         U+11001, U+11038..U+11046. Remove U+06DE.
6230         (uc_width): Fix bounds of planes.
6231         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6232         lib/uniwidth/width.c.
6233         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6234         trailing whitespace removed.
6235         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6236         without comments, but with the original copyright notice.
6237         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6238         * lib/unicase/ignorable.h: Likewise.
6239         * lib/unicase/tocasefold.h: Likewise.
6240         * lib/unicase/tolower.h: Likewise.
6241         * lib/unicase/totitle.h: Likewise.
6242         * lib/unicase/toupper.h: Likewise.
6243         * lib/unictype/bidi_of.h: Likewise.
6244         * lib/unictype/blocks.h: Likewise.
6245         * lib/unictype/categ_C.h: Likewise.
6246         * lib/unictype/categ_Cn.h: Likewise.
6247         * lib/unictype/categ_L.h: Likewise.
6248         * lib/unictype/categ_Ll.h: Likewise.
6249         * lib/unictype/categ_Lm.h: Likewise.
6250         * lib/unictype/categ_Lo.h: Likewise.
6251         * lib/unictype/categ_Lu.h: Likewise.
6252         * lib/unictype/categ_M.h: Likewise.
6253         * lib/unictype/categ_Mc.h: Likewise.
6254         * lib/unictype/categ_Me.h: Likewise.
6255         * lib/unictype/categ_Mn.h: Likewise.
6256         * lib/unictype/categ_N.h: Likewise.
6257         * lib/unictype/categ_Nd.h: Likewise.
6258         * lib/unictype/categ_No.h: Likewise.
6259         * lib/unictype/categ_P.h: Likewise.
6260         * lib/unictype/categ_Po.h: Likewise.
6261         * lib/unictype/categ_S.h: Likewise.
6262         * lib/unictype/categ_Sc.h: Likewise.
6263         * lib/unictype/categ_Sk.h: Likewise.
6264         * lib/unictype/categ_Sm.h: Likewise.
6265         * lib/unictype/categ_So.h: Likewise.
6266         * lib/unictype/categ_of.h: Likewise.
6267         * lib/unictype/combining.h: Likewise.
6268         * lib/unictype/ctype_alnum.h: Likewise.
6269         * lib/unictype/ctype_alpha.h: Likewise.
6270         * lib/unictype/ctype_graph.h: Likewise.
6271         * lib/unictype/ctype_lower.h: Likewise.
6272         * lib/unictype/ctype_print.h: Likewise.
6273         * lib/unictype/ctype_punct.h: Likewise.
6274         * lib/unictype/ctype_upper.h: Likewise.
6275         * lib/unictype/decdigit.h: Likewise.
6276         * lib/unictype/digit.h: Likewise.
6277         * lib/unictype/numeric.h: Likewise.
6278         * lib/unictype/pr_alphabetic.h: Likewise.
6279         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6280         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6281         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6282         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6283         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6284         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6285         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6286         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6287         * lib/unictype/pr_case_ignorable.h: Likewise.
6288         * lib/unictype/pr_cased.h: Likewise.
6289         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6290         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6291         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6292         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6293         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6294         * lib/unictype/pr_combining.h: Likewise.
6295         * lib/unictype/pr_composite.h: Likewise.
6296         * lib/unictype/pr_currency_symbol.h: Likewise.
6297         * lib/unictype/pr_decimal_digit.h: Likewise.
6298         * lib/unictype/pr_deprecated.h: Likewise.
6299         * lib/unictype/pr_format_control.h: Likewise.
6300         * lib/unictype/pr_grapheme_base.h: Likewise.
6301         * lib/unictype/pr_grapheme_extend.h: Likewise.
6302         * lib/unictype/pr_grapheme_link.h: Likewise.
6303         * lib/unictype/pr_id_continue.h: Likewise.
6304         * lib/unictype/pr_id_start.h: Likewise.
6305         * lib/unictype/pr_ideographic.h: Likewise.
6306         * lib/unictype/pr_lowercase.h: Likewise.
6307         * lib/unictype/pr_math.h: Likewise.
6308         * lib/unictype/pr_numeric.h: Likewise.
6309         * lib/unictype/pr_other_alphabetic.h: Likewise.
6310         * lib/unictype/pr_other_id_continue.h: Likewise.
6311         * lib/unictype/pr_other_math.h: Likewise.
6312         * lib/unictype/pr_punctuation.h: Likewise.
6313         * lib/unictype/pr_sentence_terminal.h: Likewise.
6314         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6315         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6316         * lib/unictype/pr_unified_ideograph.h: Likewise.
6317         * lib/unictype/pr_uppercase.h: Likewise.
6318         * lib/unictype/pr_xid_continue.h: Likewise.
6319         * lib/unictype/pr_xid_start.h: Likewise.
6320         * lib/unictype/scripts.h: Likewise.
6321         * lib/unictype/scripts_byname.gperf: Likewise.
6322         * lib/unictype/sy_java_ident.h: Likewise.
6323         * lib/unigbrk/gbrkprop.h: Likewise.
6324         * lib/unilbrk/lbrkprop1.h: Likewise.
6325         * lib/unilbrk/lbrkprop2.h: Likewise.
6326         * lib/uninorm/decomposition-table2.h: Likewise.
6327         * lib/uniwbrk/wbrkprop.h: Likewise.
6328         * tests/unicase/test-cased.c: Likewise.
6329         * tests/unicase/test-ignorable.c: Likewise.
6330         * tests/unicase/test-uc_tolower.c: Likewise.
6331         * tests/unicase/test-uc_totitle.c: Likewise.
6332         * tests/unicase/test-uc_toupper.c: Likewise.
6333         * tests/unictype/test-categ_C.c: Likewise.
6334         * tests/unictype/test-categ_Cn.c: Likewise.
6335         * tests/unictype/test-categ_L.c: Likewise.
6336         * tests/unictype/test-categ_Ll.c: Likewise.
6337         * tests/unictype/test-categ_Lm.c: Likewise.
6338         * tests/unictype/test-categ_Lo.c: Likewise.
6339         * tests/unictype/test-categ_Lu.c: Likewise.
6340         * tests/unictype/test-categ_M.c: Likewise.
6341         * tests/unictype/test-categ_Mc.c: Likewise.
6342         * tests/unictype/test-categ_Me.c: Likewise.
6343         * tests/unictype/test-categ_Mn.c: Likewise.
6344         * tests/unictype/test-categ_N.c: Likewise.
6345         * tests/unictype/test-categ_Nd.c: Likewise.
6346         * tests/unictype/test-categ_No.c: Likewise.
6347         * tests/unictype/test-categ_P.c: Likewise.
6348         * tests/unictype/test-categ_Po.c: Likewise.
6349         * tests/unictype/test-categ_S.c: Likewise.
6350         * tests/unictype/test-categ_Sc.c: Likewise.
6351         * tests/unictype/test-categ_Sk.c: Likewise.
6352         * tests/unictype/test-categ_Sm.c: Likewise.
6353         * tests/unictype/test-categ_So.c: Likewise.
6354         * tests/unictype/test-ctype_alnum.c: Likewise.
6355         * tests/unictype/test-ctype_alpha.c: Likewise.
6356         * tests/unictype/test-ctype_graph.c: Likewise.
6357         * tests/unictype/test-ctype_lower.c: Likewise.
6358         * tests/unictype/test-ctype_print.c: Likewise.
6359         * tests/unictype/test-ctype_punct.c: Likewise.
6360         * tests/unictype/test-ctype_upper.c: Likewise.
6361         * tests/unictype/test-decdigit.h: Likewise.
6362         * tests/unictype/test-digit.h: Likewise.
6363         * tests/unictype/test-numeric.h: Likewise.
6364         * tests/unictype/test-pr_alphabetic.c: Likewise.
6365         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6366         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6367         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6368         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6369         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6370         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6371         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6372         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6373         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6374         * tests/unictype/test-pr_cased.c: Likewise.
6375         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6376         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6377         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6378         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6379         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6380         * tests/unictype/test-pr_combining.c: Likewise.
6381         * tests/unictype/test-pr_composite.c: Likewise.
6382         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6383         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6384         * tests/unictype/test-pr_deprecated.c: Likewise.
6385         * tests/unictype/test-pr_format_control.c: Likewise.
6386         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6387         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6388         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6389         * tests/unictype/test-pr_id_continue.c: Likewise.
6390         * tests/unictype/test-pr_id_start.c: Likewise.
6391         * tests/unictype/test-pr_ideographic.c: Likewise.
6392         * tests/unictype/test-pr_lowercase.c: Likewise.
6393         * tests/unictype/test-pr_math.c: Likewise.
6394         * tests/unictype/test-pr_numeric.c: Likewise.
6395         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6396         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6397         * tests/unictype/test-pr_other_math.c: Likewise.
6398         * tests/unictype/test-pr_punctuation.c: Likewise.
6399         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6400         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6401         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6402         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6403         * tests/unictype/test-pr_uppercase.c: Likewise.
6404         * tests/unictype/test-pr_xid_continue.c: Likewise.
6405         * tests/unictype/test-pr_xid_start.c: Likewise.
6406         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6407         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6408         changes.
6409         * lib/unictype/categ_Cc.h: Likewise.
6410         * lib/unictype/categ_Cf.h: Likewise.
6411         * lib/unictype/categ_Co.h: Likewise.
6412         * lib/unictype/categ_Cs.h: Likewise.
6413         * lib/unictype/categ_Lt.h: Likewise.
6414         * lib/unictype/categ_Nl.h: Likewise.
6415         * lib/unictype/categ_Pc.h: Likewise.
6416         * lib/unictype/categ_Pd.h: Likewise.
6417         * lib/unictype/categ_Pe.h: Likewise.
6418         * lib/unictype/categ_Pf.h: Likewise.
6419         * lib/unictype/categ_Pi.h: Likewise.
6420         * lib/unictype/categ_Ps.h: Likewise.
6421         * lib/unictype/categ_Z.h: Likewise.
6422         * lib/unictype/categ_Zl.h: Likewise.
6423         * lib/unictype/categ_Zp.h: Likewise.
6424         * lib/unictype/categ_Zs.h: Likewise.
6425         * lib/unictype/ctype_blank.h: Likewise.
6426         * lib/unictype/ctype_cntrl.h: Likewise.
6427         * lib/unictype/ctype_digit.h: Likewise.
6428         * lib/unictype/ctype_space.h: Likewise.
6429         * lib/unictype/ctype_xdigit.h: Likewise.
6430         * lib/unictype/mirror.h: Likewise.
6431         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6432         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6433         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6434         * lib/unictype/pr_bidi_control.h: Likewise.
6435         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6436         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6437         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6438         * lib/unictype/pr_bidi_pdf.h: Likewise.
6439         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6440         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6441         * lib/unictype/pr_dash.h: Likewise.
6442         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6443         * lib/unictype/pr_diacritic.h: Likewise.
6444         * lib/unictype/pr_extender.h: Likewise.
6445         * lib/unictype/pr_hex_digit.h: Likewise.
6446         * lib/unictype/pr_hyphen.h: Likewise.
6447         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6448         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6449         * lib/unictype/pr_ignorable_control.h: Likewise.
6450         * lib/unictype/pr_iso_control.h: Likewise.
6451         * lib/unictype/pr_join_control.h: Likewise.
6452         * lib/unictype/pr_left_of_pair.h: Likewise.
6453         * lib/unictype/pr_line_separator.h: Likewise.
6454         * lib/unictype/pr_logical_order_exception.h: Likewise.
6455         * lib/unictype/pr_non_break.h: Likewise.
6456         * lib/unictype/pr_not_a_character.h: Likewise.
6457         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6458         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6459         * lib/unictype/pr_other_id_start.h: Likewise.
6460         * lib/unictype/pr_other_lowercase.h: Likewise.
6461         * lib/unictype/pr_other_uppercase.h: Likewise.
6462         * lib/unictype/pr_paired_punctuation.h: Likewise.
6463         * lib/unictype/pr_paragraph_separator.h: Likewise.
6464         * lib/unictype/pr_pattern_syntax.h: Likewise.
6465         * lib/unictype/pr_pattern_white_space.h: Likewise.
6466         * lib/unictype/pr_private_use.h: Likewise.
6467         * lib/unictype/pr_quotation_mark.h: Likewise.
6468         * lib/unictype/pr_radical.h: Likewise.
6469         * lib/unictype/pr_soft_dotted.h: Likewise.
6470         * lib/unictype/pr_space.h: Likewise.
6471         * lib/unictype/pr_titlecase.h: Likewise.
6472         * lib/unictype/pr_variation_selector.h: Likewise.
6473         * lib/unictype/pr_white_space.h: Likewise.
6474         * lib/unictype/pr_zero_width.h: Likewise.
6475         * lib/unictype/sy_c_ident.h: Likewise.
6476         * lib/unictype/sy_c_whitespace.h: Likewise.
6477         * lib/unictype/sy_java_whitespace.h: Likewise.
6478         * lib/uninorm/composition-table.gperf: Likewise.
6479         * lib/uninorm/decomposition-table1.h: Likewise.
6480         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6481         LB8.
6482         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6483         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6484         * modules/unictype/*: Bump version number of expected libunistring
6485         version.
6486
6487 2011-01-09  Bruno Haible  <bruno@clisp.org>
6488
6489         Update to Unicode 5.2.0.
6490         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6491         trailing whitespace removed.
6492
6493 2011-01-09  Bruno Haible  <bruno@clisp.org>
6494
6495         New Unicode character properties, from Unicode 5.2.0.
6496         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6497         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6498         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6499         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6500         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6501         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6502         uc_is_property_cased, uc_is_property_case_ignorable,
6503         uc_is_property_changes_when_lowercased,
6504         uc_is_property_changes_when_uppercased,
6505         uc_is_property_changes_when_titlecased,
6506         uc_is_property_changes_when_casefolded,
6507         uc_is_property_changes_when_casemapped): New declarations.
6508         * lib/unictype/pr_byname.gperf: Add the new properties.
6509         * modules/unictype/property-byname (Depends-on): Depend on the new
6510         properties modules.
6511         * modules/unictype/property-all (Depends-on): Likewise.
6512         * MODULES.html.sh (Unicode string functions): Add
6513         unictype/property-case-ignorable, unictype/property-cased,
6514         unictype/property-changes-when-casefolded,
6515         unictype/property-changes-when-casemapped,
6516         unictype/property-changes-when-lowercased,
6517         unictype/property-changes-when-titlecased,
6518         unictype/property-changes-when-uppercased.
6519
6520         New module 'unictype/property-changes-when-casemapped'.
6521         * modules/unictype/property-changes-when-casemapped: New file.
6522         * lib/unictype/pr_changes_when_casemapped.c: New file.
6523         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6524         generated by gen-uni-tables.
6525         * modules/unictype/property-changes-when-casemapped-tests: New file.
6526         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6527         automatically generated by gen-uni-tables.
6528
6529         New module 'unictype/property-changes-when-casefolded'.
6530         * modules/unictype/property-changes-when-casefolded: New file.
6531         * lib/unictype/pr_changes_when_casefolded.c: New file.
6532         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6533         generated by gen-uni-tables.
6534         * modules/unictype/property-changes-when-casefolded-tests: New file.
6535         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6536         automatically generated by gen-uni-tables.
6537
6538         New module 'unictype/property-changes-when-titlecased'.
6539         * modules/unictype/property-changes-when-titlecased: New file.
6540         * lib/unictype/pr_changes_when_titlecased.c: New file.
6541         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6542         generated by gen-uni-tables.
6543         * modules/unictype/property-changes-when-titlecased-tests: New file.
6544         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6545         automatically generated by gen-uni-tables.
6546
6547         New module 'unictype/property-changes-when-uppercased'.
6548         * modules/unictype/property-changes-when-uppercased: New file.
6549         * lib/unictype/pr_changes_when_uppercased.c: New file.
6550         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6551         generated by gen-uni-tables.
6552         * modules/unictype/property-changes-when-uppercased-tests: New file.
6553         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6554         automatically generated by gen-uni-tables.
6555
6556         New module 'unictype/property-changes-when-lowercased'.
6557         * modules/unictype/property-changes-when-lowercased: New file.
6558         * lib/unictype/pr_changes_when_lowercased.c: New file.
6559         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6560         generated by gen-uni-tables.
6561         * modules/unictype/property-changes-when-lowercased-tests: New file.
6562         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6563         automatically generated by gen-uni-tables.
6564
6565         New module 'unictype/property-case-ignorable'.
6566         * modules/unictype/property-case-ignorable: New file.
6567         * lib/unictype/pr_case_ignorable.c: New file.
6568         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6569         by gen-uni-tables.
6570         * modules/unictype/property-case-ignorable-tests: New file.
6571         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6572         generated by gen-uni-tables.
6573
6574         New module 'unictype/property-cased'.
6575         * modules/unictype/property-cased: New file.
6576         * lib/unictype/pr_cased.c: New file.
6577         * lib/unictype/pr_cased.h: New file, automatically generated by
6578         gen-uni-tables.
6579         * modules/unictype/property-cased-tests: New file.
6580         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6581         gen-uni-tables.
6582
6583 2011-01-09  Bruno Haible  <bruno@clisp.org>
6584
6585         Update to Unicode 5.2.0.
6586         * lib/gen-uni-tables.c (output_predicate, output_category,
6587         output_combclass, output_bidi_category, output_decimal_digit_test,
6588         output_decimal_digit, output_digit_test, output_digit,
6589         output_numeric_test, output_numeric, output_mirror, output_scripts,
6590         output_scripts_byname, output_blocks, output_ident_category): Fix
6591         comment header.
6592         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6593         get_wbp.
6594         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6595         items.
6596         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6597         Changes_When_Lowercased, Changes_When_Uppercased,
6598         Changes_When_Titlecased, Changes_When_Casefolded,
6599         Changes_When_Casemapped.
6600         (is_property_alphabetic, is_property_default_ignorable_code_point):
6601         Update for Unicode 5.2.0.
6602         (is_property_cased, is_property_case_ignorable,
6603         is_property_changes_when_lowercased,
6604         is_property_changes_when_uppercased,
6605         is_property_changes_when_titlecased,
6606         is_property_changes_when_casefolded,
6607         is_property_changes_when_casemapped): New functions.
6608         (output_properties): Output also the properties cased, case_ignorable,
6609         changes_when_lowercased, changes_when_uppercased,
6610         changes_when_titlecased, changes_when_casefolded,
6611         changes_when_casemapped.
6612         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6613         Unicode TR#11 revision 17 -> 19.
6614         (LBP_CP): New enumeration value.
6615         (LBP_*): Adjust values accordingly.
6616         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6617         TR#14 revision 22 -> 24.
6618         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6619         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6620         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6621         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6622         is_WBP_MIDLETTER.
6623         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6624         the code1 and code2 of each composition rule.
6625         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6626         * lib/unicase/ignorable.h: Likewise.
6627         * lib/unicase/tocasefold.h: Likewise.
6628         * lib/unicase/tolower.h: Likewise.
6629         * lib/unicase/totitle.h: Likewise.
6630         * lib/unicase/toupper.h: Likewise.
6631         * lib/unictype/bidi_of.h: Likewise.
6632         * lib/unictype/blocks.h: Likewise.
6633         * lib/unictype/categ_C.h: Likewise.
6634         * lib/unictype/categ_Cf.h: Likewise.
6635         * lib/unictype/categ_Cn.h: Likewise.
6636         * lib/unictype/categ_L.h: Likewise.
6637         * lib/unictype/categ_Ll.h: Likewise.
6638         * lib/unictype/categ_Lm.h: Likewise.
6639         * lib/unictype/categ_Lo.h: Likewise.
6640         * lib/unictype/categ_Lu.h: Likewise.
6641         * lib/unictype/categ_M.h: Likewise.
6642         * lib/unictype/categ_Mc.h: Likewise.
6643         * lib/unictype/categ_Mn.h: Likewise.
6644         * lib/unictype/categ_N.h: Likewise.
6645         * lib/unictype/categ_Nd.h: Likewise.
6646         * lib/unictype/categ_Nl.h: Likewise.
6647         * lib/unictype/categ_No.h: Likewise.
6648         * lib/unictype/categ_P.h: Likewise.
6649         * lib/unictype/categ_Pd.h: Likewise.
6650         * lib/unictype/categ_Po.h: Likewise.
6651         * lib/unictype/categ_S.h: Likewise.
6652         * lib/unictype/categ_Sc.h: Likewise.
6653         * lib/unictype/categ_So.h: Likewise.
6654         * lib/unictype/categ_of.h: Likewise.
6655         * lib/unictype/combining.h: Likewise.
6656         * lib/unictype/ctype_alnum.h: Likewise.
6657         * lib/unictype/ctype_alpha.h: Likewise.
6658         * lib/unictype/ctype_graph.h: Likewise.
6659         * lib/unictype/ctype_lower.h: Likewise.
6660         * lib/unictype/ctype_print.h: Likewise.
6661         * lib/unictype/ctype_punct.h: Likewise.
6662         * lib/unictype/ctype_upper.h: Likewise.
6663         * lib/unictype/decdigit.h: Likewise.
6664         * lib/unictype/digit.h: Likewise.
6665         * lib/unictype/numeric.h: Likewise.
6666         * lib/unictype/pr_alphabetic.h: Likewise.
6667         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6668         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6669         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6670         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6671         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6672         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6673         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6674         * lib/unictype/pr_combining.h: Likewise.
6675         * lib/unictype/pr_composite.h: Likewise.
6676         * lib/unictype/pr_currency_symbol.h: Likewise.
6677         * lib/unictype/pr_dash.h: Likewise.
6678         * lib/unictype/pr_decimal_digit.h: Likewise.
6679         * lib/unictype/pr_deprecated.h: Likewise.
6680         * lib/unictype/pr_diacritic.h: Likewise.
6681         * lib/unictype/pr_extender.h: Likewise.
6682         * lib/unictype/pr_grapheme_base.h: Likewise.
6683         * lib/unictype/pr_grapheme_extend.h: Likewise.
6684         * lib/unictype/pr_grapheme_link.h: Likewise.
6685         * lib/unictype/pr_id_continue.h: Likewise.
6686         * lib/unictype/pr_id_start.h: Likewise.
6687         * lib/unictype/pr_ideographic.h: Likewise.
6688         * lib/unictype/pr_ignorable_control.h: Likewise.
6689         * lib/unictype/pr_logical_order_exception.h: Likewise.
6690         * lib/unictype/pr_lowercase.h: Likewise.
6691         * lib/unictype/pr_numeric.h: Likewise.
6692         * lib/unictype/pr_other_alphabetic.h: Likewise.
6693         * lib/unictype/pr_punctuation.h: Likewise.
6694         * lib/unictype/pr_sentence_terminal.h: Likewise.
6695         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6696         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6697         * lib/unictype/pr_unified_ideograph.h: Likewise.
6698         * lib/unictype/pr_uppercase.h: Likewise.
6699         * lib/unictype/pr_xid_continue.h: Likewise.
6700         * lib/unictype/pr_xid_start.h: Likewise.
6701         * lib/unictype/pr_zero_width.h: Likewise.
6702         * lib/unictype/scripts.h: Likewise.
6703         * lib/unictype/scripts_byname.gperf: Likewise.
6704         * lib/unictype/sy_java_ident.h: Likewise.
6705         * lib/unigbrk/gbrkprop.h: Likewise.
6706         * lib/unilbrk/lbrkprop1.h: Likewise.
6707         * lib/unilbrk/lbrkprop2.h: Likewise.
6708         * lib/unilbrk/lbrktables.h: Likewise.
6709         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6710         LBP_CP. Implement rule LB30.
6711         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6712         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6713         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6714         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6715         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6716         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6717         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6718         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6719         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6720         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6721         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6722         bits instead of 16 bits in the code1 and code2 of each composition
6723         rule.
6724         (uc_composition): Update for Unicode 5.2.0.
6725         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6726         * lib/uninorm/decomposition-table2.h: Likewise.
6727         * lib/uniwbrk/wbrkprop.h: Likewise.
6728         * tests/unicase/test-cased.c: Likewise.
6729         * tests/unicase/test-ignorable.c: Likewise.
6730         * tests/unicase/test-uc_tolower.c: Likewise.
6731         * tests/unicase/test-uc_totitle.c: Likewise.
6732         * tests/unicase/test-uc_toupper.c: Likewise.
6733         * tests/unictype/test-categ_C.c: Likewise.
6734         * tests/unictype/test-categ_Cf.c: Likewise.
6735         * tests/unictype/test-categ_Cn.c: Likewise.
6736         * tests/unictype/test-categ_L.c: Likewise.
6737         * tests/unictype/test-categ_Ll.c: Likewise.
6738         * tests/unictype/test-categ_Lm.c: Likewise.
6739         * tests/unictype/test-categ_Lo.c: Likewise.
6740         * tests/unictype/test-categ_Lu.c: Likewise.
6741         * tests/unictype/test-categ_M.c: Likewise.
6742         * tests/unictype/test-categ_Mc.c: Likewise.
6743         * tests/unictype/test-categ_Mn.c: Likewise.
6744         * tests/unictype/test-categ_N.c: Likewise.
6745         * tests/unictype/test-categ_Nd.c: Likewise.
6746         * tests/unictype/test-categ_Nl.c: Likewise.
6747         * tests/unictype/test-categ_No.c: Likewise.
6748         * tests/unictype/test-categ_P.c: Likewise.
6749         * tests/unictype/test-categ_Pd.c: Likewise.
6750         * tests/unictype/test-categ_Po.c: Likewise.
6751         * tests/unictype/test-categ_S.c: Likewise.
6752         * tests/unictype/test-categ_Sc.c: Likewise.
6753         * tests/unictype/test-categ_So.c: Likewise.
6754         * tests/unictype/test-ctype_alnum.c: Likewise.
6755         * tests/unictype/test-ctype_alpha.c: Likewise.
6756         * tests/unictype/test-ctype_graph.c: Likewise.
6757         * tests/unictype/test-ctype_lower.c: Likewise.
6758         * tests/unictype/test-ctype_print.c: Likewise.
6759         * tests/unictype/test-ctype_punct.c: Likewise.
6760         * tests/unictype/test-ctype_upper.c: Likewise.
6761         * tests/unictype/test-decdigit.h: Likewise.
6762         * tests/unictype/test-digit.h: Likewise.
6763         * tests/unictype/test-numeric.h: Likewise.
6764         * tests/unictype/test-pr_alphabetic.c: Likewise.
6765         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6766         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6767         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6768         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6769         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6770         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6771         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6772         * tests/unictype/test-pr_combining.c: Likewise.
6773         * tests/unictype/test-pr_composite.c: Likewise.
6774         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6775         * tests/unictype/test-pr_dash.c: Likewise.
6776         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6777         * tests/unictype/test-pr_deprecated.c: Likewise.
6778         * tests/unictype/test-pr_diacritic.c: Likewise.
6779         * tests/unictype/test-pr_extender.c: Likewise.
6780         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6781         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6782         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6783         * tests/unictype/test-pr_id_continue.c: Likewise.
6784         * tests/unictype/test-pr_id_start.c: Likewise.
6785         * tests/unictype/test-pr_ideographic.c: Likewise.
6786         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6787         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6788         * tests/unictype/test-pr_lowercase.c: Likewise.
6789         * tests/unictype/test-pr_numeric.c: Likewise.
6790         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6791         * tests/unictype/test-pr_punctuation.c: Likewise.
6792         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6793         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6794         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6795         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6796         * tests/unictype/test-pr_uppercase.c: Likewise.
6797         * tests/unictype/test-pr_xid_continue.c: Likewise.
6798         * tests/unictype/test-pr_xid_start.c: Likewise.
6799         * tests/unictype/test-pr_zero_width.c: Likewise.
6800         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6801         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6802         changed behaviour: line breaking is now disallowed between a letter
6803         or '=' and '('.
6804         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6805         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6806         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6807         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6808         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6809         lib/uniwidth/width.c.
6810         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6811         without comments, but with the original copyright notice.
6812         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6813         changes.
6814         * lib/unictype/categ_Cc.h: Likewise.
6815         * lib/unictype/categ_Co.h: Likewise.
6816         * lib/unictype/categ_Cs.h: Likewise.
6817         * lib/unictype/categ_Lt.h: Likewise.
6818         * lib/unictype/categ_Me.h: Likewise.
6819         * lib/unictype/categ_Pc.h: Likewise.
6820         * lib/unictype/categ_Pe.h: Likewise.
6821         * lib/unictype/categ_Pf.h: Likewise.
6822         * lib/unictype/categ_Pi.h: Likewise.
6823         * lib/unictype/categ_Ps.h: Likewise.
6824         * lib/unictype/categ_Sk.h: Likewise.
6825         * lib/unictype/categ_Sm.h: Likewise.
6826         * lib/unictype/categ_Z.h: Likewise.
6827         * lib/unictype/categ_Zl.h: Likewise.
6828         * lib/unictype/categ_Zp.h: Likewise.
6829         * lib/unictype/categ_Zs.h: Likewise.
6830         * lib/unictype/ctype_blank.h: Likewise.
6831         * lib/unictype/ctype_cntrl.h: Likewise.
6832         * lib/unictype/ctype_digit.h: Likewise.
6833         * lib/unictype/ctype_space.h: Likewise.
6834         * lib/unictype/ctype_xdigit.h: Likewise.
6835         * lib/unictype/mirror.h: Likewise.
6836         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6837         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6838         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6839         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6840         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6841         * lib/unictype/pr_bidi_control.h: Likewise.
6842         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6843         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6844         * lib/unictype/pr_bidi_pdf.h: Likewise.
6845         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6846         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6847         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6848         * lib/unictype/pr_format_control.h: Likewise.
6849         * lib/unictype/pr_hex_digit.h: Likewise.
6850         * lib/unictype/pr_hyphen.h: Likewise.
6851         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6852         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6853         * lib/unictype/pr_iso_control.h: Likewise.
6854         * lib/unictype/pr_join_control.h: Likewise.
6855         * lib/unictype/pr_left_of_pair.h: Likewise.
6856         * lib/unictype/pr_line_separator.h: Likewise.
6857         * lib/unictype/pr_math.h: Likewise.
6858         * lib/unictype/pr_non_break.h: Likewise.
6859         * lib/unictype/pr_not_a_character.h: Likewise.
6860         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6861         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6862         * lib/unictype/pr_other_id_continue.h: Likewise.
6863         * lib/unictype/pr_other_id_start.h: Likewise.
6864         * lib/unictype/pr_other_lowercase.h: Likewise.
6865         * lib/unictype/pr_other_math.h: Likewise.
6866         * lib/unictype/pr_other_uppercase.h: Likewise.
6867         * lib/unictype/pr_paired_punctuation.h: Likewise.
6868         * lib/unictype/pr_paragraph_separator.h: Likewise.
6869         * lib/unictype/pr_pattern_syntax.h: Likewise.
6870         * lib/unictype/pr_pattern_white_space.h: Likewise.
6871         * lib/unictype/pr_private_use.h: Likewise.
6872         * lib/unictype/pr_quotation_mark.h: Likewise.
6873         * lib/unictype/pr_radical.h: Likewise.
6874         * lib/unictype/pr_soft_dotted.h: Likewise.
6875         * lib/unictype/pr_space.h: Likewise.
6876         * lib/unictype/pr_titlecase.h: Likewise.
6877         * lib/unictype/pr_variation_selector.h: Likewise.
6878         * lib/unictype/pr_white_space.h: Likewise.
6879         * lib/unictype/sy_c_ident.h: Likewise.
6880         * lib/unictype/sy_c_whitespace.h: Likewise.
6881         * lib/unictype/sy_java_whitespace.h: Likewise.
6882         * modules/uni*/*: Bump version number of expected libunistring version.
6883         Reported by Simon Josefsson.
6884
6885 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6886
6887         useless-if-before-free: fix typo in --help and make the internal,
6888         automatic version date update process work once again.
6889         --help output contained a NUL character instead of the
6890         backslash-zero that was intended.  Also, the "must lie within
6891         the first 8 lines" line is on line 9, and hence not getting
6892         automatically updated.
6893         * build-aux/useless-if-before-free: Fix the former by adding a
6894         backslash, and the latter by condensing the three lines of what-it-does
6895         to a single line, leaving one line of slack for the future.
6896
6897 2011-01-09  Bruno Haible  <bruno@clisp.org>
6898
6899         uniwidth/width: Fix width of U+1D173..U+1D17A.
6900         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6901         symbolic_width, output_width_property_test): New functions.
6902         (main): Invoke output_nonspacing_property, output_width_property_test.
6903         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6904         U+1D173..U+1D17A.
6905         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6906         1.
6907         * modules/uniwidth/*: Bump version number of expected libunistring
6908         version.
6909         * modules/unilbrk/*: Likewise.
6910
6911 2011-01-08  Bruno Haible  <bruno@clisp.org>
6912
6913         uninorm tests: Preserve copyright of Unicode data file.
6914         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6915         Mention modifications.
6916
6917 2011-01-08  Bruno Haible  <bruno@clisp.org>
6918
6919         gen-uni-tables: Prepare for Unicode 5.2.0.
6920         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6921         (debug_output_lbp, output_lbp): Update.
6922
6923 2011-01-08  Bruno Haible  <bruno@clisp.org>
6924
6925         unilbrk: Clarify gen-uni-tables.c code.
6926         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6927         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6928         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6929
6930 2011-01-07  Bruno Haible  <bruno@clisp.org>
6931
6932         strtod: Restore errno when successfully parsing Infinity or NaN.
6933         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6934         restore the original errno.
6935
6936 2011-01-07  Bruno Haible  <bruno@clisp.org>
6937
6938         remove test: Avoid failure on HP-UX 11.
6939         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6940
6941 2011-01-07  Bruno Haible  <bruno@clisp.org>
6942
6943         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6944         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6945         error code.
6946
6947 2011-01-07  Pádraig Brady <P@draigBrady.com>
6948
6949         ignore-value: fixup comments, and add Eric Blake
6950         as an author since he rewrote the macros.
6951         * lib/ignore-value.h (ignore_value):  State that
6952         we now support aggregates.  Also specify exactly
6953         when the GCC warn_unused_result feature was added.
6954
6955 2011-01-06  Eric Blake  <eblake@redhat.com>
6956
6957         ignore-value: support aggregate types
6958         * lib/ignore-value.h (ignore_value): Provide separate gcc
6959         definition.
6960         * modules/ignore-value-tests: New test module.
6961         * tests/test-ignore-value.c: New test.
6962
6963         maint.mk: improve sc_prohibit_strcmp regex
6964         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6965         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6966         definition of STRNEQ.
6967
6968         signal: work around Haiku issue with SIGBUS
6969         * lib/siglist.h: Add comment.
6970         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6971         strsignal's favoring of SIGSEGV.
6972         * tests/test-signal.c (main): Avoid test failure.
6973         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6974         Reported by Scott McCreary.
6975
6976         maint.mk: add pre-release check to ensure submodule commits are public
6977         * top/maint.mk (public-submodule-commit): New rule.
6978         (submodule-checks): New variable.
6979         (alpha beta stable): Depend on the variable.
6980
6981 2011-01-05  Pádraig Brady <P@draigBrady.com>
6982         and Jim Meyering  <meyering@redhat.com>
6983
6984         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6985         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6986         (ATTRIBUTE_DEPRECATED): Define.
6987         (_ignore_case): New function.
6988         (ignore_value): New macro, to replace the old function.
6989         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6990         * modules/ignore-value (Depends-on): Add stdint.
6991
6992 2011-01-04  Eric Blake  <eblake@redhat.com>
6993
6994         doc: regenerate INSTALL
6995         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6996         @firstparagraphindent support, now that autoconf dropped it.
6997         (INSTALL_PRELUDE): Reinstate old macro.
6998         * doc/install.texi: Resync from autoconf.
6999         * doc/INSTALL: Reflect recent autoconf update.
7000         * doc/INSTALL.ISO: Likewise.
7001         * doc/INSTALL.UTF-8: Likewise.
7002         Reported by Karl Berry.
7003
7004 2011-01-04  Bruce Korb  <address@hidden>
7005
7006         git-version-gen: avoid a sub-shell
7007         * build-aux/git-version-gen: Redirect stderr in `...` via
7008         "exec 2>...", rather than via an added sub-shell.
7009
7010 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7011
7012         git-version-gen: use (...) rather than sh -c '...'
7013         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7014         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7015
7016 2011-01-03  Jim Meyering  <meyering@redhat.com>
7017
7018         git-version-gen: convert leading TABs to spaces
7019         * build-aux/git-version-gen: Expand leading TABs.
7020
7021         git-version-gen: handle failed "git rev-list"
7022         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7023         from git and proceeding as if it had succeeded but printed no SHA1
7024         checksums, suppress the diagnostic and handle the failure.
7025         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7026
7027         git-version-gen: include command name in one more diagnostic
7028         * build-aux/git-version-gen: When the required .tarball-version file
7029         was missing or unreadable, you might see the diagnostic from "cat",
7030         but no trace of the name of the invoking script.  Now, you still see
7031         the diagnostic from cat, but also get one from "git-version-gen: ".
7032         Inspired by a patch from Bruce Korb.
7033
7034         update-copyright: adjust test to match changed code
7035         * tests/test-update-copyright.sh: Change test's expected output
7036         to match new actual output.
7037
7038 2011-01-02  Bruno Haible  <bruno@clisp.org>
7039
7040         getlogin_r: Avoid test failure on HP-UX 11.
7041         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7042         ERANGE when the second argument is zero.
7043         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7044         portability problem.
7045
7046 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7047
7048         * build-aux/update-copyright: doc Simon's changes
7049
7050 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7051
7052         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7053         environment variable.
7054
7055 2011-01-02  Bruno Haible  <bruno@clisp.org>
7056
7057         unigbrk: Avoid gcc warnings.
7058         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7059         unused variable.
7060         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7061         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7062         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7063         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7064         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7065         Change type of first argument to 'const char *'.
7066         (main): Remove unused variable.
7067         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7068         type of first argument to 'const char *'.
7069         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7070         Likewise.
7071         (main): Change type of variable 's'.
7072         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7073         to 'int'.
7074
7075 2011-01-02  Bruno Haible  <bruno@clisp.org>
7076
7077         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7078         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7079         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7080         bug.
7081         * lib/pwrite.c: Undo 2010-12-31 patch.
7082         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7083
7084 2011-01-02  Bruno Haible  <bruno@clisp.org>
7085
7086         pread: Fix test whether it works.
7087         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7088
7089 2011-01-02  Bruno Haible  <bruno@clisp.org>
7090
7091         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7092         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7093         ends in "6". Don't require a specific month name. Try also the locale
7094         names found on HP-UX 11 and Solaris 7.
7095
7096 2011-01-02  Bruno Haible  <bruno@clisp.org>
7097
7098         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7099         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7100         C linkage.
7101         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7102
7103 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7104
7105         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7106         for consistency, since the "cluster" term is not used elsewhere.
7107         * lib/unigbrk.in.h: Update name.
7108         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7109         * lib/unigbrk/u16-grapheme-next.c: Update name.
7110         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7111         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7112         * lib/unigbrk/u32-grapheme-next.c: Update name.
7113         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7114         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7115         * lib/unigbrk/u8-grapheme-next.c: Update name.
7116         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7117         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7118         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7119         Suggested by Bruno Haible.
7120
7121 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7122
7123         Remove module 'u8-grapheme-len' as too redundant with
7124         'u8-grapheme-next'.
7125         * modules/unigbrk/u8-grapheme-len: Delete file.
7126         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7127         * lib/unigbrk.in.h: Remove prototype for deleted function.
7128         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7129         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7130
7131         Remove module 'u16-grapheme-len' as too redundant with
7132         'u16-grapheme-next'.
7133         * modules/unigbrk/u16-grapheme-len: Delete file.
7134         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7135         * lib/unigbrk.in.h: Remove prototype for deleted function.
7136         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7137         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7138
7139         Remove module 'u32-grapheme-len' as too redundant with
7140         'u32-grapheme-next'.
7141         * modules/unigbrk/u32-grapheme-len: Delete file.
7142         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7143         * lib/unigbrk.in.h: Remove prototype for deleted function.
7144         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7145         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7146
7147         Suggested by Bruno Haible.
7148
7149 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7150
7151         * unigbrk.in.h: Fix typo: "ben" => "been".
7152         Reported by Bruno Haible.
7153
7154 2011-01-01  Jim Meyering  <meyering@redhat.com>
7155
7156         maint: update almost all copyright ranges to include 2011
7157         Run the new "make update-copyright" rule.
7158
7159 2011-01-01  Jim Meyering  <meyering@redhat.com>
7160
7161         maint: update-copyright: exempt doc/INSTALL*
7162         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7163         since they are generated.  Suggested by Bruno Haible.
7164
7165 2011-01-01  Jim Meyering  <meyering@redhat.com>
7166
7167         maint: refine the update-copyright rule
7168         * Makefile (update-copyright): Also exclude any file that includes
7169         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7170         code that merely generates the comment.
7171
7172 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7173
7174         New module 'u8-grapheme-len'.
7175         * modules/unigbrk/u8-grapheme-len: New file.
7176         * modules/unigbrk/u8-grapheme-len-tests: New file.
7177         * lib/unigbrk.in.h: Add prototype for new function.
7178         * lib/unigbrk/u8-grapheme-len.c: New file.
7179         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7180
7181         New module 'u16-grapheme-len'.
7182         * modules/unigbrk/u16-grapheme-len: New file.
7183         * modules/unigbrk/u16-grapheme-len-tests: New file.
7184         * lib/unigbrk.in.h: Add prototype for new function.
7185         * lib/unigbrk/u16-grapheme-len.c: New file.
7186         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7187
7188         New module 'u32-grapheme-len'.
7189         * modules/unigbrk/u32-grapheme-len: New file.
7190         * modules/unigbrk/u32-grapheme-len-tests: New file.
7191         * lib/unigbrk.in.h: Add prototype for new function.
7192         * lib/unigbrk/u32-grapheme-len.c: New file.
7193         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7194
7195         New module 'u8-grapheme-next'.
7196         * modules/unigbrk/u8-grapheme-next: New file.
7197         * modules/unigbrk/u8-grapheme-next-tests: New file.
7198         * lib/unigbrk.in.h: Add prototype for new function.
7199         * lib/unigbrk/u8-grapheme-next.c: New file.
7200         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7201
7202         New module 'u16-grapheme-next'.
7203         * modules/unigbrk/u16-grapheme-next: New file.
7204         * modules/unigbrk/u16-grapheme-next-tests: New file.
7205         * lib/unigbrk.in.h: Add prototype for new function.
7206         * lib/unigbrk/u16-grapheme-next.c: New file.
7207         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7208
7209         New module 'u32-grapheme-next'.
7210         * modules/unigbrk/u32-grapheme-next: New file.
7211         * modules/unigbrk/u32-grapheme-next-tests: New file.
7212         * lib/unigbrk.in.h: Add prototype for new function.
7213         * lib/unigbrk/u32-grapheme-next.c: New file.
7214         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7215
7216         New module 'u8-grapheme-prev'.
7217         * modules/unigbrk/u8-grapheme-prev: New file.
7218         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7219         * lib/unigbrk.in.h: Add prototype for new function.
7220         * lib/unigbrk/u8-grapheme-prev.c: New file.
7221         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7222
7223         New module 'u16-grapheme-prev'.
7224         * modules/unigbrk/u16-grapheme-prev: New file.
7225         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7226         * lib/unigbrk.in.h: Add prototype for new function.
7227         * lib/unigbrk/u16-grapheme-prev.c: New file.
7228         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7229
7230         New module 'u32-grapheme-prev'.
7231         * modules/unigbrk/u32-grapheme-prev: New file.
7232         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7233         * lib/unigbrk.in.h: Add prototype for new function.
7234         * lib/unigbrk/u32-grapheme-prev.c: New file.
7235         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7236
7237         New module 'u8-grapheme-breaks'.
7238         * modules/unigbrk/u8-grapheme-breaks: New file.
7239         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7240         * lib/unigbrk.in.h: Add prototype for new function.
7241         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7242         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7243
7244         New module 'u16-grapheme-breaks'.
7245         * modules/unigbrk/u16-grapheme-breaks: New file.
7246         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7247         * lib/unigbrk.in.h: Add prototype for new function.
7248         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7249         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7250
7251         New module 'u32-grapheme-breaks'.
7252         * modules/unigbrk/u32-grapheme-breaks: New file.
7253         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7254         * lib/unigbrk.in.h: Add prototype for new function.
7255         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7256         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7257
7258         New module 'ulc-grapheme-breaks'.
7259         * modules/unigbrk/ulc-grapheme-breaks: New file.
7260         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7261         * m4/locale-ar.m4: New file.
7262         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7263         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7264         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7265
7266 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7267
7268         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7269         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7270         modified how this file was generated before I initially submitted
7271         the module, but failed to regenerate it.  This meant that several
7272         of the level2 entries were wrong.
7273         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7274         Remove the division-by-2 that is folded into the table now that
7275         gbrkprop.h has been regenerated properly.  Now -1 entries are
7276         handled correctly.
7277
7278         New module 'unigbrk/uc-gbrk-prop-tests'.
7279         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7280         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7281         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7282         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7283
7284 2011-01-01  Bruno Haible  <bruno@clisp.org>
7285
7286         Avoid use of hexadecimal escapes.
7287         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7288         instead of hexadecimal escapes.
7289
7290 2011-01-01  Jim Meyering  <meyering@redhat.com>
7291
7292         maint: new rule to update copyright year ranges
7293         * Makefile (update-copyright): New rule.
7294
7295         maint: indent with TABs in Makefile
7296         * Makefile: Expand leading sequences of spaces to TABs
7297
7298         version-etc: update the copyright year it reports
7299         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7300
7301 2010-12-31  Bruno Haible  <bruno@clisp.org>
7302
7303         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7304         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7305         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7306         zero.
7307
7308 2010-12-31  Bruno Haible  <bruno@clisp.org>
7309
7310         pwrite: Work around HP-UX 11.11 bug.
7311         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7312         works and set REPLACE_PWRITE if not.
7313         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7314         function.
7315         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7316
7317 2010-12-31  Bruno Haible  <bruno@clisp.org>
7318
7319         pread: Work around HP-UX 11 bugs.
7320         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7321         and set REPLACE_PREAD if not.
7322         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7323
7324 2010-12-31  Eric Blake  <eblake@redhat.com>
7325
7326         nl_langinfo: fix YESEXPR on Irix 6.5
7327         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7328         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7329         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7330         it.
7331
7332 2010-12-31  Bruno Haible  <bruno@clisp.org>
7333
7334         iconv: Document HP-UX 11 bug.
7335         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7336
7337 2010-12-31  Bruno Haible  <bruno@clisp.org>
7338
7339         ldexpl: Fix link error on HP-UX 11.
7340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7341         LDEXPL_LIBM, using $ISNANL_LIBM.
7342
7343 2010-12-31  Eric Blake  <eblake@redhat.com>
7344
7345         ftello: avoid compilation failure with SunStudio c89
7346         * lib/ftello.c (ftello): Use lseek, not llseek.
7347
7348         tests: avoid failing coreutils tests on cygwin
7349         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7350         (create_exe_shims_): Return 0 when skipping.
7351
7352 2010-12-31  Bruno Haible  <bruno@clisp.org>
7353
7354         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7355         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7356
7357 2010-12-31  Bruno Haible  <bruno@clisp.org>
7358
7359         waitpid: Fix link error in C++ mode.
7360         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7361
7362 2010-12-31  Bruno Haible  <bruno@clisp.org>
7363
7364         isnan: Use GCC built-ins when possible.
7365         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7366         __builtin_isnan.
7367         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7368         (isnan): Define using GCC built-ins for GCC >= 4.0.
7369
7370 2010-12-31  Bruno Haible  <bruno@clisp.org>
7371
7372         isnand: Fix mistake.
7373         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7374         __builtin_isnand.
7375
7376 2010-12-31  Bruno Haible  <bruno@clisp.org>
7377
7378         open: Avoid C++ error on HP-UX 11.
7379         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7380
7381 2010-12-31  Bruno Haible  <bruno@clisp.org>
7382
7383         time_r: Add missing declarations on HP-UX 11.
7384         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7385         instead of HAVE_LOCALTIME_R.
7386         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7387         HAVE_LOCALTIME_R always.
7388         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7389         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7390         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7391         HAVE_LOCALTIME_R.
7392         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7393         * doc/posix-functions/localtime_r.texi: Likewise.
7394
7395 2010-12-29  Eric Blake  <eblake@redhat.com>
7396
7397         mountlist: tweak previous commit
7398         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7399         Reported by Paul Eggert.
7400
7401         mountlist: fix local drive detection on cygwin
7402         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7403         that works for cygwin.
7404
7405 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7406
7407         ftoastr, snprintf: ftoastr + snprintf module
7408         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7409         since the snprintf module now should be good enough here.
7410         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7411         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7412         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7413         GNULIB_SNPRINTF only for the test directory, and the latter
7414         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7415         seems to suffice by itself.
7416
7417 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7418
7419         alloca: one step towards thread-safety
7420         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7421         need for a static variable.  All callers changed.  This does not
7422         make the alloca replacement thread-safe, but it's one step.
7423
7424         tests: minor indenting change
7425         * tests/init.sh: Sync from coreutils housekeeping patch
7426         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7427         to keep lines within 80 columns.
7428
7429 2010-12-28  Jim Meyering  <meyering@redhat.com>
7430
7431         regex: don't infloop on persistent failing calloc
7432         * lib/regexec.c (build_trtable): Return failure indication upon
7433         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7434         In glibc, this was fixed for version 2.13:
7435         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7436
7437 2010-12-28  Bruno Haible  <bruno@clisp.org>
7438             Paul Eggert <eggert@cs.ucla.edu>
7439
7440         linkat: Make implementation robust against system behaviour variations.
7441         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7442         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7443         way, and to -2 if it needs a generic runtime test.
7444         * lib/linkat.c (solaris_optimized_link_immediate,
7445         solaris_optimized_link_follow): New functions.
7446         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7447         (check_same_link): Use it.
7448
7449 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7450
7451         New module 'unigbrk/base'.
7452         * modules/unigbrk/base: New file.
7453         * lib/unigbrk.in.h: New file.
7454
7455         New module 'unigbrk/uc-gbrk-prop'.
7456         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7457         * modules/unigbrk/uc-gbrk-prop: New file.
7458         * lib/unigbrk/gbrkprop.h: New file.
7459         * lib/unigbrk/uc-gbrk-prop.c: New file.
7460
7461         New module 'unigbrk/uc-is-grapheme-break'.
7462         * modules/unigbrk/uc-is-grapheme-break: New file.
7463         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7464         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7465         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7466         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7467         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7468
7469         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7470
7471 2010-12-27  Bruno Haible  <bruno@clisp.org>
7472
7473         linkat test: Avoid failure on Solaris 11 2010-11.
7474         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7475
7476 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7477
7478         utimens: work around glibc rounding bug on more platforms
7479         * lib/utimens.c (fdutimens): Work around rounding bug even if
7480         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7481         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7482
7483 2010-12-27  Bruno Haible  <bruno@clisp.org>
7484
7485         select tests: Improve comments.
7486         * tests/test-select.c (do_select): Add comments.
7487
7488 2010-12-27  Bruno Haible  <bruno@clisp.org>
7489
7490         select tests: Safer way of handling timeout.
7491         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7492         at every invocation.
7493
7494 2010-12-27  Bruno Haible  <bruno@clisp.org>
7495
7496         select tests: Use 'bool' where appropriate.
7497         * tests/test-select.c (connect_to_socket): Change argument type to
7498         'bool'.
7499
7500 2010-12-27  Bruno Haible  <bruno@clisp.org>
7501
7502         select tests: Use existing modules.
7503         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7504         (configure.ac): Don't test for unistd.h.
7505         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7506         declared in <unistd.h>.
7507
7508 2010-12-27  Bruno Haible  <bruno@clisp.org>
7509
7510         mbrtowc: Work around a Solaris 7 bug.
7511         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7512         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7513         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7514         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7515         MBRTOWC_NULL_ARG1_BUG.
7516         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7517         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7518         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7519         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7520
7521 2010-12-27  Jim Meyering  <meyering@redhat.com>
7522
7523         read-file.c: tweak syntax
7524         * lib/read-file.c (fread_file): Remove space after "*" in function
7525         definitions.
7526
7527 2010-12-27  Bruno Haible  <bruno@clisp.org>
7528
7529         times test: Avoid gcc warnings on OSF/1.
7530         * tests/test-times.c (main): Cast printf arguments from clock_t to
7531         'long int'.
7532
7533 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7534
7535         utimens: work around glibc rounding bug on older Linux kernels
7536         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7537         on Linux with a glibc whose utimes might not work, then work
7538         around a longstanding glibc bug involving rounding rather than
7539         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7540         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7541
7542 2010-12-26  Bruno Haible  <bruno@clisp.org>
7543
7544         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7545         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7546         _GL_CXXALIAS_SYS.
7547         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7548
7549 2010-12-26  Bruno Haible  <bruno@clisp.org>
7550
7551         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7552         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7553         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7554         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7555         looking for the declaration.
7556         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7557         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7558         problem.
7559         * doc/posix-functions/inet_pton.texi: Likewise.
7560
7561 2010-12-26  Bruno Haible  <bruno@clisp.org>
7562
7563         arpa_inet: Use the common idioms with C++ support.
7564         * lib/arpa_inet.in.h: Include c++defs.h.
7565         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7566         support.
7567         * modules/arpa_inet (Depends-on): Add c++defs.
7568         (Makefile.am): Substitute the contents of c++defs.h.
7569         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7570         * modules/arpa_inet-c++-tests: New file.
7571         * tests/test-arpa_inet-c++.cc: New file.
7572
7573 2010-12-25  Bruno Haible  <bruno@clisp.org>
7574
7575         Fix more C++ link errors on Solaris 8.
7576         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7577         $(LIB_EACCESS).
7578         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7579         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7580         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7581         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7582         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7583
7584 2010-12-25  Bruno Haible  <bruno@clisp.org>
7585
7586         printf-posix: Fix link error when a non-GCC compiler is used.
7587         * lib/stdio.in.h (printf): When not using GCC, override printf
7588         correctly.
7589         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7590
7591 2010-12-25  Bruno Haible  <bruno@clisp.org>
7592
7593         strerror_r-posix: Update doc.
7594         * doc/posix-functions/strerror_r.texi: Update doc about the return
7595         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7596
7597 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7598
7599         utimens: simplify the logic of the previous change
7600         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7601         This should not affect whether the test succeeds or fails.
7602
7603         utimens: configure better on hosts with NFS clock skew
7604         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7605         uses the clock of the local host.  It might use the clock of the
7606         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7608
7609 2010-12-25  Bruno Haible  <bruno@clisp.org>
7610
7611         ptsname test: Avoid failure on Solaris.
7612         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7613         open a pseudo-terminal; don't use BSD-style ptys.
7614         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7615
7616 2010-12-25  Bruno Haible  <bruno@clisp.org>
7617
7618         ptsname: Avoid ERANGE failure on some systems.
7619         * lib/ptsname.c (buffer): Increase size.
7620
7621 2010-12-25  Bruno Haible  <bruno@clisp.org>
7622
7623         rename, renameat: Avoid test failures at NFS mounted locations.
7624         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7625         so that subsequent mkdir calls succeed.
7626
7627 2010-12-25  Bruno Haible  <bruno@clisp.org>
7628
7629         iswblank: Fix C++ link error on Solaris 8.
7630         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7631         _GL_FUNCDECL_SYS.
7632
7633 2010-12-25  Bruno Haible  <bruno@clisp.org>
7634
7635         unistd: Fix C++ link error on Solaris 8.
7636         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7637
7638 2010-12-25  Bruno Haible  <bruno@clisp.org>
7639
7640         readlink doc: Mention an old glibc bug.
7641         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7642
7643 2010-12-25  Bruno Haible  <bruno@clisp.org>
7644
7645         fcntl-h: Fix for use of C++ on glibc systems.
7646         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7647         also on glibc systems in C++ mode.
7648         Reported by Gary V. Vaughan <gary@gnu.org>.
7649
7650 2010-12-25  Bruno Haible  <bruno@clisp.org>
7651
7652         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7653         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7654
7655 2010-12-25  Bruno Haible  <bruno@clisp.org>
7656
7657         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7658         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7659         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7660         test whether truncl works according to ISO C 99 with IEC 60559.
7661         * m4/truncl-ieee.m4: New file.
7662         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7663         m4/signbit.m4.
7664         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7665
7666 2010-12-25  Bruno Haible  <bruno@clisp.org>
7667
7668         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7669         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7670         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7671         test whether ceill works according to ISO C 99 with IEC 60559.
7672         * m4/ceill-ieee.m4: New file.
7673         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7674         m4/signbit.m4.
7675         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7676
7677 2010-12-25  Bruno Haible  <bruno@clisp.org>
7678
7679         Ensure all prerequisites of <wchar.h> are included.
7680         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7681         before <wchar.h>.
7682         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7683         gl_MBRLEN_NUL_RETVAL): Likewise.
7684         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7685         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7686         AC_FUNC_MBRTOWC): Likewise.
7687         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7688         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7689         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7690         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7691         Likewise.
7692         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7693         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7694         (gl_WCHAR_H): Improve comments.
7695         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7696
7697 2010-12-25  Bruno Haible  <bruno@clisp.org>
7698
7699         strtok_r: Fix C syntax error in autoconf macro.
7700         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7701         characters in test program.
7702
7703 2010-12-24  Bruno Haible  <bruno@clisp.org>
7704
7705         ceil, trunc, round: Fix gcc warnings.
7706         * lib/ceil.c (MIN): Undefine before redefining.
7707         * lib/trunc.c (MIN): Likewise.
7708         * lib/round.c (MIN): Likewise.
7709         Include <math.h> first.
7710
7711 2010-12-24  Bruno Haible  <bruno@clisp.org>
7712
7713         select tests: Avoid failures on OSF/1 5.1.
7714         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7715         failure of closing the last socket; it may fail with ECONNRESET.
7716
7717 2010-12-24  Eric Blake  <eblake@redhat.com>
7718
7719         stdint: avoid HP-UX 10.20 preprocessor bug
7720         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7721         than #if.
7722         * tests/test-floor2.c (main): Likewise.
7723         Reported by Peter O'Gorman.
7724
7725         pipe: make obsoletion transition easier
7726         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7727         * modules/pipe (Files): Include revived file.
7728         (Include): Drop reference, to mirror getdate's behavior.
7729
7730 2010-12-24  Bruno Haible  <bruno@clisp.org>
7731
7732         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7733         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7734         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7735         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7736
7737 2010-12-24  Bruno Haible  <bruno@clisp.org>
7738
7739         gethostname: Ensure declaration on NonStop Kernel.
7740         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7741         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7742
7743 2010-12-24  Bruno Haible  <bruno@clisp.org>
7744
7745         sys_select: Ensure all necessary types on NonStop Kernel.
7746         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7747         include <sys/time.h>.
7748         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7749         NonStop Kernel.
7750         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7751
7752 2010-12-24  Bruno Haible  <bruno@clisp.org>
7753
7754         sys_select: Remove unneeded include.
7755         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7756         have <sys/select.h>.
7757
7758 2010-12-24  Bruno Haible  <bruno@clisp.org>
7759
7760         gethostname: Provide a fallback for HOST_NAME_MAX.
7761         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7762         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7763         instead.
7764         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7765
7766 2010-12-24  Bruno Haible  <bruno@clisp.org>
7767
7768         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7769         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7770         (SA_RESTART): Likewise.
7771         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7772
7773 2010-12-24  Bruno Haible  <bruno@clisp.org>
7774
7775         signal: Define NSIG.
7776         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7777         * tests/test-signal.c (nsig): New variable.
7778         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7779
7780 2010-12-24  Bruno Haible  <bruno@clisp.org>
7781
7782         rename, renameat: Avoid test failures on OSF/1 5.1.
7783         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7784         alternative error codes.
7785         * tests/test-renameat.c (main): Likewise.
7786
7787 2010-12-24  Bruno Haible  <bruno@clisp.org>
7788
7789         *printf: Detect large precisions bug on Solaris 10/SPARC.
7790         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7791         by Paul Eggert.
7792         * tests/test-snprintf-posix.h (test_function): Add this test code here
7793         too.
7794         * tests/test-sprintf-posix.h (test_function): Likewise.
7795         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7796         * tests/test-vasprintf-posix.c (test_function): Likewise.
7797         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7798         around by gnulib.
7799         * doc/posix-functions/printf.texi: Likewise.
7800         * doc/posix-functions/snprintf.texi: Likewise.
7801         * doc/posix-functions/sprintf.texi: Likewise.
7802         * doc/posix-functions/vfprintf.texi: Likewise.
7803         * doc/posix-functions/vprintf.texi: Likewise.
7804         * doc/posix-functions/vsnprintf.texi: Likewise.
7805         * doc/posix-functions/vsprintf.texi: Likewise.
7806         * doc/posix-functions/dprintf.texi: Undo last commit.
7807         * doc/posix-functions/vdprintf.texi: Likewise.
7808
7809 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7810
7811         tests: port test-fdutimensat.c to Solaris 8
7812         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7813         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7814         On Solaris 8, it fails with errno == ENOSYS, because there is no
7815         futimens (so it can't use the fd), and there is no lutimens (so it
7816         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7817
7818         vsnprintf: make more consistent with snprintf; doc fixes
7819
7820         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7821         the byte count return problem was promoted from the snprintf-posix
7822         to the snprintf module.
7823         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7824         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7825         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7826         * tests/test-snprintf.c (main): Check the byte count returned.
7827         * tests/test-vsnprintf.c (main): Likewise.
7828
7829 2010-12-23  Eric Blake  <eblake@redhat.com>
7830
7831         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7832         * modules/sigpipe (License): Relax license.
7833
7834 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7835
7836         doc: document Solaris printf bug with large float precisions
7837         * doc/posix-functions/dprintf.texi (dprintf):
7838         * doc/posix-functions/fprintf.texi (fprintf):
7839         * doc/posix-functions/printf.texi (printf):
7840         * doc/posix-functions/snprintf.texi (snprintf):
7841         * doc/posix-functions/sprintf.texi (sprintf):
7842         * doc/posix-functions/vdprintf.texi (vdprintf):
7843         * doc/posix-functions/vfprintf.texi (vfprintf):
7844         * doc/posix-functions/vprintf.texi (vprintf):
7845         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7846         * doc/posix-functions/vsprintf.texi (vsprintf):
7847         Mention that these functions mishandle large floating point
7848         precisions on Solaris 10.  The same bug is also present in Solaris
7849         8, and I assume earlier.  This causes "cd gnulib-tests; make
7850         check" to fail on Solaris 8 (and I assume, later) when building
7851         the latest coreutils, in test-vasprintf-posix's call to
7852         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7853         the wide flavors (e.g., wprintf) so this patch just updates the
7854         documentation for the narrow ones.
7855
7856         test-posixtm.c: add two tests
7857         * tests/test-posixtm.c: Add two tests, to highlight the
7858         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7859         around this bug; this is merely to document it.
7860
7861 2010-12-22  Bruno Haible  <bruno@clisp.org>
7862
7863         getlogin_r: Work around portability problem on OSF/1.
7864         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7865         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7866         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7867         test for a truncated result.
7868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7869         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7870         * modules/getlogin_r (Depends-on): Add memchr.
7871         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7872
7873 2010-12-22  Bruno Haible  <bruno@clisp.org>
7874
7875         ptsname: Avoid test failure on OSF/1 5.1.
7876         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7877         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7878         (same_slave): New function.
7879         (main): Use it to compare ptsname's result with the expected file name.
7880
7881 2010-12-22  Bruno Haible  <bruno@clisp.org>
7882
7883         Port extended stdio modules to HP NonStop Kernel.
7884         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7885         macros.
7886         * lib/fbufmode.c: Update comments.
7887         * lib/fflush.c: Likewise.
7888         * lib/fpurge.c: Likewise.
7889         * lib/freadable.c: Likewise.
7890         * lib/freadahead.c: Likewise.
7891         * lib/freading.c: Likewise.
7892         * lib/freadptr.c: Likewise.
7893         * lib/freadseek.c: Likewise.
7894         * lib/fseeko.c: Likewise.
7895         * lib/fseterr.c: Likewise.
7896         * lib/fwritable.c: Likewise.
7897         * lib/fwriting.c: Likewise.
7898         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7899
7900 2010-12-22  Bruno Haible  <bruno@clisp.org>
7901
7902         ttyname_r: Work around bug on OSF/1 5.1.
7903         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7904         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7905         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7906         present.
7907         * lib/ttyname_r.c (ttyname_r): Update comments.
7908
7909 2010-12-22  Bruno Haible  <bruno@clisp.org>
7910
7911         round: Implement result sign according to IEEE 754.
7912         * lib/round.c (MIN, MINUS_ZERO): New macros.
7913         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7914         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7915         * tests/test-round-ieee.c (main): Likewise.
7916         * tests/test-roundl-ieee.c (main): Likewise.
7917
7918         trunc: Implement result sign according to IEEE 754.
7919         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7920         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7921         * tests/test-trunc2.c: Include minus-zero.h.
7922         (MINUS_ZERO): New macro.
7923         (trunc_reference): Keep in sync with lib/trunc.c.
7924         * tests/test-truncf2.c: Include minus-zero.h.
7925         (MINUS_ZERO): New macro.
7926         (truncf_reference): Keep in sync with lib/trunc.c.
7927         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7928         * tests/test-trunc-ieee.c (main): Likewise.
7929         * tests/test-truncl-ieee.c (main): Likewise.
7930
7931         ceil: Implement result sign according to IEEE 754.
7932         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7933         (FUNC): Return -0.0 for -1 < x < 0.
7934         * tests/test-ceil2.c: Include minus-zero.h.
7935         (MINUS_ZERO): New macro.
7936         (ceil_reference): Keep in sync with lib/ceil.c.
7937         * tests/test-ceilf2.c: Include minus-zero.h.
7938         (MINUS_ZERO): New macro.
7939         (ceilf_reference): Keep in sync with lib/ceil.c.
7940         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7941         * tests/test-ceil-ieee.c (main): Likewise.
7942         * tests/test-ceill-ieee.c (main): Likewise.
7943
7944         floor: Implement result sign according to IEEE 754.
7945         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7946         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7947         * tests/test-floorf2.c (floorf_reference): Likewise.
7948         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7949         * tests/test-floor-ieee.c (main): Likewise.
7950         * tests/test-floorl-ieee.c (main): Likewise.
7951
7952 2010-12-22  Bruno Haible  <bruno@clisp.org>
7953
7954         getaddrinfo: Update doc.
7955         * doc/posix-functions/gai_strerror.texi: Return type is also different
7956         on AIX and HP-UX.
7957
7958 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7959
7960         getaddrinfo, inet_ntop: Update doc for Solaris.
7961         * doc/posix-functions/gai_strerror.texi: Return type is also an
7962         issue on Solaris 9 and earlier.
7963         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7964         on Solaris 10 and earlier.
7965
7966 2010-12-21  Bruno Haible  <bruno@clisp.org>
7967
7968         New module 'roundl-ieee'.
7969         * modules/roundl-ieee: New file.
7970         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7971         test whether roundl works according to ISO C 99 with IEC 60559.
7972         * m4/roundl-ieee.m4: New file.
7973         * modules/roundl-ieee-tests: New file.
7974         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7975         * tests/test-roundl.c (main): Remove signbit tests.
7976         * modules/roundl-tests (Depends-on): Remove signbit.
7977         * doc/posix-functions/roundl.texi: Mention the new module.
7978
7979 2010-12-21  Bruno Haible  <bruno@clisp.org>
7980
7981         New module 'truncl-ieee'.
7982         * modules/truncl-ieee: New file.
7983         * modules/truncl-ieee-tests: New file.
7984         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7985         * tests/test-truncl.c (main): Remove signbit tests.
7986         * modules/truncl-tests (Depends-on): Remove signbit.
7987         * doc/posix-functions/truncl.texi: Mention the new module.
7988
7989 2010-12-21  Bruno Haible  <bruno@clisp.org>
7990
7991         New module 'ceill-ieee'.
7992         * modules/ceill-ieee: New file.
7993         * modules/ceill-ieee-tests: New file.
7994         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7995         * tests/test-ceill.c (main): Remove signbit tests.
7996         * modules/ceill-tests (Depends-on): Remove signbit.
7997         * doc/posix-functions/ceill.texi: Mention the new module.
7998
7999 2010-12-21  Bruno Haible  <bruno@clisp.org>
8000
8001         New module 'floorl-ieee'.
8002         * modules/floorl-ieee: New file.
8003         * modules/floorl-ieee-tests: New file.
8004         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8005         * tests/test-floorl.c (main): Remove signbit tests.
8006         * modules/floorl-tests (Depends-on): Remove signbit.
8007         * doc/posix-functions/floorl.texi: Mention the new module.
8008
8009 2010-12-21  Bruno Haible  <bruno@clisp.org>
8010
8011         New module 'round-ieee'.
8012         * modules/round-ieee: New file.
8013         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8014         whether round works according to ISO C 99 with IEC 60559.
8015         * m4/round-ieee.m4: New file.
8016         * modules/round-ieee-tests: New file.
8017         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8018         * tests/test-round1.c (main): Remove signbit tests.
8019         * modules/round-tests (Depends-on): Remove 'signbit'.
8020         * doc/posix-functions/round.texi: Mention the new module.
8021
8022 2010-12-21  Bruno Haible  <bruno@clisp.org>
8023
8024         New module 'trunc-ieee'.
8025         * modules/trunc-ieee: New file.
8026         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8027         whether trunc works according to ISO C 99 with IEC 60559.
8028         * m4/trunc-ieee.m4: New file.
8029         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8031         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8032         * modules/trunc-ieee-tests: New file.
8033         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8034         * tests/test-trunc1.c (main): Remove signbit tests.
8035         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8036         * doc/posix-functions/trunc.texi: Mention the new module.
8037
8038 2010-12-21  Bruno Haible  <bruno@clisp.org>
8039
8040         New module 'ceil-ieee'.
8041         * modules/ceil-ieee: New file.
8042         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8043         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8044         ISO C 99 with IEC 60559.
8045         * m4/ceil-ieee.m4: New file.
8046         * modules/ceil (Files): Add lib/ceil.c.
8047         (Depends-on): Add 'float'.
8048         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8049         * lib/math.in.h (ceil): New declaration.
8050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8051         REPLACE_CEIL.
8052         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8053         * modules/ceil-ieee-tests: New file.
8054         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8055         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8056         * doc/posix-functions/ceil.texi: Mention the new module.
8057
8058 2010-12-21  Bruno Haible  <bruno@clisp.org>
8059
8060         New module 'floor-ieee'.
8061         * modules/floor-ieee: New file.
8062         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8063         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8064         ISO C 99 with IEC 60559.
8065         * m4/floor-ieee.m4: New file.
8066         * modules/floor (Files): Add lib/floor.c.
8067         (Depends-on): Add 'float'.
8068         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8069         * lib/math.in.h (floor): New declaration.
8070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8071         REPLACE_FLOOR.
8072         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8073         * modules/floor-ieee-tests: New file.
8074         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8075         * tests/test-math-c++.cc: Check the signature of 'floor'.
8076         * doc/posix-functions/floor.texi: Mention the new module.
8077
8078 2010-12-21  Bruno Haible  <bruno@clisp.org>
8079
8080         New module 'roundf-ieee'.
8081         * modules/roundf-ieee: New file.
8082         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8083         test whether roundf works according to ISO C 99 with IEC 60559.
8084         * m4/roundf-ieee.m4: New file.
8085         * modules/roundf-ieee-tests: New file.
8086         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8087         * tests/test-roundf1.c (main): Remove signbit tests.
8088         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8089         * doc/posix-functions/roundf.texi: Mention the new module.
8090
8091 2010-12-21  Bruno Haible  <bruno@clisp.org>
8092
8093         New module 'truncf-ieee'.
8094         * modules/truncf-ieee: New file.
8095         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8096         test whether truncf works according to ISO C 99 with IEC 60559.
8097         * m4/truncf-ieee.m4: New file.
8098         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8100         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8101         * modules/truncf-ieee-tests: New file.
8102         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8103         * tests/test-truncf1.c (main): Remove signbit tests.
8104         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8105         * doc/posix-functions/truncf.texi: Mention the new module.
8106
8107 2010-12-21  Bruno Haible  <bruno@clisp.org>
8108
8109         New module 'ceilf-ieee'.
8110         * modules/ceilf-ieee: New file.
8111         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8112         test whether ceilf works according to ISO C 99 with IEC 60559.
8113         * m4/ceilf-ieee.m4: New file.
8114         * modules/ceilf-ieee-tests: New file.
8115         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8116         * tests/test-ceilf1.c (main): Remove signbit tests.
8117         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8118         * doc/posix-functions/ceilf.texi: Mention the new module.
8119
8120 2010-12-21  Bruno Haible  <bruno@clisp.org>
8121
8122         New module 'floorf-ieee'.
8123         * modules/floorf-ieee: New file.
8124         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8125         test whether floorf works according to ISO C 99 with IEC 60559.
8126         * m4/floorf-ieee.m4: New file.
8127         * modules/floorf-ieee-tests: New file.
8128         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8129         * tests/test-floorf1.c (main): Remove signbit tests.
8130         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8131         * doc/posix-functions/floorf.texi: Mention the new module.
8132
8133 2010-12-21  Bruno Haible  <bruno@clisp.org>
8134
8135         Support for minus zero in autoconf macros.
8136         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8137         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8138         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8139         * tests/minus-zero.h: Update comments.
8140
8141 2010-12-21  Bruno Haible  <bruno@clisp.org>
8142
8143         Tests for module 'ceil'.
8144         * modules/ceil-tests: New file.
8145         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8146         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8147
8148 2010-12-21  Bruno Haible  <bruno@clisp.org>
8149
8150         Tests for module 'floor'.
8151         * modules/floor-tests: New file.
8152         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8153         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8154
8155 2010-12-21  Bruno Haible  <bruno@clisp.org>
8156
8157         math: Fix indentation.
8158         * lib/math.in.h (floorf): Fix indentation.
8159
8160 2010-12-21  Bruno Haible  <bruno@clisp.org>
8161
8162         Fix cross-compilation guesses on Solaris.
8163         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8164         not match "solaris2.10".
8165         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8166         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8167         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8168
8169 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8170
8171         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8172         This fixes a problem observed with the latest coreutils snapshot
8173         that caused a test to fail on Solaris 8.  src/csplit.c's call
8174         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8175         earlier, instead of returning the number of bytes that would have
8176         been generated; this causes csplit to incorrectly report memory
8177         exhaustion.
8178         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8179         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8180         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8181         comments to match.
8182         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8183         Fix typo in matching older versions of Solaris: "solaris2.10"
8184         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8185         only for guessing while cross-compiling.
8186         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8187
8188 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8189
8190         ftoastr: fix comment again
8191         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8192         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8193         Also, simplify example a bit by using flags = 0.
8194
8195 2010-12-20  Bruno Haible  <bruno@clisp.org>
8196
8197         round*, trunc*: Update documentation regarding glibc.
8198         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8199         * doc/posix-functions/round.texi: Likewise.
8200         * doc/posix-functions/roundl.texi: Likewise.
8201         * doc/posix-functions/truncf.texi: Likewise.
8202         * doc/posix-functions/trunc.texi: Likewise.
8203         * doc/posix-functions/truncl.texi: Likewise.
8204
8205 2010-12-20  Bruno Haible  <bruno@clisp.org>
8206
8207         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8208         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8209         * doc/posix-functions/round.texi: Likewise.
8210         * doc/posix-functions/roundl.texi: Likewise.
8211
8212 2010-12-20  Bruno Haible  <bruno@clisp.org>
8213
8214         ttyname_r: Add missing declaration on HP-UX 11.
8215         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8216         HAVE_TTYNAME_R.
8217         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8218         declared. Set HAVE_TTYNAME_R always.
8219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8220         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8221         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8222         HAVE_TTYNAME_R.
8223         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8224
8225 2010-12-20  Bruno Haible  <bruno@clisp.org>
8226
8227         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8228         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8229         * doc/posix-functions/getlogin_r.texi: Likewise.
8230         * tests/test-getlogin.c: Include <errno.h>.
8231         (main): Avoid test failure on HP-UX 11.11.
8232         * tests/test-getlogin_r.c (main): Likewise.
8233
8234 2010-12-20  Bruno Haible  <bruno@clisp.org>
8235
8236         getlogin_r: Add missing declaration on HP-UX 11.
8237         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8238         declared also when it exists as a function.
8239         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8240
8241 2010-12-20  Bruno Haible  <bruno@clisp.org>
8242
8243         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8244         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8245         through wcrtomb.
8246
8247 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8248
8249         ftoastr: fix comment
8250         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8251         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8252
8253 2010-12-19  Bruno Haible  <bruno@clisp.org>
8254
8255         isnan: Ensure it is a macro.
8256         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8257         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8258         Solaris.
8259
8260 2010-12-19  Bruno Haible  <bruno@clisp.org>
8261
8262         ldexpl test: Fix link error on OSF/1 5.1.
8263         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8264
8265 2010-12-19  Bruno Haible  <bruno@clisp.org>
8266
8267         wctype: Make it work in C++ mode on OSF/1 5.1.
8268         * lib/wctype.in.h (iswblank): Declare but not define here.
8269         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8270         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8271         * modules/wctype (Files): Add lib/iswblank.c.
8272
8273 2010-12-19  Bruno Haible  <bruno@clisp.org>
8274
8275         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8276         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8277         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8278
8279 2010-12-19  Bruno Haible  <bruno@clisp.org>
8280
8281         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8283         _POSIX_PII_SOCKET.
8284         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8285         * doc/posix-functions/recvfrom.texi: Likewise.
8286         * doc/posix-functions/send.texi: Likewise.
8287         * doc/posix-functions/sendto.texi: Likewise.
8288
8289 2010-12-19  Bruno Haible  <bruno@clisp.org>
8290
8291         tcgetsid: Add missing declaration on OSF/1 5.1.
8292         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8293         HAVE_TCGETSID.
8294         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8295         Don't set HAVE_TCGETSID.
8296         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8297         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8298         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8299         HAVE_TCGETSID.
8300         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8301
8302 2010-12-19  Bruno Haible  <bruno@clisp.org>
8303
8304         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8305         * lib/stdio.in.h: During the include_next statement, let recursive
8306         includes of this file include only the system header file.
8307
8308 2010-12-19  Bruno Haible  <bruno@clisp.org>
8309
8310         iconv_open: Fix regression from 2010-12-04.
8311         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8312         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8313
8314 2010-12-19  Bruno Haible  <bruno@clisp.org>
8315
8316         stdbool test: Avoid a gcc warning.
8317         * tests/test-stdbool.c (main): Fail if e1 is false.
8318         Reported by Jim Meyering.
8319
8320 2010-12-19  Jim Meyering  <meyering@redhat.com>
8321
8322         setenv: restore to working order
8323         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8324         mistakenly removed.
8325         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8326         HAVE_SETENV.
8327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8328         HAVE_SETENV.
8329
8330 2010-12-19  Bruno Haible  <bruno@clisp.org>
8331
8332         Document some different function declarations on OSF/1 5.1.
8333         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8334         * doc/posix-functions/inet_ntop.texi: Likewise.
8335         * doc/posix-functions/gethostname.texi: Likewise.
8336         * lib/unistd.in.h (gethostname): Update comment.
8337
8338 2010-12-19  Bruno Haible  <bruno@clisp.org>
8339
8340         doc: Mention vasprintf-posix module.
8341         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8342         the 'vasprintf-posix' module.
8343         * doc/glibc-functions/vasprintf.texi: Likewise.
8344
8345 2010-12-19  Bruno Haible  <bruno@clisp.org>
8346
8347         unsetenv: Add missing declaration on OSF/1 5.1.
8348         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8349         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8350         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8352         not HAVE_UNSETENV.
8353         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8354         HAVE_UNSETENV.
8355         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8356
8357 2010-12-19  Bruno Haible  <bruno@clisp.org>
8358
8359         setenv: Add missing declaration on OSF/1 5.1.
8360         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8361         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8362         declared. Don't set HAVE_SETENV.
8363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8364         not HAVE_SETENV.
8365         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8366         HAVE_SETENV.
8367         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8368
8369 2010-12-19  Bruno Haible  <bruno@clisp.org>
8370
8371         nl_langinfo tests: Avoid gcc warning.
8372         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8373
8374 2010-12-19  Bruno Haible  <bruno@clisp.org>
8375
8376         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8377         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8378         _GL_CXXALIAS_SYS.
8379
8380 2010-12-19  Bruno Haible  <bruno@clisp.org>
8381
8382         stdbool: Relax test.
8383         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8384         address to 'bool' work in static initializer, for compilers other than
8385         GCC.
8386
8387 2010-12-19  Bruno Haible  <bruno@clisp.org>
8388
8389         ftello: Add missing declaration on OSF/1 5.1.
8390         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8391         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8393         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8394         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8395
8396 2010-12-19  Bruno Haible  <bruno@clisp.org>
8397
8398         fseeko: Add missing declaration on OSF/1 5.1.
8399         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8400         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8402         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8403         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8404
8405 2010-12-19  Bruno Haible  <bruno@clisp.org>
8406
8407         fchdir: Add missing declaration on OSF/1 5.1.
8408         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8411         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8412         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8413
8414 2010-12-19  Bruno Haible  <bruno@clisp.org>
8415
8416         relocatable-prog-wrapper: Separate from relocatable-prog.
8417         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8418         uninstall-relocwrapper rule here.
8419         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8420         Reported by Ian Beckwith <ianb@erislabs.net>.
8421
8422 2010-12-19  Bruno Haible  <bruno@clisp.org>
8423
8424         unistr/u8-mbsnlen: Add missing dependency.
8425         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8426         Reported by Ian Beckwith <ianb@erislabs.net>.
8427
8428 2010-12-19  Bruno Haible  <bruno@clisp.org>
8429
8430         iconv: Make it possible again to use this module without 'iconv-h'.
8431         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8432         if it is not defined.
8433         Reported by Ian Beckwith <ianb@erislabs.net>.
8434
8435 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8436
8437         acl: port to Solaris 8 when copying from tmpfs to ufs
8438         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8439         error number.  Problem observed on Solaris 8 with latest
8440         coreutils, with "mv A B", where A is on a tmpfs file system and B
8441         is on a ufs file system.  This caused coreutils' mv/part-symlink
8442         test to fail.
8443
8444         tests: set fail=0 at start
8445         * tests/init.sh (setup_): Move fail=0 initialization here ...
8446         (mktempd_): ... from here, so that tests can rely on fail being
8447         set to 0 initially.  This fixes a problem in coreutils; see:
8448         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8449
8450 2010-12-18  Bruno Haible  <bruno@clisp.org>
8451
8452         memmem-simple: Stylistic changes.
8453         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8454         Fix preprocessor directive indentation.
8455
8456 2010-12-15  Pádraig Brady <P@draigBrady.com>
8457
8458         memmem, memmem-simple: reorganize and expand empty needle check
8459         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8460         functional checks to memmem-simple so that one has a fully functional
8461         memmem by using just this module.
8462         Restrict the performance only check to the memmem module.
8463         Also expand the empty needle check to ensure the correct
8464         pointer is returned, not just a non NULL pointer.
8465         * doc/glibc-functions/memmem.texi: Rearrange the portability
8466         documentation to correlate with the rearranged checks.
8467         Clarify exactly how the memmem and memmem-simple modules
8468         relate to each other.
8469
8470 2010-12-15  Pádraig Brady <P@draigBrady.com>
8471             Bruno Haible  <bruno@clisp.org>
8472
8473         Improve cross-compilation guesses for uClibc.
8474         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8475         that uClibc does not have the glibc bug.
8476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8477         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8478
8479 2010-12-14  Eric Blake  <eblake@redhat.com>
8480
8481         configmake: provide fallbacks for oldest supported autotools
8482         * m4/configmake.m4: New file.
8483         * modules/configmake (Files): Ship it.
8484         (configure.ac): Use it to guarantee fallbacks.
8485
8486 2010-12-13  Pádraig Brady <P@draigBrady.com>
8487
8488         read-file: Improve handling of large files
8489         * lib/read-file.c (fread_file): Minimize realloc()s
8490         for regular files, and better manage sizes around SIZE_MAX.
8491
8492 2010-12-13  Eric Blake  <eblake@redhat.com>
8493
8494         cloexec, fcntl: relax license
8495         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8496         consent from all contributors.
8497         * modules/fcntl (License): Likewise.
8498
8499 2010-12-10  Bruno Haible  <bruno@clisp.org>
8500
8501         Tests for module 'pipe-posix'.
8502         * modules/pipe-posix-tests: New file.
8503         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8504
8505 2010-12-10  Bruno Haible  <bruno@clisp.org>
8506
8507         pipe-posix: Make it work in C++ mode.
8508         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8509         (pipe): Use common idiom, not a macro definition.
8510         * lib/pipe.c: New file.
8511         * m4/pipe.m4: New file.
8512         * modules/pipe-posix (Description): Enhance.
8513         (Files): Add lib/pipe.c, m4/pipe.m4.
8514         (configure.ac): Invoke gl_FUNC_PIPE.
8515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8516         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8517         * tests/test-unistd-c++.cc: Check the signature of pipe.
8518
8519 2010-12-10  Bruno Haible  <bruno@clisp.org>
8520
8521         Rename module 'pipe' to 'spawn-pipe'.
8522         * modules/spawn-pipe: New file, renamed from modules/pipe.
8523         (Files, configure.ac, Makefile.am): Update.
8524         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8525         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8526         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8527         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8528         "spawn-pipe.h" instead of "pipe.h".
8529         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8530         to gl_SPAWN_PIPE.
8531         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8532         (Files, Makefile.am): Update.
8533         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8534         Update.
8535         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8536         Include "spawn-pipe.h" instead of "pipe.h".
8537         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8538         * lib/javacomp.c: Likewise.
8539         * lib/javaversion.c: Likewise.
8540         * lib/pipe-filter-gi.c: Likewise.
8541         * lib/pipe-filter-ii.c: Likewise.
8542         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8543         * modules/javacomp (Depends-on): Likewise.
8544         * modules/javaversion (Depends-on): Likewise.
8545         * modules/pipe-filter-gi (Depends-on): Likewise.
8546         * modules/pipe-filter-ii (Depends-on): Likewise.
8547         * MODULES.html.sh (Executing programs): Update.
8548         * NEWS: Mention the change.
8549
8550 2010-12-10  Eric Blake  <eblake@redhat.com>
8551
8552         pipe-posix: new module
8553         * modules/pipe-posix: New file.
8554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8555         (gl_UNISTD_H): Check for declaration.
8556         * modules/unistd (Makefile.am): Substitute it.
8557         * lib/unistd.in.h (pipe): Provide it for mingw.
8558         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8559         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8560
8561 2010-12-07  Bruno Haible  <bruno@clisp.org>
8562
8563         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8564         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8565         u8_strcmp_gnu.
8566         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8567
8568 2010-12-06  Bruno Haible  <bruno@clisp.org>
8569
8570         Update internal documentation.
8571         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8572
8573 2010-12-04  Bruno Haible  <bruno@clisp.org>
8574
8575         Put more information about failed tests into the test return codes.
8576         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8577         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8578         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8580         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8581         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8582         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8583         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8584         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8586         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8587         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8588         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8589         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8590         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8591         returns a bit mask.
8592         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8593         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8594         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8595         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8596         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8597         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8600         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8601         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8602         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8603         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8604         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8606         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8607         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8608         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8609         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8610         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8611         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8612         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8613         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8614         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8615         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8616         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8617         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8618         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8619         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8620         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8621         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8622         gl_PRINTF_PRECISION): Likewise.
8623         * m4/regex.m4 (gl_REGEX): Likewise.
8624         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8625         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8626         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8627         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8628         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8630         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8631         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8632         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8633         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8634         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8635         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8636         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8637         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8638         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8639         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8640         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8641         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8643         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8644         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8645         enumerated value.
8646         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8647
8648 2010-12-04  Bruno Haible  <bruno@clisp.org>
8649
8650         Update for Solaris 11 2010-11.
8651         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8652         Express, released in November 2010.
8653
8654 2010-12-04  Bruno Haible  <bruno@clisp.org>
8655
8656         nproc: Relax license.
8657         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8658         and Paul Eggert.
8659         Requested by Ludovic Courtès <ludo@gnu.org>.
8660
8661 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8662
8663         utimecmp: fine-grained src to nearby coarse-grained dest
8664
8665         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8666         and the source is on a file system with higher-resolution time
8667         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8668         not work, and the time stamps are close together, the algorithm to
8669         determine the exact resolution from the read-back mtime was buggy:
8670         it had a "!=" where it should have had an "==".  This bug has been
8671         in the code ever since it was introduced to gnulib.
8672         Problem reported by Dan Jacobson in
8673         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8674
8675 2010-11-30  Bruno Haible  <bruno@clisp.org>
8676
8677         strerror_r-posix: Fix autoconf test.
8678         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8679
8680 2010-11-28  Bruno Haible  <bruno@clisp.org>
8681             Paul Eggert  <eggert@cs.ucla.edu>
8682
8683         Tests for module 'getdomainname'.
8684         * modules/getdomainname-tests: New file.
8685         * tests/test-getdomainname.c: New file, based on
8686         tests/test-gethostname.c.
8687
8688 2010-11-28  Bruno Haible  <bruno@clisp.org>
8689             Paul Eggert  <eggert@cs.ucla.edu>
8690
8691         getdomainname: Use the system function when possible.
8692         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8693         (getdomainname): Replace if needed. Provide the declaration if it is
8694         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8695         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8696         (getdomainname): When the system has getdomainname, call the system
8697         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8698         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8699         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8700         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8701         the function if its second argument is of type 'int' or if it is found
8702         in libnsl.
8703         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8704         <sys/systeminfo.h> and sysinfo().
8705         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8707         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8708         HAVE_GETDOMAINNAME.
8709         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8710         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8711         * doc/glibc-functions/getdomainname.texi: Document the problems with
8712         the getdomainname declaration.
8713
8714 2010-11-28  Bruno Haible  <bruno@clisp.org>
8715
8716         sys_socket: Ensure ss_family field on AIX.
8717         * lib/sys_socket.in.h (ss_family): New macro definition.
8718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8719         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8720         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8721         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8722         * modules/sys_socket (Makefile.am): Substitute
8723         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8724         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8725
8726 2010-11-27  Bruno Haible  <bruno@clisp.org>
8727
8728         readline: Improve configure output.
8729         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8730         "checking for readline..." result understandable.
8731
8732 2010-11-27  Bruno Haible  <bruno@clisp.org>
8733
8734         *printf-posix: Detect a bug on Solaris 10/x86.
8735         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8736         for floating-point output.
8737         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8738         directive.
8739         * tests/test-snprintf-posix.h (test_function): Likewise.
8740         * tests/test-sprintf-posix.h (test_function): Likewise.
8741         * tests/test-vasprintf-posix.c (test_function): Likewise.
8742         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8743         * doc/posix-functions/printf.texi: Likewise.
8744         * doc/posix-functions/snprintf.texi: Likewise.
8745         * doc/posix-functions/sprintf.texi: Likewise.
8746         * doc/posix-functions/vfprintf.texi: Likewise.
8747         * doc/posix-functions/vprintf.texi: Likewise.
8748         * doc/posix-functions/vsnprintf.texi: Likewise.
8749         * doc/posix-functions/vsprintf.texi: Likewise.
8750         * doc/glibc-functions/obstack_printf.texi: Likewise.
8751         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8752
8753 2010-11-27  Bruno Haible  <bruno@clisp.org>
8754
8755         Fix link error when module libunistring-optional is in use.
8756         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8757         * modules/striconveha-tests (Makefile.am): Likewise.
8758
8759 2010-11-27  Bruno Haible  <bruno@clisp.org>
8760
8761         regex: Mention link dependencies.
8762         * modules/regex (Link): New section.
8763         * modules/rpmatch (Link): Likewise.
8764         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8765
8766 2010-11-27  Bruno Haible  <bruno@clisp.org>
8767
8768         ftoastr: Fix compilation error on Solaris.
8769         * lib/ftoastr.c: Include <config.h>.
8770
8771 2010-11-27  Bruno Haible  <bruno@clisp.org>
8772
8773         getloadavg: Update documentation.
8774         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8775
8776 2010-11-27  Bruno Haible  <bruno@clisp.org>
8777
8778         sys_socket: Fix test whether the functions are declared.
8779         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8780         not <sys/select.h>.
8781
8782 2010-11-27  Bruno Haible  <bruno@clisp.org>
8783
8784         getpass: Make sure to get system declaration on some platforms.
8785         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8786         gl_USE_SYSTEM_EXTENSIONS.
8787         * modules/getpass (Depends-on): Add extensions.
8788
8789 2010-11-26  Bruno Haible  <bruno@clisp.org>
8790
8791         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8792         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8793         'iconv' module is present.
8794         (ICONV_CONST): New macro.
8795         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8796         ICONV_CONST.
8797         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8798         set ICONV_CONST.
8799         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8800         here.
8801         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8802         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8803         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8804         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8805         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8806         present.
8807
8808 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8809
8810         ftoastr: comment fix
8811         * lib/ftoastr.c: "little" -> "little or no" in comment
8812
8813 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8814
8815         stdint: port to GCC 4.3 + OSX + Octave
8816         On this platform, stdint.h is buggy and defines int64_t to long
8817         long int.  The replacement defined it to long int, causing
8818         problems with C++ style name mangling.  Instead, trust the system
8819         definition if INT64_MAX is defined, and likewise for the unsigned
8820         variant.   Problem reported by Jarno Rajahalme in
8821         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8822         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8823         and don't mess with int64_t and INT64_MAX in this case.
8824         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8825
8826 2010-11-24  Bruno Haible  <bruno@clisp.org>
8827
8828         doc: Corrections regarding MacOS X 10.4 and 10.5.
8829         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8830         MacOS X.
8831         Reported by Simon Josefsson.
8832
8833 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8834
8835         Uninstall ".bin" files installed by relocwrapper.
8836         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8837         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8838         unless it is already there.
8839
8840 2010-11-21  Bruno Haible  <bruno@clisp.org>
8841
8842         Update for NetBSD 5.0.
8843         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8844         NetBSD; the test fails on NetBSD 5.0.
8845         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8846         about NetBSD.
8847
8848 2010-11-21  Bruno Haible  <bruno@clisp.org>
8849
8850         Update for HP-UX 11.23 and HP-UX 11.31.
8851         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8852         HP-UX.
8853
8854 2010-11-21  Bruno Haible  <bruno@clisp.org>
8855
8856         Update for MacOS X 10.5.
8857         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8858         MacOS X; the test fails on MacOS X 10.5.8.
8859         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8860         about MacOS X.
8861
8862 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8863
8864         bootstrap: add bootstrap_sync option.
8865         See discussion at
8866         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8867         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8868         * build-aux/bootstrap: Accept --bootstrap-sync to update
8869         bootstrap if it is not identical to the local gnulib's
8870         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8871         enable this by default.  Accept --no-bootstrap-sync to disable
8872         it.
8873
8874 2010-11-20  Bruno Haible  <bruno@clisp.org>
8875
8876         Ensure that <features.h> is included before __GLIBC__ is tested.
8877         * lib/printf-parse.h: Include <features.h>.
8878         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8879         Reported by Mike Frysinger <vapier@gentoo.org>.
8880
8881         Ensure that <features.h> is included before __GLIBC__ is tested.
8882         * lib/wchar.in.h: Include <features.h>.
8883         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8884         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8885         Reported by Mike Frysinger <vapier@gentoo.org>.
8886
8887         Ensure that <features.h> is included before __GLIBC__ is tested.
8888         * lib/arpa_inet.in.h: Include <features.h>.
8889         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8890         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8891         Reported by Mike Frysinger <vapier@gentoo.org>.
8892
8893         Ensure that <features.h> is included before __GLIBC__ is tested.
8894         * build-aux/link-warning.h: Include <features.h>.
8895         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8896         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8897         Reported by Mike Frysinger <vapier@gentoo.org>.
8898
8899         Ensure that <features.h> is included before __GLIBC__ is tested.
8900         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8901         Reported by Mike Frysinger <vapier@gentoo.org>.
8902
8903 2010-11-20  Bruno Haible  <bruno@clisp.org>
8904
8905         memmem: Fix autoconf test.
8906         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8907
8908 2010-11-20  Bruno Haible  <bruno@clisp.org>
8909
8910         Port to uClibc.
8911         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8912         * lib/fcntl.in.h: Likewise.
8913         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8914         * lib/mbrtowc.c (mbrtowc): Likewise.
8915         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8916         * lib/strerror_r.c: Likewise.
8917         * lib/unistr/u8-strnlen.c: Likewise.
8918         * lib/vasnprintf.c (decimal_point_char): Likewise.
8919         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8920         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8921         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8922         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8923         * tests/test-sigaction.c (handler, main): Likewise.
8924         * lib/freading.h: Treat uClibc like a non-glibc platform.
8925         * lib/freading.c: Likewise.
8926         * lib/gettext.h: Likewise.
8927         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8928         Likewise.
8929         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8930         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8931         * lib/propername.c (proper_name_utf8): Likewise.
8932         * lib/spawn.in.h: Likewise.
8933         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8934         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8935         mem_cd_iconveh_internal): Likewise.
8936         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8937         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8938         strstr, strcasestr): Likewise.
8939         * lib/unicodeio.c (unicode_to_mb): Likewise.
8940         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8941         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8942         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8943         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8944         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8945         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8946         * lib/unistr/u8-stpncpy.c: Likewise.
8947         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8948         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8949         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8950         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8951         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8952         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8953         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8954         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8955         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8956         Likewise.
8957         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8958         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8959         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8960         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8961         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8962         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8963         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8964         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8965         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8966         * tests/test-striconveha.c (main): Likewise.
8967         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8968         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8969         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8970         * doc/posix-functions/getline.texi: Likewise.
8971         Reported by Mike Frysinger <vapier@gentoo.org>.
8972
8973 2010-11-20  Bruno Haible  <bruno@clisp.org>
8974
8975         nproc: Fix condition.
8976         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8977         HAVE_PTHREAD_AFFINITY_NP.
8978
8979 2010-11-20  Bruno Haible  <bruno@clisp.org>
8980
8981         Fix a comment.
8982         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8983
8984 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8985
8986         ftoastr: don't assume snprintf
8987         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8988         Implement a subset of snprintf here, by using sprintf safely.
8989         * modules/ftoastr (Depends-on): Remove snprintf.
8990
8991 2010-11-19  Jim Meyering  <meyering@redhat.com>
8992
8993         test-rename.h: fix compilation failure
8994         * tests/test-rename.h (test_rename): Add omitted "}".
8995
8996 2010-11-17  Jim Meyering  <meyering@redhat.com>
8997
8998         maint.mk: add a URL discussing the no-@acronym policy
8999         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9000
9001 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9002
9003         ftoastr: depend on snprintf, improve comments
9004         * lib/ftoastr.c: Also mention Loitsch's draft.
9005         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9006         needed in the current implementation, but it might simplify
9007         speeding up the code later.
9008         * modules/ftoastr: Depend on snprintf; this improves portability.
9009         Suggested by Bruno Haible in the same email.
9010
9011         ftoastr: port to hosts lacking strtof and strtold
9012         Problem reported by Bruno Haible in
9013         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9014         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9015         environment and strtold (and presumably strtof) are not available.
9016         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9017         (configure.ac): Require gl_C99_STRTOLD.
9018
9019 2010-11-18  Bruno Haible  <bruno@clisp.org>
9020
9021         c-strtold: Avoid link error on AIX 7.
9022         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9023         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9024         (gl_C_STRTOLD): Test whether strtold_l exists.
9025         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9026
9027 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9028
9029         intprops: new macro INT_BITS_STRLEN_BOUND
9030         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9031         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9032         not exposed.  Also, it uses a slightly tighter bound than before;
9033         though this makes no practical difference, we might as well be as
9034         tight as we easily can.
9035
9036         ftoastr: new module, for lossless conversion of floats to short strings
9037         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9038         * modules/ftoastr: New files.
9039
9040 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9041
9042         bootstrap: port to Solaris sed
9043         * build-aux/bootstrap (get_version): Port to Solaris sed.
9044         See Ralf Wildenhues's note in
9045         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9046
9047 2010-11-14  Jim Meyering  <meyering@redhat.com>
9048
9049         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9050         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9051         and move definition closer to sole use.
9052
9053 2010-11-13  Jim Meyering  <meyering@redhat.com>
9054
9055         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9056         Now we require at least autoconf-2.59, which means the work-around
9057         is no longer needed.
9058         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9059         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9060         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9061         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9062         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9063
9064 2010-11-13  Bruno Haible  <bruno@clisp.org>
9065
9066         rename, renameat: Avoid test failures at NFS mounted locations.
9067         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9068         functions.
9069         (test_rename): Use assert_nonexistent.
9070         * tests/test-rename.c: Include <dirent.h>.
9071         * tests/test-renameat.c: Likewise.
9072         Reported by Gary V. Vaughan <gary@gnu.org>.
9073
9074         rename, renameat: Document Linux bug with NFS
9075         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9076         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9077         * doc/posix-functions/renameat.texi: Likewise.
9078         Suggested by Eric Blake.
9079
9080 2010-11-13  Bruno Haible  <bruno@clisp.org>
9081
9082         rename test: Add comments.
9083         * tests/test-rename.h (test_rename): Add structure and comments.
9084
9085 2010-11-13  Eric Blake  <eblake@redhat.com>
9086
9087         maintainer-makefile: cover a few more files
9088         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9089         scripts generated within C files, for libvirt.
9090
9091 2010-11-13  Bruno Haible  <bruno@clisp.org>
9092
9093         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9094         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9095         character, return the number of bytes that belong together, not always
9096         1.
9097         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9098         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9099         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9100         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9101         number of bytes of an invalid character.
9102         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9103         (main): Invoke it.
9104         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9105         results.
9106         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9107         malformed byte sequences.
9108         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9109         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9110         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9111         Reported by Ben Pfaff and Paolo Bonzini.
9112
9113 2010-11-13  Bruno Haible  <bruno@clisp.org>
9114
9115         openat: Work around glibc bug with fchownat() and empty file names.
9116         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9117         (gl_FUNC_FCHOWNAT): Invoke it.
9118         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9119         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9120         Reported by Gary V. Vaughan <gary@gnu.org>.
9121
9122 2010-11-13  Bruno Haible  <bruno@clisp.org>
9123
9124         openat: Ensure autoconf macro ordering.
9125         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9126         gl_USE_SYSTEM_EXTENSIONS.
9127         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9128
9129 2010-11-13  Bruno Haible  <bruno@clisp.org>
9130
9131         Update comments.
9132         * lib/unistr/u8-check.c: Update file name in comments.
9133         * lib/unistr/u8-mblen.c: Likewise.
9134         * lib/unistr/u8-prev.c: Likewise.
9135         * lib/unistr/u8-strmblen.c: Likewise.
9136         * lib/unistr/u8-strmbtouc.c: Likewise.
9137
9138 2010-11-13  Jim Meyering  <meyering@redhat.com>
9139
9140         tests: avoid test failure on Solaris 10 due to lack of PATH export
9141         * tests/test-update-copyright.sh: Don't forget to export PATH.
9142
9143         init.sh: ensure that IFS is defined, just in case...
9144         * tests/init.sh (setup_): Ensure that IFS is defined,
9145         so that saving and restoring it works as expected.  This
9146         appears to be useful at least for an old version of dash
9147         from a long time ago (RH 6).  See here for details:
9148         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9149
9150         maint.mk: tighten "test a == b" check
9151         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9152         test to files that contain something like #!/bin/sh.
9153         Without this, coreutils would get two false positives in
9154         the comments of C source files.
9155
9156 2010-11-12  Eric Blake  <eblake@redhat.com>
9157
9158         bootstrap: fix typo in previous attempt
9159         * build-aux/bootstrap (buildreq): Correct the grouping.
9160         Reported by Paul Eggert.
9161
9162         maintainer-makefile: prohibit test x == x
9163         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9164         Based on a report by Matthias Bolte.
9165
9166         bootstrap: allow FreeBSD gzip
9167         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9168         which has no '.' and goes to stderr.
9169         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9170         Reported by Matthias Bolte.
9171
9172         maintainer-makefile: check for i18n setup
9173         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9174         will likely work.
9175
9176 2010-11-12  Bruno Haible  <bruno@clisp.org>
9177
9178         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9179         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9180         * lib/nanosleep.c (nanosleep): Likewise.
9181
9182 2010-11-11  Bruno Haible  <bruno@clisp.org>
9183
9184         fcntl-h: Fix for use of C++ on glibc systems.
9185         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9186         also on glibc systems in C++ mode.
9187         Reported by Gary V. Vaughan <gary@gnu.org>.
9188
9189 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9190
9191         mknod: avoid false failure with dash
9192         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9193
9194 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9195
9196         unlink: Fix "is it should" typo in diagnostic.
9197         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9198         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9199
9200 2010-11-11  Bruno Haible  <bruno@clisp.org>
9201
9202         Tests for module 'strerror_r-posix'.
9203         * modules/strerror_r-posix-tests: New file.
9204         * tests/test-strerror_r.c: New file.
9205         * tests/test-string-c++.cc: Check the signature of strerror_r.
9206
9207         New module 'strerror_r-posix'.
9208         * lib/string.in.h (strerror_r): New declaration.
9209         * lib/strerror_r.c: New file.
9210         * m4/strerror_r.m4: New file.
9211         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9212         of strerror_r.
9213         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9214         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9215         * modules/strerror_r-posix: New file.
9216         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9217         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9218         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9219         portability problems.
9220
9221 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9222
9223         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9224         line is also considered for output. Quoted function name in shell
9225         command, so temporary files for functions like MyClass::operator()
9226         are removed correctly without errors.
9227
9228 2010-11-09  Bruno Haible  <bruno@clisp.org>
9229
9230         * doc/posix-functions/strerror.texi: List more failing platforms.
9231
9232         * doc/posix-functions/strerror.texi: Add a comment.
9233
9234 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9235
9236         fdopendir: fix bug on MacOS X when low on file descriptors
9237
9238         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9239         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9240         All callers changed.
9241         (fdopendir): Invoke save_cwd at the top level, not after using
9242         multiple dup() calls to use up file descriptors.  Then retry
9243         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9244         less than the maximum number of open file descriptors, because
9245         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9246         on Mac OS X 10.6.4 for tar 1.24
9247         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9248         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9249         and for tar 1.25
9250         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9251
9252 2010-11-07  Bruno Haible  <bruno@clisp.org>
9253
9254         vasnprintf: Support I flag on glibc systems.
9255         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9256         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9257         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9258         snprintf function.
9259         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9260         glibc systems.
9261         * tests/test-vasnprintf-posix3.c: New file.
9262         * modules/vasnprintf-posix-tests (Files): Add it.
9263         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9264
9265 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9266
9267         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9268         * MODULES.html.sh: For compiler warnings, use name
9269         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9270
9271 2010-11-05  Eric Blake  <eblake@redhat.com>
9272
9273         ceil, floor: avoid spurious failure with icc
9274         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9275         [denormals-as-zero] when optimizing without -mieee-fp option.
9276         * tests/test-floorf2.c (floorf_reference): Likewise.
9277         * tests/test-ceilf1.c (dummy): New function.
9278         (main): Use it to outsmart icc's optimization.
9279         * tests/test-floorf1.c (dummy, main): Likewise.
9280
9281         tests: require working signbit
9282         * modules/ceilf-tests (Depends-on): Add signbit.
9283         * modules/ceill-tests (Depends-on): Likewise.
9284         * modules/floorf-tests (Depends-on): Likewise.
9285         * modules/floorl-tests (Depends-on): Likewise.
9286         * modules/round-tests (Depends-on): Likewise.
9287         * modules/roundf-tests (Depends-on): Likewise.
9288         * modules/roundl-tests (Depends-on): Likewise.
9289         * modules/trunc-tests (Depends-on): Likewise.
9290         * modules/truncf-tests (Depends-on): Likewise.
9291         * modules/truncl-tests (Depends-on): Likewise.
9292
9293         strtod: work around icc bug
9294         * lib/strtod.c (minus_zero): Define to working value.
9295         (strtod): Use it to avoid icc bug.
9296
9297         copysign: enhance tests
9298         * modules/copysign-tests (Files): Add minus-zero.h.
9299         * tests/test-copysign.c (main): Also test zeros.
9300
9301 2010-11-04  Eric Blake  <eblake@redhat.com>
9302
9303         ceil, floor, round, trunc: enhance tests of -0
9304         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9305         * tests/test-ceill.c (main): Likewise.
9306         * tests/test-floorf1.c (main): Likewise.
9307         * tests/test-floorl.c (main): Likewise.
9308         * tests/test-round1.c (main): Likewise.
9309         * tests/test-roundf1.c (main): Likewise.
9310         * tests/test-roundl.c (main): Likewise.
9311         * tests/test-trunc1.c (main): Likewise.
9312         * tests/test-truncf1.c (main): Likewise.
9313         * tests/test-truncl.c (main): Likewise.
9314
9315 2010-11-04  Eric Blake  <eblake@redhat.com>
9316
9317         frexp, tests: work around ICC bug with -zero
9318         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9319         works with more compilers.
9320         * tests/minus-zero.h: New file.
9321         * modules/ceilf-tests (Files): Include it.
9322         * modules/ceill-tests (Files): Likewise.
9323         * modules/floorf-tests (Files): Likewise.
9324         * modules/floorl-tests (Files): Likewise.
9325         * modules/frexp-nolibm-tests (Files): Likewise.
9326         * modules/frexp-tests (Files): Likewise.
9327         * modules/frexpl-nolibm-tests (Files): Likewise.
9328         * modules/frexpl-tests (Files): Likewise.
9329         * modules/isnan-tests (Files): Likewise.
9330         * modules/isnand-nolibm-tests (Files): Likewise.
9331         * modules/isnand-tests (Files): Likewise.
9332         * modules/isnanf-nolibm-tests (Files): Likewise.
9333         * modules/isnanf-tests (Files): Likewise.
9334         * modules/isnanl-nolibm-tests (Files): Likewise.
9335         * modules/isnanl-tests (Files): Likewise.
9336         * modules/round-tests (Files): Likewise.
9337         * modules/roundf-tests (Files): Likewise.
9338         * modules/roundl-tests (Files): Likewise.
9339         * modules/ldexpl-tests (Files): Likewise.
9340         * modules/signbit-tests (Files): Likewise.
9341         * modules/snprintf-posix-tests (Files): Likewise.
9342         * modules/sprintf-posix-tests (Files): Likewise.
9343         * modules/strtod-tests (Files): Likewise.
9344         * modules/trunc-tests (Files): Likewise.
9345         * modules/truncf-tests (Files): Likewise.
9346         * modules/truncl-tests (Files): Likewise.
9347         * modules/vsnprintf-posix-tests (Files): Likewise.
9348         * modules/vsprintf-posix-tests (Files): Likewise.
9349         * modules/vasnprintf-posix-tests (Files): Likewise.
9350         * modules/vasprintf-posix-tests (Files): Likewise.
9351         * tests/test-ceilf1.c (main): Use it.
9352         * tests/test-ceill.c (main): Likewise.
9353         * tests/test-floorf1.c (main): Likewise.
9354         * tests/test-floorl.c (main): Likewise.
9355         * tests/test-frexp.c (main): Likewise.
9356         * tests/test-frexpl.c (main): Likewise.
9357         * tests/test-isnan.c (main): Likewise.
9358         * tests/test-isnand.h (main): Likewise.
9359         * tests/test-isnanf.h (main): Likewise.
9360         * tests/test-isnanl.h (main): Likewise.
9361         * tests/test-ldexpl.c (main): Likewise.
9362         * tests/test-round.c (main): Likewise.
9363         * tests/test-roundf.c (main): Likewise.
9364         * tests/test-roundl.c (main): Likewise.
9365         * tests/test-signbit.c (test_signbitf, test_signbitd)
9366         (test_signbitl): Likewise.
9367         * tests/test-snprintf-posix.h (test_function): Likewise.
9368         * tests/test-sprintf-posix.h (test_function): Likewise.
9369         * tests/test-strtod.c (main): Likewise.
9370         * tests/test-trunc1.c (main): Likewise.
9371         * tests/test-truncf1.c (main): Likewise.
9372         * tests/test-truncl.c (main): Likewise.
9373
9374         isnanl: work around icc bug
9375         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9376
9377 2010-11-03  Eric Blake  <eblake@redhat.com>
9378
9379         tests: fix compiler warnings
9380         * tests/test-getopt.h (test_getopt): Fix condition.
9381         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9382         * tests/test-pipe2.c (main): Likewise.
9383         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9384
9385         utimens: fix broken m4 test
9386         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9387
9388 2010-10-28  Bruno Haible  <bruno@clisp.org>
9389
9390         posix_spawn*, getdtablesize: Relax license.
9391         * modules/posix_spawn (License): Change to LGPLv2+.
9392         * modules/posix_spawnp (License): Likewise.
9393         * modules/posix_spawn-internal (License): Likewise.
9394         * modules/posix_spawnattr_init (License): Likewise.
9395         * modules/posix_spawnattr_getflags (License): Likewise.
9396         * modules/posix_spawnattr_setflags (License): Likewise.
9397         * modules/posix_spawnattr_getpgroup (License): Likewise.
9398         * modules/posix_spawnattr_setpgroup (License): Likewise.
9399         * modules/posix_spawnattr_getschedparam (License): Likewise.
9400         * modules/posix_spawnattr_setschedparam (License): Likewise.
9401         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9402         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9403         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9404         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9405         * modules/posix_spawnattr_getsigmask (License): Likewise.
9406         * modules/posix_spawnattr_setsigmask (License): Likewise.
9407         * modules/posix_spawnattr_destroy (License): Likewise.
9408         * modules/posix_spawn_file_actions_init (License): Likewise.
9409         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9410         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9411         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9412         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9413         * modules/getdtablesize (License): Likewise.
9414         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9415
9416 2010-10-26  Bruno Haible  <bruno@clisp.org>
9417
9418         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9419         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9420         Cygwin and mingw.
9421         Suggested by Eric Blake.
9422
9423 2010-10-26  Bruno Haible  <bruno@clisp.org>
9424
9425         stdio: Work around compilation error due to renameat() on Solaris 10.
9426         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9427         * lib/renameat.c: Don't include <unistd.h> here.
9428         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9429         Reported by Paul Eggert and Eric Blake.
9430
9431 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9432
9433         renameat: port to Solaris 10, which declares renameat in unistd.h
9434
9435         * lib/renameat.c: Include unistd.h before stdio.h, because
9436         Solaris 10 declares renameat in unistd.h.  Problem encountered
9437         when building GNU tar 1.24 on Solaris 10.
9438
9439 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9440
9441         fdopendir: fix C89 compilation
9442         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9443         compilers.
9444
9445 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9446
9447         inttostr: simplify by removing unnecessary redundancy
9448         * lib/anytostr.c: Don't include verify.h.
9449         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9450         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9451         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9452         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9453         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9454         Likewise.
9455         * modules/inttostr (Depends-on): Remove 'verify'.
9456
9457 2010-10-23  Bruno Haible  <bruno@clisp.org>
9458
9459         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9460         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9461         Reported by Eric Blake.
9462
9463 2010-10-23  Bruno Haible  <bruno@clisp.org>
9464
9465         Tests: Fix LOCALE_JA on MirBSD 10.
9466         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9467         to an UTF-8 locale.
9468         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9469         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9470         Reported by Eric Blake.
9471
9472 2010-10-21  Bruno Haible  <bruno@clisp.org>
9473
9474         nl_langinfo test: Avoid test failure on NetBSD 5.
9475         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9476         Reported by Eric Blake.
9477
9478 2010-10-21  Eric Blake  <eblake@redhat.com>
9479
9480         c-stack: work around libsigsegv 2.8 bug
9481         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9482         overflow on at least PowerPC64.
9483
9484 2010-10-17  Bruno Haible  <bruno@clisp.org>
9485
9486         userspec: Drop redundant file.
9487         * modules/userspec (Files): Remove lib/inttostr.h.
9488
9489 2010-10-17  Bruno Haible  <bruno@clisp.org>
9490
9491         nl_langinfo tests: Silence some warnings.
9492         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9493         Reported by Jim Meyering.
9494
9495 2010-10-17  Bruno Haible  <bruno@clisp.org>
9496
9497         Make use of GCC's attribute __alloc_size__.
9498         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9499         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9500         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9501         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9502         __alloc_size__.
9503         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9504         Suggested by Jim Meyering.
9505
9506 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9507
9508         bootstrap: anchor .gitignore entries.
9509         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9510         with...
9511         (insert_vc_ignore): ... this new function, which prepends `/' to
9512         all .gitignore entries before passing them to
9513         insert_sorted_if_absent.
9514
9515 2010-10-16  Bruno Haible  <bruno@clisp.org>
9516
9517         nextafter: Fix configure check.
9518         * modules/nextafter (configure.ac): Correct expected prototype.
9519
9520 2010-10-16  Bruno Haible  <bruno@clisp.org>
9521
9522         termios: Update documentation.
9523         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9524
9525 2010-10-16  Bruno Haible  <bruno@clisp.org>
9526
9527         tests: Make them compile with TinyCC.
9528         * tests/test-strstr.c (main): Remove parentheses around array
9529         initializer.
9530
9531 2010-10-15  Eric Blake  <eblake@redhat.com>
9532
9533         ignore-value: make header idempotent
9534         * lib/ignore-value.h: Add double-inclusion guards.
9535         Reported by Stefan Berger.
9536
9537 2010-10-15  Jim Meyering  <meyering@redhat.com>
9538
9539         GNUmakefile: handle "stable" target, not "major"
9540         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9541         lists in maint.mk and announce-gen.  Without this, "make stable"
9542         would fail to ensure that $(VERSION) is up to date.
9543
9544 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9545
9546         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9547         & co.
9548
9549 2010-10-14  Bruno Haible  <bruno@clisp.org>
9550
9551         vasnprintf: Don't set errno to 0.
9552         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9553         block that sets it to 0.
9554         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9555
9556 2010-10-14  Bruno Haible  <bruno@clisp.org>
9557
9558         socketlib: Fix.
9559         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9560         gl_PREREQ_SYS_H_WINSOCK2.
9561         Reported by Ian Beckwith <ianb@erislabs.net>.
9562
9563 2010-10-13  Jim Meyering  <meyering@redhat.com>
9564
9565         test-select-stdin.c: avoid warn_unused_result warnings
9566         * tests/test-select-stdin.c: Include "macros.h".
9567         ASSERT that read and fflush succeed.
9568
9569 2010-10-13  Jim Meyering  <meyering@redhat.com>
9570
9571         git-version-gen: do require git-VC'd files in cwd
9572         * build-aux/git-version-gen: Reject a git version string
9573         if there are no commits associated with the current directory.
9574         This avoids an unlikely false-positive (unrelated dir whose parent
9575         repository also contains a tag matching v*), as pointed out
9576         by Giuseppe Scrivano in
9577         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9578
9579 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9580
9581         argv-iter: omit nonconforming declaration
9582         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9583         enum arg_iter_err declaration, which doesn't conform to C99.
9584         Solaris 10 cc warns about this.
9585
9586 2010-10-13  Eric Blake  <eblake@redhat.com>
9587
9588         termios: fix compilation on mingw
9589         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9590         (gl_TERMIOS_H): Adjust it on mingw.
9591         * modules/termios (Makefile.am): Substitute new key.
9592         * lib/termios.in.h (includes): Make include_next conditional.
9593         * doc/posix-headers/termios.texi (termios.h): Update
9594         documentation.
9595         Reported by Daniel P. Berrange.
9596
9597 2010-10-13  Jim Meyering  <meyering@redhat.com>
9598
9599         git-version-gen: don't require that .git/ be in the current dir
9600         * build-aux/git-version-gen: Adjust this script so that it works
9601         when run from any working directory beneath the top-level .git/-
9602         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9603         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9604
9605         test-select: avoid warn_unused_result warnings
9606         * tests/test-select.c: Include "macros.h".
9607         ASSERT that each call to read, write, and pipe succeeds.
9608         While not technically required, also check each "close".
9609         * modules/select-tests (Files): Add tests/macros.h.
9610
9611         test-symlinkat: remove declaration of unused local
9612         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9613
9614         test-inttostr: avoid shadowing warnings
9615         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9616         and use malloc rather than the stack for the same reason as
9617         mentioned in the comment justifying the other allocation.
9618
9619 2010-10-11  Bruno Haible  <bruno@clisp.org>
9620
9621         stdlib: Allow multiple gnulib generated replacements to coexist.
9622         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9623         Reported by Sam Steingold <sds@gnu.org>.
9624
9625 2010-10-11  Jim Meyering  <meyering@redhat.com>
9626
9627         fix a documentation typo
9628         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9629
9630 2010-10-11  Eric Blake  <eblake@redhat.com>
9631
9632         futimens: work around Solaris 11 bug
9633         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9634         * tests/test-futimens.h (test_futimens): Enhance, rather than
9635         weaken test.
9636         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9637
9638 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9639
9640         Indentation.
9641         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9642         higher-level operators more to the left.
9643
9644 2010-10-11  Jim Meyering  <meyering@redhat.com>
9645
9646         test-futimens: avoid unwarranted test failure on Solaris 5.11
9647         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9648         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9649         because it tries to dereference the NULL name argument.
9650
9651 2010-10-11  Bruno Haible  <bruno@clisp.org>
9652
9653         Indentation.
9654         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9655         indentation.
9656
9657 2010-10-11  Jim Meyering  <meyering@redhat.com>
9658
9659         spawn.in.h: make indentation consistent with parentheses
9660         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9661         Make indentation consistent with parentheses.
9662
9663 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9664
9665         Fix mismatched parens in previous commit
9666         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9667         parens.
9668
9669 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9670
9671         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9672
9673         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9674         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9675         * lib/malloca.c: Include "verify.h".
9676         (verify1): Remove, replacing with a verify call.
9677         * lib/relocwrapper.c (verify1): Likewise.
9678         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9679         Likewise.
9680         * modules/malloca (Depends-on): Add 'verify'.
9681         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9682         * modules/vasnprintf (Depends-on): Add 'verify'.
9683         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9684         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9685         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9686         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9687         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9688         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9689         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9690
9691         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9692
9693         Formerly the style was sometimes 2*X - 1, because the C standard
9694         was wrongly thought to disallow ?: in integral constant expressions.
9695         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9696         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9697         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9698         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9699         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9700         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9701         verify that time_t cannot be floating.
9702
9703 2010-10-08  Eric Blake  <eblake@redhat.com>
9704
9705         time: enforce recent POSIX ruling that time_t is integral
9706         * lib/time.in.h (__time_t_must_be_integral): Detect any
9707         problematic systems, allowing the rest of gnulib to assume POSIX.
9708
9709 2010-10-08  Jim Meyering  <meyering@redhat.com>
9710
9711         fdopendir: fix a bug on systems lacking openat and /proc support
9712         OpenBSD 4.7 is one such system.  The most noticeable effect was
9713         failure of any application making nontrivial use of fts: rm, du,
9714         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9715           ./rm: traversal failed: `a': Bad file descriptor
9716         Debugging that, you see that even though FD 6 was closed just
9717         prior to the opendir call in fd_clone_opendir, its resulting
9718         dir->dd_fd was 8, rather than the expected value of 6:
9719
9720         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9721         93                close (fd);
9722         (gdb) n
9723         94                dir = fd_clone_opendir (dupfd);
9724         (gdb) n
9725         95                saved_errno = errno;
9726         (gdb) p dir->dd_fd
9727         $11 = 8
9728
9729         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9730         The problem is that on OpenBSD, fd_clone_opendir has to resort
9731         to using the old-style save/restore CWD mechanism, due to its
9732         lack of openat/proc support, and *that* would steal the FD (6)
9733         that opendir was supposed to use.
9734
9735         The fix is to squirrel away the desired FD so that save_cwd uses a
9736         different one, and then free the dest FD right before calling opendir.
9737         That guarantees opendir will use the required file descriptor.
9738
9739         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9740
9741 2010-10-08  Bruno Haible  <bruno@clisp.org>
9742
9743         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9744         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9745
9746 2010-10-08  Bruno Haible  <bruno@clisp.org>
9747
9748         nanosleep: Make replacement POSIX compliant.
9749         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9750         is out of range.
9751         Reported by Jim Meyering.
9752
9753 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9754
9755         bootstrap: add hook for altering gnulib.mk, for Bison
9756         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9757         the Bison bootstrapping process can rewrite file names and variables
9758         in this file before later parts of 'bootstrap' use the file.
9759         Bison wants to include lib/gnulib.mk from the top-level makefile,
9760         so it needs the file names in this file to be relative to the top
9761         level, not relative to lib; plus it needs variable names to be
9762         rewritten.
9763         (slurp): Use the new function.
9764
9765         bootstrap: reformat for readability
9766         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9767
9768 2010-10-08  Eric Blake  <eblake@redhat.com>
9769
9770         docs: update cygwin progress
9771         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9772         1.7.7.
9773         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9774         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9775         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9776         * doc/posix-functions/carg.texi (carg): Likewise.
9777         * doc/posix-functions/cargf.texi (cargf): Likewise.
9778         * doc/posix-functions/casin.texi (casin): Likewise.
9779         * doc/posix-functions/casinf.texi (casinf): Likewise.
9780         * doc/posix-functions/casinh.texi (casinh): Likewise.
9781         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9782         * doc/posix-functions/catan.texi (catan): Likewise.
9783         * doc/posix-functions/catanf.texi (catanf): Likewise.
9784         * doc/posix-functions/catanh.texi (catanh): Likewise.
9785         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9786         * doc/posix-functions/ccos.texi (ccos): Likewise.
9787         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9788         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9789         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9790         * doc/posix-functions/cexp.texi (cexp): Likewise.
9791         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9792         * doc/posix-functions/cimag.texi (cimag): Likewise.
9793         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9794         * doc/posix-functions/clog.texi (clog): Likewise.
9795         * doc/posix-functions/clogf.texi (clogf): Likewise.
9796         * doc/posix-functions/conj.texi (conj): Likewise.
9797         * doc/posix-functions/conjf.texi (conjf): Likewise.
9798         * doc/posix-functions/cpow.texi (cpow): Likewise.
9799         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9800         * doc/posix-functions/cproj.texi (cproj): Likewise.
9801         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9802         * doc/posix-functions/creal.texi (creal): Likewise.
9803         * doc/posix-functions/crealf.texi (crealf): Likewise.
9804         * doc/posix-functions/csin.texi (csin): Likewise.
9805         * doc/posix-functions/csinf.texi (csinf): Likewise.
9806         * doc/posix-functions/csinh.texi (csinh): Likewise.
9807         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9808         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9809         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9810         * doc/posix-functions/ctan.texi (ctan): Likewise.
9811         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9812         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9813         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9814         * doc/posix-headers/complex.texi (complex.h): Likewise.
9815
9816 2010-10-07  Jim Meyering  <meyering@redhat.com>
9817
9818         parse-datetime: avoid compilation failure on OpenBSD 4.7
9819         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9820         This works around a compilation failure on OpenBSD 4.7:
9821         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9822
9823 2010-10-07  Eric Blake  <eblake@redhat.com>
9824
9825         docs: update cygwin progress
9826         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9827         1.7.6.
9828         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9829         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9830         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9831         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9832         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9833         Likewise.
9834         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9835         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9836         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9837         Likewise.
9838         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9839         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9840         Likewise.
9841         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9842         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9843         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9844         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9845         Likewise.
9846         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9847         Likewise.
9848         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9849
9850         docs: update parse-datetime history
9851         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9852         documentation of this function's history and alternatives.
9853
9854         cygwin: use more robust version check
9855         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9856         exclude an eventual cygwin 1.9.1.
9857         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9858         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9859         (gl_FUNC_STRCASESTR): Likewise.
9860         Reported by Bruno Haible.
9861
9862 2010-10-06  Bruno Haible  <bruno@clisp.org>
9863
9864         string, sys_select: Avoid #including large headers unless necessary.
9865         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9866         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9867         OSF/1, BeOS, Haiku.
9868         Reported by Jim Meyering.
9869
9870 2010-10-05  Eric Blake  <eblake@redhat.com>
9871
9872         memmem, strstr, strcasestr: fix bug with long periodic needle
9873         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9874         periodic needle having false positive.
9875         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9876         and cygwin 1.7.7.
9877         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9878         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9879         (gl_FUNC_STRCASESTR): Likewise.
9880         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9881         * tests/test-memmem.c (main): Expose the bug.
9882         * tests/test-strcasestr.c (main): Likewise.
9883         * tests/test-strstr.c (main): Likewise.
9884         * tests/test-c-strcasestr.c (main): Likewise.
9885         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9886         * doc/posix-functions/strstr.texi (strstr): Likewise.
9887         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9888         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9889
9890 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9891
9892         parse-datetime: do some more renaming
9893         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9894         parse_datetime, not get_date.  Mention the renaming.
9895         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9896         in comments.
9897         * m4/bison.m4: Likewise.
9898
9899 2010-10-05  Eric Blake  <eblake@redhat.com>
9900
9901         parse-datetime: better name than get_date
9902         * NEWS: Reword the deprecation notice.
9903         * modules/get_date: Rename to modules/parse-datetime.
9904         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9905         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9906         * lib/get_date.y: Rename to lib/parse-datetime.y.
9907         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9908         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9909         * doc/getdate.texi: Provide fallback wrapper.
9910         * lib/getdate.h: Move guts, and wrap...
9911         * lib/parse-datetime.h: ...new file.
9912         * lib/parse-datetime.y (get_date): Rename...
9913         (parse_datetime): ...to this.
9914         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9915         (gl_PARSE_DATETIME): ...to this.
9916         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9917         documentation.
9918         * modules/getdate (Files): Provide fallback docs and header.
9919         (Notice, Depends-on): Update references.
9920         * tests/test-parse-datetime.c: Likewise.
9921         * DEPENDENCIES: Likewise.
9922         * MODULES.html.sh (Date and time <time.h>): Likewise.
9923         * doc/parse-datetime.texi (Date input formats)
9924         (Authors of parse_datetime): Likewise.
9925         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9926         (Include): Likewise.
9927         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9928         * gnulib-tool: Likewise.
9929         * m4/bison.m4 (gl_BISON): Likewise.
9930         Suggested by Bruno Haible.
9931
9932 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9933
9934         more ports to Solaris tr, which needs [] around ranges
9935         * gnulib-tool: Solaris tr needs [] around ranges.
9936         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9937         * tests/test-pipe-filter-gi1.c (main): Likewise.
9938         * tests/test-pipe-filter-ii1.c (main): Likewise.
9939
9940 2010-10-05  Eric Blake  <eblake@redhat.com>
9941
9942         bootstrap: fix Solaris regression
9943         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9944         around ranges.
9945         Reported by Pádraig Brady.
9946
9947         bootstrap: work with pkg-config
9948         * build-aux/bootstrap (check_versions): Also transliterate - in
9949         prerequisite name.
9950         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9951         prerequisites that were already found, to avoid confusion.
9952         Reported by Justin Clift.
9953
9954         faccessat: remove unused wrappers
9955         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9956         presence of these wrappers dragged in -lgen on Solaris.
9957         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9958
9959 2010-10-05  Jim Meyering  <meyering@redhat.com>
9960
9961         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9962         * Makefile (sc_pragma_columns): New syntax-check rule.
9963
9964 2010-10-04  Bruno Haible  <bruno@clisp.org>
9965
9966         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9967         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9968         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9969         Reported by Bruce Korb and Eric Blake.
9970
9971 2010-10-04  Bruno Haible  <bruno@clisp.org>
9972
9973         threadlib: Make option --with-libpth-prefix work.
9974         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9975         use $LIBPTH, not just -lpth.
9976
9977 2010-10-04  Bruno Haible  <bruno@clisp.org>
9978
9979         Avoid line length limitation from HP NonStop system header files.
9980         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9981         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9982         * lib/ctype.in.h: Likewise.
9983         * lib/dirent.in.h: Likewise.
9984         * lib/errno.in.h: Likewise.
9985         * lib/fcntl.in.h: Likewise.
9986         * lib/float.in.h: Likewise.
9987         * lib/getopt.in.h: Likewise.
9988         * lib/iconv.in.h: Likewise.
9989         * lib/inttypes.in.h: Likewise.
9990         * lib/langinfo.in.h: Likewise.
9991         * lib/locale.in.h: Likewise.
9992         * lib/math.in.h: Likewise.
9993         * lib/netdb.in.h: Likewise.
9994         * lib/netinet_in.in.h: Likewise.
9995         * lib/poll.in.h: Likewise.
9996         * lib/pthread.in.h: Likewise.
9997         * lib/pty.in.h: Likewise.
9998         * lib/sched.in.h: Likewise.
9999         * lib/se-selinux.in.h: Likewise.
10000         * lib/search.in.h: Likewise.
10001         * lib/signal.in.h: Likewise.
10002         * lib/spawn.in.h: Likewise.
10003         * lib/stdarg.in.h: Likewise.
10004         * lib/stddef.in.h: Likewise.
10005         * lib/stdint.in.h: Likewise.
10006         * lib/stdio.in.h: Likewise.
10007         * lib/stdlib.in.h: Likewise.
10008         * lib/string.in.h: Likewise.
10009         * lib/strings.in.h: Likewise.
10010         * lib/sys_file.in.h: Likewise.
10011         * lib/sys_ioctl.in.h: Likewise.
10012         * lib/sys_select.in.h: Likewise.
10013         * lib/sys_socket.in.h: Likewise.
10014         * lib/sys_stat.in.h: Likewise.
10015         * lib/sys_time.in.h: Likewise.
10016         * lib/sys_times.in.h: Likewise.
10017         * lib/sys_utsname.in.h: Likewise.
10018         * lib/sys_wait.in.h: Likewise.
10019         * lib/sysexits.in.h: Likewise.
10020         * lib/termios.in.h: Likewise.
10021         * lib/time.in.h: Likewise.
10022         * lib/unistd.in.h: Likewise.
10023         * lib/wchar.in.h: Likewise.
10024         * lib/wctype.in.h: Likewise.
10025         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10026         * modules/ctype (Makefile.am): Likewise.
10027         * modules/dirent (Makefile.am): Likewise.
10028         * modules/errno (Makefile.am): Likewise.
10029         * modules/fcntl-h (Makefile.am): Likewise.
10030         * modules/float (Makefile.am): Likewise.
10031         * modules/getopt-posix (Makefile.am): Likewise.
10032         * modules/iconv-h (Makefile.am): Likewise.
10033         * modules/inttypes (Makefile.am): Likewise.
10034         * modules/langinfo (Makefile.am): Likewise.
10035         * modules/locale (Makefile.am): Likewise.
10036         * modules/math (Makefile.am): Likewise.
10037         * modules/netdb (Makefile.am): Likewise.
10038         * modules/netinet_in (Makefile.am): Likewise.
10039         * modules/poll-h (Makefile.am): Likewise.
10040         * modules/pthread (Makefile.am): Likewise.
10041         * modules/pty (Makefile.am): Likewise.
10042         * modules/sched (Makefile.am): Likewise.
10043         * modules/search (Makefile.am): Likewise.
10044         * modules/selinux-h (Makefile.am): Likewise.
10045         * modules/signal (Makefile.am): Likewise.
10046         * modules/spawn (Makefile.am): Likewise.
10047         * modules/stdarg (Makefile.am): Likewise.
10048         * modules/stddef (Makefile.am): Likewise.
10049         * modules/stdint (Makefile.am): Likewise.
10050         * modules/stdio (Makefile.am): Likewise.
10051         * modules/stdlib (Makefile.am): Likewise.
10052         * modules/string (Makefile.am): Likewise.
10053         * modules/strings (Makefile.am): Likewise.
10054         * modules/sys_file (Makefile.am): Likewise.
10055         * modules/sys_ioctl (Makefile.am): Likewise.
10056         * modules/sys_select (Makefile.am): Likewise.
10057         * modules/sys_socket (Makefile.am): Likewise.
10058         * modules/sys_stat (Makefile.am): Likewise.
10059         * modules/sys_time (Makefile.am): Likewise.
10060         * modules/sys_times (Makefile.am): Likewise.
10061         * modules/sys_utsname (Makefile.am): Likewise.
10062         * modules/sys_wait (Makefile.am): Likewise.
10063         * modules/sysexits (Makefile.am): Likewise.
10064         * modules/termios (Makefile.am): Likewise.
10065         * modules/time (Makefile.am): Likewise.
10066         * modules/unistd (Makefile.am): Likewise.
10067         * modules/wchar (Makefile.am): Likewise.
10068         * modules/wctype (Makefile.am): Likewise.
10069
10070 2010-10-04  Bruno Haible  <bruno@clisp.org>
10071
10072         read-file tests: Avoid a test failure on NonStop Kernel.
10073         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10074         a regular file.
10075         Reported by Joachim Schmitz <schmitz@hp.com>.
10076
10077 2010-10-03  Bruno Haible  <bruno@clisp.org>
10078
10079         gnulib-tool: Fixes for --create-testdir with --libtool.
10080         * gnulib-tool (func_get_automake_snippet): Don't augment
10081         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10082         an executable.
10083         (func_create_testdir): Handle module 'alloca' like func_import.
10084         Reported by Bruce Korb <bruce.korb@gmail.com>.
10085
10086 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10087
10088         Avoid some lines longer than 80 characters.
10089         * lib/stdint.in.h: Break long comment lines.
10090         * lib/math.in.h: Likewise.
10091         (_GL_NUM_UINT_WORDS): New macro, for readability.
10092         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10093         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10094         * lib/stdlib.in.h: Likewise.
10095         * lib/spawn.in.h: Likewise.
10096         * lib/sys_socket.in.h: Update an URL.
10097         * lib/sys_stat.in.h: Break long line.
10098
10099 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10100
10101         Improve pmccabe2html.
10102         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10103         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10104         when the sources change. Remove the line in the HTML about "Used
10105         ranges" (which implied that there might be other unused ranges),
10106         rename "Resume" to "Summary" (easier to understand for more users).
10107         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10108         styles, and some unnecessary blank lines.
10109
10110 2010-10-03  Bruno Haible  <bruno@clisp.org>
10111             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10112
10113         acl: Add support for ACLs on NonStop Kernel.
10114         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10115         Check whether the function aclsort() exists.
10116         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10117         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10118         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10119         (acl_nontrivial [HAVE_ACLSORT]: New function.
10120         (file_has_acl): Implement for NonStop Kernel.
10121         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10122         (qset_acl): Implement for NonStop Kernel.
10123         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10124         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10125         (main): Implement for NonStop Kernel.
10126         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10127         Kernel. Handle this flavor.
10128         * tests/test-set-mode-acl.sh: Likewise.
10129         * tests/test-copy-acl.sh: Likewise.
10130         * tests/test-copy-file.sh: Likewise.
10131
10132 2010-10-03  Bruno Haible  <bruno@clisp.org>
10133
10134         Info about ACLs on NonStop Kernel.
10135         * doc/acl-resources.txt: Add info about NonStop Kernel.
10136         References by Joachim Schmitz <schmitz@hp.com>.
10137
10138 2010-10-02  Bruno Haible  <bruno@clisp.org>
10139
10140         Define missing EDQUOT on NonStop Kernel.
10141         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10142         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10143         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10144         missing.
10145         * doc/posix-headers/errno.texi: Mention the NSK bug.
10146         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10147         Reported by Joachim Schmitz <schmitz@hp.com>.
10148
10149 2010-10-02  Bruno Haible  <bruno@clisp.org>
10150
10151         Update doc for POSIX:2008.
10152         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10153         Update URL of POSIX specification.
10154
10155 2010-10-02  Bruno Haible  <bruno@clisp.org>
10156
10157         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10158         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10159         from gnulib, not from Automake.
10160
10161 2010-10-02  Bruno Haible  <bruno@clisp.org>
10162
10163         New module 'system-posix'.
10164         * modules/system-posix: New file.
10165         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10166         module is present.
10167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10168         GNULIB_SYSTEM_POSIX.
10169         * modules/stdlib (Depends-on): Remove sys_wait.
10170         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10171         * doc/posix-functions/system.texi: Mention the new module.
10172         * doc/posix-headers/stdlib.texi: Likewise.
10173         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10174         define test_sys_wait_macros to a no-op.
10175         Reported by Sam Steingold <sds@gnu.org>.
10176
10177 2010-09-30  Bruno Haible  <bruno@clisp.org>
10178
10179         More renaming from 'getdate' to 'get_date'.
10180         * doc/get_date.texi: Renamed from doc/getdate.texi.
10181         * modules/get_date (Files): Update.
10182         * MODULES.html.sh (Date and time <time.h>): Update.
10183         * DEPENDENCIES: Update.
10184         * gnulib-tool: Update comment.
10185         * m4/bison.m4 (gl_BISON): Likewise.
10186         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10187
10188 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10189
10190         bootstrap: support ACLOCAL_FLAGS during aclocal
10191         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10192         can add additional -I dir for third-party .m4 files.
10193
10194 2010-09-30  Eric Blake  <eblake@redhat.com>
10195
10196         bootstrap: use glibtoolize on MacOS
10197         * build-aux/bootstrap (check_versions): Convert libtool into
10198         libtoolize.
10199         (tool search): Move libtool check earlier, and look for
10200         glibtoolize for MacOS.
10201         (gnulib_tool_options): Auto-add --libtool when appropriate.
10202         Reported by Justin Clift.
10203
10204         poll: fix typo that broke test on MacOS
10205         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10206         Reported by Justin Clift.
10207
10208         getdate: rename to get_date
10209         Note: getdate.h is not renamed, to minimize client impact.
10210         * modules/getdate: Mark obsolete.  Move old contents...
10211         * modules/get_date: ...to new module name.
10212         * modules/getdate-tests: Move...
10213         * modules/get_date-tests: ...here.
10214         * m4/getdate.m4: Move...
10215         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10216         * lib/getdate.y: Move...
10217         * lib/get_date.y: ...here.
10218         * tests/test-getdate.c: Move...
10219         * tests/test-get_date.c: ...here.
10220         * doc/posix-functions/getdate.texi (getdate): Update name.
10221         * NEWS: Mention the change.
10222
10223 2010-09-29  Bruno Haible  <bruno@clisp.org>
10224
10225         Separate the module 'waitpid' from the module 'sys_wait'.
10226         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10227         present.
10228         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10229         gl_MODULE_INDICATOR_FOR_TESTS.
10230         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10231         * modules/sys_wait (Depends-on): Remove waitpid.
10232         (Makefile.am): Substitute GNULIB_WAITPID.
10233         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10234         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10235         signature only if the 'waitpid' module is present.
10236         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10237         * NEWS: Mention the change.
10238         * modules/grantpt (Depends-on): Add waitpid.
10239         * modules/wait-process (Depends-on): Likewise.
10240
10241 2010-09-29  Bruno Haible  <bruno@clisp.org>
10242
10243         More tests for module 'sys_wait'.
10244         * modules/sys_wait-c++-tests: New file.
10245         * tests/test-sys_wait-c++.cc: New file.
10246         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10247         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10248
10249 2010-09-29  Bruno Haible  <bruno@clisp.org>
10250
10251         New module 'waitpid'.
10252         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10253         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10254         Don't include <process.h>.
10255         (waitpid): Declare only, using modern idiom.
10256         * m4/waitpid.m4: New file.
10257         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10258         * modules/waitpid: New file.
10259         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10260         (Makefile.am): Update.
10261         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10262
10263 2010-09-28  Bruno Haible  <bruno@clisp.org>
10264
10265         poll: Assume ANSI C.
10266         * lib/poll.c (poll): Use an ANSI C declaration.
10267
10268 2010-09-28  Bruno Haible  <bruno@clisp.org>
10269
10270         poll-h: Create poll.h on all platforms.
10271         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10272         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10273         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10274         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10275         (gl_REPLACE_POLL_H): Don't set POLL_H.
10276         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10277         * modules/poll-h (Depends-on): Add include_next.
10278         (Makefile.am): Create poll.h unconditionally. Substitute also
10279         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10280
10281 2010-09-28  Bruno Haible  <bruno@clisp.org>
10282
10283         Tests for module 'poll-h'.
10284         * modules/poll-h-c++-tests: New file.
10285         * tests/test-poll-h-c++.cc: New file.
10286
10287         Tests for module 'poll-h'.
10288         * modules/poll-h-tests: New file.
10289         * tests/test-poll-h.c: New file.
10290
10291 2010-09-28  Bruno Haible  <bruno@clisp.org>
10292
10293         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10294         * modules/poll-h (Depends-on): Add 'extensions'.
10295
10296 2010-09-28  Bruno Haible  <bruno@clisp.org>
10297
10298         New module 'poll-h'.
10299         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10300         (poll): Use modern idiom.
10301         * modules/poll-h: New file.
10302         * modules/poll (Files): Remove lib/poll.in.h.
10303         (Depends-on): Add poll-h.
10304         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10305         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10306         * m4/poll_h.m4: New file.
10307         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10308         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10309         and invoke gl_REPLACE_POLL_H.
10310         * lib/poll.c: Use common idiom.
10311         * tests/test-poll.c: Likewise.
10312         * doc/posix-headers/poll.texi: Mention the poll-h module.
10313         Suggested by Eric Blake.
10314
10315 2010-09-26  Bruno Haible  <bruno@clisp.org>
10316
10317         sys_wait: Implement WSTOPSIG.
10318         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10319         Reported by Simon Josefsson.
10320
10321 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10322
10323         stdlib, sys_wait: Avoid compilation error on mingw.
10324         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10325
10326 2010-09-26  Bruno Haible  <bruno@clisp.org>
10327
10328         stdlib tests: Avoid code duplication.
10329         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10330         * modules/sys_wait-tests (Files): Likewise.
10331         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10332         * tests/test-stdlib.c: Include test-sys_wait.h.
10333         (main): Invoke test_sys_wait_macros.
10334         * tests/test-sys_wait.c: Include test-sys_wait.h.
10335         (main): Invoke test_sys_wait_macros.
10336
10337 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10338
10339         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10340         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10341         sure Windows sockets are working before calling getaddrinfo.
10342         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10343         * doc/gnulib.texi (Windows sockets): Fix typo.
10344
10345 2010-09-25  Bruno Haible  <bruno@clisp.org>
10346
10347         Tests for module 'regex-quote'.
10348         * modules/regex-quote-tests: New file.
10349         * tests/test-regex-quote.c: New file.
10350
10351         New module 'regex-quote'.
10352         * lib/regex-quote.h: New file.
10353         * lib/regex-quote.c: New file.
10354         * modules/regex-quote: New file.
10355         Suggested by Reuben Thomas <rrt@sc3d.org>.
10356
10357 2010-09-24  Bruno Haible  <bruno@clisp.org>
10358
10359         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10360         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10361
10362 2010-09-23  Bruno Haible  <bruno@clisp.org>
10363
10364         setenv: Relax license.
10365         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10366         Blake.
10367         Requested by Eric Blake.
10368
10369 2010-09-22  Bruno Haible  <bruno@clisp.org>
10370
10371         termios: Relax license.
10372         * modules/termios (License): Change to LGPLv2+.
10373         Requested by Eric Blake.
10374
10375 2010-09-22  Bruno Haible  <bruno@clisp.org>
10376
10377         threadlib: Allow the package to change the default to 'no'.
10378         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10379         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10380         Reported by Paul Eggert.
10381
10382 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10383             Bruno Haible  <bruno@clisp.org>
10384
10385         Fix endless loop in mbmemcasecoll.
10386         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10387         byte.
10388         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10389
10390 2010-09-22  Bruno Haible  <bruno@clisp.org>
10391
10392         Tests for module 'memcoll'.
10393         * modules/memcoll-tests: New file.
10394         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10395
10396         memcoll, xmemcoll: Clarify size vs. length.
10397         * modules/memcoll.c (memcoll0): Clarify specification.
10398         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10399         passed to collate_error.
10400
10401 2010-09-22  Bruno Haible  <bruno@clisp.org>
10402
10403         Tests for module 'memcasecmp'.
10404         * modules/memcasecmp-tests: New file.
10405         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10406
10407 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10408
10409         * lib/pthread.in.h: Add split double-inclusion guard, and include
10410         system <pthread.h> if there is one.  Use @@-style as in other
10411         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10412         pthread.h doesn't.
10413         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10414         (pthread_mutexattr_settype, pthread_mutex_trylock):
10415         New static inline functions, if there's no system <pthread.h>.
10416         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10417         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10418         Approximate with mutexes if the system lacks spinlocks, as in
10419         MacOS.
10420         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10421         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10422         @@-style.  Check for spinlocks separately.
10423         (gl_PTHREAD_DEFAULTS): New macro.
10424         * modules/pthread: Redo to use a more typical style for in.h files.
10425
10426 2010-09-21  Eric Blake  <eblake@redhat.com>
10427
10428         net_if: enhance tests
10429         * tests/test-net_if.c (main): Move signature checks earlier.
10430         Print failures to stderr.
10431         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10432         Document the bug that we do not yet fix.
10433
10434 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10435
10436         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10437         about gnulib, not GSS.
10438
10439 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10440
10441         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10442         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10443         for Emacs.
10444         * build-aux/pmccabe2html: Make Makefile.am example code more
10445         cut-and-paste friendly.
10446
10447 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10448
10449         * tests/test-net_if.c: New file.
10450         * modules/net_if-tests: New file.
10451
10452 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10453
10454         pthread: add pthread_spin_destroy
10455         * lib/pthread.in.h (pthread_spin_destroy): New function.
10456
10457 2010-09-19  Bruno Haible  <bruno@clisp.org>
10458
10459         gnulib-tool: Fix --help output.
10460         * gnulib-tool (func_usage): Fix help message.
10461         Reported by Reuben Thomas <rrt@sc3d.org>.
10462
10463 2010-09-18  Jim Meyering  <meyering@redhat.com>
10464
10465         maint.mk: avoid unexpanded \n in two diagnostics
10466         * top/maint.mk (sc_prohibit_always_true_header_tests):
10467         Don't use a literal \n in a halt=... assignment.  It would not be
10468         expanded, and the two \n bytes would appear in the diagnostic output
10469         rather than the desired newline.  Use halt=$$(printf ... instead.
10470         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10471
10472 2010-09-18  Bruno Haible  <bruno@clisp.org>
10473
10474         netinet_in: Doc tweak.
10475         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10476         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10477
10478 2010-09-18  Jim Meyering  <meyering@redhat.com>
10479
10480         init.sh: correct an outdated comment
10481         * tests/init.sh (create_exe_shims_):  s/function/alias/
10482
10483         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10484         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10485         a file named "*.exe" is removed between the glob expansion and the
10486         processing of that oddly named file.
10487
10488 2010-09-17  Eric Blake  <eblake@redhat.com>
10489
10490         mirbsd: add some more support
10491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10492         in BSD family.
10493         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10494         devices as OpenBSD.
10495         * m4/host-os.m4 (mirbsd): Add MirBSD.
10496
10497         tests: fix unportable assumption on sys/wait.h
10498         * tests/test-sys_wait.c (main): Relax test.
10499         * tests/test-stdlib.c (main): Likewise.
10500
10501         init.sh: accomodate directory with no .exes
10502         * tests/init.sh: Accomodate directory containing only scripts.
10503
10504         tests: avoid compiler warning
10505         * tests/test-stdlib.c (main): Use the variable.
10506
10507         fdutimens, fdutimensat: update signature, again
10508         * lib/utimens.h (gl_futimens): Delete, and move signature...
10509         (fdutimens): ...here.
10510         (fdutimensat): Rearrange signature.
10511         (lutimensat): Rename variable for clarity.
10512         * lib/fdutimensat.c (fdutimensat): Update signature.
10513         * lib/utimens.c (fdutimens): Likewise.
10514         (gl_futimens): Delete.
10515         (utimens, lutimens): Update callers.
10516         * lib/futimens.c (futimens): Likewise.
10517         * tests/test-fdutimensat.c: Likewise.
10518         * tests/test-utimens.c: Likewise.
10519         * tests/test-futimens.h: Update comment.
10520         * NEWS: Mention this.
10521         Suggested by Paul Eggert.
10522
10523 2010-09-17  Bruno Haible  <bruno@clisp.org>
10524
10525         Take over the maintenance of some older macros from Autoconf.
10526         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10527         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10528         GNU Autoconf.
10529         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10530         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10531
10532 2010-09-17  Eric Blake  <eblake@redhat.com>
10533
10534         fdutimensat: drop atflag validation
10535         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10536         with valid fd, to close a race scenario where futimens is
10537         unsupported and FILE was replaced by a symlink.
10538         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10539         accordingly.
10540         Suggested by Paul Eggert.
10541
10542 2010-09-16  Bruno Haible  <bruno@clisp.org>
10543
10544         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10545         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10546
10547 2010-09-16  Bruno Haible  <bruno@clisp.org>
10548
10549         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10550         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10551         login_tty exists.
10552         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10553
10554 2010-09-16  Bruno Haible  <bruno@clisp.org>
10555
10556         login_tty: Make the replacement code work on BSD systems.
10557         * lib/login_tty.c: Include <sys/ioctl.h>.
10558         (login_tty): Use ioctl TIOCSCTTY when available.
10559         * modules/login_tty (Depends-on): Add sys_ioctl.
10560         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10561
10562 2010-09-16  Bruno Haible  <bruno@clisp.org>
10563
10564         login_tty: Stricter unit test.
10565         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10566         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10567         and tcgetsid() after login_tty.
10568         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10569
10570 2010-09-16  Bruno Haible  <bruno@clisp.org>
10571
10572         New module 'tcgetsid'.
10573         * lib/tcgetsid.c: New file.
10574         * m4/tcgetsid.m4: New file.
10575         * modules/tcgetsid: New file.
10576         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10577         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10578         GNULIB_TCGETSID, HAVE_TCGETSID.
10579         * lib/termios.in.h: Include <sys/types.h>.
10580         (tcgetsid): New declaration.
10581         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10582         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10583         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10584         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10585
10586 2010-09-16  Bruno Haible  <bruno@clisp.org>
10587
10588         Tests for module 'termios'.
10589         * modules/termios-c++-tests: New file.
10590         * modules/termios-tests: New file.
10591         * tests/test-termios-c++.cc: New file.
10592         * tests/test-termios.c: New file.
10593
10594         New module 'termios'.
10595         * modules/termios: New file.
10596         * lib/termios.in.h: New file.
10597         * m4/termios_h.m4: New file.
10598         * doc/posix-headers/termios.texi: Mention the new module.
10599
10600 2010-09-16  Eric Blake  <eblake@redhat.com>
10601
10602         fdutimensat: add an atflag parameter
10603         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10604         * lib/utimens.h (fdutimensat): Update prototype.
10605         * tests/test-fdutimensat.c: Adjust test to match.
10606         * NEWS: Document the change.
10607         Suggested by Paul Eggert.
10608
10609 2010-09-16  Bruno Haible  <bruno@clisp.org>
10610
10611         Fix typos in comments.
10612         * lib/striconveh.h: Fix typo in comment.
10613         * lib/login_tty.c (login_tty): Likewise.
10614
10615 2010-09-15  Bruno Haible  <bruno@clisp.org>
10616
10617         stdlib: clarify MirBSD WEXITSTATUS bug
10618         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10619         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10620
10621 2010-09-15  Eric Blake  <eblake@redhat.com>
10622
10623         stdlib: work around MirBSD WEXITSTATUS bug
10624         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10625         * modules/stdlib (Depends-on): Add sys_wait.
10626         * tests/test-sys_wait.c (main): Enhance test.
10627         * tests/test-stdlib.c (main): Likewise.
10628         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10629
10630         docs: mention MacOS issue with WEXITSTATUS(constant)
10631         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10632         issue.
10633         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10634
10635         strnlen: add tests
10636         * modules/strnlen-tests: New file.
10637         * tests/test-strnlen.c: Likewise.
10638
10639 2010-09-14  Bruno Haible  <bruno@clisp.org>
10640
10641         unistr/base: Avoid link errors when module 'libunistring' is also used.
10642         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10643         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10644         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10645         Declare also when HAVE_LIBUNISTRING is set.
10646         Reported by Pádraig Brady <P@draigbrady.com>.
10647
10648 2010-09-14  Eric Blake  <eblake@redhat.com>
10649
10650         test-rawmemchr: make more robust
10651         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10652         (Depends-on, configure.ac): Add needed prerequisites to use it.
10653         * modules/memchr-tests (Files, Depends-on, configure.ac):
10654         Likewise, to avoid implicit reliance on memchr module prereqs.
10655         * tests/test-memchr.c (main): Ensure proper masking.
10656         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10657         reads.
10658
10659         memchr: detect glibc Alpha bug
10660         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10661         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10662         Alpha.
10663         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10664         * tests/test-memchr.c (main): Enhance test.
10665         Reported by Nelson H. F. Beebe.
10666
10667 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10668
10669         fts, getcwd, glob: audit for dirfd returning -1
10670         * lib/fts.c (opendir): Remove #define; no longer used.
10671         (opendirat): New arg PDIR_FD.  All callers changed.
10672         (fts_build, _opendir2): Use new opendirat to avoid the need for
10673         dirfd, or for checking whether dirfd returns a negative value.
10674         Don't use opendir; always use openat followed by fdopendir.
10675         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10676         it.
10677         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10678         returns -1 here.
10679         * modules/fts (Depends-on): Remove dirfd.
10680         * modules/getcwd (Depends-on): Likewise.
10681
10682 2010-09-13  Eric Blake  <eblake@redhat.com>
10683
10684         float: fix broken MirBSD header
10685         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10686         * doc/posix-headers/float.texi (float.h): Document it.
10687
10688 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10689
10690         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10691         * lib/fts.c (opendirat): New arg extra_flags.
10692         (__opendir2): Use it to avoid following symlinks when opening
10693         a directory, if symlinks are not supposed to be followed.  See
10694         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10695
10696         fdopendir: preserve argument fd before returning
10697         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10698         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10699         (fdopendir): Use them, arranging for FD to be open to the same
10700         directory that it was when it started.  (It might be temporarily
10701         closed while fdopendir is running, so this not thread- or
10702         signal-safe.)  Be careful to do the right thing even when file
10703         descriptors are scarce and dup fails with errno == EMFILE.  See
10704         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10705
10706 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10707
10708         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10709         * NEWS: Document change.
10710         * m4/regex.m4: Disable test for regoff_t size.
10711
10712 2010-09-13  Jim Meyering  <meyering@redhat.com>
10713
10714         fts: don't operate on an invalid file descriptor after failed dup
10715         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10716         negative file descriptor.
10717
10718 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10719
10720         savedir: add streamsavedir, deprecate fdsavedir
10721         * NEWS: Mention deprecation of fdsavedir.
10722         * lib/savedir.c (streamsavedir): New extern function, whose name
10723         ends in "savedir" to be consistent with the others.  This differs
10724         from savedirstream in that it doesn't close its argument.  The
10725         next version of GNU tar will use this instead of fdsavedir, to
10726         avoid some race conditions and conserve file descriptors.
10727         (savedirstream): Reimplement as a wrapper around streamsavedir.
10728         (fdsavedir): Add a comment deprecating this function.  As far as
10729         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10730         * lib/savedir.h (streamsavedir): New decl.
10731         (fdsavedir): Add a comment deprecating this.
10732
10733 2010-09-10  Bruno Haible  <bruno@clisp.org>
10734
10735         langinfo: Fix last commit.
10736         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10737         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10739
10740 2010-09-10  Bruno Haible  <bruno@clisp.org>
10741
10742         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10743         * lib/progreloc.c (O_EXEC): Define fallback.
10744
10745 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10746
10747         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10748         * NEWS: Document recent changes to fcntl-h.
10749         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10750         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10751         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10752         Similarly for O_SEARCH; this last was already true, but not documented.
10753         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10754         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10755         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10756         Likewise.
10757         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10758         is zero, not whether it is defined.
10759         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10760         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10761         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10762
10763 2010-09-10  Bruno Haible  <bruno@clisp.org>
10764
10765         langinfo, nl_langinfo: Fix for IRIX 5.3.
10766         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10767         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10768         HAVE_LANGINFO_YESEXPR.
10769         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10770         HAVE_LANGINFO_YESEXPR.
10771         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10772         HAVE_LANGINFO_T_FMT_AMPM is 0.
10773         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10774         HAVE_LANGINFO_YESEXPR is 0.
10775         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10776         NOEXPR.
10777         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10778         * doc/posix-functions/nl_langinfo.texi: Likewise.
10779         Reported by Eric Blake.
10780
10781 2010-09-10  Bruno Haible  <bruno@clisp.org>
10782
10783         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10784         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10785         on FreeBSD 8.0 and OpenBSD 4.6.
10786         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10787         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10788         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10789         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10790         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10791         ac_includes_default.
10792         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10793
10794 2010-09-09  Eric Blake  <eblake@redhat.com>
10795
10796         strsignal: work around NetBSD bug
10797         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10798         * lib/string.in.h (includes): Likewise.
10799         * doc/posix-functions/strsignal.texi (strsignal): Document the
10800         bug.
10801         Reported by Nelson H. F. Beebe.
10802
10803         gnulib-tool: work with NetBSD /bin/sh
10804         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10805         (func_get_description, func_get_comment, func_get_status)
10806         (func_get_notice, func_get_applicability, func_get_filelist)
10807         (func_get_dependencies, func_get_autoconf_early_snippet)
10808         (func_get_autoconf_snippet, func_get_automake_snippet)
10809         (func_get_include_directive, func_get_link_directive)
10810         (func_get_license, func_get_maintainer, func_import): Avoid
10811         shell syntax errors from parsing syntax extensions.
10812
10813 2010-09-09  Bruno Haible  <bruno@clisp.org>
10814
10815         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10816         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10817         a reliable way to determine whether the 'alias' command works.
10818
10819 2010-09-08  Jim Meyering  <meyering@redhat.com>
10820
10821         init.sh: penalize a set-x-impaired shell; don't disqualify it
10822         * tests/init.sh: Too many shells corrupt application stderr when
10823         you set -x, so we can't afford to disqualify them, since at least
10824         on Irix-6.5, that would disqualify all bourne shells.
10825         Instead, use a two-pass approach.
10826         On the first pass, try to find a shell that meets the stricter
10827         condition that set -x does not corrupt stderr.
10828         If no shell meets the stricter condition, retest each candidate
10829         shell, but without that extra condition.  Finally, when
10830         VERBOSE=yes is requested and set -x might cause trouble, simply
10831         issue a warning and refrain from enabling debug output.
10832
10833 2010-09-08  Eric Blake  <eblake@redhat.com>
10834
10835         unsetenv: fix OpenBSD bug
10836         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10837         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10838         documentation.
10839         Reported by Jim Meyering.
10840
10841         strtod: work around IRIX 6.5 bug
10842         * lib/strtod.c (strtod): Reparse number on shorter string if
10843         exponent parse was invalid.
10844         * tests/test-strtod.c (main): Add check for "0x1p 2".
10845         Reported by Tom G. Christensen.
10846
10847         getopt: optimize previous patch
10848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10849         empty variable.  Speed up awk script.
10850         Reported by Paolo Bonzini.
10851
10852 2010-09-08  Jim Meyering  <meyering@redhat.com>
10853
10854         test.sh: disqualify shells for which set -x corrupts stderr
10855         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10856         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10857         appear in stderr output.  For example, this command:
10858             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10859         prints "P=1" on those two systems:
10860
10861 2010-09-08  Bruno Haible  <bruno@clisp.org>
10862
10863         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10864         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10865         commands, because some shells ignore redirections when there is an
10866         error in the command lookup.
10867         Reported by Eric Blake.
10868
10869 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10870
10871         * lib/regex.h: Fix a mention of `regex_compile' (should be
10872         `re_compile_pattern').
10873         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10874         (re_set_registers): Correct name of parameter in comment.
10875
10876         * doc/regex.texi: Add documentation for missing syntax flags.
10877         Remove commented-out documentation of defunct syntax option
10878         RE_NO_EMPTY_ALTS.
10879         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10880         Add documentation of re_set_registers.
10881         Document trick to re-use a pattern buffer by setting fastmap manually.
10882         Update documentation of struct re_pattern_buffer per public members.
10883         Uncomment documentation of equivalence class operators and
10884         collating symbol operators, since they are now implemented,
10885         Explain leftmost-longest matching in relation to alternatives.
10886         Tidy documentation of substring matching.
10887         Remove POSIX documentation, which is done better in
10888         glibc, and refer the reader there. Keep BSD API documentation, as
10889         that is not readily available elsewhere.
10890
10891 2010-09-07  Eric Blake  <eblake@redhat.com>
10892
10893         getopt: handle POSIXLY_CORRECT set but not exported
10894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10895         export state of POSIXLY_CORRECT, due to bash set -o posix.
10896         Reported by Dustin J. Mitchell.
10897
10898 2010-09-05  Bruno Haible  <bruno@clisp.org>
10899
10900         gnulib-tool: Highlight the changed options.
10901         * gnulib-tool (func_usage): Display the --import, --add-import,
10902         --remove-import explanations in bold font.
10903
10904 2010-09-06  Karl Berry  <karl@gnu.org>
10905
10906         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10907
10908 2010-09-05  Bruno Haible  <bruno@clisp.org>
10909
10910         uniwidth/width: Update comment.
10911         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10912         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10913
10914 2010-09-05  Bruno Haible  <bruno@clisp.org>
10915
10916         isinf, isnan: Relax license.
10917         * modules/isinf (License): Change from GPL to LGPL, with consent from
10918         Ben Pfaff.
10919         * modules/isnan (License): Likewise.
10920         Requested by Ludovic Courtès.
10921
10922 2010-09-04  Bruno Haible  <bruno@clisp.org>
10923
10924         gnulib-tool: Help migration from --import to --add-import or --update.
10925         * gnulib-tool: Emit a verbose error message when --import is used
10926         without any module name.
10927
10928 2010-09-04  Bruno Haible  <bruno@clisp.org>
10929
10930         Update doc about gnulib-tool.
10931         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10932         'gnulib-tool --update' in more detail.
10933         Reported by Eric Blake.
10934
10935 2010-09-04  Bruno Haible  <bruno@clisp.org>
10936
10937         gnulib-tool: Change --import. New options --add/remove-import.
10938         * gnulib-tool: New options --add-import, --remove-import.
10939         (func_usage): Document them.
10940         (have_associative): Define always.
10941         (func_import): In import mode, don't merge the specified settings with
10942         the cached settings. Implement remove-import mode.
10943         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10944         Explain when to use them versus --import.
10945         (Simple update): Use --add-import instead of --import.
10946         * NEWS: Mention the change.
10947
10948 2010-09-04  Bruno Haible  <bruno@clisp.org>
10949
10950         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10951         separate gnulib.mk.
10952
10953 2010-09-04  Bruno Haible  <bruno@clisp.org>
10954
10955         gnulib-tool: Don't talk about CVS any more.
10956         * gnulib-tool (func_usage, func_import): Write "version control"
10957         instead of CVS.
10958
10959 2010-09-04  Jim Meyering  <meyering@redhat.com>
10960
10961         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10962         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10963         false positives (whose names may be ill-chosen) when searching
10964         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10965         would cause a false-positive.
10966
10967         avoid coreutils "make distcheck" failure
10968         Coreutils tests with an absolute build directory name that contains
10969         a space.  Not quoting this directory name caused a failure.
10970         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10971         * tests/test-vc-list-files-cvs.sh: Likewise.
10972
10973 2010-09-04  Bruno Haible  <bruno@clisp.org>
10974
10975         gnulib-tool: Avoid error when run in a package without Makefile.am.
10976         * gnulib-tool: When collecting the m4dirs in a package that does not
10977         have a Makefile.am, eliminate those directories that contain no
10978         gnulib-cache.m4. Fix expression that counts these directories.
10979
10980 2010-09-04  Bruno Haible  <bruno@clisp.org>
10981
10982         update-copyright test: Improve output when perl is missing or too old.
10983         * tests/test-update-copyright.sh: Move test of Perl version down after
10984         the test whether Perl exists. Provide an explanation relating Perl's
10985         error message to Automake's SKIP: message.
10986
10987 2010-09-04  Bruno Haible  <bruno@clisp.org>
10988
10989         Don't augment PATH in TESTS_ENVIRONMENT.
10990         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10991         set abs_aux_dir instead of augmenting PATH.
10992         * modules/vc-list-files-tests (Makefile.am): Likewise.
10993         * tests/test-update-copyright.sh: Augment PATH here.
10994         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10995         path_prepend_.
10996         * tests/test-vc-list-files-git.sh: Likewise.
10997
10998 2010-09-04  Jim Meyering  <meyering@redhat.com>
10999
11000         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11001         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11002
11003 2010-09-04  Bruno Haible  <bruno@clisp.org>
11004
11005         strdup: Fix compilation error in C++ mode.
11006         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11007         the macro.
11008
11009 2010-09-04  Bruno Haible  <bruno@clisp.org>
11010
11011         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11012         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11013         macro into a function.
11014         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11015
11016 2010-09-04  Bruno Haible  <bruno@clisp.org>
11017
11018         Set PATH_SEPARATOR the same way autoconf does.
11019         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11020         the value of PATH_SEPARATOR the same way autoconf-generated configure
11021         scripts do.
11022         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11023         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11024
11025 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11026
11027         Set PATH_SEPARATOR the same way autoconf does.
11028         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11029         the same way autoconf-generated configure scripts do.
11030         * posix-modules: Likewise.
11031
11032 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11033
11034         hash: fix safe_hasher const typo
11035         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11036         const; otherwise, there is a type error later.
11037
11038 2010-09-02  Jim Meyering  <meyering@redhat.com>
11039
11040         test-update-copyright.sh: require perl 5.8.0
11041         * tests/test-update-copyright.sh: Require 5.8.0,
11042         which Tom G. Christensen has confirmed is adequate,
11043         while 5.6.1 is not.
11044
11045 2010-09-02  Eric Blake  <eblake@redhat.com>
11046
11047         tests: init.sh improvements for re-exec'ing with zsh
11048         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11049         -vx through shell re-exec.
11050         Reported by Tom G. Christensen.
11051
11052         wctype: fix typo in previous commit
11053         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11054         Reported by Ludovic Courtès.
11055
11056 2010-09-02  Jim Meyering  <meyering@redhat.com>
11057
11058         test-update-copyright.sh: skip test if Perl is too old
11059         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11060         Reported by Tom G. Christensen.
11061
11062 2010-09-02  Bruno Haible  <bruno@clisp.org>
11063
11064         wctype: Avoid compilation error on IRIX 6.5.30.
11065         * lib/wctype.in.h (iswblank): Declare with a replacement if
11066         REPLACE_ISWBLANK is set.
11067         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11068         declared. Set REPLACE_ISWBLANK.
11069         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11070         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11071         * doc/posix-headers/wctype.texi: Likewise.
11072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11073
11074 2010-09-01  Bruno Haible  <bruno@clisp.org>
11075
11076         New module 'socketlib'.
11077         * modules/socketlib: New file.
11078         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11079         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11080         * modules/sockets (Depends-on): Add socketlib.
11081         Suggested by Sam Steingold <sds@gnu.org>.
11082
11083 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11084
11085         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11086
11087         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11088         when one needs search access to a directory but not read access.
11089         On systems where it is available, it works in some cases where
11090         O_RDONLY does not, namely on directories that are searchable but
11091         not readable, and which need only to be searchable.  If O_SEARCH
11092         is not available, fall back to the traditional method of using
11093         O_RDONLY.
11094
11095         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11096         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11097         when opening a directory that needs only to be searchable.
11098         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11099         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11100         * lib/openat-proc.c (openat_proc_name): Likewise.
11101         * lib/openat.c (openat_needs_fchdir): Likewise.
11102         * lib/save-cwd.c (save_cwd): Likewise.
11103         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11104
11105 2010-08-28  Bruno Haible  <bruno@clisp.org>
11106
11107         New module 'host-cpu-c-abi'.
11108         * modules/host-cpu-c-abi: New file.
11109         * m4/host-cpu-c-abi.m4: New file, based on part of
11110         clisp/src/m4/general.m4.
11111         Requested by Sam Steingold <sds@gnu.org>.
11112
11113 2010-08-31  Eric Blake  <eblake@redhat.com>
11114         and Jim Meyering  <meyering@redhat.com>
11115
11116         hash: factor, and guard against misbehaving hasher function
11117         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11118         of table->hasher's return value.  Also protect against a hash value
11119         so large that adding it to table->bucket results in a NULL pointer.
11120         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11121         Use it in place of open-coded check-and-abort.
11122
11123 2010-08-30  Bruno Haible  <bruno@clisp.org>
11124
11125         hash: silence spurious clang warning
11126         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11127         Reported by Eric Blake.
11128
11129 2010-08-30  Eric Blake  <eblake@redhat.com>
11130
11131         strstr, memmem, strcasestr: avoid leaked shell message
11132         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11133         FreeBSD.
11134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11135         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11136
11137         tests: silence clang warning
11138         * tests/test-malloca.c (do_allocation): Avoid dead store.
11139
11140 2010-08-29  Bruno Haible  <bruno@clisp.org>
11141
11142         gettext: Fix recent mistake.
11143         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11144
11145 2010-08-29  Bruno Haible  <bruno@clisp.org>
11146
11147         selinux-h: Offer a --without-selinux option.
11148         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11149         --without-selinux was specified, skip all tests and define
11150         HAVE_SELINUX_SELINUX_H to 0.
11151         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11152         set LIB_SELINUX to empty.
11153         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11154         gl_LIBSELINUX. If --without-selinux was specified, replace
11155         selinux/context.h.
11156         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11157
11158 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11159             Bruno Haible  <bruno@clisp.org>
11160
11161         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11162         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11163         of HAVE_REALLOC.
11164         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11165         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11166         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11167         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11168
11169 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11170             Bruno Haible  <bruno@clisp.org>
11171
11172         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11173         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11174         HAVE_CALLOC.
11175         * lib/xmalloc.c: Update accordingly.
11176         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11177         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11178         * modules/calloc-gnu (configure.ac): Invoke 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 'malloc-gnu' work again on AIX and OSF/1.
11184         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11185         HAVE_MALLOC.
11186         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11187         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11188         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11189
11190 2010-08-29  Bruno Haible  <bruno@clisp.org>
11191
11192         Update modules list.
11193         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11194         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11195         (String handling <string.h>): Add astrxfrm.
11196         (File system functions): Add readlinkat.
11197
11198 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11199
11200         Tests for module 'realloc-gnu'.
11201         * modules/realloc-gnu-tests: New file.
11202         * tests/test-realloc-gnu.c: New file.
11203
11204         Tests for module 'calloc-gnu'.
11205         * modules/calloc-gnu-tests: New file.
11206         * tests/test-calloc-gnu.c: New file.
11207
11208         Tests for module 'malloc-gnu'.
11209         * modules/malloc-gnu-tests: New file.
11210         * tests/test-malloc-gnu.c: New file.
11211
11212 2010-08-28  Bruno Haible  <bruno@clisp.org>
11213
11214         Rename module 'realloc' -> 'realloc-gnu'.
11215         * modules/realloc-gnu: New file, copied from modules/realloc.
11216         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11217         obsolete.
11218         * modules/mgetgroups (Depends-on): Update.
11219         * doc/posix-functions/realloc.texi: Update.
11220         * NEWS: Mention the change.
11221
11222         Rename module 'calloc' -> 'calloc-gnu'.
11223         * modules/calloc-gnu: New file, copied from modules/calloc.
11224         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11225         obsolete.
11226         * doc/posix-functions/calloc.texi: Update.
11227         * NEWS: Mention the change.
11228
11229         Rename module 'malloc' -> 'malloc-gnu'.
11230         * modules/malloc-gnu: New file, copied from modules/malloc.
11231         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11232         obsolete.
11233         * modules/argp (Depends-on): Update.
11234         * modules/regex (Depends-on): Update.
11235         * doc/posix-functions/malloc.texi: Update.
11236         * NEWS: Mention the change.
11237
11238 2010-08-28  Eric Blake  <eblake@redhat.com>
11239
11240         pread, pwrite: add missing dependency
11241         * modules/pread (Depends-on): Add extensions.
11242         * modules/pwrite (Depends-on): Likewise.
11243
11244 2010-08-28  Bruno Haible  <bruno@clisp.org>
11245
11246         unistr/u*-strchr: Fix tests dependencies.
11247         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11248         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11249         Reported by Ian Beckwith <ianb@erislabs.net>.
11250
11251 2010-08-28  Bruno Haible  <bruno@clisp.org>
11252
11253         read-file: Don't occupy too much unused memory.
11254         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11255
11256 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11257             Eric Blake  <eblake@redhat.com>
11258             Bruno Haible  <bruno@clisp.org>
11259
11260         read-file: Avoid memory reallocations with regular files.
11261         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11262         (fread_file): With regular files, use the remaining length as the
11263         initial buffer size.  Check against overflow.
11264         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11265         sys_stat.
11266
11267 2010-08-28  Bruno Haible  <bruno@clisp.org>
11268
11269         ftello: Relax license.
11270         * modules/ftello (License): Relax to LGPLv2+.
11271         Reported by Eric Blake.
11272
11273 2010-08-28  Bruno Haible  <bruno@clisp.org>
11274
11275         Avoid relocwrapper link errors due to gnulib replacement functions.
11276         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11277         function.
11278         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11279
11280 2010-08-28  Bruno Haible  <bruno@clisp.org>
11281
11282         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11283         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11284         defined.
11285         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11286         Suggested by Eric Blake.
11287
11288 2010-08-28  Bruno Haible  <bruno@clisp.org>
11289
11290         sys_socket, netdb: Ensure socklen_t gets defined.
11291         * modules/sys_socket (Depends-on): Add socklen.
11292         * modules/netdb (Depends-on): Likewise.
11293         * modules/getaddrinfo (Depends-on): Remove socklen.
11294         * modules/getsockopt (Depends-on): Likewise.
11295         * modules/setsockopt (Depends-on): Likewise.
11296         * tests/test-sys_socket.c: Check that socklen_t is defined.
11297         * tests/test-netdb.c: Likewise.
11298         * m4/socklen.m4: Update comments.
11299         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11300
11301 2010-08-27  Eric Blake  <eblake@redhat.com>
11302
11303         login_tty: add missing dependency
11304         * modules/login_tty (Depends-on): Add pty.
11305
11306 2010-08-26  Eric Blake  <eblake@redhat.com>
11307
11308         lib-symbol-versions: fix m4 quoting
11309         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11310         format for AC_LINK_IFELSE.
11311
11312         glob: fix compile test
11313         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11314
11315         btowc: fix missing file
11316         * modules/btowc (Files): Also ship locale-fr.m4.
11317
11318         lseek: fix link test
11319         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11320         AC_LINK_IFELSE.
11321
11322         include_next: silence autoconf 2.68 warning
11323         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11324         AC_COMPILE_IFELSE as special.
11325         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11326         autoconf < 2.68.
11327
11328         acl: fix compilation test
11329         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11330         AC_COMPILE_IFELSE.
11331
11332 2010-08-26  Bruno Haible  <bruno@clisp.org>
11333
11334         Modernize AC_TRY_RUN invocations.
11335         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11336         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11337         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11338         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11339         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11340         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11341         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11342         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11343         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11344         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11345         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11346         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11347         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11348         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11349         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11350         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11351         gl_MBRLEN_NUL_RETVAL): Likewise.
11352         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11353         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11354         Likewise.
11355         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11356         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11357         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11358         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11359         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11360         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11361         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11362         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11363         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11364         Likewise.
11365         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11366         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11367         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11368         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11369         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11370         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11371         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11372         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11373         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11375
11376 2010-08-26  Bruno Haible  <bruno@clisp.org>
11377
11378         Modernize AC_TRY_LINK invocations.
11379         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11380         AC_TRY_LINK.
11381         * m4/argp.m4 (gl_ARGP): Likewise.
11382         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11383         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11384         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11385         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11386         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11387         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11388         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11389         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11390         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11391         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11392         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11393         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11394         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11395         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11396         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11397         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11398         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11399         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11400         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11401         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11402         Likewise.
11403         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11404         Likewise.
11405         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11406         Likewise.
11407         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11408         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11409         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11410         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11411         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11412         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11413         * m4/servent.m4 (gl_SERVENT): Likewise.
11414         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11415         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11416         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11417         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11418         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11419         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11420         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11421         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11422         * modules/tsearch-tests (configure.ac): Likewise.
11423
11424 2010-08-26  Bruno Haible  <bruno@clisp.org>
11425
11426         Modernize AC_TRY_COMPILE invocations.
11427         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11428         AC_TRY_COMPILE.
11429         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11430         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11431         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11432         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11433         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11434         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11435         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11436         * m4/lock.m4 (gl_LOCK): Likewise.
11437         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11438         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11439         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11440         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11441         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11442         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11443         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11444         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11445         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11446         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11447         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11448         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11449         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11450         extraneous semicolon.
11451
11452 2010-08-26  Jim Meyering  <meyering@redhat.com>
11453
11454         stat-time: relax license LGPL
11455         * modules/stat-time (License): Change from GPL to LGPL,
11456         with consent from all contributors, for use in libguile.
11457         Requested by Ludovic Courtès.
11458
11459 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11460
11461         poll: return immediately on POLLHUP.
11462         * lib/poll.c (poll): Always set timeout before wait_timeout is
11463         computed.
11464
11465 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11466
11467         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11468         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11469         rmdir ("dir/.//"), unlinkat.
11470
11471 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11472
11473         stdbool: avoid spurious failure with modern xlc
11474         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11475
11476 2010-08-24  Bruno Haible  <bruno@clisp.org>
11477
11478         getloadavg: simplify code
11479         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11480         gl_have_func. Update comments.
11481
11482 2010-08-24  Eric Blake  <eblake@redhat.com>
11483
11484         getloadavg: don't define SVR4 on cygwin
11485         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11486         only define SVR4 when -lkvm is required.
11487         Reported by Yaakov Selkowitz.
11488
11489 2010-08-24  Bruno Haible  <bruno@clisp.org>
11490
11491         priv-set: fix comment
11492         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11493
11494 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11495
11496         priv-set: fix comments
11497         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11498         to match code, as suggested by David Bartley in:
11499         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11500
11501 2010-08-23  Eric Blake  <eblake@redhat.com>
11502
11503         stdbool: avoid rejecting clang
11504         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11505         * tests/test-stdbool.c: Enable more tests if using the system
11506         <stdbool.h> instead of the gnulib replacement.
11507         (main): Move xlc bug test to a runtime test for all compilers.
11508         Reported by Anders Kaseorg.
11509
11510         argz: fix shell quoting issue
11511         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11512         Reported by Charles Wilson.
11513
11514 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11515             Erik Faye-Lund <kusmabite@gmail.com>
11516
11517         poll, select: handle ERROR_BROKEN_PIPE.
11518         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11519         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11520         * lib/select.c (win32_compute_revents): Do not mark a pipe
11521         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11522
11523 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11524
11525         fts: allow compilation with C++
11526         * lib/fts_.h: Specify extern "C" linkage with C++.
11527
11528 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11529
11530         Fix gnulib-tool sed script de-commentation for AIX sed.
11531         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11532         sed.
11533
11534 2010-08-17  Eric Blake  <eblake@redhat.com>
11535
11536         test-stddef: test for (some) offsetof bugs
11537         * tests/test-stddef.c: Enhance test to ensure correct type of
11538         offsetof.
11539         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11540         that we are not fixing at this time.
11541
11542 2010-08-15  Bruno Haible  <bruno@clisp.org>
11543
11544         stpncpy: Allow stpncpy to be defined as a macro.
11545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11546         if it's already correctly declared.
11547         * lib/string.in.h (stpncpy): Undefine before redefining.
11548         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11549
11550 2010-08-14  Bruno Haible  <bruno@clisp.org>
11551
11552         Rename module 'memxfrm' to 'amemxfrm'.
11553         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11554         (amemxfrm): Renamed from memxfrm.
11555         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11556         (amemxfrm): Renamed from memxfrm.
11557         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11558         * NEWS: Mention the change.
11559         * MODULES.html.sh (String handling <string.h>): Update.
11560         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11561         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11562         * lib/unicase/u16-casexfrm.c: Likewise.
11563         * lib/unicase/u32-casexfrm.c: Likewise.
11564         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11565         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11566         * lib/uninorm/u16-normxfrm.c: Likewise.
11567         * lib/uninorm/u32-normxfrm.c: Likewise.
11568         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11569         memxfrm.
11570         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11571         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11572         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11573         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11574         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11575         Suggested by Paul Eggert.
11576
11577 2010-08-14  Bruno Haible  <bruno@clisp.org>
11578
11579         Tests for module 'astrxfrm'.
11580         * modules/astrxfrm-tests: New file.
11581         * tests/test-astrxfrm.c: New file.
11582
11583         New module 'astrxfrm'.
11584         * lib/astrxfrm.h: New file.
11585         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11586         * modules/astrxfrm: New file.
11587
11588 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11589
11590         regex: Tweak doc.
11591         * doc/regex.texi (Overview): Don't mention regex.c.
11592         (GNU Regular Expression Compiling): Likewise.
11593         (Match-end-of-line Operator): Mention 'not_eol'.
11594
11595 2010-08-14  Brian Gough  <bjg@gnu.org>
11596             Bruno Haible  <bruno@clisp.org>
11597
11598         git-merge-changelog: add doc relating to use with bzr and hg.
11599         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11600
11601 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11602
11603         pthread: fix pthread.h creation for srcdir != builddir
11604         * modules/pthread (Makefile.am): Fix the rule to work also in a
11605         non-srcdir build.
11606
11607 2010-08-13  Karl Berry  <karl@gnu.org>
11608
11609         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11610         * doc/posix-*/*: force line break before @url of POSIX
11611         specifications.
11612         Suggested by Werner Lemberg.
11613
11614 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11615
11616         strtod: fix const diagnostic
11617         * lib/strtod.c (strtod): Don't assign const char * to char *,
11618         as this elicits a warning from GCC when warnings are enabled.
11619
11620 2010-08-10  Pádraig Brady <P@draigbrady.com>
11621         and Eric Blake  <eblake@redhat.com>
11622
11623         copy-acl: ignore ENOTSUP on HP-UX
11624         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11625         so that it is available for HP-UX.
11626         * lib/copy-acl.c (qcopy_acl): Use it.
11627         Reported by Patrick M. Callahan.
11628
11629 2010-08-10  Eric Blake  <eblake@redhat.com>
11630
11631         open, chown: relax license
11632         * modules/open (License): Change to LGPLv2+, with consent by all
11633         authors, for use in augeas.
11634         * modules/chown (License): Likewise.
11635         * modules/lchown (Likewise): Likewise.
11636         Requested by Adam Stokes.
11637
11638 2010-08-09  Karl Berry  <karl@gnu.org>
11639
11640         * build-aux/ar-lib: new file, import from Automake.
11641         * config/srclist.txt: autocheck for updates.
11642
11643 2010-08-09  Eric Blake  <eblake@redhat.com>
11644
11645         readlinkat: adjust client modules
11646         * modules/areadlinkat (Depends-on): Use readlinkat, not
11647         symlinkat.
11648         * modules/areadlinkat-with-size (Depends-on): Likewise.
11649
11650         mknod: be more vocal about danger of running tests as root
11651         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11652         root, since that is just asking for problems.
11653         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11654
11655         readlinkat: split into its own module
11656         * modules/symlinkat: Split readlinkat...
11657         * modules/readlinkat: ...into separate module.
11658         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11659         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11660         * lib/symlinkat.c (readlinkat): Move...
11661         * lib/readlinkat.c: ...into new file.
11662         * modules/symlinkat-tests: Split readlinkat test...
11663         * modules/readlinkat-tests: ...into separate module.
11664         * tests/test-symlinkat.c: Split...
11665         * tests/test-readlinkat.c: ...into new file.
11666         * NEWS: Document the split.
11667         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11668         * lib/unistd.in.h (readlinkat): Likewise.
11669         Suggested by Bruno Haible.
11670
11671 2010-08-08  Bruno Haible  <bruno@clisp.org>
11672
11673         memxfrm: Speed up.
11674         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11675         that usually only one call to strxfrm is necessary for each string
11676         part.
11677         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11678
11679 2010-08-07  Karl Berry  <karl@gnu.org>
11680
11681         * doc/posix-headers/limits.texi,
11682         * doc/posix-functions/malloc.texi,
11683         * doc/posix-functions/strsignal.texi: missing @item.
11684         * doc/ld-version-script.texi: spurious leading i.
11685         * doc/regex.texi (Interval Operators): no commas inside @var.
11686
11687 2010-08-01  Bruno Haible  <bruno@clisp.org>
11688
11689         Integrate the regex documentation.
11690         * doc/gnulib.texi: Define 'cn' index.
11691         (Regular expressions): New a chapter that includes regex.texi and
11692         regexprops-generic.texi.
11693         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11694         syntax.
11695
11696         Whitespace cleanup.
11697         * doc/regex.texi: Remove trailing spaces.
11698
11699         Add regex documentation.
11700         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11701         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11702         Written by Kathy A. Hargreaves and Karl Berry.
11703
11704 2010-08-01  Bruno Haible  <bruno@clisp.org>
11705
11706         link: Update documentation.
11707         * doc/posix-functions/link.texi: Update regarding Solaris.
11708
11709 2010-07-31  Bruno Haible  <bruno@clisp.org>
11710
11711         Update modules list.
11712         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11713         (String handling <string.h>): Add memcmp2, memxfrm.
11714         (Container data structures): Add xlist, xsublist, xoset.
11715         (Core language properties): Add alignof, unused-parameter.
11716         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11717         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11718         (Unibyte characters <ctype.h>): New section.
11719         (String handling <string.h>): New section.
11720         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11721         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11722         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11723         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11724         tan, tanh, tanl, y0, y1, yn.
11725         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11726         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11727         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11728         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11729         unlockpt, vdprintf, vdprintf-posix.
11730         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11731         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11732         xconcat-filename.
11733         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11734         getdtablesize, pipe2, pipe2-safer.
11735         (Security): New section.
11736         (Networking functions): Add accept4.
11737         (Signal handling): Add sigpipe.
11738         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11739         mbmemcasecoll.
11740         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11741         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11742         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11743         pipe-filter-ii.
11744         (Misc): Add argp-version-etc, login_tty, parse-duration.
11745
11746 2010-07-31  Bruno Haible  <bruno@clisp.org>
11747
11748         Improve doc in MODULES.html.
11749         * modules/linkat (Description): Add the word "function".
11750         * modules/mkfifo (Description): Likewise.
11751         * modules/mknod (Description): Likewise.
11752         * modules/remove (Description): Likewise.
11753         * modules/renameat (Description): Likewise.
11754         * modules/stat (Description): Likewise.
11755         * modules/symlink (Description): Likewise.
11756         * modules/unlink (Description): Likewise.
11757
11758 2010-07-31  Bruno Haible  <bruno@clisp.org>
11759
11760         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11761         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11762         option --enable/disable-c++ instead of --enable/disable-cxx.
11763         * NEWS: Mention the change.
11764
11765 2010-07-31  Bruno Haible  <bruno@clisp.org>
11766
11767         readlink, areadlink: Relax test a bit.
11768         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11769         alternative to ENOTDIR.
11770         * tests/test-areadlink.h (test_areadlink): Likewise.
11771         Reported by Rainer Tammer.
11772
11773 2010-07-31  Bruno Haible  <bruno@clisp.org>
11774
11775         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11776         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11777         character, perform the search using U_STRCHR.
11778         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11779         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11780         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11781         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11782         Suggested by Paolo Bonzini.
11783
11784 2010-07-31  Bruno Haible  <bruno@clisp.org>
11785
11786         unistr/u*-strstr: Fix dependencies.
11787         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11788         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11789         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11790
11791 2010-07-31  Bruno Haible  <bruno@clisp.org>
11792
11793         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11794         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11795         the beginning of the loop.
11796         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11797         cases in 'switch' statement.
11798
11799         unistr/u8-strchr: Fix several bugs.
11800         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11801         the string. When not found, return NULL, not a pointer near the end.
11802
11803         More tests for unistr/u8-strchr.
11804         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11805         that the function does not read past the first occurrence of the byte
11806         being searched.
11807         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11808         * tests/unistr/test-u16-strchr.c (main): New function.
11809         * tests/unistr/test-u32-strchr.c (main): New function.
11810
11811 2010-07-31  Bruno Haible  <bruno@clisp.org>
11812
11813         posix-modules: Ignore backup files of documentation files.
11814         * posix-modules: grep only through files named *.texi.
11815
11816 2010-07-31  Bruno Haible  <bruno@clisp.org>
11817
11818         symlinkat: Fix documentation.
11819         * doc/posix-functions/readlinkat.texi: Fix module name.
11820
11821 2010-07-31  Bruno Haible  <bruno@clisp.org>
11822
11823         fchownat: Replace also when chown has the trailing slash bug.
11824         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11825         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11826         introduced on 2010-04-10.
11827         Reported by Rainer Tammer.
11828
11829 2010-07-31  Bruno Haible  <bruno@clisp.org>
11830
11831         linkat: Work around AIX 7.1 bug.
11832         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11833         whether linkat handles trailing slash correctly. If not, replace linkat
11834         and define LINKAT_TRAILING_SLASH_BUG.
11835         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11836         check whether (fd1,file1) points to a directory if file1 or file2 ends
11837         in a slash. Code taken from lib/link.c.
11838         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11839         Reported by Rainer Tammer.
11840
11841 2010-07-31  Bruno Haible  <bruno@clisp.org>
11842
11843         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11844         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11845         This disables an xlc optimization that was causing wrong test results.
11846         Reported by Rainer Tammer.
11847
11848 2010-07-31  Bruno Haible  <bruno@clisp.org>
11849
11850         iconv: Work around AIX 6.1..7.1 bug.
11851         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11852         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11853         cross-compiling, guess no on all versions of AIX.
11854         Reported by Rainer Tammer.
11855
11856 2010-07-31  Bruno Haible  <bruno@clisp.org>
11857
11858         readlink: Relax test a bit.
11859         * tests/test-readlink.h (test_readlink): Allow different errno value
11860         when readlink is called with a file name that ends in / and refers to
11861         a file.
11862         Suggested by Eric Blake.
11863         Reported by Rainer Tammer.
11864
11865 2010-07-31  Bruno Haible  <bruno@clisp.org>
11866
11867         copysign: Does not require -lm on glibc systems.
11868         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11869         gl_COMMON_DOUBLE_MATHFUNC.
11870         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11871
11872 2010-07-31  Bruno Haible  <bruno@clisp.org>
11873
11874         duplocale: Work around AIX 7.1 bug.
11875         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11876         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11877         * lib/duplocale.c (rpl_duplocale): Update comment.
11878         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11879         Reported by Rainer Tammer.
11880
11881 2010-07-30  Bruno Haible  <bruno@clisp.org>
11882
11883         dirfd: Avoid link error on AIX 7.1.
11884         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11885         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11886         exist, set REPLACE_DIRFD.
11887         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11888         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11889         * doc/posix-functions/dirfd.texi: Update.
11890         Reported by Rainer Tammer.
11891
11892 2010-07-30  Eric Blake  <eblake@redhat.com>
11893
11894         strtod: next round of AIX fixes
11895         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11896         exponent.
11897         * tests/test-strtod.c (main): Enhance tests.
11898         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11899         Reported by Rainer Tammer.
11900
11901         futimens: fix configure check
11902         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11903         Reported by Bruno Haible.
11904
11905 2010-07-30  Bruno Haible  <bruno@clisp.org>
11906
11907         getline: Update regarding AIX.
11908         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11909         Reported by Rainer Tammer.
11910
11911 2010-07-30  Bruno Haible  <bruno@clisp.org>
11912
11913         wcwidth: Drop replacement on AIX 7.
11914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11915         AIX 7.
11916         Reported by Rainer Tammer.
11917
11918 2010-07-30  Bruno Haible  <bruno@clisp.org>
11919
11920         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11921         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11922         a 'char *'.
11923         Reported by Rainer Tammer.
11924
11925 2010-07-30  Bruno Haible  <bruno@clisp.org>
11926
11927         unlink: Update regarding AIX.
11928         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11929         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11930         Reported by Rainer Tammer.
11931
11932 2010-07-30  Bruno Haible  <bruno@clisp.org>
11933
11934         symlink: Update regarding AIX.
11935         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11936         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11937         Reported by Rainer Tammer.
11938
11939 2010-07-30  Bruno Haible  <bruno@clisp.org>
11940
11941         strndup: Update regarding AIX.
11942         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11943         AIX 7.
11944         Reported by Rainer Tammer.
11945
11946 2010-07-30  Bruno Haible  <bruno@clisp.org>
11947
11948         stat: Update regarding AIX.
11949         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11950         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11951         Reported by Rainer Tammer.
11952
11953 2010-07-30  Bruno Haible  <bruno@clisp.org>
11954
11955         truncl: Fix autoconf test.
11956         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11957         whether truncl works.
11958         Reported by Rainer Tammer.
11959
11960 2010-07-30  Bruno Haible  <bruno@clisp.org>
11961
11962         round: Update regarding AIX.
11963         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11964         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11965         Reported by Rainer Tammer.
11966
11967 2010-07-30  Bruno Haible  <bruno@clisp.org>
11968
11969         rename: Update regarding AIX.
11970         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11971         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11972         Reported by Rainer Tammer.
11973
11974 2010-07-30  Bruno Haible  <bruno@clisp.org>
11975
11976         printf.m4: Update regarding AIX.
11977         * m4/printf.m4: Update comments regarding AIX.
11978         Reported by Rainer Tammer.
11979
11980 2010-07-30  Bruno Haible  <bruno@clisp.org>
11981
11982         iconv: Update regarding AIX.
11983         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11984         AIX 7.
11985         Reported by Rainer Tammer.
11986
11987 2010-07-30  Bruno Haible  <bruno@clisp.org>
11988
11989         getopt: Update regarding AIX.
11990         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11991         no on AIX.
11992         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11993         Reported by Rainer Tammer.
11994
11995 2010-07-30  Bruno Haible  <bruno@clisp.org>
11996
11997         ldexpl; Update regarding AIX.
11998         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11999         on AIX 7.
12000         Reported by Rainer Tammer.
12001
12002 2010-07-30  Bruno Haible  <bruno@clisp.org>
12003
12004         frexpl: Update regarding AIX.
12005         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12006         on AIX 7.
12007         Reported by Rainer Tammer.
12008
12009 2010-07-30  Bruno Haible  <bruno@clisp.org>
12010
12011         open, fopen: Update regarding AIX.
12012         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12013         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12014         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12015         * doc/posix-functions/fopen.texi: Likewise.
12016         Reported by Rainer Tammer.
12017
12018 2010-07-30  Bruno Haible  <bruno@clisp.org>
12019
12020         chown: Update doc regarding AIX.
12021         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12022         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12023         Reported by Rainer Tammer.
12024
12025 2010-07-30  Eric Blake  <eblake@redhat.com>
12026
12027         strtod: fix bug in replacement function on AIX
12028         * lib/strtod.c (strtod): Special case broken "0x" parse in
12029         underlying strtod.
12030         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12031         * doc/posix-functions/strtod.texi (strtod): Likewise.
12032         Reported by Rainer Tammer.
12033
12034 2010-07-30  Bruno Haible  <bruno@clisp.org>
12035
12036         mbrlen: Fix cross-compilation guess for AIX.
12037         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12038         guess. Leftover from 2008-12-22.
12039
12040 2010-07-30  Bruno Haible  <bruno@clisp.org>
12041
12042         mbrtowc: Fix cross-compilation guess for AIX.
12043         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12044         guess. Leftover from 2008-12-21.
12045
12046 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12047
12048         init.sh: work around trap limitation of some shells
12049         * tests/init.sh (setup_): Move exit trap outside of shell function.
12050
12051 2010-07-29  Eric Blake  <eblake@redhat.com>
12052
12053         strtod: aid debugging
12054         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12055         understanding why strtod is rejected.
12056
12057 2010-07-28  Bruno Haible  <bruno@clisp.org>
12058
12059         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12060         * lib/unistr/u8-chr.c: Include <string.h>.
12061         * tests/unistr/test-u8-chr.c: Likewise.
12062         * tests/unistr/test-u16-chr.c: Likewise.
12063         * tests/unistr/test-u32-chr.c: Likewise.
12064         * tests/unistr/test-u8-strchr.c: Likewise.
12065         * tests/unistr/test-u16-strchr.c: Likewise.
12066         * tests/unistr/test-u32-strchr.c: Likewise.
12067         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12068         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12069         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12070         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12071
12072 2010-07-28  Bruno Haible  <bruno@clisp.org>
12073
12074         Use spaces for indentation, not tabs.
12075         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12076
12077 2010-07-27  Bruno Haible  <bruno@clisp.org>
12078
12079         mbspcasecmp: Fix function specification.
12080         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12081         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12082         Reported by Eric Blake <eblake@redhat.com>.
12083
12084 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12085
12086         timespec: use cast and not conditional, as truncation isn't possible
12087         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12088         instead of a conditional.  Comment about the situation in more detail.
12089         This undoes most of the 2009-10-29 patch.
12090
12091 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12092
12093         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12094         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12095         * lib/unistr/u8-strchr.c: Likewise.
12096         * modules/unistr/u8-chr: Depend on memchr.
12097
12098         unistr/u*-strchr: add tests
12099         * modules/unistr/u8-strchr-tests: New file.
12100         * modules/unistr/u16-strchr-tests: New file.
12101         * modules/unistr/u32-strchr-tests: New file.
12102         * tests/unistr/test-strchr.h: New file.
12103         * tests/unistr/test-u8-strchr.c: New file.
12104         * tests/unistr/test-u16-strchr.c: New file.
12105         * tests/unistr/test-u32-strchr.c: New file.
12106
12107         unistr/u*-chr: test multibyte sequences more
12108         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12109         test vector.
12110         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12111         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12112         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12113
12114         unistr/u*-chr: test multibyte sequences
12115         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12116
12117         unistr/u*-chr: prepare for multibyte tests
12118         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12119         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12120         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12121         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12122         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12123         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12124
12125 2010-07-18  Bruno Haible  <bruno@clisp.org>
12126
12127         unistr/u8-strchr: Optimize non-ASCII argument case.
12128         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12129         because the first byte often matches anyway.
12130         Reported by Pádraig Brady <P@draigbrady.com>.
12131
12132 2010-07-15  Karl Berry  <karl@gnu.org>
12133
12134         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12135
12136 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12137
12138         getcwd: on Solaris, work better if ancestors are inaccessible
12139         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12140         buffer and size, try again with a large buffer.  This works better
12141         on Solaris, since its getcwd succeeds even if the path to the root
12142         is inaccessible, and this is helpful in common cases such as .zfs
12143         hidden directories.  Problem reported by J Chapman Flack in
12144         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12145         Use system getcwd if it's declared, not merely if it's partly
12146         working; use the partly-working test only to avoid needless effort
12147         if the system getcwd fails.
12148         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12149         comment that was already obsolete and is now even more obsolete.
12150         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12151         now might call strdup.
12152
12153 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12154
12155         pthread: Add enough so that coreutils/src/sort.c compiles.
12156         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12157         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12158         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12159         Include <sys/types.h>, in case it defines pthread_t.
12160         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12161         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12162         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12163         (pthread_rwlockattr_t, pthread_spinlock_t):
12164         New typedefs, if HAVE_PTHREAD_T is not defined.
12165         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12166         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12167         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12168         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12169         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12170         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12171         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12172         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12173         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12174         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12175         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12176         New macros.
12177         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12178         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12179         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12180         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12181         (pthread_spin_unlock): New dummy functions.
12182         (pthread_create): Return EAGAIN; don't set errno.
12183         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12184         require AC_C_INLINE.
12185         * modules/pthread (Depends-on): Add sched, time.
12186         (pthread.h): Use AM_V_GEN.
12187
12188 2010-07-13  Bruno Haible  <bruno@clisp.org>
12189
12190         striconveh: Don't malloc memory if the result buffer is sufficient.
12191         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12192         buffer if its size is sufficient.
12193         Reported by Ludovic Courtès <ludo@gnu.org>.
12194
12195 2010-07-13  Bruno Haible  <bruno@clisp.org>
12196
12197         strtod: Add safety check.
12198         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12199
12200 2010-07-12  Bruno Haible  <bruno@clisp.org>
12201
12202         Unify tests that set gl_cv_func_ldexpl_no_libm.
12203         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12204         gl_FUNC_LDEXPL.
12205         (gl_FUNC_LDEXPL): Invoke it.
12206         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12207
12208 2010-07-12  Bruno Haible  <bruno@clisp.org>
12209
12210         Unify tests that set gl_cv_func_ldexp_no_libm.
12211         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12212         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12213         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12214         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12215         * modules/strtod (Files): Add m4/ldexp.m4.
12216
12217 2010-07-12  Bruno Haible  <bruno@clisp.org>
12218
12219         Unify tests that set gl_cv_func_frexpl_no_libm.
12220         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12221         gl_FUNC_FREXPL_NO_LIBM.
12222         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12223         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12224
12225 2010-07-12  Bruno Haible  <bruno@clisp.org>
12226
12227         Unify tests that set gl_cv_func_frexp_no_libm.
12228         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12229         gl_FUNC_FREXP_NO_LIBM.
12230         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12231         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12232
12233 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12234
12235         memcoll: clarify sizes versus lengths, document better, and tweak perf
12236         * lib/memcoll.c (strcoll_loop, memcoll0):
12237         Improve quality of descriptive comments.  Name variables
12238         consistently as to whether they are lengths (which do not include
12239         terminating null) versus sizes (which do).
12240         * lib/xmemcoll.c (xmemcoll0): Likewise.
12241         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12242         returned when s1size == 0; this is easier to compile and saves
12243         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12244
12245 2010-07-12  Bruno Haible  <bruno@clisp.org>
12246
12247         Tests for module '_Exit'.
12248         * modules/_Exit-tests: New file.
12249         * tests/test-_Exit.sh: New file.
12250         * tests/test-_Exit.c: New file.
12251
12252         New module '_Exit'.
12253         * lib/stdlib.in.h (__attribute__): New macro.
12254         (_Exit): New declaration.
12255         * lib/_Exit.c: New file.
12256         * m4/_Exit.m4: New file.
12257         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12258         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12259         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12260         * modules/_Exit: New file.
12261         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12262         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12263
12264 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12265
12266         strtod: make it more-accurate typically, and don't require libm
12267         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12268         Include limits.h.  Don't include string.h.
12269         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12270         (locale_isspace): New function, so that no casts are needed to
12271         check whether *s is a space.
12272         (ldexp): Provide an unused dummy if not available.
12273         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12274         (strtod): Use them.  This implementation prefers to use the
12275         underlying strtod if available, falling back on our own code
12276         only to fix known bugs.  This is more likely to produce an
12277         accurate result.  Also, it avoids the use of libm functions.
12278         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12279         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12280         was absent, but it caused a test failure with coreutils.
12281         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12282         with libm.
12283         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12284         * modules/strtod-tests (Makefile.am): Likewise.
12285
12286 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12287             Bruno Haible  <bruno@clisp.org>
12288
12289         unistr/u8-strchr: Optimize ASCII argument case.
12290         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12291
12292 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12293
12294         (x)memcoll: minor tweaks
12295         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12296         is after the type that it qualifies.
12297         (memcoll0): Likewise.
12298         * lib/memcoll.h (memcoll0): Likewise.
12299         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12300         * lib/xmemcoll.h (xmemcoll0): Likewise.
12301         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12302         differs from memcoll in that the NUL byte is part of the argument.
12303         Omit the abort-checks, as performance is a real issue here.  Plus,
12304         the checks were wrong anyway (an off-by-one error).  Omit local
12305         variable 'diff', as it's a bit clearer that way.
12306         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12307         no longer needed.
12308
12309 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12310
12311         (x)memcoll: speedup when input is known to be NUL delimited
12312         * lib/memcoll.c: Include stdlib.
12313         (memcoll0): New function.
12314         (strcoll_loop): New function, refactored for use in both memcoll
12315         and memcoll0.
12316         * lib/memcoll.h (memcoll0): Add prototype.
12317         * lib/xmemcoll.c (xmemcoll0): New function.
12318         (collate_error): New function, refactored for use in both xmemcoll
12319         and xmemcoll0.
12320         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12321         * m4/memcoll.m4: add inline invocation.
12322
12323 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12324
12325         * build-aux/bootstrap: Remove any local translations
12326         from the translation project synchronization directory,
12327         so that local only translations are not distributed.
12328
12329 2010-07-04  Bruno Haible  <bruno@clisp.org>
12330
12331         fsusage: Clarify which code applies to which platforms.
12332         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12333         platform.
12334         * lib/fsusage.c (get_fs_usage): Likewise.
12335
12336 2010-07-04  Bruno Haible  <bruno@clisp.org>
12337
12338         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12339         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12340         Reported by Martin Lambers <marlam@marlam.de>.
12341
12342 2010-07-04  Jim Meyering  <meyering@redhat.com>
12343
12344         hash: once again explicitly disallow insertion of NULL
12345         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12346         inserting a NULL pointer cannot work with these functions.
12347         Add a comment with details.
12348         This reverts part of the 2010-07-01 commit, 5bef1a35
12349         "hash: extend module to deal with non-pointer keys".
12350
12351 2010-07-01  Bruno Haible  <bruno@clisp.org>
12352
12353         stdbool: Update doc.
12354         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12355         Info from Christian Weisgerber <naddy@mips.inka.de>.
12356
12357 2010-07-01  Jim Meyering  <meyering@redhat.com>
12358
12359         hash: extend module to deal with non-pointer keys
12360         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12361         but that allows insertion of non-pointer entries.
12362         Do not disallow an ENTRY value of NULL.
12363         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12364         * lib/hash.h (hash_insert0): Declare.
12365
12366 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12367
12368         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12369         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12370         not present (i.e. with autoconf 2.59 and when using gettextize, not
12371         gnulib), require AC_GNU_SOURCE instead.
12372
12373 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12374
12375         idpriv-drop: Fix tests.
12376         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12377         not to the test-idpriv-droptemp program.
12378
12379 2010-06-29  Bruno Haible  <bruno@clisp.org>
12380
12381         string: Fix syntax error with g++ 2.96.
12382         * lib/string.in.h (__pure__): Remove definition.
12383         (_GL_ATTRIBUTE_PURE): New macro.
12384         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12385         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12386         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12387
12388 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12389
12390         unitypes: Fix bug introduced on 2010-05-18.
12391         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12392
12393 2010-06-22  Eric Blake  <eblake@redhat.com>
12394
12395         memmem: slight optimization
12396         * lib/str-two-way.h (critical_factorization): Update comments.
12397         Reduce work during factorization phase.
12398         Reported by Carlos Bueno <carlos@bueno.org>.
12399
12400 2010-06-21  Bruno Haible  <bruno@clisp.org>
12401
12402         Fix HAVE_CALLOC_POSIX misnomer.
12403         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12404         !HAVE_CALLOC_POSIX.
12405         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12406         HAVE_CALLOC_POSIX.
12407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12408         instead of HAVE_CALLOC_POSIX.
12409         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12410         HAVE_CALLOC_POSIX.
12411
12412         Use modern idiom for calloc() replacement.
12413         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12414         AC_FUNC_CALLOC.
12415         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12416         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12417         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12418         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12419         (gl_REPLACE_CALLOC): New macro.
12420
12421 2010-06-21  Bruno Haible  <bruno@clisp.org>
12422
12423         Fix HAVE_REALLOC_POSIX misnomer.
12424         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12425         !HAVE_REALLOC_POSIX.
12426         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12427         HAVE_REALLOC_POSIX.
12428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12429         instead of HAVE_REALLOC_POSIX.
12430         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12431         HAVE_REALLOC_POSIX.
12432
12433         Use modern idiom for realloc() replacement.
12434         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12435         AC_FUNC_REALLOC.
12436         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12437         Autoconf's AC_FUNC_REALLOC.
12438         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12439         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12440         (gl_REPLACE_REALLOC): New macro.
12441         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12442
12443 2010-06-21  Bruno Haible  <bruno@clisp.org>
12444
12445         Fix HAVE_MALLOC_POSIX misnomer.
12446         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12447         !HAVE_MALLOC_POSIX.
12448         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12449         HAVE_MALLOC_POSIX.
12450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12451         instead of HAVE_MALLOC_POSIX.
12452         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12453         HAVE_MALLOC_POSIX.
12454
12455         Use modern idiom for malloc() replacement.
12456         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12457         AC_FUNC_MALLOC.
12458         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12459         Autoconf's AC_FUNC_MALLOC.
12460         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12461         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12462         (gl_REPLACE_MALLOC): New macro.
12463         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12464
12465 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12466
12467         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12468         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12469         This macro takes 3 arguments, not 4.
12470
12471 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12472
12473         ipv6: fix detection under mingw
12474         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12475         in6_addr.
12476
12477 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12478
12479         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12480         that strtod() works when cross-compiling to a glibc version known
12481         to work.
12482
12483 2010-06-15  Bruno Haible  <bruno@clisp.org>
12484
12485         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12486
12487 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12488
12489         select: Correct timeout.
12490         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12491
12492 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12493
12494         git-version-gen: init shell var to avoid env var influence
12495         * build-aux/git-version-gen (v): Init shell var to empty.
12496
12497 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12498
12499         priv-set: Don't assume that priv.h exists merely because getppriv does.
12500         See Jan Andersen's bug report about AIX 5L in
12501         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12502         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12503         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12504         * lib/priv-set.h: Likewise.
12505         * tests/test-priv-set.c: Likewise.
12506
12507 2010-06-13  Bruno Haible  <bruno@clisp.org>
12508
12509         relocatable: Make it easier to test whether to install wrappers.
12510         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12511         RELOCATABLE_VIA_WRAPPER.
12512
12513 2010-06-13  Bruno Haible  <bruno@clisp.org>
12514
12515         gnulib-tool: Display specified modules and dependencies differently.
12516         * gnulib-tool (func_show_module_list): New function.
12517         (func_import, func_create_testdir): Invoke it.
12518         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12519
12520 2010-06-13  Bruno Haible  <bruno@clisp.org>
12521
12522         gnulib-tool: Align code of func_import and func_create_testdir.
12523         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12524         specified_modules.
12525
12526 2010-06-12  Jim Meyering  <meyering@redhat.com>
12527
12528         test-inttostr: avoid spurious failure on Solaris 9
12529         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12530         to accept "%ju".  Reported by Bruno Haible.
12531
12532 2010-06-11  Jim Meyering  <meyering@redhat.com>
12533
12534         test-sys_socket: mark variables as used more readably
12535         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12536         as "used" explicitly via (void) statement casts.  This is more
12537         readable than using them in an artificial return expression.
12538         Suggestion from Bruno Haible.
12539
12540 2010-06-11  Bruno Haible  <bruno@clisp.org>
12541
12542         Avoid some more warnings from "gcc -Wwrite-strings".
12543         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12544         to 'const char *'.
12545         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12546         * tests/test-c-strcasestr.c (main): Likewise.
12547         * tests/test-mbscasestr1.c (main): Likewise.
12548         * tests/test-mbscasestr2.c (main): Likewise.
12549         * tests/test-memmem.c (main): Likewise.
12550         * tests/test-strstr.c (main): Likewise.
12551         * tests/test-strcasestr.c (main): Likewise.
12552
12553 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12554
12555         init.sh: change framework_failure_ to fail with status 99, not 1
12556         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12557         automake's parallel-tests rule that this is an unexpected failure,
12558         even if the test is listed in XFAIL_TESTS.
12559
12560 2010-06-11  Jim Meyering  <meyering@redhat.com>
12561
12562         test-inttostr: avoid warnings about 4-6KB literal strings
12563         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12564         Include "macros.h", for its definition of ASSERT.
12565         (CK): s/assert/ASSERT/
12566         * modules/inttostr-tests (Files): Add macros.h.
12567
12568         init.sh: don't use $ME_ or skip_ before they are defined
12569         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12570         their first uses.  Also hoist their companions: warn_, fail_,
12571         framework_failure_, $stderr_fileno.  Prompted by a patch from
12572         Stefano Lattarini.
12573
12574         test-sys_socket: avoid set-but-not-used warnings from gcc
12575         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12576         avoid warning about set-but-not-used variables.
12577
12578         test-xvasprintf: avoid 'const' discard warnings
12579         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12580         "const" when assigning from literal strings.
12581         (test_xasprintf): Add "void" in function argument list to placate
12582         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12583
12584         tests: avoid compilation warnings in argmatch and exclude tests...
12585         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12586         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12587         Since it always exits, declare with the "noreturn" attribute.
12588         * tests/test-argmatch.c: Likewise.
12589
12590         tests: avoid 'const' discard warnings in mbsstr tests
12591         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12592         * tests/test-mbsstr2.c (main): Likewise.
12593
12594         test-verify: avoid warning from gcc's -Wmissing-declarations
12595         * tests/test-verify.c (function): Declare to be static.
12596
12597         test-inttostr.c: include <string.h> for use of strcmp
12598         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12599
12600         test-linkat: avoid failed assertion on "other" architectures
12601         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12602         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12603         sparc: https://bugs.launchpad.net/bugs/591968
12604
12605 2010-06-11  Jim Meyering  <meyering@redhat.com>
12606
12607         printf.m4: avoid autoconf's "Expanded Before Required" warning
12608         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12609         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12610         autoconf warning.
12611
12612 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12613
12614         Replacement header templates are now named with ".in", not "_".
12615         * doc/gnulib-intro.texi: Correct.
12616
12617 2010-06-10  Jim Meyering  <meyering@redhat.com>
12618
12619         inttostr-tests: depend on snprintf, not snprintf-posix
12620         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12621         snprintf-posix, to avoid this aclocal failure:
12622           missing file gnulib-tests/vasnprintf.c
12623           configure.ac:45: error: expected source file, required through \
12624           AC_LIBSOURCES, not found
12625
12626 2010-06-10  Jim Meyering  <meyering@redhat.com>
12627
12628         inttostr: add a new function, inttostr, and tests
12629         The namesake function was not available.  The existence of the
12630         template file, inttostr.c makes its addition nontrivial.
12631         * lib/anytostr.c: Rename from inttostr.c.
12632         (anytostr): Rename from inttostr.
12633         * lib/inttostr.c: New file.
12634         * modules/inttostr (Files): Add anytostr.c.
12635         (Makefile.am): Set lib_SOURCES instead of ...
12636         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12637         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12638         * lib/offtostr.c: Likewise.
12639         * lib/uinttostr.c: Likewise.
12640         * lib/umaxtostr.c: Likewise.
12641         * modules/inttostr-tests: New file.
12642         * tests/test-inttostr.c: New file.  Test these functions.
12643
12644 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12645             Bruno Haible  <bruno@clisp.org>
12646
12647         Add "Extending Gnulib" chapter to manual.
12648         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12649         chapter.
12650         (Extending Gnulib): New chapter.
12651         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12652         chapter.
12653
12654 2010-06-09  Bruno Haible  <bruno@clisp.org>
12655
12656         Avoid relocwrapper link errors due to gnulib replacement functions.
12657         * lib/areadlink.c: Use the system's malloc, realloc functions.
12658         (areadlink): Set errno to ENOMEM explicitly.
12659         * modules/areadlink (Depends-on): Remove malloc-posix.
12660         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12661
12662 2010-06-09  Bruno Haible  <bruno@clisp.org>
12663
12664         Avoid relocwrapper link errors due to gnulib replacement functions.
12665         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12666         * lib/malloca.c: Likewise.
12667         * lib/relocatable.c: Likewise.
12668         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12669         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12670         * lib/setenv.c: Use the system's malloc, realloc functions.
12671         * lib/strerror.c: Use the system's sprintf function.
12672         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12673
12674 2010-06-04  Bruno Haible  <bruno@clisp.org>
12675
12676         Prefer documented low-level autoconf macro names.
12677         * m4/lib-link.m4: Use m4_translit instead of translit.
12678         * m4/environ.m4: Likewise.
12679         * m4/mathfunc.m4: Likewise.
12680         * m4/onceonly.m4: Likewise.
12681         * m4/stdint.m4: Likewise.
12682         Suggested by Eric Blake.
12683
12684 2010-06-04  Martin Lambers  <marlam@marlam.de>
12685             Bruno Haible  <bruno@clisp.org>
12686
12687         havelib: Allow library names with '+' characters.
12688         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12689         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12690
12691 2010-06-09  Bruno Haible  <bruno@clisp.org>
12692
12693         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12694         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12695         realloc failed.
12696
12697 2010-06-08  Peter Simons  <simons@cryp.to>
12698
12699         maint.mk: make the news-check rule more configurable
12700         * top/maint.mk (news-check-lines-spec): New variable.
12701         (news-check): Use "sed -n 1,10p" in place of "head".
12702
12703 2010-06-07  Jim Meyering  <meyering@redhat.com>
12704
12705         do-release-commit-and-tag: fix typo in --help
12706         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12707
12708         regex: avoid new dead-code warning with gcc-4.6.0
12709         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12710         if-block containing a while-loop.  It's been unused for at least
12711         5 years.
12712
12713 2010-06-05  Bruno Haible  <bruno@clisp.org>
12714
12715         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12716         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12717
12718 2010-06-04  Bruno Haible  <bruno@clisp.org>
12719
12720         Update to GNU gettext 0.18.1.
12721         * modules/gettext (configure.ac): Require gettext infrastructure from
12722         version 0.18.1.
12723
12724 2010-06-03  Bruno Haible  <bruno@clisp.org>
12725
12726         Don't use AC_LIBOBJ with file names in subdirectories.
12727         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12728         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12729         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12730         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12731         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12732         gl_LIBUNISTRING_LIBSOURCE.
12733         (Makefile.am): Augment lib_SOURCES here, conditionally.
12734         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12735
12736 2010-06-03  Bruno Haible  <bruno@clisp.org>
12737
12738         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12739         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12740         expansion does not end with a newline.
12741         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12742         unnecessary newline.
12743
12744 2010-06-03  Bruno Haible  <bruno@clisp.org>
12745
12746         Reduce dependencies.
12747         * tests/test-quotearg.h: New file, extracted from
12748         tests/test-quotearg.c.
12749         * tests/test-quotearg-simple.c: New file, extracted from
12750         tests/test-quotearg.c.
12751         * tests/test-quotearg.c: Don't include <ctype.h>.
12752         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12753         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12754         use_quote_double_quotes, use_quotearg_colon): Moved to
12755         tests/test-quotearg.h.
12756         (results_g, flag_results, custom_quotes, custom_results): Moved
12757         to tests/test-quotearg-simple.c.
12758         (main): Moved the part that does not depend on gettext to
12759         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12760         performed.
12761         * modules/quotearg-simple: New file.
12762         * modules/quotearg-simple-tests: New file.
12763         * modules/quotearg (Depends-on): Add quotearg-simple.
12764         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12765         (Files): Add tests/test-quotearg.h.
12766         Reported by Paolo Bonzini.
12767
12768 2010-06-03  Bruno Haible  <bruno@clisp.org>
12769
12770         Reduce dependencies.
12771         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12772
12773 2010-06-03  Bruno Haible  <bruno@clisp.org>
12774
12775         time: Undefine more broken macros.
12776         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12777         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12778         Reported by Eric Blake.
12779
12780 2010-06-03  Bruno Haible  <bruno@clisp.org>
12781
12782         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12783         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12784         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12785         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12786         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12787         Reported by Ludovic Courtès <ludo@gnu.org>.
12788
12789 2010-06-02  Eric Blake  <eblake@redhat.com>
12790
12791         time: work with mingw + pthreads-win32 library
12792         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12793         if timespec is defined only in pthread.h.
12794         * modules/time (Makefile.am): Substitute it.
12795         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12796         <pthread.h>, when needed.
12797         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12798         from the library.
12799
12800 2010-05-31  Bruno Haible  <bruno@clisp.org>
12801
12802         Avoid expanding two macros in the wrong order.
12803         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12804         gl_LIBUNISTRING if it is defined.
12805         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12806         autoconf >= 2.64.
12807         Reported by Ludovic Courtès <ludo@gnu.org>.
12808
12809 2010-05-27  Jim Meyering  <meyering@redhat.com>
12810
12811         maint.mk: also prohibit "#undef" of always-defined symbols
12812         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12813         Allow more than one space before the symbol name.
12814         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12815         the regexp uses alternation.
12816
12817 2010-05-26  Eric Blake  <eblake@redhat.com>
12818
12819         maint.mk: avoid echo -e
12820         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12821         Convert all uses of echo -* to printf.
12822         Reported by Matthias Bolte.
12823
12824 2010-05-25  Bruno Haible  <bruno@clisp.org>
12825
12826         Update to GNU gettext 0.18, part 2.
12827         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12828         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12829
12830 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12831
12832         Add missing include in test-pwrite.c.
12833         * tests/test-pwrite.c: Include string.h, for strcmp.
12834
12835 2010-05-24  Bruno Haible  <bruno@clisp.org>
12836
12837         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12838
12839 2010-05-24  Bruno Haible  <bruno@clisp.org>
12840
12841         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12842         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12843         iconveh_error argument.
12844         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12845         U_STRCONV_TO_LOCALE.
12846         * lib/unistr/u16-strcoll.c: Likewise.
12847         * lib/unistr/u32-strcoll.c: Likewise.
12848         * modules/unistr/u8-strcoll (Depends-on): Add
12849         uniconv/u8-strconv-to-enc, localcharset. Remove
12850         uniconv/u8-strconv-to-locale.
12851         (configure.ac): Bump version number.
12852         * modules/unistr/u16-strcoll (Depends-on): Add
12853         uniconv/u16-strconv-to-enc, localcharset. Remove
12854         uniconv/u16-strconv-to-locale.
12855         (configure.ac): Bump version number.
12856         * modules/unistr/u32-strcoll (Depends-on): Add
12857         uniconv/u32-strconv-to-enc, localcharset. Remove
12858         uniconv/u32-strconv-to-locale.
12859         (configure.ac): Bump version number.
12860
12861 2010-05-24  Bruno Haible  <bruno@clisp.org>
12862
12863         Avoid a test failure on NetBSD 5.0.
12864         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12865         an iconv() bug.
12866
12867 2010-05-24  Bruno Haible  <bruno@clisp.org>
12868
12869         Adjust #include directive style.
12870         * modules/regex (Includes): Recommend to write <regex.h>.
12871
12872 2010-05-24  Bruno Haible  <bruno@clisp.org>
12873
12874         regex: Don't require alloca.
12875         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12876         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12877         only inside if (0).
12878
12879 2010-05-23  Jim Meyering  <meyering@redhat.com>
12880
12881         test-renameat.c: include <sys/stat.h>
12882         * tests/test-renameat.c: Include <sys/stat.h>; required for
12883         definition of S_IS* macros.
12884
12885 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12886
12887         Update maintainer documentation for 'relocatable-prog' module.
12888         * doc/relocatable-maint.texi: Update.
12889         Comments by Bruno Haible.
12890
12891 2010-05-23  Bruno Haible  <bruno@clisp.org>
12892
12893         git-merge-changelog: Enable --split-merged-entry by default.
12894         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12895         (usage): Don't mention this option any more.
12896         Reported by Ralf Wildenhues.
12897
12898 2010-05-23  Jim Meyering  <meyering@redhat.com>
12899
12900         test-pwrite: do not leave behind a test file named "out"
12901         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12902         The trivial-looking use of init.sh is really necessary.
12903         It ensures that the temporary file, "out", is created in
12904         a temporary directory, and removed upon termination.
12905         * tests/test-pwrite.sh: Re-add file.
12906         * modules/pwrite-tests: Reference it.
12907
12908 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12909
12910         Fix output redirection buglet in init.sh.
12911         * tests/init.sh: Fix redirection of stderr.
12912
12913 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12914
12915         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12916
12917 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12918
12919         * modules/valgrind-tests: New file.
12920         * m4/valgrind-tests.m4: New file.
12921         * doc/valgrind-tests.texi: New file.
12922         * doc/gnulib.texi (Running self-tests under valgrind): New
12923         section.
12924
12925 2010-05-19  Bruno Haible  <bruno@clisp.org>
12926
12927         Clean up dead code in recent commit.
12928         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12929         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12930         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12931         Suggested by Paolo Bonzini.
12932
12933 2010-05-19  Bruno Haible  <bruno@clisp.org>
12934
12935         Avoid valgrind error reports from libunistring.
12936         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12937         * modules/libunistring (Files): Add it.
12938         * modules/libunistring-optional (Files): Likewise.
12939
12940 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12941             Bruno Haible  <bruno@clisp.org>
12942
12943         New module 'libunistring-optional'.
12944         * modules/libunistring-optional: New file.
12945         * m4/libunistring-base.m4: New file.
12946         * m4/libunistring-optional.m4: New file.
12947         * lib/unicase.in.h: Renamed from lib/unicase.h.
12948         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12949         * lib/unictype.in.h: Renamed from lib/unictype.h.
12950         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12951         * lib/uniname.in.h: Renamed from lib/uniname.h.
12952         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12953         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12954         * lib/unistr.in.h: Renamed from lib/unistr.h.
12955         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12956         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12957         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12958         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12959         gl_LIBUNISTRING. If the library was found, determine the installed
12960         version and set LIBUNISTRING_VERSION.
12961         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12962         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12963         handle a configuration option --with-included-libunistring.
12964         * modules/libunistring (Files): Add m4/absolute-header.m4.
12965         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12966         Add m4/libunistring-base.m4.
12967         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12968         (Makefile.am): Build unicase.h from unicase.in.h.
12969         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12970         Add m4/libunistring-base.m4.
12971         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12972         (Makefile.am): Build uniconv.h from uniconv.in.h.
12973         * modules/unictype/base (Files): Use unictype.in.h instead of
12974         unictype.h. Add m4/libunistring-base.m4.
12975         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12976         (Makefile.am): Build unictype.h from unictype.in.h.
12977         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12978         Add m4/libunistring-base.m4.
12979         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12980         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12981         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12982         Add m4/libunistring-base.m4.
12983         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12984         (Makefile.am): Build uniname.h from uniname.in.h.
12985         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12986         Add m4/libunistring-base.m4.
12987         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12988         (Makefile.am): Build uninorm.h from uninorm.in.h.
12989         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12990         unistdio.h. Add m4/libunistring-base.m4.
12991         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12992         (Makefile.am): Build unistdio.h from unistdio.in.h.
12993         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12994         Add m4/libunistring-base.m4.
12995         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12996         (Makefile.am): Build unistr.h from unistr.in.h.
12997         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12998         Add m4/libunistring-base.m4.
12999         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13000         (Makefile.am): Build unitypes.h from unitypes.in.h.
13001         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13002         Add m4/libunistring-base.m4.
13003         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13004         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13005         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13006         uniwidth.h. Add m4/libunistring-base.m4.
13007         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13008         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13009         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13010         instead of augmenting lib_SOURCES.
13011         * modules/unicase/empty-suffix-context: Likewise.
13012         * modules/unicase/locale-language: Likewise.
13013         * modules/unicase/tolower: Likewise.
13014         * modules/unicase/totitle: Likewise.
13015         * modules/unicase/toupper: Likewise.
13016         * modules/unicase/u8-casecmp: Likewise.
13017         * modules/unicase/u8-casecoll: Likewise.
13018         * modules/unicase/u8-casefold: Likewise.
13019         * modules/unicase/u8-casexfrm: Likewise.
13020         * modules/unicase/u8-ct-casefold: Likewise.
13021         * modules/unicase/u8-ct-tolower: Likewise.
13022         * modules/unicase/u8-ct-totitle: Likewise.
13023         * modules/unicase/u8-ct-toupper: Likewise.
13024         * modules/unicase/u8-is-cased: Likewise.
13025         * modules/unicase/u8-is-casefolded: Likewise.
13026         * modules/unicase/u8-is-lowercase: Likewise.
13027         * modules/unicase/u8-is-titlecase: Likewise.
13028         * modules/unicase/u8-is-uppercase: Likewise.
13029         * modules/unicase/u8-prefix-context: Likewise.
13030         * modules/unicase/u8-suffix-context: Likewise.
13031         * modules/unicase/u8-tolower: Likewise.
13032         * modules/unicase/u8-totitle: Likewise.
13033         * modules/unicase/u8-toupper: Likewise.
13034         * modules/unicase/u16-casecmp: Likewise.
13035         * modules/unicase/u16-casecoll: Likewise.
13036         * modules/unicase/u16-casefold: Likewise.
13037         * modules/unicase/u16-casexfrm: Likewise.
13038         * modules/unicase/u16-ct-casefold: Likewise.
13039         * modules/unicase/u16-ct-tolower: Likewise.
13040         * modules/unicase/u16-ct-totitle: Likewise.
13041         * modules/unicase/u16-ct-toupper: Likewise.
13042         * modules/unicase/u16-is-cased: Likewise.
13043         * modules/unicase/u16-is-casefolded: Likewise.
13044         * modules/unicase/u16-is-lowercase: Likewise.
13045         * modules/unicase/u16-is-titlecase: Likewise.
13046         * modules/unicase/u16-is-uppercase: Likewise.
13047         * modules/unicase/u16-prefix-context: Likewise.
13048         * modules/unicase/u16-suffix-context: Likewise.
13049         * modules/unicase/u16-tolower: Likewise.
13050         * modules/unicase/u16-totitle: Likewise.
13051         * modules/unicase/u16-toupper: Likewise.
13052         * modules/unicase/u32-casecmp: Likewise.
13053         * modules/unicase/u32-casecoll: Likewise.
13054         * modules/unicase/u32-casefold: Likewise.
13055         * modules/unicase/u32-casexfrm: Likewise.
13056         * modules/unicase/u32-ct-casefold: Likewise.
13057         * modules/unicase/u32-ct-tolower: Likewise.
13058         * modules/unicase/u32-ct-totitle: Likewise.
13059         * modules/unicase/u32-ct-toupper: Likewise.
13060         * modules/unicase/u32-is-cased: Likewise.
13061         * modules/unicase/u32-is-casefolded: Likewise.
13062         * modules/unicase/u32-is-lowercase: Likewise.
13063         * modules/unicase/u32-is-titlecase: Likewise.
13064         * modules/unicase/u32-is-uppercase: Likewise.
13065         * modules/unicase/u32-prefix-context: Likewise.
13066         * modules/unicase/u32-suffix-context: Likewise.
13067         * modules/unicase/u32-tolower: Likewise.
13068         * modules/unicase/u32-totitle: Likewise.
13069         * modules/unicase/u32-toupper: Likewise.
13070         * modules/unicase/ulc-casecmp: Likewise.
13071         * modules/unicase/ulc-casecoll: Likewise.
13072         * modules/unicase/ulc-casexfrm: Likewise.
13073         * modules/uniconv/u8-conv-from-enc: Likewise.
13074         * modules/uniconv/u8-conv-to-enc: Likewise.
13075         * modules/uniconv/u8-strconv-from-enc: Likewise.
13076         * modules/uniconv/u8-strconv-from-locale: Likewise.
13077         * modules/uniconv/u8-strconv-to-enc: Likewise.
13078         * modules/uniconv/u8-strconv-to-locale: Likewise.
13079         * modules/uniconv/u16-conv-from-enc: Likewise.
13080         * modules/uniconv/u16-conv-to-enc: Likewise.
13081         * modules/uniconv/u16-strconv-from-enc: Likewise.
13082         * modules/uniconv/u16-strconv-from-locale: Likewise.
13083         * modules/uniconv/u16-strconv-to-enc: Likewise.
13084         * modules/uniconv/u16-strconv-to-locale: Likewise.
13085         * modules/uniconv/u32-conv-from-enc: Likewise.
13086         * modules/uniconv/u32-conv-to-enc: Likewise.
13087         * modules/uniconv/u32-strconv-from-enc: Likewise.
13088         * modules/uniconv/u32-strconv-from-locale: Likewise.
13089         * modules/uniconv/u32-strconv-to-enc: Likewise.
13090         * modules/uniconv/u32-strconv-to-locale: Likewise.
13091         * modules/unictype/bidicategory-byname: Likewise.
13092         * modules/unictype/bidicategory-name: Likewise.
13093         * modules/unictype/bidicategory-of: Likewise.
13094         * modules/unictype/bidicategory-test: Likewise.
13095         * modules/unictype/block-list: Likewise.
13096         * modules/unictype/block-test: Likewise.
13097         * modules/unictype/category-C: Likewise.
13098         * modules/unictype/category-Cc: Likewise.
13099         * modules/unictype/category-Cf: Likewise.
13100         * modules/unictype/category-Cn: Likewise.
13101         * modules/unictype/category-Co: Likewise.
13102         * modules/unictype/category-Cs: Likewise.
13103         * modules/unictype/category-L: Likewise.
13104         * modules/unictype/category-Ll: Likewise.
13105         * modules/unictype/category-Lm: Likewise.
13106         * modules/unictype/category-Lo: Likewise.
13107         * modules/unictype/category-Lt: Likewise.
13108         * modules/unictype/category-Lu: Likewise.
13109         * modules/unictype/category-M: Likewise.
13110         * modules/unictype/category-Mc: Likewise.
13111         * modules/unictype/category-Me: Likewise.
13112         * modules/unictype/category-Mn: Likewise.
13113         * modules/unictype/category-N: Likewise.
13114         * modules/unictype/category-Nd: Likewise.
13115         * modules/unictype/category-Nl: Likewise.
13116         * modules/unictype/category-No: Likewise.
13117         * modules/unictype/category-P: Likewise.
13118         * modules/unictype/category-Pc: Likewise.
13119         * modules/unictype/category-Pd: Likewise.
13120         * modules/unictype/category-Pe: Likewise.
13121         * modules/unictype/category-Pf: Likewise.
13122         * modules/unictype/category-Pi: Likewise.
13123         * modules/unictype/category-Po: Likewise.
13124         * modules/unictype/category-Ps: Likewise.
13125         * modules/unictype/category-S: Likewise.
13126         * modules/unictype/category-Sc: Likewise.
13127         * modules/unictype/category-Sk: Likewise.
13128         * modules/unictype/category-Sm: Likewise.
13129         * modules/unictype/category-So: Likewise.
13130         * modules/unictype/category-Z: Likewise.
13131         * modules/unictype/category-Zl: Likewise.
13132         * modules/unictype/category-Zp: Likewise.
13133         * modules/unictype/category-Zs: Likewise.
13134         * modules/unictype/category-and: Likewise.
13135         * modules/unictype/category-and-not: Likewise.
13136         * modules/unictype/category-byname: Likewise.
13137         * modules/unictype/category-name: Likewise.
13138         * modules/unictype/category-none: Likewise.
13139         * modules/unictype/category-of: Likewise.
13140         * modules/unictype/category-or: Likewise.
13141         * modules/unictype/category-test: Likewise.
13142         * modules/unictype/combining-class: Likewise.
13143         * modules/unictype/ctype-alnum: Likewise.
13144         * modules/unictype/ctype-alpha: Likewise.
13145         * modules/unictype/ctype-blank: Likewise.
13146         * modules/unictype/ctype-cntrl: Likewise.
13147         * modules/unictype/ctype-digit: Likewise.
13148         * modules/unictype/ctype-graph: Likewise.
13149         * modules/unictype/ctype-lower: Likewise.
13150         * modules/unictype/ctype-print: Likewise.
13151         * modules/unictype/ctype-punct: Likewise.
13152         * modules/unictype/ctype-space: Likewise.
13153         * modules/unictype/ctype-upper: Likewise.
13154         * modules/unictype/ctype-xdigit: Likewise.
13155         * modules/unictype/decimal-digit: Likewise.
13156         * modules/unictype/digit: Likewise.
13157         * modules/unictype/mirror: Likewise.
13158         * modules/unictype/numeric: Likewise.
13159         * modules/unictype/property-alphabetic: Likewise.
13160         * modules/unictype/property-ascii-hex-digit: Likewise.
13161         * modules/unictype/property-bidi-arabic-digit: Likewise.
13162         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13163         * modules/unictype/property-bidi-block-separator: Likewise.
13164         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13165         * modules/unictype/property-bidi-common-separator: Likewise.
13166         * modules/unictype/property-bidi-control: Likewise.
13167         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13168         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13169         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13170         * modules/unictype/property-bidi-european-digit: Likewise.
13171         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13172         * modules/unictype/property-bidi-left-to-right: Likewise.
13173         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13174         * modules/unictype/property-bidi-other-neutral: Likewise.
13175         * modules/unictype/property-bidi-pdf: Likewise.
13176         * modules/unictype/property-bidi-segment-separator: Likewise.
13177         * modules/unictype/property-bidi-whitespace: Likewise.
13178         * modules/unictype/property-byname: Likewise.
13179         * modules/unictype/property-combining: Likewise.
13180         * modules/unictype/property-composite: Likewise.
13181         * modules/unictype/property-currency-symbol: Likewise.
13182         * modules/unictype/property-dash: Likewise.
13183         * modules/unictype/property-decimal-digit: Likewise.
13184         * modules/unictype/property-default-ignorable-code-point: Likewise.
13185         * modules/unictype/property-deprecated: Likewise.
13186         * modules/unictype/property-diacritic: Likewise.
13187         * modules/unictype/property-extender: Likewise.
13188         * modules/unictype/property-format-control: Likewise.
13189         * modules/unictype/property-grapheme-base: Likewise.
13190         * modules/unictype/property-grapheme-extend: Likewise.
13191         * modules/unictype/property-grapheme-link: Likewise.
13192         * modules/unictype/property-hex-digit: Likewise.
13193         * modules/unictype/property-hyphen: Likewise.
13194         * modules/unictype/property-id-continue: Likewise.
13195         * modules/unictype/property-id-start: Likewise.
13196         * modules/unictype/property-ideographic: Likewise.
13197         * modules/unictype/property-ids-binary-operator: Likewise.
13198         * modules/unictype/property-ids-trinary-operator: Likewise.
13199         * modules/unictype/property-ignorable-control: Likewise.
13200         * modules/unictype/property-iso-control: Likewise.
13201         * modules/unictype/property-join-control: Likewise.
13202         * modules/unictype/property-left-of-pair: Likewise.
13203         * modules/unictype/property-line-separator: Likewise.
13204         * modules/unictype/property-logical-order-exception: Likewise.
13205         * modules/unictype/property-lowercase: Likewise.
13206         * modules/unictype/property-math: Likewise.
13207         * modules/unictype/property-non-break: Likewise.
13208         * modules/unictype/property-not-a-character: Likewise.
13209         * modules/unictype/property-numeric: Likewise.
13210         * modules/unictype/property-other-alphabetic: Likewise.
13211         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13212         * modules/unictype/property-other-grapheme-extend: Likewise.
13213         * modules/unictype/property-other-id-continue: Likewise.
13214         * modules/unictype/property-other-id-start: Likewise.
13215         * modules/unictype/property-other-lowercase: Likewise.
13216         * modules/unictype/property-other-math: Likewise.
13217         * modules/unictype/property-other-uppercase: Likewise.
13218         * modules/unictype/property-paired-punctuation: Likewise.
13219         * modules/unictype/property-paragraph-separator: Likewise.
13220         * modules/unictype/property-pattern-syntax: Likewise.
13221         * modules/unictype/property-pattern-white-space: Likewise.
13222         * modules/unictype/property-private-use: Likewise.
13223         * modules/unictype/property-punctuation: Likewise.
13224         * modules/unictype/property-quotation-mark: Likewise.
13225         * modules/unictype/property-radical: Likewise.
13226         * modules/unictype/property-sentence-terminal: Likewise.
13227         * modules/unictype/property-soft-dotted: Likewise.
13228         * modules/unictype/property-space: Likewise.
13229         * modules/unictype/property-terminal-punctuation: Likewise.
13230         * modules/unictype/property-test: Likewise.
13231         * modules/unictype/property-titlecase: Likewise.
13232         * modules/unictype/property-unassigned-code-value: Likewise.
13233         * modules/unictype/property-unified-ideograph: Likewise.
13234         * modules/unictype/property-uppercase: Likewise.
13235         * modules/unictype/property-variation-selector: Likewise.
13236         * modules/unictype/property-white-space: Likewise.
13237         * modules/unictype/property-xid-continue: Likewise.
13238         * modules/unictype/property-xid-start: Likewise.
13239         * modules/unictype/property-zero-width: Likewise.
13240         * modules/unictype/scripts: Likewise.
13241         * modules/unictype/syntax-c-ident: Likewise.
13242         * modules/unictype/syntax-c-whitespace: Likewise.
13243         * modules/unictype/syntax-java-ident: Likewise.
13244         * modules/unictype/syntax-java-whitespace: Likewise.
13245         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13246         * modules/unilbrk/u8-width-linebreaks: Likewise.
13247         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13248         * modules/unilbrk/u16-width-linebreaks: Likewise.
13249         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13250         * modules/unilbrk/u32-width-linebreaks: Likewise.
13251         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13252         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13253         * modules/uniname/uniname: Likewise.
13254         * modules/uninorm/canonical-decomposition: Likewise.
13255         * modules/uninorm/composition: Likewise.
13256         * modules/uninorm/decomposing-form: Likewise.
13257         * modules/uninorm/decomposition: Likewise.
13258         * modules/uninorm/filter: Likewise.
13259         * modules/uninorm/nfc: Likewise.
13260         * modules/uninorm/nfd: Likewise.
13261         * modules/uninorm/nfkc: Likewise.
13262         * modules/uninorm/nfkd: Likewise.
13263         * modules/uninorm/u8-normalize: Likewise.
13264         * modules/uninorm/u8-normcmp: Likewise.
13265         * modules/uninorm/u8-normcoll: Likewise.
13266         * modules/uninorm/u8-normxfrm: Likewise.
13267         * modules/uninorm/u16-normalize: Likewise.
13268         * modules/uninorm/u16-normcmp: Likewise.
13269         * modules/uninorm/u16-normcoll: Likewise.
13270         * modules/uninorm/u16-normxfrm: Likewise.
13271         * modules/uninorm/u32-normalize: Likewise.
13272         * modules/uninorm/u32-normcmp: Likewise.
13273         * modules/uninorm/u32-normcoll: Likewise.
13274         * modules/uninorm/u32-normxfrm: Likewise.
13275         * modules/unistdio/u8-asnprintf: Likewise.
13276         * modules/unistdio/u8-asprintf: Likewise.
13277         * modules/unistdio/u8-snprintf: Likewise.
13278         * modules/unistdio/u8-sprintf: Likewise.
13279         * modules/unistdio/u8-u8-asnprintf: Likewise.
13280         * modules/unistdio/u8-u8-asprintf: Likewise.
13281         * modules/unistdio/u8-u8-snprintf: Likewise.
13282         * modules/unistdio/u8-u8-sprintf: Likewise.
13283         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13284         * modules/unistdio/u8-u8-vasprintf: Likewise.
13285         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13286         * modules/unistdio/u8-u8-vsprintf: Likewise.
13287         * modules/unistdio/u8-vasnprintf: Likewise.
13288         * modules/unistdio/u8-vasprintf: Likewise.
13289         * modules/unistdio/u8-vsnprintf: Likewise.
13290         * modules/unistdio/u8-vsprintf: Likewise.
13291         * modules/unistdio/u16-asnprintf: Likewise.
13292         * modules/unistdio/u16-asprintf: Likewise.
13293         * modules/unistdio/u16-snprintf: Likewise.
13294         * modules/unistdio/u16-sprintf: Likewise.
13295         * modules/unistdio/u16-u16-asnprintf: Likewise.
13296         * modules/unistdio/u16-u16-asprintf: Likewise.
13297         * modules/unistdio/u16-u16-snprintf: Likewise.
13298         * modules/unistdio/u16-u16-sprintf: Likewise.
13299         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13300         * modules/unistdio/u16-u16-vasprintf: Likewise.
13301         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13302         * modules/unistdio/u16-u16-vsprintf: Likewise.
13303         * modules/unistdio/u16-vasnprintf: Likewise.
13304         * modules/unistdio/u16-vasprintf: Likewise.
13305         * modules/unistdio/u16-vsnprintf: Likewise.
13306         * modules/unistdio/u16-vsprintf: Likewise.
13307         * modules/unistdio/u32-asnprintf: Likewise.
13308         * modules/unistdio/u32-asprintf: Likewise.
13309         * modules/unistdio/u32-snprintf: Likewise.
13310         * modules/unistdio/u32-sprintf: Likewise.
13311         * modules/unistdio/u32-u32-asnprintf: Likewise.
13312         * modules/unistdio/u32-u32-asprintf: Likewise.
13313         * modules/unistdio/u32-u32-snprintf: Likewise.
13314         * modules/unistdio/u32-u32-sprintf: Likewise.
13315         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13316         * modules/unistdio/u32-u32-vasprintf: Likewise.
13317         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13318         * modules/unistdio/u32-u32-vsprintf: Likewise.
13319         * modules/unistdio/u32-vasnprintf: Likewise.
13320         * modules/unistdio/u32-vasprintf: Likewise.
13321         * modules/unistdio/u32-vsnprintf: Likewise.
13322         * modules/unistdio/u32-vsprintf: Likewise.
13323         * modules/unistdio/ulc-asnprintf: Likewise.
13324         * modules/unistdio/ulc-asprintf: Likewise.
13325         * modules/unistdio/ulc-fprintf: Likewise.
13326         * modules/unistdio/ulc-snprintf: Likewise.
13327         * modules/unistdio/ulc-sprintf: Likewise.
13328         * modules/unistdio/ulc-vasnprintf: Likewise.
13329         * modules/unistdio/ulc-vasprintf: Likewise.
13330         * modules/unistdio/ulc-vfprintf: Likewise.
13331         * modules/unistdio/ulc-vsnprintf: Likewise.
13332         * modules/unistdio/ulc-vsprintf: Likewise.
13333         * modules/unistr/u8-check: Likewise.
13334         * modules/unistr/u8-chr: Likewise.
13335         * modules/unistr/u8-cmp: Likewise.
13336         * modules/unistr/u8-cmp2: Likewise.
13337         * modules/unistr/u8-cpy: Likewise.
13338         * modules/unistr/u8-cpy-alloc: Likewise.
13339         * modules/unistr/u8-endswith: Likewise.
13340         * modules/unistr/u8-mblen: Likewise.
13341         * modules/unistr/u8-mbsnlen: Likewise.
13342         * modules/unistr/u8-mbtouc: Likewise.
13343         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13344         * modules/unistr/u8-mbtoucr: Likewise.
13345         * modules/unistr/u8-move: Likewise.
13346         * modules/unistr/u8-next: Likewise.
13347         * modules/unistr/u8-prev: Likewise.
13348         * modules/unistr/u8-set: Likewise.
13349         * modules/unistr/u8-startswith: Likewise.
13350         * modules/unistr/u8-stpcpy: Likewise.
13351         * modules/unistr/u8-stpncpy: Likewise.
13352         * modules/unistr/u8-strcat: Likewise.
13353         * modules/unistr/u8-strchr: Likewise.
13354         * modules/unistr/u8-strcmp: Likewise.
13355         * modules/unistr/u8-strcoll: Likewise.
13356         * modules/unistr/u8-strcpy: Likewise.
13357         * modules/unistr/u8-strcspn: Likewise.
13358         * modules/unistr/u8-strdup: Likewise.
13359         * modules/unistr/u8-strlen: Likewise.
13360         * modules/unistr/u8-strmblen: Likewise.
13361         * modules/unistr/u8-strmbtouc: Likewise.
13362         * modules/unistr/u8-strncat: Likewise.
13363         * modules/unistr/u8-strncmp: Likewise.
13364         * modules/unistr/u8-strncpy: Likewise.
13365         * modules/unistr/u8-strnlen: Likewise.
13366         * modules/unistr/u8-strpbrk: Likewise.
13367         * modules/unistr/u8-strrchr: Likewise.
13368         * modules/unistr/u8-strspn: Likewise.
13369         * modules/unistr/u8-strstr: Likewise.
13370         * modules/unistr/u8-strtok: Likewise.
13371         * modules/unistr/u8-to-u16: Likewise.
13372         * modules/unistr/u8-to-u32: Likewise.
13373         * modules/unistr/u8-uctomb: Likewise.
13374         * modules/unistr/u16-check: Likewise.
13375         * modules/unistr/u16-chr: Likewise.
13376         * modules/unistr/u16-cmp: Likewise.
13377         * modules/unistr/u16-cmp2: Likewise.
13378         * modules/unistr/u16-cpy: Likewise.
13379         * modules/unistr/u16-cpy-alloc: Likewise.
13380         * modules/unistr/u16-endswith: Likewise.
13381         * modules/unistr/u16-mblen: Likewise.
13382         * modules/unistr/u16-mbsnlen: Likewise.
13383         * modules/unistr/u16-mbtouc: Likewise.
13384         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13385         * modules/unistr/u16-mbtoucr: Likewise.
13386         * modules/unistr/u16-move: Likewise.
13387         * modules/unistr/u16-next: Likewise.
13388         * modules/unistr/u16-prev: Likewise.
13389         * modules/unistr/u16-set: Likewise.
13390         * modules/unistr/u16-startswith: Likewise.
13391         * modules/unistr/u16-stpcpy: Likewise.
13392         * modules/unistr/u16-stpncpy: Likewise.
13393         * modules/unistr/u16-strcat: Likewise.
13394         * modules/unistr/u16-strchr: Likewise.
13395         * modules/unistr/u16-strcmp: Likewise.
13396         * modules/unistr/u16-strcoll: Likewise.
13397         * modules/unistr/u16-strcpy: Likewise.
13398         * modules/unistr/u16-strcspn: Likewise.
13399         * modules/unistr/u16-strdup: Likewise.
13400         * modules/unistr/u16-strlen: Likewise.
13401         * modules/unistr/u16-strmblen: Likewise.
13402         * modules/unistr/u16-strmbtouc: Likewise.
13403         * modules/unistr/u16-strncat: Likewise.
13404         * modules/unistr/u16-strncmp: Likewise.
13405         * modules/unistr/u16-strncpy: Likewise.
13406         * modules/unistr/u16-strnlen: Likewise.
13407         * modules/unistr/u16-strpbrk: Likewise.
13408         * modules/unistr/u16-strrchr: Likewise.
13409         * modules/unistr/u16-strspn: Likewise.
13410         * modules/unistr/u16-strstr: Likewise.
13411         * modules/unistr/u16-strtok: Likewise.
13412         * modules/unistr/u16-to-u32: Likewise.
13413         * modules/unistr/u16-to-u8: Likewise.
13414         * modules/unistr/u16-uctomb: Likewise.
13415         * modules/unistr/u32-check: Likewise.
13416         * modules/unistr/u32-chr: Likewise.
13417         * modules/unistr/u32-cmp: Likewise.
13418         * modules/unistr/u32-cmp2: Likewise.
13419         * modules/unistr/u32-cpy: Likewise.
13420         * modules/unistr/u32-cpy-alloc: Likewise.
13421         * modules/unistr/u32-endswith: Likewise.
13422         * modules/unistr/u32-mblen: Likewise.
13423         * modules/unistr/u32-mbsnlen: Likewise.
13424         * modules/unistr/u32-mbtouc: Likewise.
13425         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13426         * modules/unistr/u32-mbtoucr: Likewise.
13427         * modules/unistr/u32-move: Likewise.
13428         * modules/unistr/u32-next: Likewise.
13429         * modules/unistr/u32-prev: Likewise.
13430         * modules/unistr/u32-set: Likewise.
13431         * modules/unistr/u32-startswith: Likewise.
13432         * modules/unistr/u32-stpcpy: Likewise.
13433         * modules/unistr/u32-stpncpy: Likewise.
13434         * modules/unistr/u32-strcat: Likewise.
13435         * modules/unistr/u32-strchr: Likewise.
13436         * modules/unistr/u32-strcmp: Likewise.
13437         * modules/unistr/u32-strcoll: Likewise.
13438         * modules/unistr/u32-strcpy: Likewise.
13439         * modules/unistr/u32-strcspn: Likewise.
13440         * modules/unistr/u32-strdup: Likewise.
13441         * modules/unistr/u32-strlen: Likewise.
13442         * modules/unistr/u32-strmblen: Likewise.
13443         * modules/unistr/u32-strmbtouc: Likewise.
13444         * modules/unistr/u32-strncat: Likewise.
13445         * modules/unistr/u32-strncmp: Likewise.
13446         * modules/unistr/u32-strncpy: Likewise.
13447         * modules/unistr/u32-strnlen: Likewise.
13448         * modules/unistr/u32-strpbrk: Likewise.
13449         * modules/unistr/u32-strrchr: Likewise.
13450         * modules/unistr/u32-strspn: Likewise.
13451         * modules/unistr/u32-strstr: Likewise.
13452         * modules/unistr/u32-strtok: Likewise.
13453         * modules/unistr/u32-to-u16: Likewise.
13454         * modules/unistr/u32-to-u8: Likewise.
13455         * modules/unistr/u32-uctomb: Likewise.
13456         * modules/uniwbrk/u8-wordbreaks: Likewise.
13457         * modules/uniwbrk/u16-wordbreaks: Likewise.
13458         * modules/uniwbrk/u32-wordbreaks: Likewise.
13459         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13460         * modules/uniwbrk/wordbreak-property: Likewise.
13461         * modules/uniwidth/u8-strwidth: Likewise.
13462         * modules/uniwidth/u8-width: Likewise.
13463         * modules/uniwidth/u16-strwidth: Likewise.
13464         * modules/uniwidth/u16-width: Likewise.
13465         * modules/uniwidth/u32-strwidth: Likewise.
13466         * modules/uniwidth/u32-width: Likewise.
13467         * modules/uniwidth/width: Likewise.
13468         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13469         with $(LIBUNISTRING).
13470         * modules/unicase/ignorable-tests: Likewise.
13471         * modules/unicase/locale-language-tests: Likewise.
13472         * modules/unicase/tolower-tests: Likewise.
13473         * modules/unicase/totitle-tests: Likewise.
13474         * modules/unicase/toupper-tests: Likewise.
13475         * modules/unicase/u8-casecmp-tests: Likewise.
13476         * modules/unicase/u8-casecoll-tests: Likewise.
13477         * modules/unicase/u8-casefold-tests: Likewise.
13478         * modules/unicase/u8-is-cased-tests: Likewise.
13479         * modules/unicase/u8-is-casefolded-tests: Likewise.
13480         * modules/unicase/u8-is-lowercase-tests: Likewise.
13481         * modules/unicase/u8-is-titlecase-tests: Likewise.
13482         * modules/unicase/u8-is-uppercase-tests: Likewise.
13483         * modules/unicase/u8-tolower-tests: Likewise.
13484         * modules/unicase/u8-totitle-tests: Likewise.
13485         * modules/unicase/u8-toupper-tests: Likewise.
13486         * modules/unicase/u16-casecmp-tests: Likewise.
13487         * modules/unicase/u16-casecoll-tests: Likewise.
13488         * modules/unicase/u16-casefold-tests: Likewise.
13489         * modules/unicase/u16-is-cased-tests: Likewise.
13490         * modules/unicase/u16-is-casefolded-tests: Likewise.
13491         * modules/unicase/u16-is-lowercase-tests: Likewise.
13492         * modules/unicase/u16-is-titlecase-tests: Likewise.
13493         * modules/unicase/u16-is-uppercase-tests: Likewise.
13494         * modules/unicase/u16-tolower-tests: Likewise.
13495         * modules/unicase/u16-totitle-tests: Likewise.
13496         * modules/unicase/u16-toupper-tests: Likewise.
13497         * modules/unicase/u32-casecmp-tests: Likewise.
13498         * modules/unicase/u32-casecoll-tests: Likewise.
13499         * modules/unicase/u32-casefold-tests: Likewise.
13500         * modules/unicase/u32-is-cased-tests: Likewise.
13501         * modules/unicase/u32-is-casefolded-tests: Likewise.
13502         * modules/unicase/u32-is-lowercase-tests: Likewise.
13503         * modules/unicase/u32-is-titlecase-tests: Likewise.
13504         * modules/unicase/u32-is-uppercase-tests: Likewise.
13505         * modules/unicase/u32-tolower-tests: Likewise.
13506         * modules/unicase/u32-totitle-tests: Likewise.
13507         * modules/unicase/u32-toupper-tests: Likewise.
13508         * modules/unicase/ulc-casecmp-tests: Likewise.
13509         * modules/unicase/ulc-casecoll-tests: Likewise.
13510         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13511         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13512         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13513         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13514         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13515         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13516         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13517         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13518         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13519         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13520         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13521         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13522         * modules/unictype/bidicategory-byname-tests: Likewise.
13523         * modules/unictype/bidicategory-name-tests: Likewise.
13524         * modules/unictype/bidicategory-of-tests: Likewise.
13525         * modules/unictype/bidicategory-test-tests: Likewise.
13526         * modules/unictype/block-list-tests: Likewise.
13527         * modules/unictype/block-of-tests: Likewise.
13528         * modules/unictype/block-test-tests: Likewise.
13529         * modules/unictype/category-C-tests: Likewise.
13530         * modules/unictype/category-Cc-tests: Likewise.
13531         * modules/unictype/category-Cf-tests: Likewise.
13532         * modules/unictype/category-Cn-tests: Likewise.
13533         * modules/unictype/category-Co-tests: Likewise.
13534         * modules/unictype/category-Cs-tests: Likewise.
13535         * modules/unictype/category-L-tests: Likewise.
13536         * modules/unictype/category-Ll-tests: Likewise.
13537         * modules/unictype/category-Lm-tests: Likewise.
13538         * modules/unictype/category-Lo-tests: Likewise.
13539         * modules/unictype/category-Lt-tests: Likewise.
13540         * modules/unictype/category-Lu-tests: Likewise.
13541         * modules/unictype/category-M-tests: Likewise.
13542         * modules/unictype/category-Mc-tests: Likewise.
13543         * modules/unictype/category-Me-tests: Likewise.
13544         * modules/unictype/category-Mn-tests: Likewise.
13545         * modules/unictype/category-N-tests: Likewise.
13546         * modules/unictype/category-Nd-tests: Likewise.
13547         * modules/unictype/category-Nl-tests: Likewise.
13548         * modules/unictype/category-No-tests: Likewise.
13549         * modules/unictype/category-P-tests: Likewise.
13550         * modules/unictype/category-Pc-tests: Likewise.
13551         * modules/unictype/category-Pd-tests: Likewise.
13552         * modules/unictype/category-Pe-tests: Likewise.
13553         * modules/unictype/category-Pf-tests: Likewise.
13554         * modules/unictype/category-Pi-tests: Likewise.
13555         * modules/unictype/category-Po-tests: Likewise.
13556         * modules/unictype/category-Ps-tests: Likewise.
13557         * modules/unictype/category-S-tests: Likewise.
13558         * modules/unictype/category-Sc-tests: Likewise.
13559         * modules/unictype/category-Sk-tests: Likewise.
13560         * modules/unictype/category-Sm-tests: Likewise.
13561         * modules/unictype/category-So-tests: Likewise.
13562         * modules/unictype/category-Z-tests: Likewise.
13563         * modules/unictype/category-Zl-tests: Likewise.
13564         * modules/unictype/category-Zp-tests: Likewise.
13565         * modules/unictype/category-Zs-tests: Likewise.
13566         * modules/unictype/category-and-not-tests: Likewise.
13567         * modules/unictype/category-and-tests: Likewise.
13568         * modules/unictype/category-byname-tests: Likewise.
13569         * modules/unictype/category-name-tests: Likewise.
13570         * modules/unictype/category-none-tests: Likewise.
13571         * modules/unictype/category-of-tests: Likewise.
13572         * modules/unictype/category-or-tests: Likewise.
13573         * modules/unictype/category-test-withtable-tests: Likewise.
13574         * modules/unictype/combining-class-tests: Likewise.
13575         * modules/unictype/ctype-alnum-tests: Likewise.
13576         * modules/unictype/ctype-alpha-tests: Likewise.
13577         * modules/unictype/ctype-blank-tests: Likewise.
13578         * modules/unictype/ctype-cntrl-tests: Likewise.
13579         * modules/unictype/ctype-digit-tests: Likewise.
13580         * modules/unictype/ctype-graph-tests: Likewise.
13581         * modules/unictype/ctype-lower-tests: Likewise.
13582         * modules/unictype/ctype-print-tests: Likewise.
13583         * modules/unictype/ctype-punct-tests: Likewise.
13584         * modules/unictype/ctype-space-tests: Likewise.
13585         * modules/unictype/ctype-upper-tests: Likewise.
13586         * modules/unictype/ctype-xdigit-tests: Likewise.
13587         * modules/unictype/decimal-digit-tests: Likewise.
13588         * modules/unictype/digit-tests: Likewise.
13589         * modules/unictype/mirror-tests: Likewise.
13590         * modules/unictype/numeric-tests: Likewise.
13591         * modules/unictype/property-alphabetic-tests: Likewise.
13592         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13593         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13594         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13595         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13596         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13597         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13598         * modules/unictype/property-bidi-control-tests: Likewise.
13599         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13600         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13601         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13602         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13603         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13604         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13605         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13606         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13607         * modules/unictype/property-bidi-pdf-tests: Likewise.
13608         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13609         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13610         * modules/unictype/property-byname-tests: Likewise.
13611         * modules/unictype/property-combining-tests: Likewise.
13612         * modules/unictype/property-composite-tests: Likewise.
13613         * modules/unictype/property-currency-symbol-tests: Likewise.
13614         * modules/unictype/property-dash-tests: Likewise.
13615         * modules/unictype/property-decimal-digit-tests: Likewise.
13616         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13617         * modules/unictype/property-deprecated-tests: Likewise.
13618         * modules/unictype/property-diacritic-tests: Likewise.
13619         * modules/unictype/property-extender-tests: Likewise.
13620         * modules/unictype/property-format-control-tests: Likewise.
13621         * modules/unictype/property-grapheme-base-tests: Likewise.
13622         * modules/unictype/property-grapheme-extend-tests: Likewise.
13623         * modules/unictype/property-grapheme-link-tests: Likewise.
13624         * modules/unictype/property-hex-digit-tests: Likewise.
13625         * modules/unictype/property-hyphen-tests: Likewise.
13626         * modules/unictype/property-id-continue-tests: Likewise.
13627         * modules/unictype/property-id-start-tests: Likewise.
13628         * modules/unictype/property-ideographic-tests: Likewise.
13629         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13630         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13631         * modules/unictype/property-ignorable-control-tests: Likewise.
13632         * modules/unictype/property-iso-control-tests: Likewise.
13633         * modules/unictype/property-join-control-tests: Likewise.
13634         * modules/unictype/property-left-of-pair-tests: Likewise.
13635         * modules/unictype/property-line-separator-tests: Likewise.
13636         * modules/unictype/property-logical-order-exception-tests: Likewise.
13637         * modules/unictype/property-lowercase-tests: Likewise.
13638         * modules/unictype/property-math-tests: Likewise.
13639         * modules/unictype/property-non-break-tests: Likewise.
13640         * modules/unictype/property-not-a-character-tests: Likewise.
13641         * modules/unictype/property-numeric-tests: Likewise.
13642         * modules/unictype/property-other-alphabetic-tests: Likewise.
13643         * modules/unictype/property-other-default-ignorable-code-point-tests:
13644         Likewise.
13645         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13646         * modules/unictype/property-other-id-continue-tests: Likewise.
13647         * modules/unictype/property-other-id-start-tests: Likewise.
13648         * modules/unictype/property-other-lowercase-tests: Likewise.
13649         * modules/unictype/property-other-math-tests: Likewise.
13650         * modules/unictype/property-other-uppercase-tests: Likewise.
13651         * modules/unictype/property-paired-punctuation-tests: Likewise.
13652         * modules/unictype/property-paragraph-separator-tests: Likewise.
13653         * modules/unictype/property-pattern-syntax-tests: Likewise.
13654         * modules/unictype/property-pattern-white-space-tests: Likewise.
13655         * modules/unictype/property-private-use-tests: Likewise.
13656         * modules/unictype/property-punctuation-tests: Likewise.
13657         * modules/unictype/property-quotation-mark-tests: Likewise.
13658         * modules/unictype/property-radical-tests: Likewise.
13659         * modules/unictype/property-sentence-terminal-tests: Likewise.
13660         * modules/unictype/property-soft-dotted-tests: Likewise.
13661         * modules/unictype/property-space-tests: Likewise.
13662         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13663         * modules/unictype/property-test-tests: Likewise.
13664         * modules/unictype/property-titlecase-tests: Likewise.
13665         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13666         * modules/unictype/property-unified-ideograph-tests: Likewise.
13667         * modules/unictype/property-uppercase-tests: Likewise.
13668         * modules/unictype/property-variation-selector-tests: Likewise.
13669         * modules/unictype/property-white-space-tests: Likewise.
13670         * modules/unictype/property-xid-continue-tests: Likewise.
13671         * modules/unictype/property-xid-start-tests: Likewise.
13672         * modules/unictype/property-zero-width-tests: Likewise.
13673         * modules/unictype/scripts-tests: Likewise.
13674         * modules/unictype/syntax-c-ident-tests: Likewise.
13675         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13676         * modules/unictype/syntax-java-ident-tests: Likewise.
13677         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13678         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13679         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13680         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13681         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13682         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13683         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13684         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13685         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13686         * modules/uniname/uniname-tests: Likewise.
13687         * modules/uninorm/canonical-decomposition-tests: Likewise.
13688         * modules/uninorm/compat-decomposition-tests: Likewise.
13689         * modules/uninorm/composition-tests: Likewise.
13690         * modules/uninorm/decomposing-form-tests: Likewise.
13691         * modules/uninorm/decomposition-tests: Likewise.
13692         * modules/uninorm/filter-tests: Likewise.
13693         * modules/uninorm/nfc-tests: Likewise.
13694         * modules/uninorm/nfd-tests: Likewise.
13695         * modules/uninorm/nfkc-tests: Likewise.
13696         * modules/uninorm/nfkd-tests: Likewise.
13697         * modules/uninorm/u8-normcmp-tests: Likewise.
13698         * modules/uninorm/u8-normcoll-tests: Likewise.
13699         * modules/uninorm/u16-normcmp-tests: Likewise.
13700         * modules/uninorm/u16-normcoll-tests: Likewise.
13701         * modules/uninorm/u32-normcmp-tests: Likewise.
13702         * modules/uninorm/u32-normcoll-tests: Likewise.
13703         * modules/unistdio/u8-asnprintf-tests: Likewise.
13704         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13705         * modules/unistdio/u8-vasprintf-tests: Likewise.
13706         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13707         * modules/unistdio/u8-vsprintf-tests: Likewise.
13708         * modules/unistdio/u16-asnprintf-tests: Likewise.
13709         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13710         * modules/unistdio/u16-vasprintf-tests: Likewise.
13711         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13712         * modules/unistdio/u16-vsprintf-tests: Likewise.
13713         * modules/unistdio/u32-asnprintf-tests: Likewise.
13714         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13715         * modules/unistdio/u32-vasprintf-tests: Likewise.
13716         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13717         * modules/unistdio/u32-vsprintf-tests: Likewise.
13718         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13719         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13720         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13721         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13722         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13723         * modules/unistr/u8-check-tests: Likewise.
13724         * modules/unistr/u8-chr-tests: Likewise.
13725         * modules/unistr/u8-cmp-tests: Likewise.
13726         * modules/unistr/u8-cmp2-tests: Likewise.
13727         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13728         * modules/unistr/u8-cpy-tests: Likewise.
13729         * modules/unistr/u8-mblen-tests: Likewise.
13730         * modules/unistr/u8-mbsnlen-tests: Likewise.
13731         * modules/unistr/u8-mbtouc-tests: Likewise.
13732         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13733         * modules/unistr/u8-mbtoucr-tests: Likewise.
13734         * modules/unistr/u8-move-tests: Likewise.
13735         * modules/unistr/u8-next-tests: Likewise.
13736         * modules/unistr/u8-prev-tests: Likewise.
13737         * modules/unistr/u8-set-tests: Likewise.
13738         * modules/unistr/u8-stpcpy-tests: Likewise.
13739         * modules/unistr/u8-stpncpy-tests: Likewise.
13740         * modules/unistr/u8-strcat-tests: Likewise.
13741         * modules/unistr/u8-strcmp-tests: Likewise.
13742         * modules/unistr/u8-strcoll-tests: Likewise.
13743         * modules/unistr/u8-strcpy-tests: Likewise.
13744         * modules/unistr/u8-strdup-tests: Likewise.
13745         * modules/unistr/u8-strlen-tests: Likewise.
13746         * modules/unistr/u8-strmblen-tests: Likewise.
13747         * modules/unistr/u8-strmbtouc-tests: Likewise.
13748         * modules/unistr/u8-strncat-tests: Likewise.
13749         * modules/unistr/u8-strncmp-tests: Likewise.
13750         * modules/unistr/u8-strncpy-tests: Likewise.
13751         * modules/unistr/u8-strnlen-tests: Likewise.
13752         * modules/unistr/u8-to-u16-tests: Likewise.
13753         * modules/unistr/u8-to-u32-tests: Likewise.
13754         * modules/unistr/u8-uctomb-tests: Likewise.
13755         * modules/unistr/u16-check-tests: Likewise.
13756         * modules/unistr/u16-chr-tests: Likewise.
13757         * modules/unistr/u16-cmp-tests: Likewise.
13758         * modules/unistr/u16-cmp2-tests: Likewise.
13759         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13760         * modules/unistr/u16-cpy-tests: Likewise.
13761         * modules/unistr/u16-mblen-tests: Likewise.
13762         * modules/unistr/u16-mbsnlen-tests: Likewise.
13763         * modules/unistr/u16-mbtouc-tests: Likewise.
13764         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13765         * modules/unistr/u16-mbtoucr-tests: Likewise.
13766         * modules/unistr/u16-move-tests: Likewise.
13767         * modules/unistr/u16-next-tests: Likewise.
13768         * modules/unistr/u16-prev-tests: Likewise.
13769         * modules/unistr/u16-set-tests: Likewise.
13770         * modules/unistr/u16-stpcpy-tests: Likewise.
13771         * modules/unistr/u16-stpncpy-tests: Likewise.
13772         * modules/unistr/u16-strcat-tests: Likewise.
13773         * modules/unistr/u16-strcmp-tests: Likewise.
13774         * modules/unistr/u16-strcoll-tests: Likewise.
13775         * modules/unistr/u16-strcpy-tests: Likewise.
13776         * modules/unistr/u16-strdup-tests: Likewise.
13777         * modules/unistr/u16-strlen-tests: Likewise.
13778         * modules/unistr/u16-strmblen-tests: Likewise.
13779         * modules/unistr/u16-strmbtouc-tests: Likewise.
13780         * modules/unistr/u16-strncat-tests: Likewise.
13781         * modules/unistr/u16-strncmp-tests: Likewise.
13782         * modules/unistr/u16-strncpy-tests: Likewise.
13783         * modules/unistr/u16-strnlen-tests: Likewise.
13784         * modules/unistr/u16-to-u32-tests: Likewise.
13785         * modules/unistr/u16-to-u8-tests: Likewise.
13786         * modules/unistr/u16-uctomb-tests: Likewise.
13787         * modules/unistr/u32-check-tests: Likewise.
13788         * modules/unistr/u32-chr-tests: Likewise.
13789         * modules/unistr/u32-cmp-tests: Likewise.
13790         * modules/unistr/u32-cmp2-tests: Likewise.
13791         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13792         * modules/unistr/u32-cpy-tests: Likewise.
13793         * modules/unistr/u32-mblen-tests: Likewise.
13794         * modules/unistr/u32-mbsnlen-tests: Likewise.
13795         * modules/unistr/u32-mbtouc-tests: Likewise.
13796         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13797         * modules/unistr/u32-mbtoucr-tests: Likewise.
13798         * modules/unistr/u32-move-tests: Likewise.
13799         * modules/unistr/u32-next-tests: Likewise.
13800         * modules/unistr/u32-prev-tests: Likewise.
13801         * modules/unistr/u32-set-tests: Likewise.
13802         * modules/unistr/u32-stpcpy-tests: Likewise.
13803         * modules/unistr/u32-stpncpy-tests: Likewise.
13804         * modules/unistr/u32-strcat-tests: Likewise.
13805         * modules/unistr/u32-strcmp-tests: Likewise.
13806         * modules/unistr/u32-strcoll-tests: Likewise.
13807         * modules/unistr/u32-strcpy-tests: Likewise.
13808         * modules/unistr/u32-strdup-tests: Likewise.
13809         * modules/unistr/u32-strlen-tests: Likewise.
13810         * modules/unistr/u32-strmblen-tests: Likewise.
13811         * modules/unistr/u32-strmbtouc-tests: Likewise.
13812         * modules/unistr/u32-strncat-tests: Likewise.
13813         * modules/unistr/u32-strncmp-tests: Likewise.
13814         * modules/unistr/u32-strncpy-tests: Likewise.
13815         * modules/unistr/u32-strnlen-tests: Likewise.
13816         * modules/unistr/u32-to-u16-tests: Likewise.
13817         * modules/unistr/u32-to-u8-tests: Likewise.
13818         * modules/unistr/u32-uctomb-tests: Likewise.
13819         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13820         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13821         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13822         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13823         * modules/uniwidth/u8-strwidth-tests: Likewise.
13824         * modules/uniwidth/u8-width-tests: Likewise.
13825         * modules/uniwidth/u16-strwidth-tests: Likewise.
13826         * modules/uniwidth/u16-width-tests: Likewise.
13827         * modules/uniwidth/u32-strwidth-tests: Likewise.
13828         * modules/uniwidth/u32-width-tests: Likewise.
13829         * modules/uniwidth/width-tests: Likewise.
13830
13831 2010-05-18  Richard Jones  <rjones@redhat.com>
13832
13833         doc: users.txt: list hivex
13834         * users.txt: Add hivex.
13835
13836 2010-05-18  Richard Jones  <rjones@redhat.com>
13837
13838         doc: users.txt: list febootstrap
13839         * users.txt: Add febootstrap.
13840
13841 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13842
13843         bootstrap: fix an error when gnulib is not used as a git submodule
13844         * build-aux/bootstrap (gnulib_path): If its length is zero then
13845         assign "gnulib" to it.
13846         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13847
13848 2010-05-16  Bruno Haible  <bruno@clisp.org>
13849
13850         Avoid autoconf warnings about AM_ICONV.
13851         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13852         2.64.
13853
13854 2010-05-16  Bruno Haible  <bruno@clisp.org>
13855
13856         absolute-header: Make the macro usable in more situations.
13857         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13858         from gl_ABSOLUTE_HEADER.
13859         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13860
13861 2010-05-16  James Youngman  <jay@gnu.org>
13862
13863         doc: update users.txt
13864         * users.txt: Add CSSC.
13865
13866 2010-05-16  Jim Meyering  <meyering@redhat.com>
13867
13868         init.sh: fix an error in the previous change; add more comments
13869         * tests/init.sh: Compare exit code in loop against 9, not 2.
13870         Patch by Bruno Haible.
13871         Make the two tests more similar by adding an empty "then" clause.
13872         Add comments.
13873
13874         init.sh: avoid unnecessary shell re-exec
13875         * tests/init.sh: Improve the re-exec-required check to first test the
13876         current shell.  If it passes the test, do not search for a shell that
13877         does pass, and do not re-exec.  This test is particularly contorted to
13878         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13879         of $(...) evokes a syntax error and causes immediate shell exit with
13880         status 2.  Bruno Haible reported that the re-exec made it impossible
13881         to single-step through any init.sh-using script.
13882
13883 2010-05-16  Bruno Haible  <bruno@clisp.org>
13884
13885         Fix collision between gnulib's and libintl's printf replacements.
13886         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13887         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13888         (printf): When using GNU C, map the __printf__ function to rpl_printf
13889         via __asm__. When not using GNU C, define rpl_printf instead of
13890         __printf__.
13891         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13892         commit.
13893         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13894         commit.
13895         * m4/asm-underscore.m4: New file.
13896         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13897         * modules/stdio (Files): Add m4/asm-underscore.m4.
13898         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13899         Reported by Ben Pfaff.
13900
13901 2010-05-16  Bruno Haible  <bruno@clisp.org>
13902
13903         verify: Avoid skipping the test on openSUSE 11.0.
13904         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13905
13906 2010-05-13  Bruno Haible  <bruno@clisp.org>
13907
13908         Avoid useless warnings from G++.
13909         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13910         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13911         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13912
13913 2010-05-11  Jim Meyering  <meyering@redhat.com>
13914
13915         maint.mk: tweak preceding change
13916         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13917         regexps tighter by anchoring at EOL, and make the new group "shy"
13918         for slightly decreased overhead.
13919
13920 2010-05-11  Eric Blake  <eblake@redhat.com>
13921
13922         maint.mk: gnulib doesn't guarantee NSIG
13923         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13924
13925 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13926
13927         test-pwrite.c: Remove unused variable declaration.
13928         * tests/test-pwrite.c (main): Remove read_buf declaration.
13929
13930         Remove useless test-pwrite.sh file.
13931         * tests/test-pwrite.sh: Delete file.
13932         * modules/pwrite-tests: Remove references.
13933         Reported by Bruno Haible.
13934
13935 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13936
13937         init.sh: fix a typo
13938         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13939
13940 2010-05-10  Jim Meyering  <meyering@redhat.com>
13941
13942         maint.mk: avoid using a temporary file in the always-defined-macros check
13943         * top/maint.mk (.re-defmac): Remove rule.
13944         (gl_trap_): Remove definition.
13945         (sc_prohibit_always-defined_macros): Rewrite not to create and
13946         depend on a temporary file.  Instead, depend on GNU grep's ability
13947         to read a list of regular expressions from stdin when given "-f -".
13948
13949 2010-05-09  Bruno Haible  <bruno@clisp.org>
13950
13951         Update to GNU gettext 0.18, part 1.
13952         * m4/gettext.m4: Update to GNU gettext 0.18.
13953         * m4/intl.m4: Likewise.
13954         * m4/po.m4: Likewise.
13955         * modules/gettext (Files): Add m4/fcntl-o.m4.
13956         (configure.ac): Require gettext infrastructure from version 0.18.
13957
13958 2010-05-09  Jim Meyering  <meyering@redhat.com>
13959
13960         init.sh: enable MALLOC_PERTURB_
13961         * tests/init.sh: Enable glibc's malloc-perturbing option.
13962
13963         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13964         With my recent change in init.sh from the two-line form:
13965             -#   : ${srcdir=.}
13966             -#   . "$srcdir/init.sh"; path_prepend_ .
13967             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13968         I noticed that using the one-line form would cause this test
13969         to fail with a false-positive, or to stop working altogether,
13970         depending on whether help-version changed or all the tests did.
13971         * top/maint.mk (_hv_regex): Remove this definition.
13972         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13973         (_hv_regex_strong): Use a stronger regex to check for conformance.
13974         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13975         Give a separate diagnostic for lack of conforming use.
13976
13977         maint.mk: prohibit definition of symbols defined by gnulib
13978         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13979         definition of symbols defined by gnulib.
13980
13981 2010-05-09  Bruno Haible  <bruno@clisp.org>
13982
13983         acl: Avoid test failure on Cygwin-hosted mingw.
13984         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13985
13986 2010-05-09  Bruno Haible  <bruno@clisp.org>
13987
13988         error: Use system's fcntl function.
13989         * lib/error.c (fcntl): Undefine.
13990
13991 2010-05-09  Jim Meyering  <meyering@redhat.com>
13992
13993         verify: adjust formatting to be more consistent
13994         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13995         argument-list '('s, and after one comma.
13996
13997 2010-05-09  Bruno Haible  <bruno@clisp.org>
13998
13999         error: More reliable output on mingw.
14000         * lib/error.c: Include <windows.h>.
14001         (is_open): New function.
14002         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14003         defined.
14004
14005 2010-05-09  Bruno Haible  <bruno@clisp.org>
14006
14007         vasnprintf: Fix syntax errors in libintl build on mingw.
14008         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14009         pad_ourselves and prec_ourselves after use.
14010
14011 2010-05-08  Bruno Haible  <bruno@clisp.org>
14012
14013         * lib/config.charset: Update comments for Cygwin 1.7.
14014         * lib/localcharset.c: Likewise.
14015
14016 2010-05-07  Jim Meyering  <meyering@redhat.com>
14017
14018         init.sh: improve comments
14019         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14020         . "${srcdir=.}/init.sh"; path_prepend_ .
14021         Add a note about path_prepend_ and the alternative of using
14022         TESTS_ENVIRONMENT.
14023
14024 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14025
14026         exclude: Unescape hashed patterns in wildcard mode.
14027         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14028         to the hash list.
14029         * tests/test-exclude8.sh: New test case.
14030         * modules/exclude-tests: Add new test.
14031
14032 2010-05-05  Eric Blake  <eblake@redhat.com>
14033
14034         verify: automate tests
14035         * modules/verify-tests: New module.
14036         * tests/test-verify.sh: New file.
14037         * tests/test-verify.c: Guard each negative test with a unique id.
14038         Also avoid warning about unused left hand of comma expressions.
14039
14040 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14041
14042         Further improvements to verify.h, suggested by Eric Blake.
14043         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14044         the GL_* versions, to avoid collision with OpenGL.
14045         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14046         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14047         than testing merely whether it's defined.
14048
14049         Modify verify.h to pacify gcc -Wredundant_decls.
14050         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14051         These use the prefix "GL_" since they're likely to be useful elsewhere.
14052         We may need to break them out into a different .h file.
14053         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14054         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14055         of verify_function__.
14056
14057 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14058
14059         Tests for module pwrite.
14060         * modules/pwrite-tests: New file.
14061         * tests/test-pwrite.sh: New file.
14062         * tests/test-pwrite.c: New file.
14063
14064         New module pwrite.
14065         * lib/unistd.in.h (pwrite): New declaration.
14066         * lib/pwrite.c: New file, from glibc with modifications.
14067         * m4/pwrite.m4: New file.
14068         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14069         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14070         REPLACE_PWRITE.
14071         * modules/pwrite: New file.
14072         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14073         REPLACE_PWRITE.
14074         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14075         * doc/posix-functions/pwrite.texi: Mention the new module.
14076
14077 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14078
14079         pread: Update documentation.
14080         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14081
14082 2010-05-04  Eric Blake  <eblake@redhat.com>
14083
14084         docs: update cygwin progress
14085         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14086         this bug.
14087         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14088         Added in cygwin 1.7.2.
14089         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14090         Likewise.
14091         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14092         Likewise.
14093         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14094         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14095         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14096         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14097         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14098         Mention nproc module.
14099         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14100         bug in cygwin 1.7.5 addition.
14101         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14102         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14103         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14104         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14105         1.7.5.
14106         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14107         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14108         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14109         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14110         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14111         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14112         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14113         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14114         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14115         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14116         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14117         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14118         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14119         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14120         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14121         Likewise.
14122         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14123         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14124         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14125         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14126         Likewise.
14127         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14128         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14129         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14130         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14131         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14132         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14133         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14134         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14135         Likewise.
14136         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14137         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14138         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14139         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14140         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14141         Likewise.
14142         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14143         Likewise.
14144         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14145         Likewise.
14146         * doc/glibc-functions/xdrrec_endofrecord.texi
14147         (xdrrec_endofrecord): Likewise.
14148         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14149         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14150         Likewise.
14151         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14152         Likewise.
14153
14154 2010-05-04  Jim Meyering  <meyering@redhat.com>
14155
14156         gendocs.sh: make its "-s FILE" option more useful
14157         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14158         $PACKAGE to reflect the probably-different basename of "FILE".
14159
14160 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14161
14162         bootstrap: don't ignore download_po_files failure
14163         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14164         failure.
14165
14166 2010-05-03  Jim Meyering  <meyering@redhat.com>
14167
14168         maint.mk: allow to pass options to gendocs.sh
14169         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14170         (gendocs_options_): New overridable variable.
14171
14172         gnu-web-doc-update: don't ignore configure or build failure
14173         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14174
14175         announce-gen: backslash-escape '@'s in --help output
14176         * build-aux/announce-gen: Fix syntax errors.
14177
14178         maint.mk, announce-gen: allow project-specific announcement mail headers
14179         * top/maint.mk (translation_project_): Define default.
14180         (announcement_Cc_, announcement_mail_headers_): Likewise.
14181         (announcement): Invoke announce-gen with new --mail-headers option.
14182         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14183
14184         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14185         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14186         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14187         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14188         line in the "err2" output file when running "make check" in verbose
14189         mode (i.e., with set -x enabled).
14190
14191 2010-05-03  Bruno Haible  <bruno@clisp.org>
14192
14193         wctob: Fix for weird platforms.
14194         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14195         argument value.
14196
14197 2010-05-03  Jim Meyering  <meyering@redhat.com>
14198
14199         maint.mk: prohibit unwarranted use of <strings.h>
14200         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14201         strings.h in a file that does not also use strcasecmp, strncasecmp,
14202         ffs or ffsll.
14203
14204         maint.mk: remove obsolete comments
14205         * top/maint.mk: Remove stale, commented-out rules.
14206
14207 2010-05-02  Bruno Haible  <bruno@clisp.org>
14208
14209         wcwidth: Declare also when it's aliased.
14210         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14211         macro.
14212
14213 2010-05-02  Bruno Haible  <bruno@clisp.org>
14214
14215         Fix regression from 2010-04-25.
14216         * gnulib-tool (func_modules_transitive_closure): Check the status of
14217         all modules, not only of the tests that are of the form foo-tests where
14218         foo is a module.
14219
14220 2010-05-02  Bruno Haible  <bruno@clisp.org>
14221
14222         wctob: Work around nasty Cygwin 1.7.2 bug.
14223         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14224         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14225
14226 2010-05-01  Bruno Haible  <bruno@clisp.org>
14227
14228         fpurge: Sharper test.
14229         * tests/test-fpurge.c (main): Add one more ftell check.
14230         * modules/fpurge-tests (Depends-on): Add ftell.
14231         Suggested by Eric Blake.
14232
14233 2010-05-01  Bruno Haible  <bruno@clisp.org>
14234
14235         ftello: Another test.
14236         * tests/test-ftello3.c: New file.
14237         * modules/ftello-tests (Files): Add it.
14238         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14239         MOSTLYCLEANFILES.
14240
14241         ftell: Another test.
14242         * tests/test-ftell3.c: New file.
14243         * modules/ftell-tests (Files): Add it.
14244         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14245         MOSTLYCLEANFILES.
14246
14247 2010-05-01  Bruno Haible  <bruno@clisp.org>
14248
14249         ftell, ftello: Work around Solaris bug.
14250         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14251         * lib/ftello.c: Include stdio-impl.h.
14252         (ftello): On Solaris, when _IOWRT is set, compute the result without
14253         looking at _IOREAD.
14254         * modules/ftello (Files): Add lib/stdio-impl.h.
14255         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14256         * doc/posix-functions/ftello.texi: Likewise.
14257         Reported by Eric Blake.
14258
14259 2010-05-01  Bruno Haible  <bruno@clisp.org>
14260
14261         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14262         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14263         the _IOWRT flag is also set.
14264
14265 2010-05-01  Bruno Haible  <bruno@clisp.org>
14266
14267         Fix doc about a HP-UX stdio bug.
14268         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14269         * doc/posix-functions/ftello.texi: Likewise.
14270
14271 2010-05-01  Bruno Haible  <bruno@clisp.org>
14272
14273         lseek test: Fix failure on Solaris.
14274         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14275         output.
14276
14277 2010-04-30  Jim Meyering  <meyering@redhat.com>
14278
14279         bootstrap: don't ignore failure to generate po*/Makevars
14280         * build-aux/bootstrap (with_gettext): Don't ignore failure
14281         to create po/Makevars or runtime-po/Makevars.
14282
14283 2010-04-29  Eric Blake  <eblake@redhat.com>
14284
14285         headers: relax license to LGPLv2+
14286         * modules/fcntl-h (License): Relax license.
14287         * modules/getopt-posix (License): Likewise.
14288         * modules/locale (License): Likewise.
14289         * modules/math (License): Likewise.
14290         * modules/pty (License): Likewise.
14291         * modules/sched (License): Likewise.
14292         * modules/search (License): Likewise.
14293         * modules/spawn (License): Likewise.
14294         * modules/stdarg (License): Likewise.
14295         * modules/sysexits (License): Likewise.
14296
14297 2010-04-29  Jim Meyering  <meyering@redhat.com>
14298
14299         inttypes: relax license to LGPLv2+
14300         * modules/inttypes (License): Relax license.
14301
14302 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14303
14304         * top/maint.mk (indent): Run twice to produce idempotent results.
14305
14306 2010-04-28  Bruno Haible  <bruno@clisp.org>
14307
14308         getdate: Generate getdate.c in the source directory.
14309         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14310         MOSTLYCLEANFILES.
14311         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14312
14313 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14314
14315         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14316         is not declared as a const *; avoid warnings in that case.
14317
14318 2010-04-28  Eric Blake  <eblake@redhat.com>
14319
14320         canonicalize-lgpl: avoid compiler warning
14321         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14322         declaration' / 'extraneous semicolon' warning with some compilers.
14323         Reported by Andreas Gruenbacher.
14324
14325 2010-04-28  Jim Meyering  <meyering@redhat.com>
14326
14327         init.sh: ensure a more reliable exit status when exiting via trap
14328         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14329         Inspired by patches from Dmitry V. Levin.
14330         Also trap on signal 3 (SIGQUIT).
14331
14332 2010-04-27  Bruno Haible  <bruno@clisp.org>
14333
14334         Update doc about utimes().
14335         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14336         'utimens' module.
14337         Reported by Andreas Gruenbacher <agruen@suse.de>.
14338
14339 2010-04-27  Eric Blake  <eblake@redhat.com>
14340
14341         full-read, full-write: relax license
14342         * modules/full-read (License): Drop to LGPLv2+.
14343         * modules/full-write (License): Likewise.
14344         * modules/safe-read (License): Likewise.
14345         * modules/safe-write (License): Likewise.
14346
14347         pthread: mention library for linking
14348         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14349
14350 2010-04-27  Jim Meyering  <meyering@redhat.com>
14351
14352         maint.mk: fix a bug introduced in last change
14353         * top/maint.mk (gl_assured_headers_): Now that all names are on
14354         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14355         is not anchored to end of word, it should be adequate.
14356
14357         maint.mk: avoid side-effect in latest syntax-check
14358         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14359         to run commands via $(shell...), and hence to incur cost only when
14360         the new rule is actually run.
14361
14362         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14363         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14364         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14365         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14366         (gl_assured_headers_, az_, AZ_): Define.
14367         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14368
14369 2010-04-26  Jim Meyering  <jim@meyering.net>
14370             Bruno Haible  <bruno@clisp.org>
14371
14372         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14373         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14374         Prompted by an exchange with Gilles Espinasse.
14375
14376 2010-04-26  Jim Meyering  <meyering@redhat.com>
14377
14378         git-version-gen: aesthetic tweak
14379         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14380         so that the command remains on a single line.
14381
14382 2010-04-26  Eric Blake  <eblake@redhat.com>
14383
14384         git-version-gen: allow use on EBCDIC hosts
14385         * build-aux/git-version-gen (dirty): Use literal rather than tying
14386         ourselves to ascii.
14387         Reported by Steve Goetze.
14388
14389 2010-04-25  Bruno Haible  <bruno@clisp.org>
14390
14391         netdb: Add support for GNULIB_POSIXCHECK.
14392         * lib/netdb.in.h: Include warn-on-use.h.
14393         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14394         functions are used when GNULIB_POSIXCHECK is defined and the
14395         getaddrinfo module is not in use.
14396         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14397         freeaddrinfo, gai_strerror, getnameinfo are declared.
14398         * modules/netdb (Depends-on): Add warn-on-use.
14399         (Makefile.am): Include warn-on-use.h in netdb.h.
14400
14401 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14402
14403         build: avoid "make check" failure without .git/ directory
14404         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14405         there is no .git/ directory.
14406
14407 2010-04-25  Bruno Haible  <bruno@clisp.org>
14408
14409         ptsname: Fix misuse of ttyname_r.
14410         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14411         of errno.
14412
14413 2010-04-25  Bruno Haible  <bruno@clisp.org>
14414
14415         ttyname_r: Make it work on Solaris 10.
14416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14417         if the system function has the POSIX declaration. Test whether the
14418         function fails if the buffer is less than 128 bytes large.
14419         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14420         system's ttyname_r function. Provide a reasonably large buffer.
14421         * modules/ttyname_r (Depends-on): Add extensions.
14422         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14423
14424 2010-04-25  Bruno Haible  <bruno@clisp.org>
14425
14426         Use the 'extensions' module for some more functions on Solaris.
14427         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14428         module.
14429         * doc/posix-functions/ctime_r.texi: Likewise.
14430         * doc/posix-functions/getgrgid_r.texi: Likewise.
14431         * doc/posix-functions/getgrnam_r.texi: Likewise.
14432         * doc/posix-functions/getpwnam_r.texi: Likewise.
14433         * doc/posix-functions/getpwuid_r.texi: Likewise.
14434         * doc/posix-functions/readdir_r.texi: Likewise.
14435         * doc/posix-functions/sigwait.texi: Likewise.
14436         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14437         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14438
14439 2010-04-25  Bruno Haible  <bruno@clisp.org>
14440
14441         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14442         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14443         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14444         * lib/ttyname_r.c: Include <limits.h>.
14445         (ttyname_r): Define using the system's ttyname_r function, if it exists
14446         and not on Solaris.
14447         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14448         set.
14449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14450         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14451         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14452         Reported by Simon Josefsson.
14453
14454 2010-04-25  Bruno Haible  <bruno@clisp.org>
14455
14456         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14457         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14458         * doc/posix-functions/ctime_r.texi: Likewise.
14459         * doc/posix-functions/getgrgid_r.texi: Likewise.
14460         * doc/posix-functions/getgrnam_r.texi: Likewise.
14461         * doc/posix-functions/getlogin_r.texi: Likewise.
14462         * doc/posix-functions/getpwnam_r.texi: Likewise.
14463         * doc/posix-functions/getpwuid_r.texi: Likewise.
14464         * doc/posix-functions/readdir_r.texi: Likewise.
14465         * doc/posix-functions/sigwait.texi: Likewise.
14466         * doc/posix-functions/ttyname_r.texi: Likewise.
14467         Reported by Simon Josefsson.
14468
14469 2010-04-25  Bruno Haible  <bruno@clisp.org>
14470
14471         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14472         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14473         also to --create-testdir.
14474         (func_acceptable): Don't consider the status of *-tests modules here.
14475         (func_modules_transitive_closure): Consider it here, before including a
14476         test module.
14477         (func_import, func_create_testdir): Set inc_all_direct_tests,
14478         inc_all_indirect_tests.
14479         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14480         --create-testdir and --create-megatestdir.
14481
14482 2010-04-25  Bruno Haible  <bruno@clisp.org>
14483
14484         gnulib-tool: Add --without-*-tests options.
14485         * gnulib-tool (func_usage): Document the --without-*-tests options.
14486         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14487         excl_unportable_tests): New variables.
14488         Fail if they are specified with --import or --update.
14489         (func_acceptable): Respect the excl_*_tests variables.
14490         (func_import): Set the excl_*_tests variables to empty.
14491
14492 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14493             Bruno Haible  <bruno@clisp.org>
14494
14495         Work around a MacOS X 10.4 bug with openpty.
14496         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14497         * tests/test-openpty.c (main): Close the master side explicitly.
14498
14499 2010-04-25  Bruno Haible  <bruno@clisp.org>
14500
14501         strnlen: Fix a C++ test error on MacOS X and Solaris.
14502         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14503         the function is not declared.
14504         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14505         Simon Josefsson.
14506
14507 2010-04-24  Bruno Haible  <bruno@clisp.org>
14508
14509         Avoid a gcc warning.
14510         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14511         of correct type for %08lx directive.
14512         Reported by Eric Blake.
14513
14514 2010-04-24  Bruno Haible  <bruno@clisp.org>
14515
14516         vasnprintf: Correct errno value in case of out-of-memory.
14517         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14518         or sprintf. Use the errno value from SNPRINTF or sprintf.
14519         Reported by Ian Beckwith <ianb@erislabs.net>.
14520
14521 2010-04-24  Bruno Haible  <bruno@clisp.org>
14522
14523         ansi-c++-opt: Find correct compiler when cross-compiling.
14524         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14525         AC_CHECK_PROGS.
14526         Reported by Simon Josefsson.
14527
14528 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14529
14530         vc-list-files: Add support for subversion
14531         * build-aux/vc-list-files: Use "svn list" to generate the list of
14532         files controlled by subversion.
14533
14534 2010-04-23  Jim Meyering  <meyering@redhat.com>
14535
14536         vc-list-files tests: convert to use init.sh
14537         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14538         path_prepend_.
14539         Use Exit, not exit.
14540         Use skip_ rather than open coding it.
14541         Remove trap set-up and compare definitions.
14542         * tests/test-vc-list-files-git.sh: Likewise.
14543         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14544
14545 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14546
14547         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14548         backup files.
14549
14550 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14551
14552         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14553
14554 2010-04-20  Eric Blake  <eblake@redhat.com>
14555
14556         tests: be robust to ignored SIGPIPE
14557         * tests/test-select-in.sh: Consume all output.
14558         * tests/test-lseek.sh: Check correct exit status, while avoiding
14559         EPIPE.
14560
14561 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14562             Bruno Haible  <bruno@clisp.org>
14563
14564         visibility: Don't use -fvisibility if it leads to a warning.
14565         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14566         yes, don't pretend that visibility works if it leads to a warning.
14567         Reported by Mike Gran <spk121@yahoo.com>.
14568
14569 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14570
14571         * build-aux/bootstrap: Use "git -h" for testing for supported options
14572         instead of "git --help".  The short-form option only shows a summary,
14573         and doesn't layout the full man page.  Grep for the full option name
14574         in the summary, too.
14575
14576 2010-04-19  Bruno Haible  <bruno@clisp.org>
14577
14578         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14579         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14580         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14581         mention of RELOCATABLE_STRIP.
14582         Reported by Sylvain Beucler <beuc@beuc.net>.
14583
14584 2010-04-19  Bruno Haible  <bruno@clisp.org>
14585
14586         * lib/diffseq.h: Fix typo in comment.
14587         Reported by Eric Blake.
14588
14589 2010-04-19  Bruno Haible  <bruno@clisp.org>
14590
14591         ioctl: Move autoconf macro to a .m4 file.
14592         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14593         * modules/ioctl (Files): Add it.
14594         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14595         Reported by Ian Beckwith <ianb@erislabs.net>.
14596
14597 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14598             Bruno Haible  <bruno@clisp.org>
14599
14600         diffseq: Accommodate use-case with abstract arrays.
14601         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14602         is not defined.
14603         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14604         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14605
14606 2010-04-18  Bruno Haible  <bruno@clisp.org>
14607
14608         * doc/posix-headers/stdbool.texi: More precise wording.
14609
14610 2010-04-17  Jim Meyering  <meyering@redhat.com>
14611
14612         maint.mk: use gnu-style indentation in an embedded perl script
14613         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14614         Rename variable: s/two/last_two_bytes/
14615
14616 2010-04-16  Eric Blake  <eblake@redhat.com>
14617
14618         test-stdbool: skip test that fails with Solaris CC
14619         * tests/test-stdbool.c (f): Skip test that causes compilation
14620         error under buggy C++ compiler.
14621         * lib/stdbool.in.h: Document the limitation.
14622         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14623
14624         setenv: allow compilation with C++
14625         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14626         register keyword.
14627
14628         stdint: allow test to pass with C++
14629         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14630
14631         getopt: allow compilation with C++
14632         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14633         struct.
14634         * lib/getopt.c (_getopt_internal_r): Use correct type.
14635         Reported by Dagobert Michelson, via Joel E. Denny.
14636
14637 2010-04-16  Bruno Haible  <bruno@clisp.org>
14638
14639         Override netdb.h always.
14640         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14641         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14642         Reported by Ludovic Courtès <ludo@gnu.org>.
14643
14644 2010-04-15  Bruno Haible  <bruno@clisp.org>
14645
14646         openpty: Fix mistake from 2010-03-21.
14647         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14648         Reported by Simon Josefsson.
14649
14650 2010-04-15  Eric Blake  <eblake@redhat.com>
14651
14652         test-forkpty: fix expected signature
14653         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14654         Reported by Simon Josefsson.
14655
14656 2010-04-15  Jim Meyering  <meyering@redhat.com>
14657
14658         maint.mk: texinfo_suffix_re_: correct the default regexp
14659         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14660
14661         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14662         make it configurable via texinfo_suffix_re_.
14663
14664 2010-04-14  Eric Blake  <eblake@redhat.com>
14665
14666         strtok_r: relax license to LGPLv2+
14667         * modules/strtok_r (License): Relax license.
14668         Reported by Matthias Bolte.
14669
14670 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14671
14672         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14673         version 1.4.4 by default instead of requiring the libgcrypt
14674         version used during build.  This makes it possible to use the
14675         application with older but still binary compatible libgcrypt
14676         versions.
14677
14678 2010-04-13  Eric Blake  <eblake@redhat.com>
14679
14680         getopt-gnu: match recent glibc fixes and posix ruling
14681         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14682         '+' handling, when requesting extensions.
14683         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14684         'W;' handling.
14685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14686         * doc/posix-functions/getopt.texi (getopt): Document this.
14687         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14688         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14689         Likewise.
14690
14691         getopt: merge bug fixes from glibc
14692         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14693         diagnostics.  Honor '+:' correctly.  Reject ';'.
14694
14695         getopt-posix: detect MacOS bug
14696         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14697         optind when missing a required argument.
14698         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14699         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14700         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14701         Likewise.
14702
14703         getopt-posix: avoid spurious failure on Solaris
14704         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14705         an indicator that setting optind=1 is sufficient for reset.
14706
14707         getopt-posix: avoid spurious failure on FreeBSD
14708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14709         in POSIX mode, since the m4 test uses it.
14710
14711         gnulib-tool: silence warning on BSD sh
14712         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14713
14714 2010-04-13  Jim Meyering  <meyering@redhat.com>
14715
14716         doc: users.txt: GNU patch now uses gnulib
14717         * users.txt: Add patch.
14718
14719 2010-04-12  Jim Meyering  <meyering@redhat.com>
14720
14721         maint.mk: generate more concise timing data for syntax-check rules
14722         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14723         " done" from each line that reports a syntax-check test duration.
14724
14725 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14726
14727         git-version-gen: use "git update-index..." rather than "git status"
14728         * build-aux/git-version-gen: Use git update-index --refresh, not
14729         "git status".  With some versions of git, "git status" would fail
14730         to update the index and result in an unwarranted "-dirty" suffix.
14731
14732 2010-04-11  Jim Meyering  <meyering@redhat.com>
14733
14734         openat: correct formatting (no semantic change)
14735         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14736         Suggested by Bruno Haible.
14737
14738 2010-04-11  Bruno Haible  <bruno@clisp.org>
14739
14740         Stricter declaration checking in testdirs.
14741         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14742         If for_tests is true, augment AM_CPPFLAGS to define
14743         GNULIB_STRICT_CHECKING.
14744         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14745         GNULIB_STRICT_CHECKING is defined, verify that the function is
14746         declared.
14747
14748 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14749             Bruno Haible  <bruno@clisp.org>
14750
14751         libunistring: Improve configure output.
14752         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14753         Don't say "consider installing GNU libunistring" when checking again
14754         with libiconv.
14755
14756 2010-04-11  Bruno Haible  <bruno@clisp.org>
14757
14758         libunistring: Correct value of $LTLIBUNISTRING.
14759         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14760         correct the value of $LTLIBUNISTRING.
14761
14762 2010-04-11  Bruno Haible  <bruno@clisp.org>
14763
14764         havelib: Add static libraries to LIBS in the right order.
14765         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14766         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14767
14768 2010-04-11  Bruno Haible  <bruno@clisp.org>
14769
14770         libunistring: Detect libunistring also when it depends on libiconv.
14771         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14772         the second AC_LIB_HAVE_LINKFLAGS invocation.
14773
14774 2010-04-11  James Youngman  <jay@gnu.org>
14775
14776         close-stream: declare local scalars to be "const"
14777         * lib/close-stream.c (close_stream): Make boolean variables const
14778         to document the fact that we set but do not change them.
14779
14780 2010-04-11  Bruno Haible  <bruno@clisp.org>
14781
14782         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14783
14784 2010-04-11  Jim Meyering  <meyering@redhat.com>
14785
14786         maint.mk: don't include dist-check.mk
14787         * top/maint.mk: Remove bogus include directive.
14788
14789         maint.mk: improve empty-line-at-EOF check
14790         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14791         solution, rather than tail+Perl-based one.  The latter would read
14792         a few kilobytes from the end of each file, and did not handle empty
14793         files properly.
14794
14795         maint.mk: print the elapsed time for each syntax-check rule
14796         * top/maint.mk (sc_m_rules_): Save start time in a file.
14797         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14798         (local-check): Interpose the .z rules
14799
14800 2010-04-11  Jim Meyering  <meyering@redhat.com>
14801
14802         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14803         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14804         empty file with one that ends in an empty line.
14805
14806 2010-04-10  Bruno Haible  <bruno@clisp.org>
14807
14808         mkdir: Make it work on mingw64.
14809         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14810         * lib/mkdir.c: Update comment.
14811         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14812
14813 2010-04-10  Bruno Haible  <bruno@clisp.org>
14814
14815         Don't override improved macro from newer autoconf.
14816         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14817         autoconf >= 2.62.
14818         Reported by Joel E. Denny <jdenny@clemson.edu>.
14819
14820 2010-04-10  Jim Meyering  <meyering@redhat.com>
14821
14822         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14823         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14824
14825         maint.mk: correct a diagnostic
14826         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14827         in diagnostic; now use $prohibit.
14828
14829 2010-04-10  Bruno Haible  <address@hidden>
14830
14831         fchownat: Fix a C++ test error on Solaris 8.
14832         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14833         the function does not exist.
14834
14835 2010-04-10  Bruno Haible  <bruno@clisp.org>
14836
14837         vasnprintf: Add more tests.
14838         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14839         (test_function): Test converting an invalid wide string.
14840
14841         vasnprintf: Correct handling of unconvertible wide string arguments.
14842         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14843         VASNPRINTF.
14844         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14845         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14846         smaller than the expected maximum need for the directive. Set errno to
14847         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14848         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14850         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14851         * modules/vasnprintf (Files): Add m4/printf.m4.
14852         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14853
14854 2010-04-10  Bruno Haible  <bruno@clisp.org>
14855
14856         vasnprintf: Fix crash in %ls directive.
14857         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14858         string is passed as argument to %ls, with no precision and no width.
14859         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14860
14861 2010-04-10  Bruno Haible  <bruno@clisp.org>
14862
14863         vasnprintf: Fix multiple test failures on mingw.
14864         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14865         _snprintf, or snwprintf, not _snwprintf.
14866
14867 2010-04-10  Bruno Haible  <bruno@clisp.org>
14868
14869         write: Fix a C++ test error on mingw.
14870         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14871
14872 2010-04-10  Bruno Haible  <bruno@clisp.org>
14873
14874         vasnprintf test: Reduce code duplication.
14875         * tests/test-vasnprintf.c (test_function): New function, extracted from
14876         test_vasnprintf.
14877         (test_vasnprintf, test_asnprintf): Invoke it.
14878
14879 2010-04-10  Bruno Haible  <bruno@clisp.org>
14880
14881         strnlen: Fix warning in C++ mode on MacOS X.
14882         * lib/string.in.h (strnlen): Use the modern idiom.
14883         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14884         defining strnlen as a macro already in <config.h>.
14885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14886         REPLACE_STRNLEN.
14887         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14888         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14889
14890 2010-04-08  James Youngman  <jay@gnu.org>
14891
14892         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14893         the example.
14894
14895 2010-04-09  Jim Meyering  <meyering@redhat.com>
14896
14897         maint.mk: print better diagnostic when there is no $(_hv_file)
14898         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14899         announce that when $(_hv_file) (aka help-version) does not exist.
14900
14901         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14902         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14903         not try to interpret its random input bytes.  Jarno Rajahalme reported
14904         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14905         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14906         (mktempd_): Likewise, just in case.
14907
14908         ftruncate: add two years to projected module removal date: 2012
14909         * m4/ftruncate.m4: Adjust comments.
14910
14911         ftruncate: mark module as obsolete; even MinGW provides it, now
14912         * modules/ftruncate (Status): Obsolete.
14913         (Notice): Say that.
14914         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14915         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14916
14917 2010-04-08  Bruno Haible  <bruno@clisp.org>
14918
14919         Fix side effects from tests-related modules.
14920         * modules/dprintf-posix (Comment): New section.
14921         * modules/fprintf-posix (Comment): Likewise.
14922         * modules/obstack-printf-posix (Comment): Likewise.
14923         * modules/printf-posix (Comment): Likewise.
14924         * modules/snprintf-posix (Comment): Likewise.
14925         * modules/sprintf-posix (Comment): Likewise.
14926         * modules/vasnprintf-posix (Comment): Likewise.
14927         * modules/vasprintf-posix (Comment): Likewise.
14928         * modules/vdprintf-posix (Comment): Likewise.
14929         * modules/vfprintf-posix (Comment): Likewise.
14930         * modules/vprintf-posix (Comment): Likewise.
14931         * modules/vsnprintf-posix (Comment): Likewise.
14932         * modules/vsprintf-posix (Comment): Likewise.
14933         * modules/xprintf-posix (Comment): Likewise.
14934         * modules/xvasprintf-posix (Comment): Likewise.
14935         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14936         * modules/floorf-tests (Depends-on): Likewise.
14937         * modules/round-tests (Depends-on): Likewise.
14938         * modules/roundf-tests (Depends-on): Likewise.
14939         * modules/trunc-tests (Depends-on): Likewise.
14940         * modules/truncf-tests (Depends-on): Likewise.
14941         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14942         'fprintf-posix' module is not present.
14943         * tests/test-floorf2.c (check): Likewise.
14944         * tests/test-trunc2.c (check): Likewise.
14945         * tests/test-truncf2.c (check): Likewise.
14946         * tests/test-round2.c (equal): Likewise.
14947         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14948
14949 2010-04-07  Karl Berry  <karl@gnu.org>
14950
14951         * config/srclist.txt,
14952         * config/srclistvars.sh,
14953         * config/srclist-update: doc fixes.
14954
14955 2010-04-07  Jim Meyering  <meyering@redhat.com>
14956
14957         maint.mk: add a PATH crosschecking syntax-check rule
14958         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14959         Useful if you use a test like the one in help-version (coreutils,
14960         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14961         printed by prog --version.
14962
14963 2010-04-06  Bruno Haible  <bruno@clisp.org>
14964
14965         Fix link error on mingw.
14966         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14967         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14968
14969 2010-04-06  Bruno Haible  <bruno@clisp.org>
14970
14971         Assume rmdir exists.
14972         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14973
14974 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14975
14976         doc: update users.txt
14977         * users.txt: Add gcal.
14978
14979 2010-04-06  Jim Meyering  <meyering@redhat.com>
14980
14981         init.sh: simply unset TMPDIR rather than risking env -i
14982         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14983         although it probably works fine on all Unix-based systems, some
14984         systems (Cygwin?) cannot tolerate a totally cleared environment.
14985         Suggestion from Eric Blake.
14986
14987 2010-04-06  Jim Meyering  <meyering@redhat.com>
14988
14989         init.sh: portability fix: use env's POSIX-specified -i option not -u
14990         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14991         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14992
14993 2010-04-05  Bruno Haible  <bruno@clisp.org>
14994
14995         btowc: Work around Cygwin 1.7.2 bug.
14996         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14997         does not map NUL to 0.
14998         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14999
15000 2010-04-05  Bruno Haible  <bruno@clisp.org>
15001
15002         Make the multithread modules work on Cygwin 1.7.2.
15003         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15004         imported symbols can be declared weak, so that it returns "no" on
15005         Cygwin 1.7.2.
15006
15007 2010-04-05  Bruno Haible  <bruno@clisp.org>
15008
15009         Use the module 'strncat'.
15010         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15011
15012         Tests for module 'strncat'.
15013         * modules/strncat-tests: New file.
15014         * tests/test-strncat.c: New file.
15015
15016         New module 'strncat'.
15017         * lib/string.in.h (strncat): New declaration.
15018         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15019         * m4/strncat.m4: New file, based on m4/memchr.m4.
15020         * modules/strncat: New file.
15021         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15022         is declared.
15023         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15024         REPLACE_STRNCAT.
15025         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15026         REPLACE_STRNCAT.
15027         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15028         module.
15029         * tests/test-string-c++.cc: Check signature of strncat.
15030
15031 2010-04-05  Jim Meyering  <meyering@redhat.com>
15032
15033         xstrtoumax-tests: convert to use init.sh
15034         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15035         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15036         Use Exit, not exit.
15037         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15038
15039         xstrtoimax-tests: convert to use init.sh
15040         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15041         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15042         Use Exit, not exit.
15043         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15044
15045 2010-04-05  Bruno Haible  <bruno@clisp.org>
15046
15047         sys_socket: Avoid #define replacements in C++ mode.
15048         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15049         warning to the function if possible, rather than #defining the symbol
15050         to a dysfunctional alias.
15051
15052 2010-04-05  Bruno Haible  <bruno@clisp.org>
15053
15054         fseeko: Fix C++ test error on mingw.
15055         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15056         gl_FUNC_FSEEKO.
15057         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15058         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15059         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15060         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15061
15062 2010-04-05  Bruno Haible  <bruno@clisp.org>
15063
15064         duplocale: Improve test output.
15065         * tests/test-duplocale.c (main): Print reason for skipped test.
15066
15067 2010-04-05  Bruno Haible  <bruno@clisp.org>
15068
15069         Assume rmdir exists.
15070         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15071         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15072
15073 2010-04-05  Bruno Haible  <bruno@clisp.org>
15074
15075         Fix link error on Solaris 8 with cc.
15076         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15077
15078 2010-04-05  Bruno Haible  <bruno@clisp.org>
15079
15080         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15081         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15082
15083 2010-04-05  Bruno Haible  <bruno@clisp.org>
15084
15085         vasprintf: Update documentation.
15086         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15087
15088 2010-04-05  Bruno Haible  <bruno@clisp.org>
15089
15090         ptsname: Improve test.
15091         * tests/test-ptsname.c (main): Also try the various master names of BSD
15092         systems.
15093
15094 2010-04-05  Bruno Haible  <bruno@clisp.org>
15095
15096         memchr: Avoid a possible C++ test error.
15097         * lib/string.in.h (memchr): Provide declaration if function is missing.
15098         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15099         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15101         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15102
15103 2010-04-05  Bruno Haible  <bruno@clisp.org>
15104
15105         strtok_r: Improve idiom.
15106         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15107         AC_LIBOBJ is used.
15108
15109 2010-04-05  Bruno Haible  <bruno@clisp.org>
15110
15111         strdup: Improve idiom.
15112         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15113         AC_LIBOBJ is used.
15114         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15115         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15116         when AC_LIBOBJ is used.
15117
15118 2010-04-05  Bruno Haible  <bruno@clisp.org>
15119
15120         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15121         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15122         don't set REPLACE_MBSINIT to 1.
15123         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15124         don't set REPLACE_MBRTOWC to 1.
15125         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15126         exist, don't set REPLACE_MBSRTOWCS to 1.
15127         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15128         exist, don't set REPLACE_MBSNRTOWCS to 1.
15129         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15130         don't set REPLACE_WCRTOMB to 1.
15131         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15132         exist, don't set REPLACE_WCSRTOMBS to 1.
15133         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15134         exist, don't set REPLACE_WCSNRTOMBS to 1.
15135
15136 2010-04-05  Bruno Haible  <bruno@clisp.org>
15137
15138         ldexpl: Improve idiom.
15139         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15140         make sure to set HAVE_DECL_LDEXPL to 0.
15141
15142 2010-04-05  Jim Meyering  <meyering@redhat.com>
15143
15144         xstrtol-tests: convert to use init.sh
15145         * modules/xstrtol-tests (Files): Add tests/init.sh.
15146         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15147         Use Exit, not exit.
15148         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15149
15150         atexit-tests: convert to use init.sh
15151         * modules/atexit-tests (Files): Add tests/init.sh.
15152         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15153         Use Exit, not exit.
15154         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15155
15156         init.sh: fix typo
15157         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15158
15159         init.sh: make it easier for a test script to write to the tty, ...
15160         when using automake's parallel-tests mode.
15161         * tests/init.sh (stderr_fileno_): Define overridable variable.
15162         (warn_): New function, to use it.
15163         (fail_, skip_, framework_failure_): Use warn_.
15164
15165 2010-04-04  Bruno Haible  <bruno@clisp.org>
15166
15167         btowc: Avoid warning.
15168         * lib/btowc.c: Include <stdlib.h>.
15169         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15170
15171 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15172             Bruno Haible  <bruno@clisp.org>
15173
15174         wchar: Port to NetBSD 1.5.
15175         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15176         * lib/wctype.in.h (WEOF): Likewise.
15177
15178 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15179             Bruno Haible  <bruno@clisp.org>
15180
15181         Port extended stdio to NetBSD 1.5.
15182         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15183         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15184         older.
15185
15186 2010-04-04  Bruno Haible  <bruno@clisp.org>
15187
15188         string: Remove unused substitution.
15189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15190         HAVE_DECL_STRERROR.
15191         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15192
15193 2010-04-04  Bruno Haible  <bruno@clisp.org>
15194
15195         strtod: Avoid a possible C++ test error.
15196         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15197         set REPLACE_STRTOD.
15198
15199 2010-04-04  Bruno Haible  <bruno@clisp.org>
15200
15201         strerror: Update documentation.
15202         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15203
15204 2010-04-04  Bruno Haible  <bruno@clisp.org>
15205
15206         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15207         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15208         _GL_CXXALIAS_SYS_CAST.
15209
15210 2010-04-04  Bruno Haible  <bruno@clisp.org>
15211
15212         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15213         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15214         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15215         REPLACE_FREXPL to 1.
15216         * doc/posix-functions/frexpl.texi: Update documentation.
15217
15218 2010-04-04  Bruno Haible  <bruno@clisp.org>
15219
15220         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15221         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15222
15223 2010-04-04  Bruno Haible  <bruno@clisp.org>
15224
15225         Implement nanosleep for native Windows.
15226         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15227
15228 2010-04-04  Bruno Haible  <bruno@clisp.org>
15229
15230         math: Fix some C++ test errors on Solaris 8.
15231         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15232
15233 2010-04-04  Bruno Haible  <bruno@clisp.org>
15234
15235         math: Fix some C++ test errors on Cygwin.
15236         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15237         truncl): Provide declaration if the system does not have it.
15238         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15239         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15240         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15241         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15242         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15243         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15244         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15245         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15246         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15247         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15248         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15249         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15250         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15251         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15252         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15253         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15255         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15256         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15257         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15258         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15259         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15260
15261 2010-04-04  Bruno Haible  <bruno@clisp.org>
15262
15263         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15264         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15265         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15266         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15267         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15268         * m4/isinf.m4 (gl_ISINF): Likewise.
15269         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15270
15271 2010-04-04  Bruno Haible  <bruno@clisp.org>
15272
15273         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15274         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15275
15276 2010-04-04  Bruno Haible  <bruno@clisp.org>
15277
15278         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15279         * modules/tmpfile (configure.ac): Update.
15280
15281         tmpfile: Fix C++ test error on mingw.
15282         * lib/stdio.in.h (tmpfile): New declaration.
15283         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15284         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15285         * modules/tmpfile (Depends-on): Add stdio.
15286         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15287         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15288         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15289         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15290         REPLACE_TMPFILE.
15291         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15292
15293 2010-04-04  Bruno Haible  <bruno@clisp.org>
15294
15295         ioctl: Fix C++ test error on mingw.
15296         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15297         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15298         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15299
15300 2010-04-03  Bruno Haible  <bruno@clisp.org>
15301
15302         wcwidth: Fix C++ test error on mingw.
15303         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15305         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15306
15307 2010-04-03  Bruno Haible  <bruno@clisp.org>
15308
15309         nanosleep: Fix C++ test error on mingw.
15310         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15311         * lib/time.in.h (nanosleep): Use modern idiom.
15312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15313         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15314         REPLACE_NANOSLEEP to 1.
15315         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15316         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15317
15318 2010-04-03  Bruno Haible  <bruno@clisp.org>
15319
15320         strptime: Fix C++ test error on mingw.
15321         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15322         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15323         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15324         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15325         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15326         not REPLACE_STRPTIME.
15327         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15328         REPLACE_STRPTIME.
15329
15330 2010-04-03  Bruno Haible  <bruno@clisp.org>
15331
15332         timegm: Fix C++ test error on mingw.
15333         * lib/time.in.h (timegm): Use modern idiom.
15334         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15335         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15336         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15337         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15338
15339 2010-04-03  Bruno Haible  <bruno@clisp.org>
15340
15341         timegm: Assume declaration if function exists.
15342         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15343         if it exists. Don't clobber ac_cv_func_timegm.
15344
15345 2010-04-03  Bruno Haible  <bruno@clisp.org>
15346
15347         time_r: Fix C++ test error on mingw.
15348         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15349         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15350         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15351         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15352         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15353
15354 2010-04-03  Bruno Haible  <bruno@clisp.org>
15355
15356         time_r: Minor updates.
15357         * modules/time_r (Description): Mention the provided functions.
15358         * lib/time_r.c: Don't include <string.h>.
15359         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15360         * doc/posix-functions/localtime_r.texi: Likewise.
15361
15362 2010-04-03  Bruno Haible  <bruno@clisp.org>
15363
15364         time: Fix regression introduced on 2010-03-08.
15365         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15366         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15367
15368 2010-04-03  Jim Meyering  <meyering@redhat.com>
15369
15370         maint.mk: don't silently disable project-specific syntax-check rules
15371         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15372         that they need to convert their project-specific syntax-check rules
15373         to use the new _sc_search_regexp.
15374
15375 2010-04-03  Bruno Haible  <bruno@clisp.org>
15376
15377         fchdir: Fix regression introduced on 2010-03-08.
15378         * lib/unistd.in.h (fchdir): Fix declaration.
15379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15381         REPLACE_FCHDIR.
15382         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15383         REPLACE_FCHDIR.
15384
15385 2010-04-03  Bruno Haible  <bruno@clisp.org>
15386
15387         getpagesize: Fix C++ test error on mingw.
15388         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15389         system does not declare the function.
15390         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15391         declared.
15392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15393         HAVE_DECL_GETPAGESIZE.
15394         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15395
15396 2010-04-03  Bruno Haible  <bruno@clisp.org>
15397
15398         stdio: Make C++ tests work on mingw.
15399         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15400         does not declare the function.
15401
15402 2010-04-03  Bruno Haible  <bruno@clisp.org>
15403
15404         ftello: Fix C++ test error on mingw.
15405         * lib/stdio.in.h (ftello): Use modern idiom.
15406         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15407         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15408         is missing and that it needs to be replaced.
15409         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15411         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15412
15413 2010-04-03  Bruno Haible  <bruno@clisp.org>
15414
15415         fseeko: Fix C++ test error on mingw.
15416         * lib/stdio.in.h (fseeko): Use modern idiom.
15417         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15418         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15419         is missing and that it needs to be replaced.
15420         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15422         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15423
15424 2010-04-03  Bruno Haible  <bruno@clisp.org>
15425
15426         mkstemp: Fix C++ test error on mingw.
15427         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15428         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15429         function is missing and that it needs to be replaced.
15430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15431         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15432
15433 2010-04-03  Bruno Haible  <bruno@clisp.org>
15434
15435         stpncpy: Fix C++ test error on mingw.
15436         * lib/string.in.h (stpncpy): Use modern idiom.
15437         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15438         function is missing and that it needs to be replaced.
15439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15440         REPLACE_STPNCPY.
15441         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15442
15443 2010-04-03  Bruno Haible  <bruno@clisp.org>
15444
15445         sys_stat: Fix C++ test error on mingw.
15446         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15447         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15448
15449 2010-04-03  Bruno Haible  <bruno@clisp.org>
15450
15451         pty: Update doc.
15452         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15453
15454 2010-04-03  Bruno Haible  <bruno@clisp.org>
15455
15456         unistd: Fix C++ test error on mingw.
15457         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15458
15459 2010-04-03  Bruno Haible  <bruno@clisp.org>
15460
15461         Update doc regarding mingw.
15462         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15463         * doc/glibc-functions/login_tty.texi: Likewise.
15464         * doc/glibc-functions/forkpty.texi: Likewise.
15465
15466 2010-04-03  Bruno Haible  <bruno@clisp.org>
15467
15468         stdlib: Avoid compilation failure of c-strtold on mingw.
15469         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15470
15471 2010-04-03  Bruno Haible  <bruno@clisp.org>
15472
15473         locale: Make C++ tests work on Cygwin and mingw.
15474         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15475         cannot provide the function.
15476         Reported by Simon Josefsson.
15477
15478 2010-04-03  Bruno Haible  <bruno@clisp.org>
15479
15480         localename: Port to MacOS X 10.6.
15481         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15482         memory layout of the locales in MacOS X 10.6 as well.
15483         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15484
15485 2010-04-02  Bruno Haible  <bruno@clisp.org>
15486
15487         gnulib-tool: Ensure that long-running tests are executed last.
15488         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15489         running tests after the one for the other tests.
15490
15491 2010-04-02  Bruno Haible  <bruno@clisp.org>
15492
15493         gnulib-tool: Ensure the tests in the main directory are executed first.
15494         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15495         start with the current directory.
15496
15497 2010-04-02  Bruno Haible  <bruno@clisp.org>
15498
15499         Tests for module 'havelib', moved here from GNU gettext.
15500         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15501         modifications.
15502         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15503         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15504         with modifications.
15505         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15506         modifications.
15507         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15508         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15509         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15510         with modifications.
15511         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15512         with modifications.
15513         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15514         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15515         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15516         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15517         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15518         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15519         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15520         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15521         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15522         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15523         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15524         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15525         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15526         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15527         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15528         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15529         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15530         with modifications.
15531         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15532         with modifications.
15533         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15534         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15535         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15536         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15537         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15538         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15539         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15540         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15541         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15542         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15543         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15544         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15545         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15546         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15547         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15548         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15549         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15550         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15551         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15552         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15553         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15554         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15555         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15556         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15557         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15558         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15559         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15560         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15561         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15562         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15563         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15564         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15565         * tests/havelib/rpathx/rpathx.c: New file, from
15566         gettext/autoconf-lib-link.
15567         * tests/havelib/rpathx/Makefile.am: New file, from
15568         gettext/autoconf-lib-link.
15569         * tests/havelib/rpathx/configure.ac: New file, from
15570         gettext/autoconf-lib-link with modifications.
15571         * tests/havelib/rpathy/rpathy.c: New file, from
15572         gettext/autoconf-lib-link.
15573         * tests/havelib/rpathy/Makefile.am: New file, from
15574         gettext/autoconf-lib-link.
15575         * tests/havelib/rpathy/configure.ac: New file, from
15576         gettext/autoconf-lib-link with modifications.
15577         * tests/havelib/rpathz/rpathz.c: New file, from
15578         gettext/autoconf-lib-link.
15579         * tests/havelib/rpathz/Makefile.am: New file, from
15580         gettext/autoconf-lib-link.
15581         * tests/havelib/rpathz/configure.ac: New file, from
15582         gettext/autoconf-lib-link with modifications.
15583         * tests/havelib/rpathlx/usex.c: New file, from
15584         gettext/autoconf-lib-link.
15585         * tests/havelib/rpathlx/Makefile.am: New file, from
15586         gettext/autoconf-lib-link.
15587         * tests/havelib/rpathlx/configure.ac: New file, from
15588         gettext/autoconf-lib-link with modifications.
15589         * tests/havelib/rpathly/usey.c: New file, from
15590         gettext/autoconf-lib-link.
15591         * tests/havelib/rpathly/Makefile.am: New file, from
15592         gettext/autoconf-lib-link.
15593         * tests/havelib/rpathly/configure.ac: New file, from
15594         gettext/autoconf-lib-link with modifications.
15595         * tests/havelib/rpathlz/usez.c: New file, from
15596         gettext/autoconf-lib-link.
15597         * tests/havelib/rpathlz/Makefile.am: New file, from
15598         gettext/autoconf-lib-link.
15599         * tests/havelib/rpathlz/configure.ac: New file, from
15600         gettext/autoconf-lib-link with modifications.
15601         * tests/havelib/rpathlyx/usey.c: New file, from
15602         gettext/autoconf-lib-link.
15603         * tests/havelib/rpathlyx/Makefile.am: New file, from
15604         gettext/autoconf-lib-link.
15605         * tests/havelib/rpathlyx/configure.ac: New file, from
15606         gettext/autoconf-lib-link with modifications.
15607         * tests/havelib/rpathlzyx/usez.c: New file, from
15608         gettext/autoconf-lib-link.
15609         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15610         gettext/autoconf-lib-link.
15611         * tests/havelib/rpathlzyx/configure.ac: New file, from
15612         gettext/autoconf-lib-link with modifications.
15613         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15614         with modifications.
15615
15616 2010-04-02  Bruno Haible  <bruno@clisp.org>
15617
15618         gnulib-tool: Create distributed built sources also for the tests.
15619         * gnulib-tool (func_create_testdir): Also generate distributed built
15620         sources in the tests directory.
15621
15622 2010-04-02  Bruno Haible  <bruno@clisp.org>
15623
15624         gnulib-tool: Obey user's environment variables.
15625         * gnulib-tool (func_create_testdir): When creating built sources,
15626         respect the environment variables for autoconf, automake, etc. given by
15627         the user.
15628
15629 2010-04-02  Bruno Haible  <bruno@clisp.org>
15630
15631         gnulib-tool: Provide the value of --m4-base to modules.
15632         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15633         of gl_m4_base.
15634
15635 2010-04-02  Eric Blake  <eblake@redhat.com>
15636
15637         maint.mk: fix some fallout
15638         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15639         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15640
15641 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15642
15643         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15644         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15645         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15646         (sc_cast_of_x_alloc_return_value): Likewise.
15647         (sc_cast_of_alloca_return_value): Likewise.
15648         (sc_space_tab): Likewise.
15649         (sc_prohibit_atoi_atof): Likewise.
15650         (sc_prohibit_magic_number_exit): Likewise.
15651         (sc_error_exit_success): Likewise.
15652         (sc_file_system): Likewise.
15653         (sc_prohibit_have_config_h): Likewise.
15654         (sc_require_config_h): Likewise.
15655         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15656         (sc_obsolete_symbols): Likewise.
15657         (sc_changelog): Likewise.
15658         (sc_program_name): Likewise.
15659         (sc_the_the): Likewise.
15660         (sc_trailing_blank): Likewise.
15661         (sc_two_space_separator_in_usage): Likewise.
15662         (sc_useless_cpp_parens): Likewise.
15663         (sc_GPL_version): Likewise.
15664         (sc_GFDL_version): Likewise.
15665         (sc_texinfo_acronym): Likewise.
15666         (sc_prohibit_cvs_keyword): Likewise.
15667         (sc_prohibit_stat_st_blocks): Likewise.
15668         (sc_prohibit_S_IS_definition): Likewise.
15669         (sc_redundant_const): Likewise.
15670         (sc_makefile_TAB_only_indentation): Likewise.
15671         (sc_m4_quote_check): Likewise.
15672         (sc_makefile_path_separator_check): Likewise.
15673         (sc_copyright_check): Likewise.
15674         (sc_Wundef_boolean): Likewise.
15675         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15676
15677         maint.mk: match 0 or more whitespace-before-function-call '('
15678         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15679         that have zero or two-and-more spaces between the function name
15680         and the open parenthesis.
15681         (sc_error_message_warn_fatal): Likewise.
15682         (sc_error_message_uppercase): Likewise.
15683         (sc_error_message_period): Likewise.
15684
15685 2010-03-31  Eric Blake  <eblake@redhat.com>
15686
15687         maint.mk: check for [ as well as test
15688         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15689         Based on a libvirt report by Matthias Bolte.
15690
15691         gnumakefile: don't squelch _version output
15692         * top/GNUmakefile (_version): Create one-shot dependency rather
15693         than using $(shell) when version must be regenerated.
15694         (_autoreconf): Run verbosely, by default.
15695
15696         sys_time: avoid compiler warnings
15697         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15698         unconditional, fixing regression from 2010-03-29.
15699         Reported by Simon Josefsson.
15700
15701 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15702
15703         maint.mk: s/_header_without_use/_sc_header_without_use/
15704         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15705         (sc_prohibit_assert_without_use): Use the new name.
15706         (sc_prohibit_close_stream_without_use): Likewise.
15707         (sc_prohibit_getopt_without_use): Likewise.
15708         (sc_prohibit_quotearg_without_use): Likewise.
15709         (sc_prohibit_quote_without_use): Likewise.
15710         (sc_prohibit_long_options_without_use): Likewise.
15711         (sc_prohibit_inttostr_without_use): Likewise.
15712         (sc_prohibit_ignore_value_without_use): Likewise.
15713         (sc_prohibit_error_without_use): Likewise.
15714         (sc_prohibit_xalloc_without_use): Likewise.
15715         (sc_prohibit_hash_without_use): Likewise.
15716         (sc_prohibit_hash_pjw_without_use): Likewise.
15717         (sc_prohibit_safe_read_without_use): Likewise.
15718         (sc_prohibit_argmatch_without_use): Likewise.
15719         (sc_prohibit_canonicalize_without_use): Likewise.
15720         (sc_prohibit_root_dev_ino_without_use): Likewise.
15721         (sc_prohibit_openat_without_use): Likewise.
15722         (sc_prohibit_c_ctype_without_use): Likewise.
15723         (sc_prohibit_signal_without_use): Likewise.
15724         (sc_prohibit_intprops_without_use): Likewise.
15725
15726 2010-03-30  Eric Blake  <eblake@redhat.com>
15727
15728         maint: improve module indicators
15729         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15730         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15731         columns, and avoid extra macro expansion.
15732
15733         fdopendir: work around FreeBSD bug
15734         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15735         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15736         * modules/dirent (Makefile.am): Substitute it.
15737         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15738         declaration.
15739         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15740         fix.
15741         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15742
15743 2010-03-29  Bruno Haible  <bruno@clisp.org>
15744
15745         Emit #pragma system_header after the inclusion guard, not before.
15746         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15747         guard that spans the entire file, not before. This enables an
15748         optimization in GCC's preprocessor.
15749         * lib/ctype.in.h: Likewise.
15750         * lib/dirent.in.h: Likewise.
15751         * lib/errno.in.h: Likewise.
15752         * lib/float.in.h: Likewise.
15753         * lib/getopt.in.h: Likewise.
15754         * lib/iconv.in.h: Likewise.
15755         * lib/langinfo.in.h: Likewise.
15756         * lib/locale.in.h: Likewise.
15757         * lib/math.in.h: Likewise.
15758         * lib/netdb.in.h: Likewise.
15759         * lib/netinet_in.in.h: Likewise.
15760         * lib/pty.in.h: Likewise.
15761         * lib/sched.in.h: Likewise.
15762         * lib/se-selinux.in.h: Likewise.
15763         * lib/search.in.h: Likewise.
15764         * lib/spawn.in.h: Likewise.
15765         * lib/stdarg.in.h: Likewise.
15766         * lib/stdint.in.h: Likewise.
15767         * lib/string.in.h: Likewise.
15768         * lib/strings.in.h: Likewise.
15769         * lib/sys_file.in.h: Likewise.
15770         * lib/sys_ioctl.in.h: Likewise.
15771         * lib/sys_time.in.h: Likewise.
15772         * lib/sys_times.in.h: Likewise.
15773         * lib/sys_utsname.in.h: Likewise.
15774         * lib/sys_wait.in.h: Likewise.
15775         * lib/sysexits.in.h: Likewise.
15776         * lib/wctype.in.h: Likewise.
15777
15778 2010-03-28  James Youngman  <jay@gnu.org>
15779
15780         save-cwd: don't leak a file descriptor when the caller execs.
15781         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15782         saved file descriptor.
15783         * modules/save-cwd (Depends-on): Depend on cloexec.
15784
15785 2010-03-29  Bruno Haible  <bruno@clisp.org>
15786
15787         Remove vestiges of fts-lgpl module.
15788         * lib/fts_.h: Assume GNULIB_FTS is 1.
15789         * lib/fts.c: Likewise.
15790         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15791
15792 2010-03-28  Bruno Haible  <bruno@clisp.org>
15793
15794         Fix definition of tests witness macro.
15795         * gnulib-tool (func_import): Fix definition of witness macro.
15796
15797 2010-03-28  Bruno Haible  <bruno@clisp.org>
15798
15799         Fix ioctl's protoype on glibc systems.
15800         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15801         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15802         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15803         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15804         signature. If not, arrange to replace the ioctl function.
15805         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15806         REPLACE_IOCTL.
15807         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15808         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15809         Reported by Ludovic Courtès <ludo@gnu.org>.
15810
15811 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15812
15813         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15814         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15815         made it so grep -r --include=GLOB* ... did not work.
15816
15817 2010-03-26  Jim Meyering  <meyering@redhat.com>
15818             Eric Blake  <eblake@redhat.com>
15819
15820         maint.mk: prohibit use of test's -o and -a operators
15821         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15822
15823 2010-03-28  Bruno Haible  <bruno@clisp.org>
15824
15825         Remove unused GNULIB_XYZ macro definitions.
15826         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15827         invocation.
15828
15829 2010-03-28  Bruno Haible  <bruno@clisp.org>
15830
15831         Mark privileged tests modules.
15832         * modules/idpriv-drop-tests (Status): New section.
15833         * modules/idpriv-droptemp-tests (Status): New section.
15834
15835 2010-03-28  Bruno Haible  <bruno@clisp.org>
15836
15837         Split C++ tests into separate tests modules.
15838         * modules/dirent-c++-tests: New file, extracted from
15839         modules/dirent-tests.
15840         * modules/dirent-tests: Depend on it.
15841         * modules/fcntl-h-c++-tests: New file, extracted from
15842         modules/fcntl-h-tests.
15843         * modules/fcntl-h-tests: Depend on it.
15844         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15845         * modules/glob-tests: Depend on it.
15846         * modules/iconv-h-c++-tests: New file, extracted from
15847         modules/iconv-h-tests.
15848         * modules/iconv-h-tests: Depend on it.
15849         * modules/langinfo-c++-tests: New file, extracted from
15850         modules/langinfo-tests.
15851         * modules/langinfo-tests: Depend on it.
15852         * modules/locale-c++-tests: New file, extracted from
15853         modules/locale-tests.
15854         * modules/locale-tests: Depend on it.
15855         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15856         * modules/math-tests: Depend on it.
15857         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15858         * modules/pty-tests: Depend on it.
15859         * modules/search-c++-tests: New file, extracted from
15860         modules/search-tests.
15861         * modules/search-tests: Depend on it.
15862         * modules/signal-c++-tests: New file, extracted from
15863         modules/signal-tests.
15864         * modules/signal-tests: Depend on it.
15865         * modules/spawn-c++-tests: New file, extracted from
15866         modules/spawn-tests.
15867         * modules/spawn-tests: Depend on it.
15868         * modules/stdio-c++-tests: New file, extracted from
15869         modules/stdio-tests.
15870         * modules/stdio-tests: Depend on it.
15871         * modules/stdlib-c++-tests: New file, extracted from
15872         modules/stdlib-tests.
15873         * modules/stdlib-tests: Depend on it.
15874         * modules/string-c++-tests: New file, extracted from
15875         modules/string-tests.
15876         * modules/string-tests: Depend on it.
15877         * modules/sys_ioctl-c++-tests: New file, extracted from
15878         modules/sys_ioctl-tests.
15879         * modules/sys_ioctl-tests: Depend on it.
15880         * modules/sys_select-c++-tests: New file, extracted from
15881         modules/sys_select-tests.
15882         * modules/sys_select-tests: Depend on it.
15883         * modules/sys_socket-c++-tests: New file, extracted from
15884         modules/sys_socket-tests.
15885         * modules/sys_socket-tests: Depend on it.
15886         * modules/sys_stat-c++-tests: New file, extracted from
15887         modules/sys_stat-tests.
15888         * modules/sys_stat-tests: Depend on it.
15889         * modules/sys_time-c++-tests: New file, extracted from
15890         modules/sys_time-tests.
15891         * modules/sys_time-tests: Depend on it.
15892         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15893         * modules/time-tests: Depend on it.
15894         * modules/unistd-c++-tests: New file, extracted from
15895         modules/unistd-tests.
15896         * modules/unistd-tests: Depend on it.
15897         * modules/wchar-c++-tests: New file, extracted from
15898         modules/wchar-tests.
15899         * modules/wchar-tests: Depend on it.
15900         * modules/wctype-c++-tests: New file, extracted from
15901         modules/wctype-tests.
15902         * modules/wctype-tests: Depend on it.
15903         Reported by Simon Josefsson.
15904
15905 2010-03-28  Bruno Haible  <bruno@clisp.org>
15906
15907         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15908         * gnulib-tool (func_exists_module): New function, extracted from
15909         func_verify_module.
15910         (func_verify_module): Use it.
15911         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15912         'foo' only if 'foo' exists.
15913         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15914         module.
15915
15916 2010-03-28  Bruno Haible  <bruno@clisp.org>
15917
15918         gnulib-tool: Add support for special categories of tests.
15919         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15920         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15921         (func_usage): Document them.
15922         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15923         inc_unportable_tests, inc_all_tests): New variables.
15924         (func_acceptable): Consider these variables.
15925         (func_modules_transitive_closure): Make it work when the 'Status' field
15926         consists of multiple words.
15927         (func_import): Store and restore the values of inc_cxx_tests,
15928         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15929         inc_all_tests in gnulib-comp.m4.
15930         (func_create_testdir): Set inc_all_tests to true.
15931         * doc/gnulib.texi (Extra tests modules): New section.
15932         Suggested by Jim Meyering.
15933
15934 2010-03-28  Bruno Haible  <bruno@clisp.org>
15935
15936         ansi-c++-opt: Allow turning off the C++ build by default.
15937         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15938         gl_CXX_CHOICE_DEFAULT_NO is defined.
15939         Requested by Eric Blake.
15940
15941 2010-03-28  Bruno Haible  <bruno@clisp.org>
15942
15943         unistd: Avoid #define replacements in C++ mode.
15944         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15945         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15946         setsockopt, shutdown, select): In C++, attach a warning to the function
15947         if possible, rather than #defining the symbol to a dysfunctional alias.
15948         Reported by John W. Eaton <jwe@gnu.org>.
15949
15950 2010-03-28  Bruno Haible  <bruno@clisp.org>
15951
15952         Fix link errors on mingw.
15953         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15954         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15955         $(LIBSOCKET).
15956         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15957         $(LIBSOCKET).
15958
15959 2010-03-28  Bruno Haible  <bruno@clisp.org>
15960             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15961
15962         lib-ignore: Determine different options for different compilers.
15963         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15964         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15965         Add comments.
15966         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15967         * NEWS: Mention the change.
15968
15969 2010-03-27  Bruno Haible  <bruno@clisp.org>
15970
15971         Remove unused GNULIB_XYZ macro definitions.
15972         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15973         * modules/fseek (configure.ac): Likewise.
15974         * modules/ioctl (configure.ac): Likewise.
15975         * modules/open (configure.ac): Likewise.
15976         * modules/stdlib-safer (configure.ac): Likewise.
15977
15978 2010-03-27  Bruno Haible  <bruno@clisp.org>
15979
15980         Add a remark about certain modules.
15981         * modules/malloc (Comment): New section.
15982         * modules/realloc (Comment): Likewise.
15983         * modules/sigpipe (Comment): Likewise.
15984
15985 2010-03-27  Bruno Haible  <bruno@clisp.org>
15986
15987         Resolve conflict between the two kinds of module indicators.
15988         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15989         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15990         * modules/canonicalize (configure.ac): Invoke
15991         gl_MODULE_INDICATOR_FOR_TESTS.
15992         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15993         GNULIB_XYZ.
15994         * tests/test-dirent-c++.cc: Likewise.
15995         * tests/test-dirent-safer.c: Likewise.
15996         * tests/test-dup2.c: Likewise.
15997         * tests/test-fchdir.c: Likewise.
15998         * tests/test-fcntl-h-c++.cc: Likewise.
15999         * tests/test-getopt.c: Likewise.
16000         * tests/test-getopt.h: Likewise.
16001         * tests/test-langinfo-c++.cc: Likewise.
16002         * tests/test-locale-c++.cc: Likewise.
16003         * tests/test-math-c++.cc: Likewise.
16004         * tests/test-pty-c++.cc: Likewise.
16005         * tests/test-search-c++.cc: Likewise.
16006         * tests/test-signal-c++.cc: Likewise.
16007         * tests/test-spawn-c++.cc: Likewise.
16008         * tests/test-stdio-c++.cc: Likewise.
16009         * tests/test-stdlib-c++.cc: Likewise.
16010         * tests/test-string-c++.cc: Likewise.
16011         * tests/test-sys_ioctl-c++.cc: Likewise.
16012         * tests/test-sys_select-c++.cc: Likewise.
16013         * tests/test-sys_socket-c++.cc: Likewise.
16014         * tests/test-sys_stat-c++.cc: Likewise.
16015         * tests/test-sys_time-c++.cc: Likewise.
16016         * tests/test-time-c++.cc: Likewise.
16017         * tests/test-unistd-c++.cc: Likewise.
16018         * tests/test-wchar-c++.cc: Likewise.
16019         * tests/uninorm/test-u8-nfc.c: Likewise.
16020         * tests/uninorm/test-u8-nfd.c: Likewise.
16021         * tests/uninorm/test-u8-nfkc.c: Likewise.
16022         * tests/uninorm/test-u8-nfkd.c: Likewise.
16023         * tests/uninorm/test-u16-nfc.c: Likewise.
16024         * tests/uninorm/test-u16-nfd.c: Likewise.
16025         * tests/uninorm/test-u16-nfkc.c: Likewise.
16026         * tests/uninorm/test-u16-nfkd.c: Likewise.
16027         * tests/uninorm/test-u32-nfc.c: Likewise.
16028         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16029         * tests/uninorm/test-u32-nfd.c: Likewise.
16030         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16031         * tests/uninorm/test-u32-nfkc.c: Likewise.
16032         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16033         * tests/uninorm/test-u32-nfkd.c: Likewise.
16034         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16035         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16036
16037 2010-03-27  Bruno Haible  <bruno@clisp.org>
16038
16039         Distinguish two kinds of module indicators.
16040         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16041         gl_MODULE_INDICATOR.
16042         (gl_MODULE_INDICATOR): New macro.
16043         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16044         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16045         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16046         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16047         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16048         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16049         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16050         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16051         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16052         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16053         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16054         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16056         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16057         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16058         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16059         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16060         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16061         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16062         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16063         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16064         * modules/cloexec (configure.ac): Likewise.
16065         * modules/getopt-gnu (configure.ac): Likewise.
16066         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16067         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16068         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16069         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16070
16071 2010-03-27  Bruno Haible  <bruno@clisp.org>
16072
16073         New module description field 'Comment'.
16074         * gnulib-tool: New option --extract-comment.
16075         (func_usage): Document it.
16076         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16077         (func_get_comment): New function.
16078         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16079
16080 2010-03-27  Bruno Haible  <bruno@clisp.org>
16081
16082         Addendum to 2010-02-07 commit.
16083         * gnulib-tool (func_usage): Document --extract-applicability option.
16084
16085 2010-03-27  Bruno Haible  <bruno@clisp.org>
16086
16087         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16088         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16089         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16090         rather than link errors.
16091
16092 2010-03-27  Bruno Haible  <bruno@clisp.org>
16093
16094         Avoid side effects from tests-related modules on the compilation of lib.
16095         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16096         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16097         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16098         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16099         macro.
16100         (func_import): Define a witness macro. Assign it a value that depends
16101         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16102         tests-related modules.
16103         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16104         Reported by Jim Meyering.
16105
16106 2010-03-27  Bruno Haible  <bruno@clisp.org>
16107
16108         Factorize common .m4 code.
16109         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16110         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16111         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16112         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16113         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16114         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16115         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16116         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16117         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16118         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16119         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16120         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16121         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16122         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16123         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16124         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16125         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16126         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16127         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16128         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16129         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16130         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16131         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16132         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16133         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16134         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16135         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16136         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16137         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16138         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16139         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16140         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16141
16142 2010-03-27  Bruno Haible  <bruno@clisp.org>
16143
16144         Fix a compilation error on Cygwin with g++ >= 4.3.
16145         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16146         if it is undefined or if we alias it to chmod.
16147         (lstat): Don't warn about the use of this function if it is undefined
16148         or if we alias it to stat.
16149         Reported by Simon Josefsson.
16150
16151 2010-03-27  Bruno Haible  <bruno@clisp.org>
16152
16153         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16154         * modules/getlogin (configure.ac): Update.
16155
16156         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16157         * modules/getlogin_r (configure.ac): Update.
16158
16159         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16161         * modules/inet_ntop (configure.ac): Update.
16162
16163         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16164         * modules/inet_pton (configure.ac): Update.
16165
16166         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16167         * modules/mbslen (configure.ac): Update.
16168
16169         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16170         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16171         * modules/forkpty (configure.ac): Update.
16172         * modules/openpty (configure.ac): Update.
16173
16174 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16175
16176         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16177         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16178
16179 2010-03-25  Eric Blake  <eblake@redhat.com>
16180
16181         maint: use pragma consistently across replacement headers
16182         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16183         * lib/dirent.in.h (system_header): Likewise.
16184         * lib/errno.in.h (system_header): Likewise.
16185         * lib/float.in.h (system_header): Likewise.
16186         * lib/getopt.in.h (system_header): Likewise.
16187         * lib/iconv.in.h (system_header): Likewise.
16188         * lib/inttypes.in.h (system_header): Likewise.
16189         * lib/langinfo.in.h (system_header): Likewise.
16190         * lib/locale.in.h (system_header): Likewise.
16191         * lib/math.in.h (system_header): Likewise.
16192         * lib/netdb.in.h (system_header): Likewise.
16193         * lib/netinet_in.in.h (system_header): Likewise.
16194         * lib/pty.in.h (system_header): Likewise.
16195         * lib/sched.in.h (system_header): Likewise.
16196         * lib/se-selinux.in.h (system_header): Likewise.
16197         * lib/search.in.h (system_header): Likewise.
16198         * lib/spawn.in.h (system_header): Likewise.
16199         * lib/stdarg.in.h (system_header): Likewise.
16200         * lib/stdint.in.h (system_header): Likewise.
16201         * lib/string.in.h (system_header): Likewise.
16202         * lib/strings.in.h (system_header): Likewise.
16203         * lib/sys_file.in.h (system_header): Likewise.
16204         * lib/sys_ioctl.in.h (system_header): Likewise.
16205         * lib/sys_socket.in.h (system_header): Likewise.
16206         * lib/sys_times.in.h (system_header): Likewise.
16207         * lib/sys_utsname.in.h (system_header): Likewise.
16208         * lib/sys_wait.in.h (system_header): Likewise.
16209         * lib/sysexits.in.h (system_header): Likewise.
16210         * lib/unistd.in.h (system_header): Likewise.
16211         * lib/wctype.in.h (system_header): Likewise.
16212
16213         arpa/inet: fix mingw compilation warning
16214         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16215         Reported by Matthew Bolte.
16216
16217 2010-03-25  Bruno Haible  <bruno@clisp.org>
16218
16219         Avoid collision between gnulib wrapper and libintl wrapper.
16220         * lib/printf.c (printf): Don't define if a printf wrapper is already
16221         defined in intl/printf.c.
16222         Reported by Michel Boaventura <michel@michelboaventura.com>.
16223
16224 2010-03-25  Bruno Haible  <bruno@clisp.org>
16225
16226         Use ANSI C.
16227         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16228
16229 2010-03-25  Bruno Haible  <bruno@clisp.org>
16230
16231         Minor formatting changes.
16232         * lib/acosl.c: Insert space before function argument list.
16233         * lib/argz.c: Likewise.
16234         * lib/asinl.c: Likewise.
16235         * lib/expl.c: Likewise.
16236         * lib/gen-uni-tables.c: Likewise.
16237         * lib/gettext.h: Likewise.
16238         * lib/glthread/lock.h: Likewise.
16239         * lib/tanl.c: Likewise.
16240         * lib/uniname/uniname.c: Likewise.
16241         * tests/test-idpriv-drop.c: Likewise.
16242         * tests/test-idpriv-droptemp.c: Likewise.
16243         * tests/test-lock.c: Likewise.
16244         * tests/test-tls.c: Likewise.
16245         * lib/argp-help.c: Insert space before function-like macro argument
16246         list.
16247         * lib/memcmp.c: Likewise.
16248         * tests/test-base64.c: Likewise.
16249         * lib/localename.c: Insert space before sizeof's argument list.
16250         * lib/safe-alloc.h: Likewise.
16251         * lib/file-set.h: Insert space before macro argument list.
16252         * tests/test-argp.c: Likewise.
16253         * lib/argp-namefrob.h: Insert space before function parameter list.
16254         * lib/getaddrinfo.c: Likewise.
16255         * lib/netdb.in.h: Likewise.
16256         * lib/parse-duration.h: Likewise.
16257         * lib/parse-duration.c: Likewise.
16258         * lib/poll.c: Likewise.
16259         * lib/select.c: Likewise.
16260         * lib/trim.h: Likewise.
16261         * tests/test-usleep.c: Likewise.
16262         * lib/ldexpl.c: Insert space before function parameter list and before
16263         function argument list.
16264         * lib/logl.c: Likewise.
16265         * lib/sqrtl.c: Likewise.
16266         * lib/trim.c: Likewise.
16267         * lib/cosl.c: Use GNU style indentation. Insert space before function
16268         argument list.
16269         * lib/sinl.c: Likewise.
16270         * lib/tsearch.c: Insert space after 'for'.
16271         Reported by Jim Meyering.
16272
16273 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16274
16275         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16276         config header before grepping, as it's not present before
16277         autoreconf/configure are run.  Reported by Simon Josefsson.
16278
16279 2010-03-23  Bruno Haible  <bruno@clisp.org>
16280
16281         pt_chown: Make it work with automake < 1.11.
16282         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16283         Reported by Simon Josefsson.
16284
16285 2010-03-23  Bruno Haible  <bruno@clisp.org>
16286
16287         pt_chown: Don't depend on GPLed modules.
16288         * lib/pt_chown.c: Don't include idpriv.h.
16289         (main): Don't drop privileges.
16290         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16291         Reported by Simon Josefsson.
16292
16293 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16294
16295         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16296         suggestions from karl@freefriends.org (Karl Berry).
16297
16298 2010-03-22  Eric Blake  <eblake@redhat.com>
16299
16300         gethostname: further tweaks
16301         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16302         are overriding gethostname.
16303         Suggested by Bruno Haible.
16304
16305 2010-03-21  Bruno Haible  <bruno@clisp.org>
16306
16307         Fix comments.
16308         * lib/forkpty.c (rpl_forkpty): Fix comment.
16309         * lib/openpty.c (rpl_openpty): Likewise.
16310         Reported by Eric Blake.
16311
16312 2010-03-22  Eric Blake  <eblake@redhat.com>
16313
16314         gethostname: fix build on mingw
16315         * lib/unistd.in.h (includes): Work around fact that mingw
16316         <winsock2.h> re-includes <unistd.h>, by avoiding any
16317         redeclarations if we are being included by <winsock2.h>.
16318         Reported by Matthias Bolte.
16319
16320 2010-03-21  Bruno Haible  <bruno@clisp.org>
16321
16322         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16323         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16324         modifications.
16325         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16326         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16327         provide the replacement.
16328         * modules/forkpty (Depends-on): Add openpty, login_tty.
16329         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16330         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16331         * doc/glibc-functions/forkpty.texi: More supported platforms.
16332         * config/srclist.txt: Add forkpty.c (commented).
16333
16334 2010-03-21  Bruno Haible  <bruno@clisp.org>
16335
16336         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16337         (Makefile.am): Verify that PTY_LIB is defined.
16338
16339         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16340
16341 2010-03-21  Bruno Haible  <bruno@clisp.org>
16342
16343         Tests for module 'login_tty'.
16344         * modules/login_tty-tests: New file.
16345         * tests/test-login_tty.c: New file.
16346
16347         New module 'login_tty'.
16348         * lib/login_tty.c: New file.
16349         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16350         * modules/login_tty: New file.
16351         * doc/glibc-functions/login_tty.texi: Mention the new module.
16352
16353 2010-03-21  Bruno Haible  <bruno@clisp.org>
16354
16355         login_tty: Documentation.
16356         * doc/glibc-functions/login_tty.texi: New file.
16357         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16358
16359 2010-03-21  Bruno Haible  <bruno@clisp.org>
16360
16361         pty: Consistent macro naming.
16362         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16363         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16364         * modules/pty (configure.ac): Update.
16365
16366 2010-03-21  Bruno Haible  <bruno@clisp.org>
16367
16368         Tests for openpty: Make stricter.
16369         * tests/test-openpty.c (main): Add test of canonical processing and
16370         erase.
16371         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16372
16373         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16374         * lib/openpty.c (openpty): New replacement function.
16375         * lib/pty.in.h: Include <termios.h>.
16376         (openpty): Update declaration. Add comments.
16377         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16378         is not declared, arrange to provide the replacement. Check for _getpty
16379         and posix_openpt.
16380         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16381         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16382         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16383         * modules/pty-tests (test_pty_c___LDADD): New variable.
16384         * doc/glibc-functions/openpty.texi: More supported platforms.
16385
16386 2010-03-21  Bruno Haible  <bruno@clisp.org>
16387
16388         setenv: Tweaks.
16389         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16390         the test program.
16391         * doc/posix-functions/setenv.texi: Update platforms list.
16392
16393 2010-03-21  Bruno Haible  <bruno@clisp.org>
16394
16395         New module 'unlockpt'.
16396         * lib/unlockpt.c: New file, from glibc with modifications.
16397         * m4/unlockpt.m4: New file.
16398         * modules/unlockpt: New file.
16399         * lib/stdlib.in.h (unlockpt): New declaration.
16400         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16401         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16402         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16403         HAVE_UNLOCKPT.
16404         * doc/posix-functions/unlockpt.texi: Mention the new module.
16405         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16406         * config/srclist.txt: Add unlockpt.c (commented).
16407
16408 2010-03-21  Jim Meyering  <meyering@redhat.com>
16409
16410         maint.mk: prohibit inclusion of "intprops.h" without use
16411         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16412
16413 2010-03-21  Bruno Haible  <bruno@clisp.org>
16414
16415         New module 'grantpt'.
16416         * lib/grantpt.c: New file, from glibc with modifications.
16417         * m4/grantpt.m4: New file.
16418         * modules/grantpt: New file.
16419         * lib/stdlib.in.h (grantpt): New declaration.
16420         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16421         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16422         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16423         HAVE_GRANTPT.
16424         * doc/posix-functions/grantpt.texi: Mention the new module.
16425         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16426         * config/srclist.txt: Add grantpt.c (commented).
16427
16428 2010-03-21  Bruno Haible  <bruno@clisp.org>
16429
16430         New module 'pt_chown'.
16431         * lib/pt_chown.c: New file, from glibc with modifications.
16432         * lib/pty-private.h: New file, from glibc with modifications.
16433         * modules/pt_chown: New file.
16434         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16435
16436 2010-03-21  Bruno Haible  <bruno@clisp.org>
16437
16438         Tests for module 'ptsname'.
16439         * modules/ptsname-tests: New file.
16440         * tests/test-ptsname.c: New file.
16441
16442         New module 'ptsname'.
16443         * lib/ptsname.c: New file, from glibc with modifications.
16444         * m4/ptsname.m4: New file.
16445         * modules/ptsname: New file.
16446         * lib/stdlib.in.h (ptsname): New declaration.
16447         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16448         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16449         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16450         HAVE_PTSNAME.
16451         * doc/posix-functions/ptsname.texi: Mention the new module.
16452         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16453         * config/srclist.txt: Add ptsname.c (commented).
16454
16455 2010-03-21  Bruno Haible  <bruno@clisp.org>
16456
16457         Tests for module 'ttyname_r'.
16458         * modules/ttyname_r-tests: New file.
16459         * tests/test-ttyname_r.c: New file.
16460
16461         New module 'ttyname_r'.
16462         * lib/ttyname_r.c: New file.
16463         * m4/ttyname_r.m4: New file.
16464         * modules/ttyname_r: New file.
16465         * lib/unistd.in.h (ttyname_r): New declaration.
16466         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16467         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16468         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16469         HAVE_TTYNAME_R.
16470         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16471         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16472
16473 2010-03-20  Bruno Haible  <bruno@clisp.org>
16474
16475         signal: Undefine macro definitions in C++ mode.
16476         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16477         sigfillset): Undefine macro definitions from the system header in C++
16478         mode.
16479         Reported by John W. Eaton <jwe@gnu.org>.
16480
16481 2010-03-20  Bruno Haible  <bruno@clisp.org>
16482
16483         Ensure no #include statements inside extern "C" { ... }.
16484         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16485         contain #include statements.
16486         * lib/time.in.h: Likewise.
16487
16488 2010-03-20  Bruno Haible  <bruno@clisp.org>
16489
16490         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16491         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16492         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16493         Reported by John W. Eaton <jwe@gnu.org>.
16494
16495 2010-03-20  Bruno Haible  <bruno@clisp.org>
16496
16497         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16498         Reported by Jim Meyering.
16499
16500 2010-03-20  Bruno Haible  <bruno@clisp.org>
16501
16502         pipe: Set errno upon failure.
16503         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16504         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16505         errno value in error message.
16506
16507 2010-03-20  Bruno Haible  <bruno@clisp.org>
16508             Jim Meyering  <meyering@redhat.com>
16509
16510         lchown: Avoid "unused variable" warning.
16511         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16512
16513 2010-03-20  Bruno Haible  <bruno@clisp.org>
16514
16515         Work around unlink() bug on MacOS X 10.5.6.
16516         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16517         attempting to unlink a parent directory.
16518         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16519         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16520         activate for the replacement function.
16521         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16522
16523 2010-03-20  Bruno Haible  <bruno@clisp.org>
16524
16525         Fix link errors on Solaris 8.
16526         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16527         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16528
16529 2010-03-19  Jim Meyering  <meyering@redhat.com>
16530
16531         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16532         The _LIBC implementation of build_range_exp correctly honors the
16533         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16534         However, the non-_LIBC implementation would ignore that syntax-bit
16535         flag and return REG_ERANGE unconditionally.
16536         This change makes it honor that flag.
16537         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16538         Make two pointer parameters "const".
16539         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16540         (parse_bracket_exp): Update caller.
16541
16542         regex.m4: correct the reversed range endpoint ([b-a]) test
16543         * m4/regex.m4: When requiring that [b-a] evoke failure,
16544         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16545         test pass once again for x86-based systems.
16546
16547 2010-03-19  Bruno Haible  <bruno@clisp.org>
16548
16549         scandir: Fix link error on Solaris 8.
16550         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16551         macros.
16552
16553 2010-03-19  Bruno Haible  <bruno@clisp.org>
16554
16555         getusershell: Fix documentation.
16556         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16557         module.
16558         * doc/glibc-functions/setusershell.texi: Likewise.
16559
16560         getusershell: Provide declaration, missing on Solaris 9.
16561         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16562         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16563         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16564         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16566         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16567         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16568         HAVE_GETUSERSHELL.
16569         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16570
16571 2010-03-19  Bruno Haible  <bruno@clisp.org>
16572
16573         wctype: Provide iswblank function.
16574         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16575         exists and is fine.
16576         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16577         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16578         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16579         * doc/posix-functions/iswblank.texi: Update.
16580
16581 2010-03-19  Bruno Haible  <bruno@clisp.org>
16582
16583         Tests of module 'pty' in C++ mode.
16584         * modules/pty-tests: New file.
16585         * tests/test-pty-c++.cc: New file.
16586         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16587
16588 2010-03-19  Eric Blake  <eblake@redhat.com>
16589
16590         logb: fix documentation
16591         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16592         1.5 declaration bug.
16593
16594         forkpty, openpty: prefer glibc's const-safe prototype
16595         * lib/forkpty.c (rpl_forkpty): New file.
16596         * lib/openpty.c (rpl_openpty): Likewise.
16597         * modules/forkpty (Files): Distribute it.
16598         * modules/openpty (Files): Likewise.
16599         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16600         check...
16601         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16602         replacement for for non-const BSD signature.
16603         * modules/pty (Makefile.am): Substitute witnesses.
16604         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16605         * tests/test-forkpty.c: Update signature check.
16606         * tests/test-openpty.c: Likewise.
16607         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16608         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16609
16610         forkpty, openpty: split functions into new modules
16611         * modules/pty (Makefile.am): Substitute new witnesses.
16612         (Libraries): Move library detection...
16613         * modules/forkpty: ...into new module.
16614         * modules/openpty: Another new module.
16615         * modules/pty-tests: Rename and split...
16616         * modules/forkpty-tests: ...to this...
16617         * modules/openpty-tests: ...and this.
16618         * tests/test-pty.c: Rename and split...
16619         * tests/test-forkpty.c: ...to this...
16620         * tests/test-openpty.c: ...and this.
16621         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16622         (gl_PTY): Split library searching...
16623         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16624         (gl_FORKPTY, gl_OPENPTY): New macros.
16625         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16626         * NEWS: Mention the split.
16627         * MODULES.html.sh (Misc): Document the modules.
16628         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16629         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16630
16631         pty: improve replacement header
16632         * lib/pty.in.h: New file.
16633         * modules/pty (Files): Ship it.
16634         (Makefile.am): Always build replacement.
16635         * m4/pty.m4: Rename...
16636         * m4/pty_h.m4: ...to this.
16637         (gl_PTY): Modernize setting of witness macros; update check of
16638         forkpty to take proper advantage of cache.
16639         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16640
16641         getopt: avoid compiler warning
16642         * lib/getopt.c (attribute_hidden): Remove unused macro.
16643
16644 2010-03-18  Bruno Haible  <bruno@clisp.org>
16645
16646         Fix link errors on Solaris 8.
16647         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16648         * modules/search-tests (test_search_c___LDADD): Likewise.
16649         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16650         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16651         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16652         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16653         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16654         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16655         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16656
16657 2010-03-18  Bruno Haible  <bruno@clisp.org>
16658
16659         Fix bug introduced on 2010-03-14.
16660         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16661         (gl_SPAWN_H): Require it.
16662         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16663         Reported by Simon Josefsson.
16664
16665 2010-03-18  Bruno Haible  <bruno@clisp.org>
16666
16667         Fix typo introduced on 2009-12-31.
16668         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16669         posix_spawn_file_actions_adddup2.
16670
16671 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16672         and Eric Blake  <eblake@redhat.com>
16673
16674         test-vc-list-files-git: make more robust
16675         * tests/test-vc-list-files-git.sh: Unset problematic environment
16676         variables.  Chain commands together.
16677
16678 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16679
16680         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16681         `AC_CHECK_DECL' invocation.
16682
16683 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16684
16685         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16686         appears before executable statements. Suggested by Petr Sumbera
16687         <Petr.Sumbera@Sun.COM>.
16688
16689 2010-03-14  Bruno Haible  <bruno@clisp.org>
16690
16691         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16692         portability problems. Instead use a simpler test.
16693         (main): Check that invalid arguments are rejected only on Linux.
16694
16695 2010-03-14  Bruno Haible  <bruno@clisp.org>
16696
16697         Fix bug introduced on 2009-12-31.
16698         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16699         gl_PREREQ_SYS_H_WINSOCK2 always.
16700         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16701         SYS_SOCKET_H variable.
16702         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16703         Update comments.
16704         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16705         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16706         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16707         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16708         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16709
16710 2010-03-14  Bruno Haible  <bruno@clisp.org>
16711
16712         Fix values returned by sinl, cosl.
16713         * lib/trigl.h: Add specification comments.
16714         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16715         that combines the values from the precomputed table with the values of
16716         the Chebyshev polynomials.
16717
16718 2010-03-14  Bruno Haible  <bruno@clisp.org>
16719
16720         Fix compilation error when modules 'posix_spawn[p]' are not used.
16721         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16722         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16723
16724 2010-03-14  Bruno Haible  <bruno@clisp.org>
16725
16726         Fix compilation error on mingw when module 'time_r' is not used.
16727         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16728         is 1.
16729         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16730         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16731         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16732         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16733
16734 2010-03-14  Bruno Haible  <bruno@clisp.org>
16735
16736         Fix compilation error with Sun C.
16737         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16738         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16739         instead of GCC specific ULONG_LONG_MAX.
16740         * lib/xstrtoll.c: Likewise.
16741         * lib/xstrtoull.c: Likewise.
16742
16743 2010-03-13  Bruno Haible  <bruno@clisp.org>
16744
16745         Allow the user to disable C++ code and tests.
16746         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16747         (gl_PROG_ANSI_CXX): Require it.
16748
16749 2010-03-13  Bruno Haible  <bruno@clisp.org>
16750
16751         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16752         cases.
16753
16754 2010-03-13  Bruno Haible  <bruno@clisp.org>
16755
16756         Test that gnulib does not break the standard C++ headers.
16757         * tests/test-locale-c++2.cc: New file.
16758         * modules/locale-tests (Files): Add it.
16759         (Makefile.am): Compile it for test-locale-c++.
16760         * tests/test-math-c++2.cc: New file.
16761         * modules/math-tests (Files): Add it.
16762         (Makefile.am): Compile it for test-math-c++.
16763         * tests/test-signal-c++2.cc: New file.
16764         * modules/signal-tests (Files): Add it.
16765         (Makefile.am): Compile it for test-signal-c++.
16766         * tests/test-stdio-c++2.cc: New file.
16767         * modules/stdio-tests (Files): Add it.
16768         (Makefile.am): Compile it for test-stdio-c++.
16769         * tests/test-stdlib-c++2.cc: New file.
16770         * modules/stdlib-tests (Files): Add it.
16771         (Makefile.am): Compile it for test-stdlib-c++.
16772         * tests/test-string-c++2.cc: New file.
16773         * modules/string-tests (Files): Add it.
16774         (Makefile.am): Compile it for test-string-c++.
16775         * tests/test-time-c++2.cc: New file.
16776         * modules/time-tests (Files): Add it.
16777         (Makefile.am): Compile it for test-time-c++.
16778         Reported by John W. Eaton <jwe@gnu.org>.
16779
16780 2010-03-13  Bruno Haible  <bruno@clisp.org>
16781
16782         * gnulib-tool (func_usage): Clarify which options are available for
16783         --create-testdir and --create-megatestdir.
16784
16785 2010-03-13  Bruno Haible  <bruno@clisp.org>
16786
16787         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16788         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16789         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16790         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16791         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16792         when appropriate.
16793         Reported by Jim Meyering.
16794
16795 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16796
16797         * gnulib-tool (func_import): Explain origin of code.
16798
16799 2010-03-12  Bruno Haible  <bruno@clisp.org>
16800
16801         Fix problem with automake's definition of CXXLINK.
16802         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16803         Reported by Simon Josefsson and Ludovic Courtès.
16804
16805 2010-03-12  Bruno Haible  <bruno@clisp.org>
16806
16807         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16808         stable releases.
16809
16810 2010-03-11  Bruno Haible  <bruno@clisp.org>
16811
16812         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16813         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16814         whether the system provides one variant or multiple variants of the
16815         function.
16816         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16817         C++ compilers.
16818         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16819         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16820         Reported by Jim Meyering.
16821
16822 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16823
16824         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16825
16826 2010-03-08  Bruno Haible  <bruno@clisp.org>
16827
16828         gnulib-tool: Add support for --libtool in --create-testdir.
16829         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16830         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16831
16832 2010-03-08  Eric Blake  <eblake@redhat.com>
16833
16834         gnulib-tool.texi: mention possibility of git submodule
16835         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16836         submodules.
16837         * doc/.gitignore: Ignore another generated file.
16838
16839 2010-03-08  Karl Berry  <karl@gnu.org>
16840
16841         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16842         of committing gnulib files while skipping others.
16843
16844 2010-03-07  Bruno Haible  <bruno@clisp.org>
16845
16846         Tests of module 'wctype' in C++ mode.
16847         * tests/test-wctype-c++.cc: New file.
16848         * modules/wctype-tests (Files): Add it and tests/signature.h.
16849         (Depends-on): Add ansi-c++-opt.
16850         (Makefile.am): Arrange to compile and run test-wctype-c++.
16851
16852         Tests of module 'wchar' in C++ mode.
16853         * tests/test-wchar-c++.cc: New file.
16854         * modules/wchar-tests (Files): Add it and tests/signature.h.
16855         (Depends-on): Add ansi-c++-opt.
16856         (Makefile.am): Arrange to compile and run test-wchar-c++.
16857         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16858         gl_MODULE_INDICATOR.
16859
16860         Tests of module 'unistd' in C++ mode.
16861         * tests/test-unistd-c++.cc: New file.
16862         * modules/unistd-tests (Files): Add it and tests/signature.h.
16863         (Depends-on): Add ansi-c++-opt.
16864         (Makefile.am): Arrange to compile and run test-unistd-c++.
16865         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16866         gl_MODULE_INDICATOR.
16867
16868         Tests of module 'time' in C++ mode.
16869         * tests/test-time-c++.cc: New file.
16870         * modules/time-tests (Files): Add it and tests/signature.h.
16871         (Depends-on): Add ansi-c++-opt.
16872         (Makefile.am): Arrange to compile and run test-time-c++.
16873         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16874
16875         Tests of module 'sys_time' in C++ mode.
16876         * tests/test-sys_time-c++.cc: New file.
16877         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16878         (Depends-on): Add ansi-c++-opt.
16879         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16880         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16881         gl_MODULE_INDICATOR.
16882
16883         Tests of module 'sys_stat' in C++ mode.
16884         * tests/test-sys_stat-c++.cc: New file.
16885         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16886         (Depends-on): Add ansi-c++-opt.
16887         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16888         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16889         gl_MODULE_INDICATOR.
16890
16891         Tests of module 'sys_socket' in C++ mode.
16892         * tests/test-sys_socket-c++.cc: New file.
16893         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16894         (Depends-on): Add ansi-c++-opt.
16895         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16896         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16897         gl_MODULE_INDICATOR.
16898
16899         Tests of module 'sys_select' in C++ mode.
16900         * tests/test-sys_select-c++.cc: New file.
16901         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16902         (Depends-on): Add ansi-c++-opt.
16903         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16904         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16905         gl_MODULE_INDICATOR.
16906
16907         Tests of module 'sys_ioctl' in C++ mode.
16908         * tests/test-sys_ioctl-c++.cc: New file.
16909         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16910         (Depends-on): Add ansi-c++-opt.
16911         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16912         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16913         gl_MODULE_INDICATOR.
16914
16915         Tests of module 'string' in C++ mode.
16916         * tests/test-string-c++.cc: New file.
16917         * modules/string-tests (Files): Add it and tests/signature.h.
16918         (Depends-on): Add ansi-c++-opt.
16919         (Makefile.am): Arrange to compile and run test-string-c++.
16920         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16921         gl_MODULE_INDICATOR.
16922
16923         Tests of module 'stdlib' in C++ mode.
16924         * tests/test-stdlib-c++.cc: New file.
16925         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16926         (Depends-on): Add ansi-c++-opt.
16927         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16928         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16929         gl_MODULE_INDICATOR.
16930
16931         Tests of module 'stdio' in C++ mode.
16932         * tests/test-stdio-c++.cc: New file.
16933         * modules/stdio-tests (Files): Add it and tests/signature.h.
16934         (Depends-on): Add ansi-c++-opt.
16935         (Makefile.am): Arrange to compile and run test-stdio-c++.
16936         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16937         gl_MODULE_INDICATOR.
16938
16939         Tests of module 'spawn' in C++ mode.
16940         * tests/test-spawn-c++.cc: New file.
16941         * modules/spawn-tests (Files): Add it and tests/signature.h.
16942         (Depends-on): Add ansi-c++-opt.
16943         (Makefile.am): Arrange to compile and run test-spawn-c++.
16944         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16945         gl_MODULE_INDICATOR.
16946
16947         Tests of module 'signal' in C++ mode.
16948         * tests/test-signal-c++.cc: New file.
16949         * modules/signal-tests (Files): Add it and tests/signature.h.
16950         (Depends-on): Add ansi-c++-opt.
16951         (Makefile.am): Arrange to compile and run test-signal-c++.
16952         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16953         gl_MODULE_INDICATOR.
16954
16955         Tests of module 'search' in C++ mode.
16956         * tests/test-search-c++.cc: New file.
16957         * modules/search-tests (Files): Add it and tests/signature.h.
16958         (Depends-on): Add ansi-c++-opt.
16959         (Makefile.am): Arrange to compile and run test-search-c++.
16960         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16961         gl_MODULE_INDICATOR.
16962
16963         Tests of module 'math' in C++ mode.
16964         * tests/test-math-c++.cc: New file.
16965         * modules/math-tests (Files): Add it and tests/signature.h.
16966         (Depends-on): Add ansi-c++-opt.
16967         (Makefile.am): Arrange to compile and run test-math-c++.
16968         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16969
16970         Tests of module 'locale' in C++ mode.
16971         * tests/test-locale-c++.cc: New file.
16972         * modules/locale-tests (Files): Add it and tests/signature.h.
16973         (Depends-on): Add ansi-c++-opt.
16974         (Makefile.am): Arrange to compile and run test-locale-c++.
16975         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16976         gl_MODULE_INDICATOR.
16977
16978         Tests of module 'langinfo' in C++ mode.
16979         * tests/test-langinfo-c++.cc: New file.
16980         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16981         (Depends-on): Add ansi-c++-opt.
16982         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16983         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16984         gl_MODULE_INDICATOR.
16985
16986         Tests of module 'iconv-h' in C++ mode.
16987         * tests/test-iconv-h-c++.cc: New file.
16988         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16989         (Depends-on): Add ansi-c++-opt.
16990         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16991
16992         Tests of module 'glob' in C++ mode.
16993         * tests/test-glob-c++.cc: New file.
16994         * modules/glob-tests (Files): Add it.
16995         (Depends-on): Add ansi-c++-opt.
16996         (Makefile.am): Arrange to compile and run test-glob-c++.
16997
16998         Tests of module 'fcntl-h' in C++ mode.
16999         * tests/test-fcntl-h-c++.cc: New file.
17000         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17001         (Depends-on): Add ansi-c++-opt.
17002         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17003         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17004         gl_MODULE_INDICATOR.
17005
17006         Tests of module 'dirent' in C++ mode.
17007         * tests/test-dirent-c++.cc: New file.
17008         * modules/dirent-tests (Files): Add it and tests/signature.h.
17009         (Depends-on): Add ansi-c++-opt.
17010         (Makefile.am): Arrange to compile and run test-dirent-c++.
17011         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17012         gl_MODULE_INDICATOR.
17013
17014         New module 'ansi-c++-opt'.
17015         * modules/ansi-c++-opt: New file.
17016         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17017
17018         Document C++ namespace mode.
17019         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17020
17021         wctype: Avoid #define replacements in C++ mode.
17022         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17023         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17024         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17025         In C++, define a namespaced alias symbol.
17026         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17027         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17028         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17029         rule.
17030
17031         wchar: Avoid #define replacements in C++ mode.
17032         * lib/wchar.in.h: Include c++defs.h.
17033         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17034         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17035         symbol.
17036         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17037         * modules/wchar (Depends-on): Add c++defs.
17038         (Makefile.am): Update wchar.h rule.
17039
17040         unistd: Avoid #define replacements in C++ mode.
17041         * lib/unistd.in.h: Include c++defs.h.
17042         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17043         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17044         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17045         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17046         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17047         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17048         symbol.
17049         (environ): Update.
17050         * modules/unistd (Depends-on): Add c++defs.
17051         (Makefile.am): Update unistd.h rule.
17052
17053         time: Avoid #define replacements in C++ mode.
17054         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17055         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17056         define a namespaced alias symbol.
17057         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17058         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17059         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17060         * modules/time (Depends-on): Add c++defs, warn-on-use.
17061         (Makefile.am): Update time.h rule.
17062         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17063         * modules/nanosleep (configure.ac): Likewise.
17064         * modules/strptime (configure.ac): Likewise.
17065         * modules/timegm (configure.ac): Likewise.
17066
17067         sys_time: Avoid #define replacements in C++ mode.
17068         * lib/sys_time.in.h: Include c++defs.h.
17069         (gettimeofday): In C++, define a namespaced alias symbol.
17070         * modules/sys_time (Depends-on): Add c++defs.
17071         (Makefile.am): Update sys/time.h rule.
17072
17073         sys_stat: Avoid #define replacements in C++ mode.
17074         * lib/sys_stat.in.h: Include c++defs.h.
17075         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17076         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17077         namespaced alias symbol.
17078         In C++, define a namespaced alias symbol.
17079         * modules/sys_stat (Depends-on): Add c++defs.
17080         (Makefile.am): Update sys/stat.h rule.
17081
17082         sys_socket: Avoid #define replacements in C++ mode.
17083         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17084         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17085         definitions also when the system has a <sys/socket.h>.
17086         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17087         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17088         In C++, define a namespaced alias symbol.
17089         * modules/sys_socket (Depends-on): Add c++defs.
17090         (Makefile.am): Update sys/socket.h rule.
17091
17092         sys_select: Avoid #define replacements in C++ mode.
17093         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17094         definitions also when the system has a <sys/select.h>.
17095         (select): In C++, define a namespaced alias symbol.
17096         * modules/sys_select (Depends-on): Add c++defs.
17097         (Makefile.am): Update sys/select.h rule.
17098
17099         sys_ioctl: Avoid #define replacements in C++ mode.
17100         * lib/sys_ioctl.in.h: Include c++defs.h.
17101         (ioctl): In C++, define a namespaced alias symbol.
17102         * modules/sys_ioctl (Depends-on): Add c++defs.
17103         (Makefile.am): Update sys/ioctl.h rule.
17104
17105         string: Avoid #define replacements in C++ mode.
17106         * lib/string.in.h: Include c++defs.h.
17107         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17108         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17109         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17110         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17111         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17112         * modules/string (Depends-on): Add c++defs.
17113         (Makefile.am): Update string.h rule.
17114
17115         stdlib: Avoid #define replacements in C++ mode.
17116         * lib/stdlib.in.h: Include c++defs.h.
17117         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17118         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17119         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17120         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17121         symbol.
17122         * modules/stdlib (Depends-on): Add c++defs.
17123         (Makefile.am): Update stdlib.h rule.
17124
17125         stdio: Avoid #define replacements in C++ mode.
17126         * lib/stdio.in.h: Include c++defs.h.
17127         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17128         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17129         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17130         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17131         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17132         namespaced alias symbol.
17133         * modules/stdio (Depends-on): Add c++defs.
17134         (Makefile.am): Update stdio.h rule.
17135
17136         spawn: Avoid #define replacements in C++ mode.
17137         * lib/spawn.in.h: Include c++defs.h.
17138         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17139         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17140         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17141         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17142         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17143         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17144         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17145         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17146         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17147         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17148         In C++, define a namespaced alias symbol.
17149         * modules/spawn (Depends-on): Add c++defs.
17150         (Makefile.am): Update spawn.h rule.
17151
17152         signal: Avoid #define replacements in C++ mode.
17153         * lib/signal.in.h: Include c++defs.h.
17154         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17155         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17156         namespaced alias symbol.
17157         * modules/signal (Depends-on): Add c++defs.
17158         (Makefile.am): Update signal.h rule.
17159
17160         search: Avoid #define replacements in C++ mode.
17161         * lib/search.in.h: Include c++defs.h.
17162         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17163         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17164         symbol.
17165         * modules/search (Depends-on): Add c++defs.
17166         (Makefile.am): Update search.h rule.
17167
17168         math: Avoid #define replacements in C++ mode.
17169         * lib/math.in.h: Include c++defs.h.
17170         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17171         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17172         trunc, truncl): In C++, define a namespaced alias symbol.
17173         * modules/math (Depends-on): Add c++defs.
17174         (Makefile.am): Update math.h rule.
17175
17176         locale: Avoid #define replacements in C++ mode.
17177         * lib/locale.in.h: Include c++defs.h.
17178         (duplocale): In C++, define a namespaced alias symbol.
17179         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17180         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17181         * modules/locale (Depends-on): Add c++defs.
17182         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17183
17184         langinfo: Avoid #define replacements in C++ mode.
17185         * lib/langinfo.in.h: Include c++defs.h.
17186         (nl_langinfo): In C++, define a namespaced alias symbol.
17187         * modules/langinfo (Depends-on): Add c++defs.
17188         (Makefile.am): Update langinfo.h rule.
17189
17190         iconv-h: Avoid #define replacements in C++ mode.
17191         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17192         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17193         symbol.
17194         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17195         whenever iconv is present.
17196         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17197         (Makefile.am): Update iconv.h rule.
17198
17199         glob: Avoid #define replacements in C++ mode.
17200         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17201         (_gl_glob_errfunc_fn): New type.
17202         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17203         symbol.
17204         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17205         (Makefile.am): Update glob.h rule.
17206
17207         fcntl-h: Avoid #define replacements in C++ mode.
17208         * lib/fcntl.in.h: Include c++defs.h.
17209         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17210         * modules/fcntl-h (Depends-on): Add c++defs.
17211         (Makefile.am): Update fcntl.h rule.
17212
17213         dirent: Avoid #define replacements in C++ mode.
17214         * lib/dirent.in.h: Include c++defs.h.
17215         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17216         namespaced alias symbol.
17217         (dirfd): Update declaration.
17218         * modules/dirent (Depends-on): Add c++defs.
17219         (Makefile.am): Update dirent.h rule.
17220
17221         ctype: Make it usable in C++ code.
17222         * lib/ctype.in.h: Include c++defs.h.
17223         (isblank): Declare as extern "C".
17224         * modules/ctype (Depends-on): Add c++defs.
17225         (Makefile.am): Update ctype.h rule.
17226
17227         New module 'c++defs'.
17228         * modules/c++defs: New file.
17229         * build-aux/c++defs.h: New file.
17230         Reported by John W. Eaton <jwe@gnu.org>.
17231
17232 2010-03-07  Bruno Haible  <bruno@clisp.org>
17233
17234         logb: Provide missing declaration for Cygwin.
17235         * lib/math.in.h (logb): New declaration.
17236         * m4/logb.m4: New file.
17237         * modules/logb (Files): Add m4/logb.m4.
17238         (Depends-on): Add math.
17239         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17240         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17242         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17243         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17244
17245 2010-03-07  Bruno Haible  <bruno@clisp.org>
17246
17247         Fix test-cond link error.
17248         * tests/test-cond.c: Include <stdio.h>.
17249
17250 2010-03-07  Bruno Haible  <bruno@clisp.org>
17251
17252         Fix test-dirent-safer link error.
17253         * modules/dirent-safer-tests (Makefile.am): Define
17254         test_dirent_safer_LDADD.
17255
17256 2010-03-07  Bruno Haible  <bruno@clisp.org>
17257
17258         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17259         among default module list.
17260
17261 2010-03-07  Bruno Haible  <bruno@clisp.org>
17262
17263         Fix link error on platforms with GNU libiconv.
17264         * modules/unistr/u8-strcoll-tests (Makefile): Define
17265         test_u8_strcoll_LDADD.
17266         * modules/unistr/u16-strcoll-tests (Makefile): Define
17267         test_u16_strcoll_LDADD.
17268         * modules/unistr/u32-strcoll-tests (Makefile): Define
17269         test_u32_strcoll_LDADD.
17270
17271 2010-03-07  Bruno Haible  <bruno@clisp.org>
17272
17273         Use POSIX declarations for socket functions.
17274         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17275         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17276         rpl_sendto): Change declaration to match POSIX.
17277         * lib/connect.c (rpl_connect): Likewise.
17278         * lib/accept.c (rpl_accept): Likewise.
17279         * lib/bind.c (rpl_bind): Likewise.
17280         * lib/getpeername.c (rpl_getpeername): Likewise.
17281         * lib/getsockname.c (rpl_getsockname): Likewise.
17282         * lib/recv.c (rpl_recv): Likewise.
17283         * lib/send.c (rpl_send): Likewise.
17284         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17285         * lib/sendto.c (rpl_sendto): Likewise.
17286
17287 2010-03-06  Bruno Haible  <bruno@clisp.org>
17288
17289         Clarify access, euidaccess, faccessat.
17290         * doc/posix-functions/faccessat.texi: Mention security problem under
17291         "Other problems", not "Portability problems".
17292         * doc/posix-functions/access.texi: Likewise. Mention a related security
17293         problem.
17294         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17295         * lib/euidaccess.c: Add comments about platforms.
17296         * lib/unistd.in.h (access, euidaccess): Add warnings.
17297
17298 2010-03-07  Bruno Haible  <bruno@clisp.org>
17299
17300         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17301         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17302         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17303         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17304         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17305         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17306         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17307         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17308         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17309         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17310         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17311         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17312         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17313         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17314         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17315         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17316         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17317         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17318         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17319         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17320         Likewise.
17321         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17322         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17323         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17324         Likewise.
17325         * tests/test-spawn.c (main): Make it work when
17326         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17327
17328 2010-03-07  Bruno Haible  <bruno@clisp.org>
17329
17330         Fix incorrect Makefile.am generation in German locale.
17331         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17332         Execute sed command with character range in C locale.
17333
17334 2010-03-06  Bruno Haible  <bruno@clisp.org>
17335
17336         Tests for module 'iconv-h'.
17337         * modules/iconv-h-tests: New file.
17338         * tests/test-iconv-h.c: New file.
17339
17340         New module 'iconv-h'.
17341         * modules/iconv-h: New file.
17342         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17343         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17344         (configure.ac): Remove gl_ICONV_H.
17345         (Makefile.am): Remove rule for iconv.h.
17346
17347 2010-03-06  Bruno Haible  <bruno@clisp.org>
17348
17349         More consistent naming of *.m4 files.
17350         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17351         * modules/wctype (Files): Update.
17352
17353         More consistent naming of *.m4 files.
17354         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17355         * modules/wchar (Files): Update.
17356
17357 2010-03-06  Jim Meyering  <meyering@redhat.com>
17358
17359         euidaccess: relax license to LGPLv2+
17360         * modules/euidaccess (License): Relax to LGPLv2+.
17361
17362 2010-03-06  Bruno Haible  <bruno@clisp.org>
17363
17364         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17365         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17366         (Makefile.am): Augment lib_SOURCES instead.
17367
17368 2010-03-04  Jim Meyering  <meyering@redhat.com>
17369
17370         utime: remove obsolete module
17371         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17372         unnecessary for years, and has been marked as obsolete for 10 months.
17373         * modules/utime: Remove file.
17374         * lib/utime.c: Remove file.
17375         * m4/utime.m4: Remove file.
17376         * m4/utimes-null.m4: Remove file.
17377         * doc/posix-functions/utime.texi (utime): Remove reference to
17378         the module.  Move the sole "fixed by gnulib" item into the
17379         "problems not fixed by Gnulib" list.
17380         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17381
17382 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17383
17384         * modules/exit (License): Relax license to LGPLv2+.
17385         (Status): Mark as obsolete.
17386         * NEWS: Mention deprecated 'exit' module.
17387         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17388         of now obsolete 'exit'.
17389
17390 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17391
17392         fts-lgpl: remove unused module
17393         * modules/fts-lgpl: Remove.
17394         * MODULES.html.sh (func_all_modules): Adjust.
17395         * check-module (find_included_lib_files): Adjust.
17396         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17397
17398 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17399
17400         copy-acl: enhance Solaris ACL error handling
17401         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17402         * lib/set-mode-acl.c (qset_acl): Likewise.
17403
17404 2010-03-02  Bruno Haible  <bruno@clisp.org>
17405
17406         spawn: Don't override the system defined values on FreeBSD 8.
17407         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17408         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17409         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17410         if HAVE_POSIX_SPAWN is 1.
17411         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17412
17413 2010-03-01  Bruno Haible  <bruno@clisp.org>
17414
17415         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17416         regarding Automake.
17417
17418 2010-02-25  Bruno Haible  <bruno@clisp.org>
17419
17420         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17421         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17422         setting, not afterwards.
17423         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17424
17425 2010-02-24  Eric Blake  <eblake@redhat.com>
17426
17427         bootstrap, git-version-gen: use timestamp
17428         * build-aux/git-version-gen (scriptversion): Force UTC.
17429         * build-aux/bootstrap (scriptversion): New variable.
17430
17431         bootstrap: allow older git
17432         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17433         older than 1.6.4.  Requested by the libvirt project.
17434
17435 2010-02-23  Eric Blake  <eblake@redhat.com>
17436
17437         warn-on-use: work with old autoconf
17438         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17439         AS_VAR semantics of autoconf 2.60.
17440         Reported by Bruno Haible.
17441
17442         bootstrap: improve some comments
17443         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17444         clarification comments.
17445
17446         gettimeofday: provide correct function
17447         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17448         when replacement is declared, otherwise provide gettimeofday.
17449         Reported by Michael Goffioul.
17450
17451 2010-02-23  Jim Meyering  <meyering@redhat.com>
17452
17453         lib-ignore: relax license to "unlimited", not LGPLv2+
17454         * modules/lib-ignore (License): Relax to "unlimited".
17455
17456 2010-02-23  Jim Meyering  <meyering@redhat.com>
17457
17458         lib-ignore: relax license to LGPLv2+
17459         * modules/lib-ignore (License): Relax to LGPLv2+.
17460
17461 2010-02-22  Eric Blake  <eblake@redhat.com>
17462
17463         lseek: avoid bash 3.2 broken pipe bug
17464         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17465         warning from bash 3.2.
17466         Reported by Ben Pfaff, with analysis from Bruno Haible.
17467
17468         bootstrap: support non-FSF copyright holder
17469         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17470         bootstrap.conf override of COPYRIGHT_HOLDER.
17471         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17472
17473         bootstrap: interoperate with gettext 0.14.1
17474         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17475
17476         bootstrap: allow for alternate submodule location
17477         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17478         hardcoding submodule location.
17479         (gnulib_mk): Allow direct use of Makefile.am.
17480
17481         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17482         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17483         rather than reconfiguring where the submodule points.
17484
17485         gettimeofday: restore support for platforms that lack function
17486         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17487         replacement if function is missing.
17488         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17489         * modules/sys_time (Makefile.am): Substitute it.
17490         * lib/sys_time.in.h (gettimeofday): Check it.
17491         Reported by Michael Goffioul.
17492
17493 2010-02-21  Bruno Haible  <bruno@clisp.org>
17494
17495         * lib/stdio.in.h (obstack_printf): Fix typo.
17496
17497 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17498
17499         vc-list-files: use bzr ls's -R option
17500         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17501         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17502
17503 2010-02-21  Jim Meyering  <meyering@redhat.com>
17504
17505         init.sh: fix EXEEXT shims to work also for names like test-prog
17506         * tests/init.sh: Re-exec a better shell, when needed.
17507         If the current shell lacks support for posix $(...), an init.sh-using
17508         test will now try to find a shell that supports that.  If EXEEXT is
17509         nonempty, we also require support for hyphen-in-alias-name and shell
17510         substitutions like ${var#glob}.  Failure to find such a shell results
17511         in a skipped test.
17512
17513 2010-02-21  Bruno Haible  <bruno@clisp.org>
17514
17515         Really work around around "broken pipe" error message from bash 3.2.
17516         * gnulib-tool (func_reset_sigpipe): Remove function.
17517         (echo): In bash 3.2, define to a function that uses printf.
17518         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17519
17520 2010-02-20  Bruno Haible  <bruno@clisp.org>
17521
17522         Restore support for automake 1.9.6 with autoconf 2.61.
17523         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17524         Reported by James Youngman <jay@gnu.org>.
17525
17526 2010-02-20  Bruno Haible  <bruno@clisp.org>
17527
17528         Improve *printf warning condition.
17529         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17530         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17531         and the function is overridden due to SIGPIPE emulation.
17532
17533 2010-02-20  Bruno Haible  <bruno@clisp.org>
17534
17535         * lib/stdio.in.h: Tweak comments.
17536
17537 2010-02-19  Bruno Haible  <bruno@clisp.org>
17538
17539         Make it easier to find modules. New gnulib-tool option '--find'.
17540         * gnulib-tool: New option --find.
17541         (func_usage): Document it.
17542         (func_sanitize_modulelist): New function, extracted from
17543         func_all_modules.
17544         (func_all_modules): Invoke it.
17545         * doc/gnulib-tool.texi (Which modules?): New node.
17546
17547 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17548
17549         * lib/sys_select.in.h: Provide select replacement even if
17550         sys/select.h exists on a system, for Interix.
17551
17552 2010-02-18  Jim Meyering  <meyering@redhat.com>
17553
17554         init.sh: don't use $(...) just yet
17555         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17556         to accommodate e.g., Solaris' /bin/sh.
17557
17558 2010-02-17  Bruno Haible  <bruno@clisp.org>
17559
17560         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17561         Reported by Ludovic Courtès <ludo@gnu.org>.
17562
17563 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17564
17565         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17566         linking with -lintl.
17567
17568 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17569
17570         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17571         if not provided by the system's netdb.h.  Reported by
17572         ludo@gnu.org (Ludovic Courtès).
17573
17574 2010-02-15  Jim Meyering  <meyering@redhat.com>
17575
17576         init.sh: improve portability and efficiency
17577         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17578         "dummy" in a for loop.
17579         Use '!', not '^' to select the complement of a character set used
17580         in a "case" statement.
17581         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17582         Suggestions from Eric Blake.
17583
17584         init.sh: automatically accommodate programs with the .exe suffix
17585         Automatically arrange for an invocation of "prog" to execute the
17586         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17587         may use the simpler "prog", yet still work when built on a system
17588         that requires specifying the added suffix.
17589         Do this by constructing a function named "prog" that invokes
17590         "prog.exe" for each .exe file in selected directories.
17591         * tests/init.sh (find_exe_basenames_): New function.
17592         (create_exe_shim_functions_): New function.
17593         (path_prepend_): Use it.
17594
17595         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17596         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17597         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17598
17599 2010-02-14  Jim Meyering  <meyering@redhat.com>
17600
17601         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17602         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17603         (sc_prohibit_hash_pjw_without_use): New rule.
17604
17605         maint.mk: allow the default upload destination dir to be overridden
17606         * top/maint.mk (upload_dest_dir_): Define with a default that
17607         preserves the status quo.
17608         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17609         Reported by Peter Simons.
17610
17611         maint.mk: prohibit inclusion of "hash.h" without_use
17612         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17613
17614 2010-02-10  Jim Meyering  <meyering@redhat.com>
17615
17616         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17617         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17618
17619 2010-02-09  Eric Blake  <ebb9@byu.net>
17620         and Bruno Haible  <bruno@clisp.org>
17621
17622         obstack-printf-posix: ensure declaration
17623         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17624         extracted from gl_FUNC_OBSTACK_PRINTF.
17625         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17626         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17627         Likewise.
17628         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17629         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17630         0.
17631
17632 2010-02-08  Bruno Haible  <bruno@clisp.org>
17633
17634         gnulib-tool: Fix typo in 2010-02-07 commit.
17635         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17636         Reported by Eric Blake.
17637
17638 2010-02-07  Bruno Haible  <bruno@clisp.org>
17639
17640         gnulib-tool: Fix up caching patches.
17641         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17642         option --no-cache. Use associative arrays when supported by the shell.
17643         (sed_comments): New variable.
17644         (modcache): Renamed from do_cache.
17645         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17646         abbreviate unnecessarily.
17647         (have_associative): New variable.
17648         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17649         way also for ksh and zsh.
17650         (func_init_sed_convert_to_cache_statements): New function, extracted
17651         from func_cache_lookup_module. Add support for associative arrays.
17652         Don't set the c_MODULE_cached variable here. Ignore all lines before
17653         the first field header. Remove only the final newline, not all trailing
17654         newlines. Support empty fields correctly. Limit the use of 'eval' to
17655         assignments.
17656         (func_get_description, func_get_status, func_get_notice,
17657         func_get_applicability, func_get_filelist, func_get_dependencies,
17658         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17659         func_get_automake_snippet, func_get_include_directive,
17660         func_get_link_directive, func_get_license, func_get_maintainer):
17661         Update documentation. List the unoptimized code first. Add support for
17662         associative arrays. Limit the use of 'eval' to assignments.
17663         (func_get_applicability): Undo stylistic pessimisations.
17664         (func_get_automake_snippet, func_get_include_directive): Reduce code
17665         duplication.
17666         (func_modules_transitive_closure, func_modules_add_dummy,
17667         func_modules_notice, func_modules_to_filelist, func_add_file,
17668         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17669         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17670         func_create_testdir, func_create_megatestdir): Update documentation.
17671
17672 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17673
17674         * gnulib-tool (func_cache_lookup_module): Store the module name
17675         belonging to the cache variable; error out if two different
17676         module names map to the same cache variable name.
17677
17678 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17679
17680         gnulib-tool: Make caching optional.
17681         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17682         Update matching short versions of --no-changelog.
17683         (func_usage): Update.
17684         (sed_extract_cache_prog): Renamed from ...
17685         (sed_extract_prog): ... this; revert to old extraction script.
17686         (func_get_description, func_get_status)
17687         (func_get_notice, func_get_applicability, func_get_filelist)
17688         (func_get_dependencies, func_get_autoconf_early_snippet)
17689         (func_get_autoconf_snippet, func_get_automake_snippet)
17690         (func_get_include_directive, func_get_link_directive)
17691         (func_get_license, func_get_maintainer): If $do_cache is false,
17692         use old, non-caching extraction scripts.
17693         Suggestion by Bruno Haible.
17694
17695 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17696
17697         gnulib-tool: cache module metainformation.
17698         * gnulib-tool (sed_extract_prog): Match newline before each
17699         header, and rewrite header to a shell variable suffix.
17700         (func_cache_var, func_cache_lookup_module): New functions,
17701         to turn a module name into a cache variable prefix, and to
17702         look up and cache module metainformation.
17703         (func_get_description, func_get_status)
17704         (func_get_notice, func_get_applicability, func_get_filelist)
17705         (func_get_dependencies, func_get_autoconf_early_snippet)
17706         (func_get_autoconf_snippet, func_get_automake_snippet)
17707         (func_get_include_directive, func_get_link_directive)
17708         (func_get_license, func_get_maintainer): Use
17709         func_cache_lookup_module.
17710
17711 2010-02-07  Bruno Haible  <bruno@clisp.org>
17712
17713         fnctl: Fix missing dependency.
17714         * modules/fcntl (Depends-on): Add getdtablesize.
17715         Reported by John W. Eaton <jwe@gnu.org>.
17716
17717 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17718
17719         Argp: fix recognition of short alias options.
17720
17721         * lib/argp-parse.c (convert_options): Fix improper use of
17722         `|' between character values.
17723         * tests/test-argp.c (group1_option): New alias option
17724         --read (-r).
17725         (group1_parser): Special handling for 'r'.
17726         (test15): New test case.
17727         (test_fun): Add test15.
17728         * tests/test-argp-2.sh: Update expected --help and --usage
17729         outputs.
17730
17731 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17732
17733         * tests/test-argp.c: Fix indentation.
17734
17735 2010-02-04  Eric Blake  <ebb9@byu.net>
17736
17737         gettimeofday: expose type of second argument
17738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17739         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17740         * tests/test-gettimeofday.c: Use it to silence warning.
17741         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17742         the issue.
17743
17744 2010-02-03  Jim Meyering  <meyering@redhat.com>
17745
17746         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17747         * lib/regcomp.c (TYPE_SIGNED): Define.
17748         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17749
17750         regcomp.c: avoid a new -Wshadow warning
17751         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17752
17753 2010-02-01  Jim Meyering  <meyering@redhat.com>
17754
17755         removing useless parentheses in cpp #define directives
17756         For motivation, see commit c0221df4, "define STREQ(a,b)
17757         consistently, removing useless parentheses"
17758         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17759         * lib/mountlist.c (MNT_IGNORE): Likewise.
17760         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17761
17762 2010-02-01  Eric Blake  <ebb9@byu.net>
17763
17764         sys_time: use link-warning
17765         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17766         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17767         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17768         * modules/sys_time (Depends-on): Add warn-on-use.
17769         (Makefile.am): Always build replacement.
17770         (configure.ac): Update substitutions.
17771         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17772         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17773         bother with SYS_TIME_H.
17774         * modules/gettimeofday (configure.ac): Declare indicator.
17775         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17776         in use.
17777
17778         closein-tests: silence compiler warning
17779         * tests/test-closein.c (main): Ignore fread result.
17780         * modules/closein-tests (Depends-on): Add ignore-value.
17781
17782         tests: silence warning about system return
17783         * tests/test-areadlink-with-size.c (main): Ignore system result.
17784         * tests/test-areadlink.c (main): Likewise.
17785         * tests/test-areadlinkat-with-size.c (main): Likewise.
17786         * tests/test-areadlinkat.c (main): Likewise.
17787         * tests/test-canonicalize-lgpl.c (main): Likewise.
17788         * tests/test-canonicalize.c (main): Likewise.
17789         * tests/test-chown.c (main): Likewise.
17790         * tests/test-fchownat.c (main): Likewise.
17791         * tests/test-fdutimensat.c (main): Likewise.
17792         * tests/test-fstatat.c (main): Likewise.
17793         * tests/test-futimens.c (main): Likewise.
17794         * tests/test-lchown.c (main): Likewise.
17795         * tests/test-link.c (main): Likewise.
17796         * tests/test-linkat.c (main): Likewise.
17797         * tests/test-lstat.c (main): Likewise.
17798         * tests/test-mkdir.c (main): Likewise.
17799         * tests/test-mkdirat.c (main): Likewise.
17800         * tests/test-mkfifo.c (main): Likewise.
17801         * tests/test-mkfifoat.c (main): Likewise.
17802         * tests/test-mknod.c (main): Likewise.
17803         * tests/test-readlink.c (main): Likewise.
17804         * tests/test-remove.c (main): Likewise.
17805         * tests/test-rename.c (main): Likewise.
17806         * tests/test-renameat.c (main): Likewise.
17807         * tests/test-rmdir.c (main): Likewise.
17808         * tests/test-symlink.c (main): Likewise.
17809         * tests/test-symlinkat.c (main): Likewise.
17810         * tests/test-unlink.c (main): Likewise.
17811         * tests/test-unlinkat.c (main): Likewise.
17812         * tests/test-utimens.c (main): Likewise.
17813         * tests/test-utimensat.c (main): Likewise.
17814         * modules/areadlink-tests (Depends-on): Add ignore-value.
17815         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17816         * modules/areadlinkat-tests (Depends-on): Likewise.
17817         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17818         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17819         * modules/canonicalize-tests (Depends-on): Likewise.
17820         * modules/chown-tests (Depends-on): Likewise.
17821         * modules/fdutimensat-tests (Depends-on): Likewise.
17822         * modules/futimens-tests (Depends-on): Likewise.
17823         * modules/lchown-tests (Depends-on): Likewise.
17824         * modules/link-tests (Depends-on): Likewise.
17825         * modules/linkat-tests (Depends-on): Likewise.
17826         * modules/lstat-tests (Depends-on): Likewise.
17827         * modules/mkdir-tests (Depends-on): Likewise.
17828         * modules/mkfifo-tests (Depends-on): Likewise.
17829         * modules/mkfifoat-tests (Depends-on): Likewise.
17830         * modules/mknod-tests (Depends-on): Likewise.
17831         * modules/openat-tests (Depends-on): Likewise.
17832         * modules/readlink-tests (Depends-on): Likewise.
17833         * modules/remove-tests (Depends-on): Likewise.
17834         * modules/rename-tests (Depends-on): Likewise.
17835         * modules/renameat-tests (Depends-on): Likewise.
17836         * modules/rmdir-tests (Depends-on): Likewise.
17837         * modules/symlink-tests (Depends-on): Likewise.
17838         * modules/symlinkat-tests (Depends-on): Likewise.
17839         * modules/unlink-tests (Depends-on): Likewise.
17840         * modules/utimens-tests (Depends-on): Likewise.
17841         * modules/utimensat-tests (Depends-on): Likewise.
17842
17843 2010-01-31  Bruno Haible  <bruno@clisp.org>
17844
17845         Perform the same test for many <math.h> functions.
17846         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17847         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17848         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17849         of gl_MATHFUNC.
17850         * modules/acos (configure.ac): Likewise.
17851         * modules/asin (configure.ac): Likewise.
17852         * modules/atan (configure.ac): Likewise.
17853         * modules/atan2 (configure.ac): Likewise.
17854         * modules/cbrt (configure.ac): Likewise.
17855         * modules/copysign (configure.ac): Likewise.
17856         * modules/cos (configure.ac): Likewise.
17857         * modules/cosh (configure.ac): Likewise.
17858         * modules/erf (configure.ac): Likewise.
17859         * modules/erfc (configure.ac): Likewise.
17860         * modules/exp (configure.ac): Likewise.
17861         * modules/fmod (configure.ac): Likewise.
17862         * modules/hypot (configure.ac): Likewise.
17863         * modules/j0 (configure.ac): Likewise.
17864         * modules/j1 (configure.ac): Likewise.
17865         * modules/jn (configure.ac): Likewise.
17866         * modules/lgamma (configure.ac): Likewise.
17867         * modules/log (configure.ac): Likewise.
17868         * modules/log10 (configure.ac): Likewise.
17869         * modules/log1p (configure.ac): Likewise.
17870         * modules/pow (configure.ac): Likewise.
17871         * modules/remainder (configure.ac): Likewise.
17872         * modules/sin (configure.ac): Likewise.
17873         * modules/sinh (configure.ac): Likewise.
17874         * modules/tan (configure.ac): Likewise.
17875         * modules/tanh (configure.ac): Likewise.
17876         * modules/y0 (configure.ac): Likewise.
17877         * modules/y1 (configure.ac): Likewise.
17878         * modules/yn (configure.ac): Likewise.
17879         Suggested by Paolo Bonzini.
17880
17881 2010-01-31  Bruno Haible  <bruno@clisp.org>
17882
17883         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17884
17885 2010-01-31  Bruno Haible  <bruno@clisp.org>
17886
17887         Work around getdelim() bug on FreeBSD 8.0.
17888         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17889         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17890         not work.
17891         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17892         is 1.
17893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17894         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17895         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17896         a non-zero size.
17897         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17898
17899 2010-01-31  Bruno Haible  <bruno@clisp.org>
17900
17901         Work around getline() bug on FreeBSD 8.0.
17902         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17903         and a non-zero size.
17904         * tests/test-getline.c (main): Likewise.
17905         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17906         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17907
17908 2010-01-28  Eric Blake  <ebb9@byu.net>
17909
17910         regex: fix build failure
17911         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17912         platforms.
17913
17914 2010-01-28  Jim Meyering  <meyering@redhat.com>
17915
17916         regex: do not ignore memory allocation failure
17917         * lib/regex_internal.c (create_cd_newstate): Detect
17918         re_node_set_init_copy failure.   Extracted from glibc commit
17919         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17920
17921         regex: sync more white-space changes from libc
17922         * lib/regex_internal.c: White-space only changes.
17923         * lib/regexec.c: Likewise.
17924
17925         regex: add many uses of __attribute_warn_unused_result__
17926         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17927         * lib/regexec.c: Likewise.
17928         Extracted from a messy glibc commit.
17929
17930         regcomp.c: spelling and merge-artifact from glibc
17931         * lib/regcomp.c: Merge remainder of glibc's
17932         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17933
17934         regcomp.c: sync white-space changes from glibc
17935         * lib/regcomp.c: Merge to accommodate white space
17936         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17937
17938         regcomp.c: do not ignore internal return values
17939         * lib/regcomp.c: Do not ignore internal return values.
17940         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17941         but without its white-space changes and spelling fixes.
17942
17943         regex_internal.h: define __attribute_warn_unused_result__
17944         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17945
17946         maint: add a syntax-check rule to check for vulnerable Makefile.in
17947         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17948
17949 2010-01-27  Jim Meyering  <meyering@redhat.com>
17950
17951         ncftpput-ftp: clean up spaces
17952         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17953         Remove trailing blanks.
17954
17955 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17956
17957         * build-aux/git-version-gen: Fix copyright statement.
17958         * build-aux/gnupload: Likewise.
17959         * tests/test-arcfour.c: Likewise.
17960         * tests/test-arctwo.c: Likewise.
17961         * tests/test-count-one-bits.c: Likewise.
17962         * tests/test-crc.c: Likewise.
17963         * tests/test-des.c: Likewise.
17964         * tests/test-gc-arcfour.c: Likewise.
17965         * tests/test-gc-arctwo.c: Likewise.
17966         * tests/test-gc-des.c: Likewise.
17967         * tests/test-gc-hmac-md5.c: Likewise.
17968         * tests/test-gc-hmac-sha1.c: Likewise.
17969         * tests/test-gc-md2.c: Likewise.
17970         * tests/test-gc-md4.c: Likewise.
17971         * tests/test-gc-md5.c: Likewise.
17972         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17973         * tests/test-gc-rijndael.c: Likewise.
17974         * tests/test-gc-sha1.c: Likewise.
17975         * tests/test-gc.c: Likewise.
17976         * tests/test-gethostname.c: Likewise.
17977         * tests/test-gettimeofday.c: Likewise.
17978         * tests/test-hash.c: Likewise.
17979         * tests/test-hmac-md5.c: Likewise.
17980         * tests/test-hmac-sha1.c: Likewise.
17981         * tests/test-md2.c: Likewise.
17982         * tests/test-md4.c: Likewise.
17983         * tests/test-md5.c: Likewise.
17984         * tests/test-memchr.c: Likewise.
17985         * tests/test-memchr2.c: Likewise.
17986         * tests/test-memcmp.c: Likewise.
17987         * tests/test-memmem.c: Likewise.
17988         * tests/test-memrchr.c: Likewise.
17989         * tests/test-rawmemchr.c: Likewise.
17990         * tests/test-read-file.c: Likewise.
17991         * tests/test-rijndael.c: Likewise.
17992         * tests/test-sockets.c: Likewise.
17993         * tests/test-strchrnul.c: Likewise.
17994         * tests/test-strstr.c: Likewise.
17995         * tests/test-strtod.c: Likewise.
17996         * build-aux/ncftpput-ftp: Likewise.
17997
17998 2010-01-26  Eric Blake  <ebb9@byu.net>
17999
18000         ignore-value: update recommended header name
18001         * modules/ignore-value (Include): Only use <> for headers that
18002         exist in glibc.
18003
18004 2010-01-26  Jim Meyering  <meyering@redhat.com>
18005
18006         test-userspec.c: avoid compiler warnings
18007         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18008         and "initialization discards qualifiers..." warnings.
18009         Put the first "uid" in its own scope, and make char* members "const".
18010
18011 2010-01-25  Bruno Haible  <bruno@clisp.org>
18012
18013         gnulib-tool: Make warning diagnostics consistent.
18014         * gnulib-tool (func_warning): New function.
18015         Use it everywhere where gnulib-tool produces output to stderr and it is
18016         not a fatal error.
18017
18018 2010-01-25  Bruno Haible  <bruno@clisp.org>
18019
18020         Fix test dependencies.
18021         * modules/xstrtol-tests (Depends-on): Add inttypes.
18022         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18023
18024 2010-01-25 Pádraig Brady <P@draigBrady.com>
18025
18026         syntax-check: detect incorrect boolean macro values in config.h
18027         * modules/maintainer-makefile (configure.ac): Parameterize the location
18028         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18029         The logic is from Eric Blake and the location indicated by Jim Meyering.
18030         Note the more natural CONFIG_HEADER name is prohibited by automake
18031         for backwards compatibility reasons.
18032         * top/maint.mk (sc_Wundef_boolean): New rule.
18033
18034 2010-01-25  Jim Meyering  <meyering@redhat.com>
18035
18036         bootstrap: detect MacOS 10.6's shasum, too
18037         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18038         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18039
18040 2010-01-23  Jim Meyering  <meyering@redhat.com>
18041
18042         xstrtoll: new module
18043         * modules/xstrtoll: New file.
18044         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18045         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18046         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18047         ./configure fails if you use this module and lack "long long".
18048         * modules/xstrtoll-tests: New module.
18049         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18050         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18051         new init.sh-based test framework.
18052
18053 2010-01-24  Bruno Haible  <bruno@clisp.org>
18054
18055         Tests for module 'yn'.
18056         * modules/yn-tests: New file.
18057         * tests/test-yn.c: New file.
18058
18059         Tests for module 'y1'.
18060         * modules/y1-tests: New file.
18061         * tests/test-y1.c: New file.
18062
18063         Tests for module 'y0'.
18064         * modules/y0-tests: New file.
18065         * tests/test-y0.c: New file.
18066
18067         Tests for module 'tanh'.
18068         * modules/tanh-tests: New file.
18069         * tests/test-tanh.c: New file.
18070
18071         Tests for module 'tan'.
18072         * modules/tan-tests: New file.
18073         * tests/test-tan.c: New file.
18074
18075         Tests for module 'sqrt'.
18076         * modules/sqrt-tests: New file.
18077         * tests/test-sqrt.c: New file.
18078
18079         Tests for module 'sinh'.
18080         * modules/sinh-tests: New file.
18081         * tests/test-sinh.c: New file.
18082
18083         Tests for module 'sin'.
18084         * modules/sin-tests: New file.
18085         * tests/test-sin.c: New file.
18086
18087         Tests for module 'rint'.
18088         * modules/rint-tests: New file.
18089         * tests/test-rint.c: New file.
18090
18091         Tests for module 'remainder'.
18092         * modules/remainder-tests: New file.
18093         * tests/test-remainder.c: New file.
18094
18095         Tests for module 'pow'.
18096         * modules/pow-tests: New file.
18097         * tests/test-pow.c: New file.
18098
18099         Tests for module 'nextafter'.
18100         * modules/nextafter-tests: New file.
18101         * tests/test-nextafter.c: New file.
18102
18103         Tests for module 'modf'.
18104         * modules/modf-tests: New file.
18105         * tests/test-modf.c: New file.
18106
18107         Tests for module 'logb'.
18108         * modules/logb-tests: New file.
18109         * tests/test-logb.c: New file.
18110
18111         Tests for module 'log1p'.
18112         * modules/log1p-tests: New file.
18113         * tests/test-log1p.c: New file.
18114
18115         Tests for module 'log10'.
18116         * modules/log10-tests: New file.
18117         * tests/test-log10.c: New file.
18118
18119         Tests for module 'log'.
18120         * modules/log-tests: New file.
18121         * tests/test-log.c: New file.
18122
18123         Tests for module 'lgamma'.
18124         * modules/lgamma-tests: New file.
18125         * tests/test-lgamma.c: New file.
18126
18127         Tests for module 'ldexp'.
18128         * modules/ldexp-tests: New file.
18129         * tests/test-ldexp.c: New file.
18130
18131         Tests for module 'jn'.
18132         * modules/jn-tests: New file.
18133         * tests/test-jn.c: New file.
18134
18135         Tests for module 'j1'.
18136         * modules/j1-tests: New file.
18137         * tests/test-j1.c: New file.
18138
18139         Tests for module 'j0'.
18140         * modules/j0-tests: New file.
18141         * tests/test-j0.c: New file.
18142
18143         Tests for module 'hypot'.
18144         * modules/hypot-tests: New file.
18145         * tests/test-hypot.c: New file.
18146
18147         Tests for module 'fmod'.
18148         * modules/fmod-tests: New file.
18149         * tests/test-fmod.c: New file.
18150
18151         Tests for module 'fabs'.
18152         * modules/fabs-tests: New file.
18153         * tests/test-fabs.c: New file.
18154
18155         Tests for module 'exp'.
18156         * modules/exp-tests: New file.
18157         * tests/test-exp.c: New file.
18158
18159         Tests for module 'erfc'.
18160         * modules/erfc-tests: New file.
18161         * tests/test-erfc.c: New file.
18162
18163         Tests for module 'erf'.
18164         * modules/erf-tests: New file.
18165         * tests/test-erf.c: New file.
18166
18167         Tests for module 'cosh'.
18168         * modules/cosh-tests: New file.
18169         * tests/test-cosh.c: New file.
18170
18171         Tests for module 'cos'.
18172         * modules/cos-tests: New file.
18173         * tests/test-cos.c: New file.
18174
18175         Tests for module 'copysign'.
18176         * modules/copysign-tests: New file.
18177         * tests/test-copysign.c: New file.
18178
18179         Tests for module 'cbrt'.
18180         * modules/cbrt-tests: New file.
18181         * tests/test-cbrt.c: New file.
18182
18183         Tests for module 'atan2'.
18184         * modules/atan2-tests: New file.
18185         * tests/test-atan2.c: New file.
18186
18187         Tests for module 'atan'.
18188         * modules/atan-tests: New file.
18189         * tests/test-atan.c: New file.
18190
18191         Tests for module 'asin'.
18192         * modules/asin-tests: New file.
18193         * tests/test-asin.c: New file.
18194
18195         Tests for module 'acos'.
18196         * modules/acos-tests: New file.
18197         * tests/test-acos.c: New file.
18198
18199 2010-01-24  Bruno Haible  <bruno@clisp.org>
18200
18201         Fix tests for common <math.h> functions.
18202         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18203         code snippet that references the function pointer, rather than merely
18204         calling the function. Substitute the FUNC_LIBM variable.
18205         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18206         * modules/acos (configure.ac): Likewise.
18207         * modules/asin (configure.ac): Likewise.
18208         * modules/atan (configure.ac): Likewise.
18209         * modules/atan2 (configure.ac): Likewise.
18210         * modules/cbrt (configure.ac): Likewise.
18211         * modules/copysign (configure.ac): Likewise.
18212         * modules/cos (configure.ac): Likewise.
18213         * modules/cosh (configure.ac): Likewise.
18214         * modules/erf (configure.ac): Likewise.
18215         * modules/erfc (configure.ac): Likewise.
18216         * modules/exp (configure.ac): Likewise.
18217         * modules/fabs (configure.ac): Likewise.
18218         * modules/fmod (configure.ac): Likewise.
18219         * modules/hypot (configure.ac): Likewise.
18220         * modules/j0 (configure.ac): Likewise.
18221         * modules/j1 (configure.ac): Likewise.
18222         * modules/jn (configure.ac): Likewise.
18223         * modules/ldexp (configure.ac): Likewise.
18224         * modules/lgamma (configure.ac): Likewise.
18225         * modules/log (configure.ac): Likewise.
18226         * modules/log10 (configure.ac): Likewise.
18227         * modules/log1p (configure.ac): Likewise.
18228         * modules/logb (configure.ac): Likewise.
18229         * modules/modf (configure.ac): Likewise.
18230         * modules/nextafter (configure.ac): Likewise.
18231         * modules/pow (configure.ac): Likewise.
18232         * modules/remainder (configure.ac): Likewise.
18233         * modules/rint (configure.ac): Likewise.
18234         * modules/sin (configure.ac): Likewise.
18235         * modules/sinh (configure.ac): Likewise.
18236         * modules/tan (configure.ac): Likewise.
18237         * modules/tanh (configure.ac): Likewise.
18238         * modules/y0 (configure.ac): Likewise.
18239         * modules/y1 (configure.ac): Likewise.
18240         * modules/yn (configure.ac): Likewise.
18241
18242 2010-01-24  Bruno Haible  <bruno@clisp.org>
18243
18244         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18245         * tests/test-acosl.c (x): New variable.
18246         (main): Store argument in x and fetch it from x.
18247         * tests/test-asinl.c (x): New variable.
18248         (main): Store argument in x and fetch it from x.
18249         * tests/test-atanl.c (x): New variable.
18250         (main): Store argument in x and fetch it from x.
18251         * tests/test-cosl.c (x): New variable.
18252         (main): Store argument in x and fetch it from x.
18253         * tests/test-expl.c (x): New variable.
18254         (main): Store argument in x and fetch it from x.
18255         * tests/test-logl.c (x): New variable.
18256         (main): Store argument in x and fetch it from x.
18257         * tests/test-sinl.c (x): New variable.
18258         (main): Store argument in x and fetch it from x.
18259         * tests/test-sqrtl.c (x): New variable.
18260         (main): Store argument in x and fetch it from x.
18261         * tests/test-tanl.c (x): New variable.
18262         (main): Store argument in x and fetch it from x.
18263
18264 2010-01-24  Bruno Haible  <bruno@clisp.org>
18265
18266         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18267         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18268         assignments to the initial TESTS_ENVIRONMENT.
18269         * doc/gnulib.texi (Unit test modules): Document it.
18270         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18271         TESTS_ENVIRONMENT.
18272         * modules/btowc-tests (Makefile.am): Likewise.
18273         * modules/c-stack-tests (Makefile.am): Likewise.
18274         * modules/c-strcase-tests (Makefile.am): Likewise.
18275         * modules/copy-file-tests (Makefile.am): Likewise.
18276         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18277         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18278         * modules/mbrtowc-tests (Makefile.am): Likewise.
18279         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18280         * modules/mbscasestr-tests (Makefile.am): Likewise.
18281         * modules/mbschr-tests (Makefile.am): Likewise.
18282         * modules/mbscspn-tests (Makefile.am): Likewise.
18283         * modules/mbsinit-tests (Makefile.am): Likewise.
18284         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18285         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18286         * modules/mbspbrk-tests (Makefile.am): Likewise.
18287         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18288         * modules/mbsrchr-tests (Makefile.am): Likewise.
18289         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18290         * modules/mbsspn-tests (Makefile.am): Likewise.
18291         * modules/mbsstr-tests (Makefile.am): Likewise.
18292         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18293         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18294         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18295         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18296         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18297         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18298         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18299         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18300         * modules/wcrtomb-tests (Makefile.am): Likewise.
18301         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18302         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18303         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18304         assignments from TESTS_ENVIRONMENT.
18305         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18306         augmentation.
18307         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18308         * modules/atexit-tests (Makefile.am): Likewise.
18309         * modules/binary-io-tests (Makefile.am): Likewise.
18310         * modules/closein-tests (Makefile.am): Likewise.
18311         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18312         * modules/exclude-tests (Makefile.am): Likewise.
18313         * modules/fflush-tests (Makefile.am): Likewise.
18314         * modules/fpending-tests (Makefile.am): Likewise.
18315         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18316         * modules/freadahead-tests (Makefile.am): Likewise.
18317         * modules/freadptr-tests (Makefile.am): Likewise.
18318         * modules/freadseek-tests (Makefile.am): Likewise.
18319         * modules/fseek-tests (Makefile.am): Likewise.
18320         * modules/fseeko-tests (Makefile.am): Likewise.
18321         * modules/ftell-tests (Makefile.am): Likewise.
18322         * modules/ftello-tests (Makefile.am): Likewise.
18323         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18324         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18325         * modules/lseek-tests (Makefile.am): Likewise.
18326         * modules/parse-duration-tests (Makefile.am): Likewise.
18327         * modules/perror-tests (Makefile.am): Likewise.
18328         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18329         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18330         * modules/pipe-tests (Makefile.am): Likewise.
18331         * modules/pread-tests (Makefile.am): Likewise.
18332         * modules/printf-posix-tests (Makefile.am): Likewise.
18333         * modules/select-tests (Makefile.am): Likewise.
18334         * modules/sigpipe-tests (Makefile.am): Likewise.
18335         * modules/tsearch-tests (Makefile.am): Likewise.
18336         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18337         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18338         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18339         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18340         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18341         * modules/version-etc-tests (Makefile.am): Likewise.
18342         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18343         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18344         * modules/xalloc-die-tests (Makefile.am): Likewise.
18345         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18346         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18347         * modules/xstrtol-tests (Makefile.am): Likewise.
18348         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18349         * modules/yesno-tests (Makefile.am): Likewise.
18350         Suggested by Jim Meyering.
18351
18352 2010-01-24  Bruno Haible  <bruno@clisp.org>
18353
18354         More documentation.
18355         * doc/gnulib.texi (Writing modules): New chapter.
18356         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18357         the new chapter.
18358
18359 2010-01-24  Jim Meyering  <meyering@redhat.com>
18360
18361         maint.mk: do not prepend "./" after filtering
18362         * top/maint.mk (_prepend_srcdir_prefix): New variable
18363         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18364         "./" when $(srcdir) is ".".
18365
18366         define STREQ(a,b) consistently, removing useless parentheses
18367         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18368         since the only risk is that "a" or "b" contains an unparenthesized
18369         comma, but if either did that, STREQ would have 3 or more arguments.
18370         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18371         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18372         * lib/hash-triple.c (STREQ): Likewise.
18373         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18374         * lib/getugroups.c (STREQ): Likewise.
18375
18376 2010-01-23  Jim Meyering  <meyering@redhat.com>
18377
18378         maint.mk: fix syntax-check in a non-srcdir build directory
18379         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18380         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18381
18382 2010-01-22  Jim Meyering  <meyering@redhat.com>
18383
18384         userspec: add unit tests
18385         * tests/test-userspec.c: New file.
18386         * modules/userspec-tests: Likewise.
18387
18388 2010-01-21  Jim Meyering  <meyering@redhat.com>
18389
18390         maint.mk: handle source file names containing "." robustly
18391         * top/maint.mk (_dot_escaped_srcdir): Define.
18392         (VC_LIST): Use it in LHS of sed substitution.
18393
18394 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18395
18396         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18397         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18398         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18399         from a non-srcdir build.
18400
18401 2010-01-20  Eric Blake  <ebb9@byu.net>
18402
18403         warn-on-use: use instead of link-warning
18404         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18405         * modules/unistd (Depends-on, Makefile.am): Likewise.
18406         * modules/arpa_inet (Depends-on): Replace link-warning with
18407         warn-on-use.
18408         (Makefile.am): Update rules accordingly.
18409         * modules/ctype (Depends-on, Makefile.am): Likewise.
18410         * modules/dirent (Depends-on, Makefile.am): Likewise.
18411         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18412         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18413         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18414         * modules/locale (Depends-on, Makefile.am): Likewise.
18415         * modules/math (Depends-on, Makefile.am): Likewise.
18416         * modules/search (Depends-on, Makefile.am): Likewise.
18417         * modules/signal (Depends-on, Makefile.am): Likewise.
18418         * modules/spawn (Depends-on, Makefile.am): Likewise.
18419         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18420         * modules/string (Depends-on, Makefile.am): Likewise.
18421         * modules/strings (Depends-on, Makefile.am): Likewise.
18422         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18423         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18424         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18425         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18426         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18427         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18428         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18429         * modules/wchar (Depends-on, Makefile.am): Likewise.
18430         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18431         should be poisoned.
18432         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18433         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18434         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18435         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18436         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18437         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18438         * m4/math_h.m4 (gl_MATH_H): Likewise.
18439         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18440         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18441         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18442         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18443         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18444         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18445         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18446         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18447         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18449         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18450         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18451         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18452         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18453         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18454         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18455         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18456         GL_LINK_WARNING.
18457         * lib/ctype.in.h: Likewise.
18458         * lib/dirent.in.h: Likewise.
18459         * lib/fcntl.in.h: Likewise.
18460         * lib/inttypes.in.h: Likewise.
18461         * lib/langinfo.in.h: Likewise.
18462         * lib/locale.in.h: Likewise.
18463         * lib/math.in.h: Likewise.
18464         * lib/search.in.h: Likewise.
18465         * lib/signal.in.h: Likewise.
18466         * lib/spawn.in.h: Likewise.
18467         * lib/stdio.in.h: Likewise.
18468         * lib/stdlib.in.h: Likewise.
18469         * lib/string.in.h: Likewise.
18470         * lib/strings.in.h: Likewise.
18471         * lib/sys_file.in.h: Likewise.
18472         * lib/sys_ioctl.in.h: Likewise.
18473         * lib/sys_select.in.h: Likewise.
18474         * lib/sys_socket.in.h: Likewise.
18475         * lib/sys_stat.in.h: Likewise.
18476         * lib/sys_times.in.h: Likewise.
18477         * lib/sys_utsname.in.h: Likewise.
18478         * lib/unistd.in.h: Likewise.
18479         * lib/wchar.in.h: Likewise.
18480
18481 2010-01-20  Bruno Haible  <bruno@clisp.org>
18482
18483         Avoid duplicate -lm.
18484         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18485         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18486         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18487         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18488         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18489         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18490         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18491         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18492         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18493         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18494         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18495         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18496         Reported by Paolo Bonzini.
18497
18498 2010-01-19  Bruno Haible  <bruno@clisp.org>
18499
18500         langinfo, nl_langinfo: Relicense under LGPLv2+.
18501         * modules/langinfo (License): Change to LGPLv2+.
18502         * modules/nl_langinfo (License): Likewise.
18503         Patch by David Lutterkort <lutter@redhat.com>.
18504
18505 2010-01-19  Bruno Haible  <bruno@clisp.org>
18506
18507         Avoid compilation error with cc on OSF/1 5.1.
18508         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18509         statement, not before.
18510         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18511
18512 2010-01-18  Bruno Haible  <bruno@clisp.org>
18513
18514         Avoid a link error due to the __printf__ symbol.
18515         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18516         and 2.6.x.
18517         (__format__, __printf__): Remove definitions.
18518         * lib/argp-fmtstream.h: Likewise.
18519         * lib/argp.h: Likewise.
18520         * lib/error.h: Likewise.
18521         * lib/vasnprintf.h: Likewise.
18522         * lib/xprintf.h: Likewise.
18523         * lib/xvasprintf.h: Likewise.
18524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18525
18526 2010-01-18  Bruno Haible  <bruno@clisp.org>
18527
18528         Tests for module 'tanl'.
18529         * modules/tanl-tests: New file.
18530         * tests/test-tanl.c: New file.
18531
18532         Tests for module 'sqrtl'.
18533         * modules/sqrtl-tests: New file.
18534         * tests/test-sqrtl.c: New file.
18535
18536         Tests for module 'sinl'.
18537         * modules/sinl-tests: New file.
18538         * tests/test-sinl.c: New file.
18539
18540         Tests for module 'logl'.
18541         * modules/logl-tests: New file.
18542         * tests/test-logl.c: New file.
18543
18544         Tests for module 'expl'.
18545         * modules/expl-tests: New file.
18546         * tests/test-expl.c: New file.
18547
18548         Tests for module 'cosl'.
18549         * modules/cosl-tests: New file.
18550         * tests/test-cosl.c: New file.
18551
18552         Tests for module 'atanl'.
18553         * modules/atanl-tests: New file.
18554         * tests/test-atanl.c: New file.
18555
18556         Tests for module 'asinl'.
18557         * modules/asinl-tests: New file.
18558         * tests/test-asinl.c: New file.
18559
18560         Tests for module 'acosl'.
18561         * modules/acosl-tests: New file.
18562         * tests/test-acosl.c: New file.
18563
18564         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18565         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18566         tanl): Use the standard gnulib idiom.
18567         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18568         * lib/sinl.c: Likewise.
18569         * lib/tanl.c: Don't include trigl.c.
18570         (kernel_tanl): Make static.
18571         * lib/sincosl.c: Include trigl.h first.
18572         * lib/trigl.c: Likewise.
18573         * m4/acosl.m4: New file.
18574         * m4/asinl.m4: New file.
18575         * m4/atanl.m4: New file.
18576         * m4/cosl.m4: New file.
18577         * m4/expl.m4: New file.
18578         * m4/logl.m4: New file.
18579         * m4/sinl.m4: New file.
18580         * m4/sqrtl.m4: New file.
18581         * m4/tanl.m4: New file.
18582         * m4/mathl.m4: Remove file.
18583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18584         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18585         Don't initialize GNULIB_MATHL.
18586         * modules/acosl: New file.
18587         * modules/asinl: New file.
18588         * modules/atanl: New file.
18589         * modules/cosl: New file.
18590         * modules/expl: New file.
18591         * modules/logl: New file.
18592         * modules/sinl: New file.
18593         * modules/sqrtl: New file.
18594         * modules/tanl: New file.
18595         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18596         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18597         substitute GNULIB_MATHL.
18598         * modules/mathl: Rewritten.
18599         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18600         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18601         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18602         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18603         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18604         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18605         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18606         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18607         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18608
18609 2010-01-18  Bruno Haible  <bruno@clisp.org>
18610
18611         sqrt: Make gl_FUNC_SQRT requirable.
18612         * m4/sqrt.m4: New file.
18613         * modules/sqrt (Files): Add it.
18614         (configure.ac): Invoke gl_FUNC_SQRT.
18615
18616 2010-01-18  Bruno Haible  <bruno@clisp.org>
18617
18618         New modules for common <math.h> functions.
18619         * m4/mathfunc.m4: New file.
18620         * modules/acos: New file.
18621         * modules/asin: New file.
18622         * modules/atan: New file.
18623         * modules/atan2: New file.
18624         * modules/cbrt: New file.
18625         * modules/copysign: New file.
18626         * modules/cos: New file.
18627         * modules/cosh: New file.
18628         * modules/erf: New file.
18629         * modules/erfc: New file.
18630         * modules/exp: New file.
18631         * modules/fabs: New file.
18632         * modules/fmod: New file.
18633         * modules/hypot: New file.
18634         * modules/j0: New file.
18635         * modules/j1: New file.
18636         * modules/jn: New file.
18637         * modules/ldexp: New file.
18638         * modules/lgamma: New file.
18639         * modules/log: New file.
18640         * modules/log10: New file.
18641         * modules/log1p: New file.
18642         * modules/logb: New file.
18643         * modules/modf: New file.
18644         * modules/nextafter: New file.
18645         * modules/pow: New file.
18646         * modules/remainder: New file.
18647         * modules/rint: New file.
18648         * modules/sin: New file.
18649         * modules/sinh: New file.
18650         * modules/sqrt: New file.
18651         * modules/tan: New file.
18652         * modules/tanh: New file.
18653         * modules/y0: New file.
18654         * modules/y1: New file.
18655         * modules/yn: New file.
18656         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18657         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18658         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18659         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18660         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18661         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18662         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18663         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18664         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18665         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18666         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18667         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18668         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18669         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18670         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18671         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18672         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18673         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18674         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18675         * doc/posix-functions/log.texi: Mention the 'log' module.
18676         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18677         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18678         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18679         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18680         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18681         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18682         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18683         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18684         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18685         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18686         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18687         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18688         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18689         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18690         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18691         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18692
18693 2010-01-18  Jim Meyering  <meyering@redhat.com>
18694
18695         ignore-value: relax license to LGPLv2+
18696         * modules/ignore-value (License): Relax to LGPLv2+.
18697
18698         getdate: don't leak when TZ contains two or more '"'s
18699         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18700         double quote in TZ after the first one.
18701
18702         readtokens: do not leak internal token_lengths buffer
18703         * lib/readtokens.c (readtokens): Free the local, lengths,
18704         when the supplied "token_lengths" parameter is NULL.
18705
18706 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18707
18708         Fix a couple of missing LIBTHREAD link failures on AIX.
18709         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18710         $(LIBTHREAD).
18711         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18712
18713         Link test-poll against INET_PTON_LIB.
18714         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18715         for inet_pton on Solaris 10.
18716
18717 2010-01-17  Bruno Haible  <bruno@clisp.org>
18718
18719         unistdio/*-sprintf: Fix typo in module description.
18720         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18721         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18722         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18723         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18724         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18725         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18726         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18728
18729 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18730
18731         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18732         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18733         variables in shell case patterns, for AIX and HP-UX ksh.
18734
18735         Split large sed scripts, for HP-UX sed.
18736         * modules/stdio: Split sed scripts around 50 sed commands,
18737         to avoid HP-UX limit of 99 commands, in the near future.
18738         * modules/string: Likewise.
18739         * modules/unistd: Likewise.
18740
18741         gnulib-tool: avoid writing in the current directory.
18742         * gnulib-tool (func_emit_lib_Makefile_am)
18743         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18744         not in the current directory, so concurrent gnulib-tool
18745         instances do not interfere.
18746
18747 2010-01-16  Jim Meyering  <meyering@redhat.com>
18748
18749         doc: update users.txt
18750         * users.txt: Add grep.
18751         (diffutils, gzip): Update URLs.
18752
18753 2010-01-12  Bruno Haible  <bruno@clisp.org>
18754
18755         posix_spawn: Avoid test failure on Cygwin.
18756         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18757         characters.
18758         Reported by Simon Josefsson.
18759
18760 2010-01-12  Bruno Haible  <bruno@clisp.org>
18761
18762         * tests/test-cond.c (main): When skipping the test, show the reason.
18763
18764 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18765
18766         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18767
18768 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18769
18770         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18771         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18772
18773 2010-01-12  Eric Blake  <ebb9@byu.net>
18774
18775         build: guarantee AS_VAR_IF
18776         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18777         (gl_AS_VAR_IF): Move...
18778         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18779         Reported by Simon Josefsson.
18780
18781 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18782
18783         * lib/stdio.in.h: Fix typo.
18784
18785 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18786
18787         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18788         libgpg-error.
18789
18790 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18791
18792         * tests/test-xalloc-die.sh: Use $EXEEXT.
18793
18794 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18795             Bruno Haible  <bruno@clisp.org>
18796
18797         getlogin, getlogin_r: Avoid test failure.
18798         * tests/test-getlogin.c: Include <stdio.h>.
18799         (main): Skip the test when the function fails because stdin is not a
18800         tty.
18801         * tests/test-getlogin_r.c: Include <stdio.h>.
18802         (main): Skip the test when the function fails because stdin is not a
18803         tty.
18804
18805 2010-01-11  Eric Blake  <ebb9@byu.net>
18806
18807         tests: avoid more large file warnings
18808         * tests/test-fflush.c: Avoid warning about ftell use.
18809         * tests/test-fseek.c: Avoid warning about fseek use.
18810
18811 2010-01-10  Bruno Haible  <bruno@clisp.org>
18812
18813         nproc: Work better on Linux when /proc and /sys are not mounted.
18814         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18815         as lower bound when, on glibc/Linux systems,
18816         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18817         Suggested by Pádraig Brady <P@draigbrady.com>.
18818         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18819
18820         nproc: Refactor.
18821         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18822         extracted from num_processors.
18823         (num_processors): Call it.
18824
18825 2010-01-11  Jim Meyering  <meyering@redhat.com>
18826
18827         utimecmp: avoid new warning from upcoming gcc-4.5.0
18828         * lib/utimecmp.c (BILLION): Define using #define rather than an
18829         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18830
18831 2010-01-11  Eric Blake  <ebb9@byu.net>
18832
18833         math: add portability warnings for classification macros
18834         * modules/math (Depends-on): Add warn-on-use.
18835         (Makefile.am): Provide new substitutions.
18836         * m4/math_h.m4 (gl_MATH_H): Require inline.
18837         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18838         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18839         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18840         implement warnings.
18841
18842         unistd: warn on use of environ without module
18843         * modules/unistd (Depends-on): Add warn-on-use.
18844         (Makefile.am): Provide new substitutions.
18845         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18846         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18847
18848         stdio: warn on suspicious uses
18849         * modules/stdio (Depends-on): Add warn-on-use.
18850         (Makefile.am): Provide new substitutions.
18851         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18852         fseeko.
18853         * lib/stdio.in.h (gets): Always warn on use.
18854         (fseek, ftell): Adjust when warnings are issued, and honor
18855         _GL_NO_LARGE_FILES as a way to silence the warning.
18856         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18857         any warning about large file offsets.
18858         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18859         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18860         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18861         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18862         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18863         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18864         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18865         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18866
18867         warn-on-use: new module
18868         * modules/warn-on-use: New file.
18869         * build-aux/warn-on-use.h: Likewise.
18870         * m4/warn-on-use.m4: Likewise.
18871         * MODULES.html.sh (Support for building): Mention it.
18872
18873 2010-01-10  Bruno Haible  <bruno@clisp.org>
18874
18875         Tests for module 'unistr/u32-strdup'.
18876         * modules/unistr/u32-strdup-tests: New file.
18877         * tests/unistr/test-u32-strdup.c: New file.
18878
18879         Tests for module 'unistr/u16-strdup'.
18880         * modules/unistr/u16-strdup-tests: New file.
18881         * tests/unistr/test-u16-strdup.c: New file.
18882
18883         Tests for module 'unistr/u8-strdup'.
18884         * modules/unistr/u8-strdup-tests: New file.
18885         * tests/unistr/test-u8-strdup.c: New file.
18886         * tests/unistr/test-strdup.h: New file.
18887
18888         Tests for module 'unistr/u32-strncmp'.
18889         * modules/unistr/u32-strncmp-tests: New file.
18890         * tests/unistr/test-u32-strncmp.c: New file.
18891
18892         Tests for module 'unistr/u16-strncmp'.
18893         * modules/unistr/u16-strncmp-tests: New file.
18894         * tests/unistr/test-u16-strncmp.c: New file.
18895
18896         Tests for module 'unistr/u8-strncmp'.
18897         * modules/unistr/u8-strncmp-tests: New file.
18898         * tests/unistr/test-u8-strncmp.c: New file.
18899         * tests/unistr/test-strncmp.h: New file.
18900
18901         Tests for module 'unistr/u32-strcoll'.
18902         * modules/unistr/u32-strcoll-tests: New file.
18903         * tests/unistr/test-u32-strcoll.c: New file.
18904
18905         Tests for module 'unistr/u16-strcoll'.
18906         * modules/unistr/u16-strcoll-tests: New file.
18907         * tests/unistr/test-u16-strcoll.c: New file.
18908
18909         Tests for module 'unistr/u8-strcoll'.
18910         * modules/unistr/u8-strcoll-tests: New file.
18911         * tests/unistr/test-u8-strcoll.c: New file.
18912
18913         Tests for module 'unistr/u32-strcmp'.
18914         * modules/unistr/u32-strcmp-tests: New file.
18915         * tests/unistr/test-u32-strcmp.c: New file.
18916         * tests/unistr/test-u32-strcmp.h: New file.
18917
18918         Tests for module 'unistr/u16-strcmp'.
18919         * modules/unistr/u16-strcmp-tests: New file.
18920         * tests/unistr/test-u16-strcmp.c: New file.
18921         * tests/unistr/test-u16-strcmp.h: New file.
18922
18923         Tests for module 'unistr/u8-strcmp'.
18924         * modules/unistr/u8-strcmp-tests: New file.
18925         * tests/unistr/test-u8-strcmp.c: New file.
18926         * tests/unistr/test-u8-strcmp.h: New file.
18927         * tests/unistr/test-strcmp.h: New file.
18928
18929         Tests for module 'unistr/u32-strncat'.
18930         * modules/unistr/u32-strncat-tests: New file.
18931         * tests/unistr/test-u32-strncat.c: New file.
18932
18933         Tests for module 'unistr/u16-strncat'.
18934         * modules/unistr/u16-strncat-tests: New file.
18935         * tests/unistr/test-u16-strncat.c: New file.
18936
18937         Tests for module 'unistr/u8-strncat'.
18938         * modules/unistr/u8-strncat-tests: New file.
18939         * tests/unistr/test-u8-strncat.c: New file.
18940         * tests/unistr/test-strncat.h: New file.
18941
18942         Tests for module 'unistr/u32-strcat'.
18943         * modules/unistr/u32-strcat-tests: New file.
18944         * tests/unistr/test-u32-strcat.c: New file.
18945
18946         Tests for module 'unistr/u16-strcat'.
18947         * modules/unistr/u16-strcat-tests: New file.
18948         * tests/unistr/test-u16-strcat.c: New file.
18949
18950         Tests for module 'unistr/u8-strcat'.
18951         * modules/unistr/u8-strcat-tests: New file.
18952         * tests/unistr/test-u8-strcat.c: New file.
18953         * tests/unistr/test-strcat.h: New file.
18954
18955         Tests for module 'unistr/u32-stpncpy'.
18956         * modules/unistr/u32-stpncpy-tests: New file.
18957         * tests/unistr/test-u32-stpncpy.c: New file.
18958
18959         Tests for module 'unistr/u16-stpncpy'.
18960         * modules/unistr/u16-stpncpy-tests: New file.
18961         * tests/unistr/test-u16-stpncpy.c: New file.
18962
18963         Tests for module 'unistr/u8-stpncpy'.
18964         * modules/unistr/u8-stpncpy-tests: New file.
18965         * tests/unistr/test-u8-stpncpy.c: New file.
18966         * tests/unistr/test-stpncpy.h: New file.
18967
18968         Tests for module 'unistr/u32-strncpy'.
18969         * modules/unistr/u32-strncpy-tests: New file.
18970         * tests/unistr/test-u32-strncpy.c: New file.
18971
18972         Tests for module 'unistr/u16-strncpy'.
18973         * modules/unistr/u16-strncpy-tests: New file.
18974         * tests/unistr/test-u16-strncpy.c: New file.
18975
18976         Tests for module 'unistr/u8-strncpy'.
18977         * modules/unistr/u8-strncpy-tests: New file.
18978         * tests/unistr/test-u8-strncpy.c: New file.
18979         * tests/unistr/test-strncpy.h: New file.
18980
18981         Tests for module 'unistr/u32-stpcpy'.
18982         * modules/unistr/u32-stpcpy-tests: New file.
18983         * tests/unistr/test-u32-stpcpy.c: New file.
18984
18985         Tests for module 'unistr/u16-stpcpy'.
18986         * modules/unistr/u16-stpcpy-tests: New file.
18987         * tests/unistr/test-u16-stpcpy.c: New file.
18988
18989         Tests for module 'unistr/u8-stpcpy'.
18990         * modules/unistr/u8-stpcpy-tests: New file.
18991         * tests/unistr/test-u8-stpcpy.c: New file.
18992         * tests/unistr/test-stpcpy.h: New file.
18993
18994         Tests for module 'unistr/u32-strcpy'.
18995         * modules/unistr/u32-strcpy-tests: New file.
18996         * tests/unistr/test-u32-strcpy.c: New file.
18997
18998         Tests for module 'unistr/u16-strcpy'.
18999         * modules/unistr/u16-strcpy-tests: New file.
19000         * tests/unistr/test-u16-strcpy.c: New file.
19001
19002         Tests for module 'unistr/u8-strcpy'.
19003         * modules/unistr/u8-strcpy-tests: New file.
19004         * tests/unistr/test-u8-strcpy.c: New file.
19005         * tests/unistr/test-strcpy.h: New file.
19006
19007         Tests for module 'unistr/u32-strnlen'.
19008         * modules/unistr/u32-strnlen-tests: New file.
19009         * tests/unistr/test-u32-strnlen.c: New file.
19010
19011         Tests for module 'unistr/u16-strnlen'.
19012         * modules/unistr/u16-strnlen-tests: New file.
19013         * tests/unistr/test-u16-strnlen.c: New file.
19014
19015         Tests for module 'unistr/u8-strnlen'.
19016         * modules/unistr/u8-strnlen-tests: New file.
19017         * tests/unistr/test-u8-strnlen.c: New file.
19018         * tests/unistr/test-strnlen.h: New file.
19019
19020         Tests for module 'unistr/u32-strlen'.
19021         * modules/unistr/u32-strlen-tests: New file.
19022         * tests/unistr/test-u32-strlen.c: New file.
19023
19024         Tests for module 'unistr/u16-strlen'.
19025         * modules/unistr/u16-strlen-tests: New file.
19026         * tests/unistr/test-u16-strlen.c: New file.
19027
19028         Tests for module 'unistr/u8-strlen'.
19029         * modules/unistr/u8-strlen-tests: New file.
19030         * tests/unistr/test-u8-strlen.c: New file.
19031
19032         Tests for module 'unistr/u32-prev'.
19033         * modules/unistr/u32-prev-tests: New file.
19034         * tests/unistr/test-u32-prev.c: New file.
19035
19036         Tests for module 'unistr/u16-prev'.
19037         * modules/unistr/u16-prev-tests: New file.
19038         * tests/unistr/test-u16-prev.c: New file.
19039
19040         Tests for module 'unistr/u8-prev'.
19041         * modules/unistr/u8-prev-tests: New file.
19042         * tests/unistr/test-u8-prev.c: New file.
19043
19044         Tests for module 'unistr/u32-next'.
19045         * modules/unistr/u32-next-tests: New file.
19046         * tests/unistr/test-u32-next.c: New file.
19047
19048         Tests for module 'unistr/u16-next'.
19049         * modules/unistr/u16-next-tests: New file.
19050         * tests/unistr/test-u16-next.c: New file.
19051
19052         Tests for module 'unistr/u8-next'.
19053         * modules/unistr/u8-next-tests: New file.
19054         * tests/unistr/test-u8-next.c: New file.
19055
19056         Tests for module 'unistr/u32-strmbtouc'.
19057         * modules/unistr/u32-strmbtouc-tests: New file.
19058         * tests/unistr/test-u32-strmbtouc.c: New file.
19059
19060         Tests for module 'unistr/u16-strmbtouc'.
19061         * modules/unistr/u16-strmbtouc-tests: New file.
19062         * tests/unistr/test-u16-strmbtouc.c: New file.
19063
19064         Tests for module 'unistr/u8-strmbtouc'.
19065         * modules/unistr/u8-strmbtouc-tests: New file.
19066         * tests/unistr/test-u8-strmbtouc.c: New file.
19067
19068         Tests for module 'unistr/u32-strmblen'.
19069         * modules/unistr/u32-strmblen-tests: New file.
19070         * tests/unistr/test-u32-strmblen.c: New file.
19071
19072         Tests for module 'unistr/u16-strmblen'.
19073         * modules/unistr/u16-strmblen-tests: New file.
19074         * tests/unistr/test-u16-strmblen.c: New file.
19075
19076         Tests for module 'unistr/u8-strmblen'.
19077         * modules/unistr/u8-strmblen-tests: New file.
19078         * tests/unistr/test-u8-strmblen.c: New file.
19079
19080         Tests for module 'unistr/u32-cpy-alloc'.
19081         * modules/unistr/u32-cpy-alloc-tests: New file.
19082         * tests/unistr/test-u32-cpy-alloc.c: New file.
19083
19084         Tests for module 'unistr/u16-cpy-alloc'.
19085         * modules/unistr/u16-cpy-alloc-tests: New file.
19086         * tests/unistr/test-u16-cpy-alloc.c: New file.
19087
19088         Tests for module 'unistr/u8-cpy-alloc'.
19089         * modules/unistr/u8-cpy-alloc-tests: New file.
19090         * tests/unistr/test-u8-cpy-alloc.c: New file.
19091         * tests/unistr/test-cpy-alloc.h: New file.
19092
19093         Tests for module 'unistr/u32-mbsnlen'.
19094         * modules/unistr/u32-mbsnlen-tests: New file.
19095         * tests/unistr/test-u32-mbsnlen.c: New file.
19096
19097         Tests for module 'unistr/u16-mbsnlen'.
19098         * modules/unistr/u16-mbsnlen-tests: New file.
19099         * tests/unistr/test-u16-mbsnlen.c: New file.
19100
19101         Tests for module 'unistr/u8-mbsnlen'.
19102         * modules/unistr/u8-mbsnlen-tests: New file.
19103         * tests/unistr/test-u8-mbsnlen.c: New file.
19104
19105         Tests for module 'unistr/u32-chr'.
19106         * modules/unistr/u32-chr-tests: New file.
19107         * tests/unistr/test-u32-chr.c: New file.
19108
19109         Tests for module 'unistr/u16-chr'.
19110         * modules/unistr/u16-chr-tests: New file.
19111         * tests/unistr/test-u16-chr.c: New file.
19112
19113         Tests for module 'unistr/u8-chr'.
19114         * modules/unistr/u8-chr-tests: New file.
19115         * tests/unistr/test-u8-chr.c: New file.
19116         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19117
19118         Tests for module 'unistr/u32-cmp2'.
19119         * modules/unistr/u32-cmp2-tests: New file.
19120         * tests/unistr/test-u32-cmp2.c: New file.
19121
19122         Tests for module 'unistr/u16-cmp2'.
19123         * modules/unistr/u16-cmp2-tests: New file.
19124         * tests/unistr/test-u16-cmp2.c: New file.
19125
19126         Tests for module 'unistr/u8-cmp2'.
19127         * modules/unistr/u8-cmp2-tests: New file.
19128         * tests/unistr/test-u8-cmp2.c: New file.
19129         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19130
19131         Tests for module 'unistr/u32-cmp'.
19132         * modules/unistr/u32-cmp-tests: New file.
19133         * tests/unistr/test-u32-cmp.c: New file.
19134
19135         Tests for module 'unistr/u16-cmp'.
19136         * modules/unistr/u16-cmp-tests: New file.
19137         * tests/unistr/test-u16-cmp.c: New file.
19138
19139         Tests for module 'unistr/u8-cmp'.
19140         * modules/unistr/u8-cmp-tests: New file.
19141         * tests/unistr/test-u8-cmp.c: New file.
19142         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19143
19144         Tests for module 'unistr/u32-set'.
19145         * modules/unistr/u32-set-tests: New file.
19146         * tests/unistr/test-u32-set.c: New file.
19147
19148         Tests for module 'unistr/u16-set'.
19149         * modules/unistr/u16-set-tests: New file.
19150         * tests/unistr/test-u16-set.c: New file.
19151
19152         Tests for module 'unistr/u8-set'.
19153         * modules/unistr/u8-set-tests: New file.
19154         * tests/unistr/test-u8-set.c: New file.
19155         * tests/unistr/test-set.h: New file.
19156
19157         Tests for module 'unistr/u32-move'.
19158         * modules/unistr/u32-move-tests: New file.
19159         * tests/unistr/test-u32-move.c: New file.
19160
19161         Tests for module 'unistr/u16-move'.
19162         * modules/unistr/u16-move-tests: New file.
19163         * tests/unistr/test-u16-move.c: New file.
19164
19165         Tests for module 'unistr/u8-move'.
19166         * modules/unistr/u8-move-tests: New file.
19167         * tests/unistr/test-u8-move.c: New file.
19168         * tests/unistr/test-move.h: New file.
19169
19170         Tests for module 'unistr/u32-cpy'.
19171         * modules/unistr/u32-cpy-tests: New file.
19172         * tests/unistr/test-u32-cpy.c: New file.
19173
19174         Tests for module 'unistr/u16-cpy'.
19175         * modules/unistr/u16-cpy-tests: New file.
19176         * tests/unistr/test-u16-cpy.c: New file.
19177
19178         Tests for module 'unistr/u8-cpy'.
19179         * modules/unistr/u8-cpy-tests: New file.
19180         * tests/unistr/test-u8-cpy.c: New file.
19181         * tests/unistr/test-cpy.h: New file.
19182
19183 2010-01-09  Bruno Haible  <bruno@clisp.org>
19184
19185         Tests for module 'unistr/u32-uctomb'.
19186         * modules/unistr/u32-uctomb-tests: New file.
19187         * tests/unistr/test-u32-uctomb.c: New file.
19188
19189         Tests for module 'unistr/u16-uctomb'.
19190         * modules/unistr/u16-uctomb-tests: New file.
19191         * tests/unistr/test-u16-uctomb.c: New file.
19192
19193         Tests for module 'unistr/u8-uctomb'.
19194         * modules/unistr/u8-uctomb-tests: New file.
19195         * tests/unistr/test-u8-uctomb.c: New file.
19196
19197         Tests for module 'unistr/u32-mbtoucr'.
19198         * modules/unistr/u32-mbtoucr-tests: New file.
19199         * tests/unistr/test-u32-mbtoucr.c: New file.
19200
19201         Tests for module 'unistr/u16-mbtoucr'.
19202         * modules/unistr/u16-mbtoucr-tests: New file.
19203         * tests/unistr/test-u16-mbtoucr.c: New file.
19204
19205         Tests for module 'unistr/u8-mbtoucr'.
19206         * modules/unistr/u8-mbtoucr-tests: New file.
19207         * tests/unistr/test-u8-mbtoucr.c: New file.
19208
19209         Tests for module 'unistr/u32-mbtouc'.
19210         * modules/unistr/u32-mbtouc-tests: New file.
19211         * tests/unistr/test-u32-mbtouc.c: New file.
19212
19213         Tests for module 'unistr/u16-mbtouc'.
19214         * modules/unistr/u16-mbtouc-tests: New file.
19215         * tests/unistr/test-u16-mbtouc.c: New file.
19216
19217         Tests for module 'unistr/u8-mbtouc'.
19218         * modules/unistr/u8-mbtouc-tests: New file.
19219         * tests/unistr/test-u8-mbtouc.c: New file.
19220
19221         Tests for module 'unistr/u32-mbtouc-unsafe'.
19222         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19223         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19224         * tests/unistr/test-u32-mbtouc.h: New file.
19225
19226         Tests for module 'unistr/u16-mbtouc-unsafe'.
19227         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19228         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19229         * tests/unistr/test-u16-mbtouc.h: New file.
19230
19231         Tests for module 'unistr/u8-mbtouc-unsafe'.
19232         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19233         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19234         * tests/unistr/test-u8-mbtouc.h: New file.
19235
19236         Tests for module 'unistr/u32-mblen'.
19237         * modules/unistr/u32-mblen-tests: New file.
19238         * tests/unistr/test-u32-mblen.c: New file.
19239
19240         Tests for module 'unistr/u16-mblen'.
19241         * modules/unistr/u16-mblen-tests: New file.
19242         * tests/unistr/test-u16-mblen.c: New file.
19243
19244         Tests for module 'unistr/u8-mblen'.
19245         * modules/unistr/u8-mblen-tests: New file.
19246         * tests/unistr/test-u8-mblen.c: New file.
19247
19248         Tests for module 'unistr/u32-to-u16'.
19249         * modules/unistr/u32-to-u16-tests: New file.
19250         * tests/unistr/test-u32-to-u16.c: New file.
19251
19252         Tests for module 'unistr/u32-to-u8'.
19253         * modules/unistr/u32-to-u8-tests: New file.
19254         * tests/unistr/test-u32-to-u8.c: New file.
19255
19256         Tests for module 'unistr/u16-to-u32'.
19257         * modules/unistr/u16-to-u32-tests: New file.
19258         * tests/unistr/test-u16-to-u32.c: New file.
19259
19260         Tests for module 'unistr/u16-to-u8'.
19261         * modules/unistr/u16-to-u8-tests: New file.
19262         * tests/unistr/test-u16-to-u8.c: New file.
19263
19264         Tests for module 'unistr/u8-to-u32'.
19265         * modules/unistr/u8-to-u32-tests: New file.
19266         * tests/unistr/test-u8-to-u32.c: New file.
19267
19268         Tests for module 'unistr/u8-to-u16'.
19269         * modules/unistr/u8-to-u16-tests: New file.
19270         * tests/unistr/test-u8-to-u16.c: New file.
19271
19272         Tests for module 'unistr/u32-check'.
19273         * modules/unistr/u32-check-tests: New file.
19274         * tests/unistr/test-u32-check.c: New file.
19275
19276         Tests for module 'unistr/u16-check'.
19277         * modules/unistr/u16-check-tests: New file.
19278         * tests/unistr/test-u16-check.c: New file.
19279
19280         Tests for module 'unistr/u8-check'.
19281         * modules/unistr/u8-check-tests: New file.
19282         * tests/unistr/test-u8-check.c: New file.
19283
19284         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19285         (category_equals): New function.
19286         (main): Add more tests.
19287         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19288
19289         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19290
19291 2010-01-10  Bruno Haible  <bruno@clisp.org>
19292
19293         unistr/u*-strcoll: Try harder to distinguish different strings.
19294         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19295         compare s1 and s2 to see if they are different.
19296
19297 2010-01-10  Bruno Haible  <bruno@clisp.org>
19298
19299         unistr/u*-stpncpy: Fix the return value.
19300         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19301         description of the return value consistent with stpncpy in glibc.
19302         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19303         written non-NUL unit.
19304
19305 2010-01-10  Bruno Haible  <bruno@clisp.org>
19306
19307         unistr/u*-next: Add missing dependencies.
19308         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19309         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19310         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19311
19312 2010-01-10  Bruno Haible  <bruno@clisp.org>
19313
19314         unistr/u8-mbsnlen: Fix return value for incomplete character.
19315         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19316         u8_mblen.
19317         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19318         Remove unistr/u8-mblen.
19319         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19320         u16_mblen.
19321         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19322         Remove unistr/u16-mblen.
19323
19324 2010-01-10  Bruno Haible  <bruno@clisp.org>
19325
19326         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19327         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19328         Reported by Brian Gough <bjg@gnu.org> and
19329         Chris Clayton <chris2553@googlemail.com> via
19330         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19331
19332 2010-01-09  Bruno Haible  <bruno@clisp.org>
19333
19334         unistr/u16-to-u32: Reject invalid input.
19335         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19336         u16_mbtouc.
19337         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19338         Remove unistr/u16-mbtouc.
19339
19340         unistr/u16-to-u8: Reject invalid input.
19341         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19342         u16_mbtouc.
19343         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19344         Remove unistr/u16-mbtouc.
19345
19346         unistr/u8-to-u32: Reject invalid input.
19347         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19348         u8_mbtouc.
19349         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19350         Remove unistr/u8-mbtouc.
19351
19352         unistr/u8-to-u16: Reject invalid input.
19353         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19354         u8_mbtouc.
19355         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19356         Remove unistr/u8-mbtouc.
19357
19358 2010-01-09  Bruno Haible  <bruno@clisp.org>
19359
19360         Tests for module 'getlogin'.
19361         * modules/getlogin-tests: New file.
19362         * tests/test-getlogin.c: New file.
19363
19364         New module 'getlogin'.
19365         * lib/unistd.in.h (getlogin): New declaration.
19366         * lib/getlogin.c: New file.
19367         * m4/getlogin.m4: New file.
19368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19369         HAVE_GETLOGIN.
19370         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19371         HAVE_GETLOGIN.
19372         * modules/getlogin: New file.
19373         * doc/posix-functions/getlogin.texi: Mention the new module.
19374         Reported by John W. Eaton <jwe@gnu.org>.
19375
19376 2010-01-09  Bruno Haible  <bruno@clisp.org>
19377
19378         getlogin_r: Support for native Windows.
19379         * lib/getlogin_r.c: Include <windows.h>
19380         (getlogin_r): Implement for native Windows.
19381         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19382         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19383         via John W. Eaton <jwe@gnu.org>.
19384
19385 2010-01-09  Bruno Haible  <bruno@clisp.org>
19386
19387         getlogin_r: Small fixes.
19388         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19389         succeeds.
19390         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19391         before testing whether getlogin_r is declared. No need to set
19392         HAVE_DECL_GETLOGIN_R to 1.
19393         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19394
19395 2010-01-09  Bruno Haible  <bruno@clisp.org>
19396
19397         * lib/unistd.in.h (getlogin_r): Add comment.
19398
19399 2010-01-09  Bruno Haible  <bruno@clisp.org>
19400
19401         Tests for module 'getlogin_r'.
19402         * modules/getlogin_r-tests: New file.
19403         * tests/test-getlogin_r.c: New file.
19404
19405 2010-01-09  Jim Meyering  <meyering@redhat.com>
19406
19407         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19408         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19409         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19410
19411 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19412
19413         * lib/dup2.c (rpl_dup2): Improve comment.
19414
19415 2010-01-08  Eric Blake  <ebb9@byu.net>
19416
19417         maint.mk: allow packages to add makefile @@ exceptions
19418         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19419         (sc_makefile_check): Rename...
19420         (sc_makefile_at_at_check): ...to this, and use hook.
19421
19422         dup2: work around mingw bug
19423         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19424         Reported by Simon Josefsson.
19425
19426 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19427
19428         glob: Fix C++ compilation.
19429         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19430         C++.
19431
19432 2010-01-07  Bruno Haible  <bruno@clisp.org>
19433
19434         Fix indentation of wctype.in.h, broken since 2007-01-06.
19435         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19436
19437 2010-01-07  Bruno Haible  <bruno@clisp.org>
19438
19439         mbslen: Avoid collision with system function.
19440         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19441         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19442         * m4/mbslen.m4: New file.
19443         * modules/mbslen (Files): Add it.
19444         (configure.ac): Invoke gl_MBSLEN.
19445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19446         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19447         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19448         via Ian Beckwith <ianb@erislabs.net>.
19449
19450 2010-01-07  Bruno Haible  <bruno@clisp.org>
19451
19452         dirent: Document the last fix.
19453         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19454
19455 2010-01-07  Bruno Haible  <bruno@clisp.org>
19456
19457         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19458         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19459         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19460         va_list are defined.
19461         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19462         Reported by Eric Blake.
19463
19464 2010-01-07  Bruno Haible  <bruno@clisp.org>
19465
19466         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19467         * modules/xlist (Depends-on): Add 'list',
19468         * modules/xoset (Depends-on): Add 'oset'.
19469         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19470
19471 2010-01-07  Bruno Haible  <bruno@clisp.org>
19472
19473         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19474         * doc/posix-functions/strncasecmp.texi: Likewise.
19475
19476 2010-01-07  Bruno Haible  <bruno@clisp.org>
19477
19478         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19479
19480 2010-01-07  John W. Eaton  <jwe@octave.org>
19481
19482         wctype: allow C++ use
19483         * lib/wctype.in.h: Add extern "C" block for C++.
19484
19485 2010-01-06  Eric Blake  <ebb9@byu.net>
19486
19487         maint.mk: detect incorrect GFDL usage
19488         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19489
19490 2010-01-06  Jim Meyering  <meyering@redhat.com>
19491         and Eric Blake  <ebb9@byu.net>
19492
19493         maint.mk: ignore multi-line copyright in NEWS
19494         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19495
19496 2010-01-06  Eric Blake  <ebb9@byu.net>
19497
19498         select: add missing dependency
19499         * modules/select-tests (Depends-on): Move sockets dependency...
19500         * modules/select (Depends-on): ...here.
19501         Reported by Ian Beckwith.
19502
19503         doc: regenerate INSTALL
19504         * doc/INSTALL: Reflect recent autoconf update.
19505         * doc/INSTALL.ISO: Likewise.
19506         * doc/INSTALL.UTF-8: Likewise.
19507
19508         pread: fix compilation on glibc
19509         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19510         Reported by Ralf Wildenhues.
19511
19512         dirent: fix test failure
19513         * lib/dirent.in.h (includes): Guarantee ino_t.
19514         Reported by Ralf Wildenhues.
19515
19516 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19517
19518         linkat, renameat: avoid bad free
19519         * lib/at-func2.c (at_func2): Fix typo.
19520         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19521
19522 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19523
19524         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19525         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19526         to avoid failure of symlink test later.
19527
19528 2010-01-06  Eric Blake  <ebb9@byu.net>
19529
19530         stdio, unistd: guarantee ssize_t
19531         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19532         2008 are exposed when needed.
19533         * lib/stdio.in.h (includes): Likewise.
19534         Reported by Ralf Wildenhues.
19535
19536 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19537
19538         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19539         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19540         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19541
19542 2010-01-06  Jim Meyering  <meyering@redhat.com>
19543
19544         readtokens: this module *does* require xalloc.h
19545         It uses only functions that were omitted by the old syntax-check rule.
19546         * lib/readtokens.c: Include "xalloc.h" once again.
19547         * modules/readtokens (Depends-on): Add xalloc.
19548         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19549
19550 2010-01-05  Eric Blake  <ebb9@byu.net>
19551
19552         maint: support 'make announcement' from a VPATH build
19553         * top/maint.mk (announcement): Look for correct NEWS file.
19554
19555 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19556
19557         utimens (fdutimens): ignore a negative FD, per contract
19558         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19559         when we have a valid file descriptor.  Otherwise, using a brand
19560         new glibc (with just-patched futimens that now fails with EBADF)
19561         would cause this function to fail with ENOSYS.
19562         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19563         See also http://bugzilla.redhat.com/552320.
19564
19565 2010-01-05  Eric Blake  <ebb9@byu.net>
19566
19567         strcase: document what it provides
19568         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19569         gnulib module.
19570         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19571         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19572
19573 2010-01-05  Jim Meyering  <meyering@redhat.com>
19574
19575         maint: remove useless inclusions of "xalloc.h"
19576         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19577         * lib/readtokens.c: Likewise.
19578         * lib/same.c: Likewise.
19579         * modules/getloadavg (Depends-on): Remove xalloc.
19580         * modules/readtokens: Likewise.
19581         * modules/same: Likewise.
19582
19583         maint.mk: include 4 more function names in alloca.h-checking regexp
19584         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19585         regexp.  Before, we would give a false-positive (saying alloca.h
19586         is included unnecessarily) when the only uses involved omitted symbols.
19587
19588         xalloc.h: use consistent formatting
19589         * lib/xalloc.h: Move declarations to start in the first column.
19590
19591 2010-01-05  Eric Blake  <ebb9@byu.net>
19592
19593         mkdir: avoid xalloc
19594         * lib/mkdir.c (includes): Drop unused header.
19595         Reported by John W. Eaton.
19596
19597 2010-01-04  Jim Meyering  <meyering@redhat.com>
19598
19599         nl_langinfo: avoid configure-time syntax error
19600         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19601         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19602         the empty string.  Don't let that provoke a shell syntax error.
19603
19604         regcomp, regexec, fnmatch: avoid array bounds read error
19605         * lib/regcomp.c (build_equiv_class): From glibc:
19606         Use only the low 24 bits of a findidx return value as an index
19607         into the weights array.  Patch by Ulrich Drepper:
19608         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19609         * lib/regexec.c (check_node_accept_bytes): Likewise.
19610         * lib/fnmatch_loop.c (FCT): Likewise.
19611
19612         regcomp: skip collseq lookup when there are no rules
19613         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19614         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19615
19616         regcomp: recognize ill-formed { } expressions
19617         * lib/regcomp.c (parse_dup_op): From glibc:
19618         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19619
19620         regcomp: fix typo in comment
19621         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19622         s/satisfy/satisfies/.
19623
19624         regcomp: sync from glibc: remove dead store
19625         * lib/regcomp.c (duplicate_node_closure): Remove useless
19626         search_duplicated_node call and dead store.
19627
19628         regcomp: sync from glibc; always use nl_langinfo
19629         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19630         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19631         * modules/regex (Depends-on): Add nl_langinfo.
19632
19633 2010-01-04  Eric Blake  <ebb9@byu.net>
19634
19635         fdopendir: fix configure test
19636         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19637
19638 2010-01-01  Bruno Haible  <bruno@clisp.org>
19639
19640         wchar: Remove unused configure check.
19641         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19642
19643 2010-01-01  Eric Blake  <ebb9@byu.net>
19644
19645         headers: make check of system header explicit
19646         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19647         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19648         ourselves.
19649         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19650         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19651         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19652         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19653         internals.
19654         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19655         missing.
19656         Suggested by Bruno Haible.
19657
19658 2010-01-01  Jim Meyering  <meyering@redhat.com>
19659
19660         ChangeLog: tweak to eliminate unnecessary copyright line
19661         * ChangeLog: Remove a copyright line that was mistakenly updated
19662         by today's update-copyright run.  Reported by Eric Blake.
19663
19664         test-update-copyright: don't let envvar setting cause test failure
19665         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19666
19667 2010-01-01  Bruno Haible  <bruno@clisp.org>
19668
19669         localename: Avoid gcc warning.
19670         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19671         function if it is not used.
19672
19673 2010-01-01  Jim Meyering  <meyering@redhat.com>
19674
19675         update nearly all FSF copyright year lists to include 2010
19676         Use the same procedure as for 2009, outlined in
19677         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19678
19679         version-etc: set COPYRIGHT_YEAR to 2010
19680         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19681
19682 2009-12-31  Eric Blake  <ebb9@byu.net>
19683
19684         doc: correct availability of cygwin 1.5.x getopt
19685         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19686         variables.
19687         * doc/posix-functions/opterr.texi (opterr): Likewise.
19688         * doc/posix-functions/optind.texi (optind): Likewise.
19689         * doc/posix-functions/optopt.texi (optopt): Likewise.
19690         * doc/posix-functions/tzname.texi (tzname): Likewise.
19691
19692         openat: update maintainer
19693         * modules/openat (Maintainer): Add myself.
19694
19695         utimens: avoid shadowing warning
19696         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19697         buffers into one, to avoid shadowing, as well as avoiding a
19698         redundant stat.
19699         Reported by Jim Meyering.
19700
19701         test-dup2: avoid compiler warning
19702         * tests/test-dup2.c (is_inheritable): Only define if used.
19703
19704 2010-01-01  Bruno Haible  <bruno@clisp.org>
19705
19706         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19707         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19708         defined, use wctomb instead of wcrtomb.
19709
19710 2010-01-01  Bruno Haible  <bruno@clisp.org>
19711
19712         iconv: Reject native Solaris iconv.
19713         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19714         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19715
19716 2009-12-31  Bruno Haible  <bruno@clisp.org>
19717
19718         * tests/test-signal.c (main): Remove test of 'SIG'.
19719
19720 2009-12-31  Bruno Haible  <bruno@clisp.org>
19721
19722         spawn: Fix incomplete fix.
19723         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19724         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19725         warnings for GNULIB_POSIXCHECK again.
19726         Reported by Eric Blake.
19727
19728 2009-12-31  Bruno Haible  <bruno@clisp.org>
19729
19730         Avoid namespace pollution on glibc systems.
19731         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19732         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19733         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19734         glibc systems.
19735
19736 2009-12-31  Bruno Haible  <bruno@clisp.org>
19737
19738         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19739         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19740         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19741         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19742         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19743         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19744         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19745
19746 2009-12-31  Bruno Haible  <bruno@clisp.org>
19747
19748         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19749         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19750         afterwards.
19751
19752 2009-12-31  Bruno Haible  <bruno@clisp.org>
19753
19754         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19755         SYS_UTSNAME_H.
19756
19757 2009-12-31  Bruno Haible  <bruno@clisp.org>
19758
19759         spawn: Fix misapplied patch.
19760         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19761         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19762         warnings for GNULIB_POSIXCHECK.
19763
19764 2009-12-31  Bruno Haible  <bruno@clisp.org>
19765
19766         times: Update after sys_times changed.
19767         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19768         * modules/times (Files): Add it.
19769         (configure.ac): Invoke gl_FUNC_TIMES.
19770
19771 2009-12-31  Bruno Haible  <bruno@clisp.org>
19772
19773         Use AC_C_INLINE where necessary.
19774         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19775         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19776         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19777         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19778         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19779         * m4/mbiter.m4 (gl_MBITER): Likewise.
19780         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19781         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19782         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19783         * modules/u64 (configure.ac): Likewise.
19784
19785 2009-12-31  Bruno Haible  <bruno@clisp.org>
19786
19787         Use AC_C_INLINE instead of module 'inline' where possible.
19788         * modules/inline (Description): Clarify purpose.
19789         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19790         * modules/count-one-bits (Depends-on): Remove inline.
19791         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19792         * modules/openat (Depends-on): Remove inline.
19793         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19794         instead of depending on module 'inline'.
19795         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19796         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19797         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19798         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19799         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19800         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19801         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19802         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19803         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19804         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19805         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19806         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19807         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19808         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19809         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19810         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19811         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19812         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19813         Likewise.
19814         * modules/unictype/property-ascii-hex-digit (Depends-on,
19815         configure.ac): Likewise.
19816         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19817         configure.ac): Likewise.
19818         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19819         configure.ac): Likewise.
19820         * modules/unictype/property-bidi-block-separator (Depends-on,
19821         configure.ac): Likewise.
19822         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19823         configure.ac): Likewise.
19824         * modules/unictype/property-bidi-common-separator (Depends-on,
19825         configure.ac): Likewise.
19826         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19827         Likewise.
19828         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19829         configure.ac): Likewise.
19830         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19831         configure.ac): Likewise.
19832         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19833         configure.ac): Likewise.
19834         * modules/unictype/property-bidi-european-digit (Depends-on,
19835         configure.ac): Likewise.
19836         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19837         configure.ac): Likewise.
19838         * modules/unictype/property-bidi-left-to-right (Depends-on,
19839         configure.ac): Likewise.
19840         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19841         configure.ac): Likewise.
19842         * modules/unictype/property-bidi-other-neutral (Depends-on,
19843         configure.ac): Likewise.
19844         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19845         Likewise.
19846         * modules/unictype/property-bidi-segment-separator (Depends-on,
19847         configure.ac): Likewise.
19848         * modules/unictype/property-bidi-whitespace (Depends-on,
19849         configure.ac): Likewise.
19850         * modules/unictype/property-combining (Depends-on, configure.ac):
19851         Likewise.
19852         * modules/unictype/property-composite (Depends-on, configure.ac):
19853         Likewise.
19854         * modules/unictype/property-currency-symbol (Depends-on,
19855         configure.ac): Likewise.
19856         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19857         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19858         Likewise.
19859         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19860         configure.ac): Likewise.
19861         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19862         Likewise.
19863         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19864         Likewise.
19865         * modules/unictype/property-extender (Depends-on, configure.ac):
19866         Likewise.
19867         * modules/unictype/property-format-control (Depends-on, configure.ac):
19868         Likewise.
19869         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19870         Likewise.
19871         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19872         Likewise.
19873         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19874         Likewise.
19875         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19876         Likewise.
19877         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19878         Likewise.
19879         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19880         Likewise.
19881         * modules/unictype/property-id-start (Depends-on, configure.ac):
19882         Likewise.
19883         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19884         Likewise.
19885         * modules/unictype/property-ids-binary-operator (Depends-on,
19886         configure.ac): Likewise.
19887         * modules/unictype/property-ids-trinary-operator (Depends-on,
19888         configure.ac): Likewise.
19889         * modules/unictype/property-ignorable-control (Depends-on,
19890         configure.ac): Likewise.
19891         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19892         Likewise.
19893         * modules/unictype/property-join-control (Depends-on, configure.ac):
19894         Likewise.
19895         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19896         Likewise.
19897         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19898         Likewise.
19899         * modules/unictype/property-logical-order-exception (Depends-on,
19900         configure.ac): Likewise.
19901         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19902         Likewise.
19903         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19904         * modules/unictype/property-non-break (Depends-on, configure.ac):
19905         Likewise.
19906         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19907         Likewise.
19908         * modules/unictype/property-numeric (Depends-on, configure.ac):
19909         Likewise.
19910         * modules/unictype/property-other-alphabetic (Depends-on,
19911         configure.ac): Likewise.
19912         * modules/unictype/property-other-default-ignorable-code-point
19913         (Depends-on, configure.ac): Likewise.
19914         * modules/unictype/property-other-grapheme-extend (Depends-on,
19915         configure.ac): Likewise.
19916         * modules/unictype/property-other-id-continue (Depends-on,
19917         configure.ac): Likewise.
19918         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19919         Likewise.
19920         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19921         Likewise.
19922         * modules/unictype/property-other-math (Depends-on, configure.ac):
19923         Likewise.
19924         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19925         Likewise.
19926         * modules/unictype/property-paired-punctuation (Depends-on,
19927         configure.ac): Likewise.
19928         * modules/unictype/property-paragraph-separator (Depends-on,
19929         configure.ac): Likewise.
19930         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19931         Likewise.
19932         * modules/unictype/property-pattern-white-space (Depends-on,
19933         configure.ac): Likewise.
19934         * modules/unictype/property-private-use (Depends-on, configure.ac):
19935         Likewise.
19936         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19937         Likewise.
19938         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19939         Likewise.
19940         * modules/unictype/property-radical (Depends-on, configure.ac):
19941         Likewise.
19942         * modules/unictype/property-sentence-terminal (Depends-on,
19943         configure.ac): Likewise.
19944         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19945         Likewise.
19946         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19947         * modules/unictype/property-terminal-punctuation (Depends-on,
19948         configure.ac): Likewise.
19949         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19950         Likewise.
19951         * modules/unictype/property-unassigned-code-value (Depends-on,
19952         configure.ac): Likewise.
19953         * modules/unictype/property-unified-ideograph (Depends-on,
19954         configure.ac): Likewise.
19955         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19956         Likewise.
19957         * modules/unictype/property-variation-selector (Depends-on,
19958         configure.ac): Likewise.
19959         * modules/unictype/property-white-space (Depends-on, configure.ac):
19960         Likewise.
19961         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19962         Likewise.
19963         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19964         Likewise.
19965         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19966         Likewise.
19967         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19968         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19969         Likewise.
19970
19971 2009-12-31  Bruno Haible  <bruno@clisp.org>
19972
19973         Remove unnecessary AC_C_INLINE invocation.
19974         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19975         since 2009-08-21.
19976
19977 2009-12-31  Jim Meyering  <meyering@redhat.com>
19978
19979         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19980         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19981         With this change, we can all remove the gpg_key_ID = ... definition
19982         from our respective cfg.mk files.
19983
19984         maint.mk: create announcement template in ~/, not in /tmp
19985         * top/maint.mk (emit_upload_commands): Adjust.
19986         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19987         Remove temporary file, .ci-msg.
19988
19989 2009-12-31  Eric Blake  <ebb9@byu.net>
19990
19991         link-warning: always build headers with link warnings
19992         * modules/arpa_inet (Makefile.am): Always build replacement
19993         header.
19994         * modules/ctype (Makefile.am): Likewise.
19995         * modules/dirent (Makefile.am): Likewise.
19996         * modules/inttypes (Makefile.am): Likewise.
19997         * modules/langinfo (Makefile.am): Likewise.
19998         * modules/locale (Makefile.am): Likewise.
19999         * modules/spawn (Makefile.am): Likewise.
20000         * modules/sys_file (Makefile.am): Likewise.
20001         * modules/sys_ioctl (Makefile.am): Likewise.
20002         * modules/sys_select (Makefile.am): Likewise.
20003         * modules/sys_socket (Makefile.am): Likewise.
20004         * modules/sys_times (Makefile.am): Likewise.
20005         * modules/sys_utsname (Makefile.am): Likewise.
20006         * modules/sys_wait (Makefile.am): Likewise.
20007         * modules/wchar (Makefile.am): Likewise.
20008         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20009         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20010         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20011         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20012         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20013         Likewise.
20014         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20015         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20016         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20017         Likewise.
20018         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20019         Likewise.
20020         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20021         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20022         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20023         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20024         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20025         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20026         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20027         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20028         (gl_WCHAR_H_DEFAULTS): Likewise.
20029
20030 2009-12-31  Eric Blake  <ebb9@byu.net>
20031
20032         signal, spawn: use link warnings
20033         * lib/signal.in.h (sigset_t): Make unconditional.
20034         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20035         (sigpending, sigprocmask, sigaction): Add link warnings.
20036         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20037         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20038         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20039         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20040         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20041         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20042         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20043         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20044         (posix_spawn_file_actions_destroy)
20045         (posix_spawn_file_actions_addopen)
20046         (posix_spawn_file_actions_addclose)
20047         (posix_spawn_file_actions_adddup2): Likewise.
20048         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20049         * tests/test-signal.c (main): Enhance test.
20050
20051         spawn: improve wrapper support
20052         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20053         (gl_SPAWN_H_DEFAULTS): New defaults.
20054         * modules/spawn (Makefile.am): Substitute them.
20055         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20056         Only declare if missing or broken.
20057
20058         sys_times, sys_utsname: use include_next
20059         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20060         header.
20061         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20062         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20063         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20064         * modules/sys_times (Depends-on): Add include_next.
20065         (Makefile.am): Substitute additional values.
20066         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20067         * lib/sys_times.in.h (includes): Include native header, if
20068         available.
20069         * lib/sys_utsname.in.h (includes): Likewise.
20070         * tests/test-sys_times.c (main): Enhance test.
20071
20072         fdutimensat: revert prior patch
20073         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20074         utimens.h.
20075         Reported by Bruno Haible.
20076
20077 2009-12-30  Eric Blake  <ebb9@byu.net>
20078
20079         sys_wait: drop link-warning dependency
20080         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20081         link-warning efforts.
20082         * lib/sys_wait.in.h: Likewise.
20083
20084         fdutimensat: remove bogus dependency
20085         * modules/fdutimensat (Depends-on): Drop inline.
20086
20087         unistd: fix typo
20088         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20089
20090 2009-12-30  Bruno Haible  <bruno@clisp.org>
20091
20092         Fix compilation error with Solaris cc.
20093         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20094         * lib/unicase/u16-is-invariant.c: Likewise.
20095         * lib/unicase/u32-is-invariant.c: Likewise.
20096         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20097
20098 2009-12-30  Bruno Haible  <bruno@clisp.org>
20099
20100         Fix test crash.
20101         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20102         locales.
20103         Reported by Simon Josefsson <simon@josefsson.org>.
20104
20105 2009-12-30  Bruno Haible  <bruno@clisp.org>
20106
20107         Fix compilation error on most platforms.
20108         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20109         Reported by Simon Josefsson <simon@josefsson.org>
20110         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20111
20112 2009-12-30  Eric Blake  <ebb9@byu.net>
20113
20114         futimens, utimensat: work around ntfs-3g bug
20115         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20116         a ctime bug is present, and expand workaround to cover ntfs-3g.
20117         * lib/utimens.c (fdutimens, lutimens): Likewise.
20118         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20119         (validate_timespec): Adjust return value.
20120         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20121         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20122         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20123
20124 2009-12-29  Eric Blake  <ebb9@byu.net>
20125
20126         link-warning: make usage consistent
20127         * modules/ctype (Depends-on): Add link-warning.
20128         (Makefile.am): Update rules accordingly.
20129         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20130         * modules/locale (Depends-on, Makefile.am): Likewise.
20131         * modules/sys_file (Makefile.am): Likewise.
20132         * modules/getopt-posix (Makefile.am): Delete unused link warning
20133         efforts.
20134         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20135         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20136         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20137         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20138
20139         stdio: remove unused variables
20140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20141         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20142         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20143
20144         tests: test more substitute headers
20145         * modules/ctype-tests: New file.
20146         * modules/dirent-tests: Likewise.
20147         * modules/spawn-tests: Likewise.
20148         * modules/sys_file-tests: Likewise.
20149         * modules/sys_ioctl-tests: Likewise.
20150         * modules/sys_wait-tests: Likewise.
20151         * tests/test-ctype.c: Likewise.
20152         * tests/test-dirent.c: Likewise.
20153         * tests/test-spawn.c: Likewise.
20154         * tests/test-sys_file.c: Likewise.
20155         * tests/test-sys_ioctl.c: Likewise.
20156         * tests/test-sys_wait.c: Likewise.
20157         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20158         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20159         whether or not flock is in use.
20160
20161         tests: remove License section from module
20162         * modules/arpa_inet-tests: Remove unneeded section.
20163         * modules/byteswap-tests: Likewise.
20164         * modules/ceilf-tests: Likewise.
20165         * modules/ceill-tests: Likewise.
20166         * modules/crypto/des-tests: Likewise.
20167         * modules/crypto/gc-arcfour-tests: Likewise.
20168         * modules/crypto/gc-arctwo-tests: Likewise.
20169         * modules/crypto/gc-des-tests: Likewise.
20170         * modules/crypto/gc-hmac-md5-tests: Likewise.
20171         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20172         * modules/crypto/gc-md2-tests: Likewise.
20173         * modules/crypto/gc-md4-tests: Likewise.
20174         * modules/crypto/gc-md5-tests: Likewise.
20175         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20176         * modules/crypto/gc-rijndael-tests: Likewise.
20177         * modules/crypto/gc-sha1-tests: Likewise.
20178         * modules/crypto/gc-tests: Likewise.
20179         * modules/crypto/md2-tests: Likewise.
20180         * modules/crypto/md4-tests: Likewise.
20181         * modules/fcntl-h-tests: Likewise.
20182         * modules/floorf-tests: Likewise.
20183         * modules/floorl-tests: Likewise.
20184         * modules/frexp-nolibm-tests: Likewise.
20185         * modules/frexp-tests: Likewise.
20186         * modules/frexpl-nolibm-tests: Likewise.
20187         * modules/frexpl-tests: Likewise.
20188         * modules/getaddrinfo-tests: Likewise.
20189         * modules/inttypes-tests: Likewise.
20190         * modules/isfinite-tests: Likewise.
20191         * modules/isinf-tests: Likewise.
20192         * modules/ldexpl-tests: Likewise.
20193         * modules/locale-tests: Likewise.
20194         * modules/math-tests: Likewise.
20195         * modules/netdb-tests: Likewise.
20196         * modules/netinet_in-tests: Likewise.
20197         * modules/printf-frexp-tests: Likewise.
20198         * modules/printf-frexpl-tests: Likewise.
20199         * modules/priv-set-tests: Likewise.
20200         * modules/random_r-tests: Likewise.
20201         * modules/round-tests: Likewise.
20202         * modules/roundf-tests: Likewise.
20203         * modules/roundl-tests: Likewise.
20204         * modules/search-tests: Likewise.
20205         * modules/select-tests: Likewise.
20206         * modules/signal-tests: Likewise.
20207         * modules/stdbool-tests: Likewise.
20208         * modules/stddef-tests: Likewise.
20209         * modules/stdint-tests: Likewise.
20210         * modules/stdio-tests: Likewise.
20211         * modules/stdlib-tests: Likewise.
20212         * modules/string-tests: Likewise.
20213         * modules/strings-tests: Likewise.
20214         * modules/sys_select-tests: Likewise.
20215         * modules/sys_socket-tests: Likewise.
20216         * modules/sys_stat-tests: Likewise.
20217         * modules/sys_time-tests: Likewise.
20218         * modules/sys_utsname-tests: Likewise.
20219         * modules/sysexits-tests: Likewise.
20220         * modules/time-tests: Likewise.
20221         * modules/trunc-tests: Likewise.
20222         * modules/truncf-tests: Likewise.
20223         * modules/truncl-tests: Likewise.
20224         * modules/tsearch-tests: Likewise.
20225         * modules/unistd-tests: Likewise.
20226         * modules/wchar-tests: Likewise.
20227         * modules/wctype-tests: Likewise.
20228
20229         tests: fix license on several tests
20230         * tests/test-des.c: Update to GPLv3+.
20231         * tests/test-flock.c: Likewise.
20232         * tests/test-fsync.c: Likewise.
20233         * tests/test-futimens.h: Likewise.
20234         * tests/test-gc-arcfour.c: Likewise.
20235         * tests/test-gc-arctwo.c: Likewise.
20236         * tests/test-gc-des.c: Likewise.
20237         * tests/test-gc-hmac-md5.c: Likewise.
20238         * tests/test-gc-hmac-sha1.c: Likewise.
20239         * tests/test-gc-md2.c: Likewise.
20240         * tests/test-gc-md4.c: Likewise.
20241         * tests/test-gc-md5.c: Likewise.
20242         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20243         * tests/test-gc-rijndael.c: Likewise.
20244         * tests/test-gc-sha1.c: Likewise.
20245         * tests/test-gc.c: Likewise.
20246         * tests/test-getcwd.c: Likewise.
20247         * tests/test-link.c: Likewise.
20248         * tests/test-link.h: Likewise.
20249         * tests/test-lutimens.h: Likewise.
20250         * tests/test-md2.c: Likewise.
20251         * tests/test-md4.c: Likewise.
20252         * tests/test-mkdir.h: Likewise.
20253         * tests/test-rename.c: Likewise.
20254         * tests/test-rename.h: Likewise.
20255         * tests/test-safe-alloc.c: Likewise.
20256         * tests/test-utimens-common.h: Likewise.
20257         * tests/test-utimens.h: Likewise.
20258
20259         maint: sync license texts
20260         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20261         * doc/gpl-3.0.texi: Revert copyright year update.
20262         * doc/lgpl-3.0.texi: Likewise.
20263
20264 2009-12-29  Jim Meyering  <meyering@redhat.com>
20265
20266         update nearly all FSF copyright year lists to include 2009
20267         The files named by the following are exempted:
20268             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20269               test -f "$dst" && { echo "$dst"; continue; }
20270               test -d "$dst" || continue
20271               echo "$dst"/$(basename "$src")
20272             done > exempt
20273             git ls-files tests/unictype >> exempt
20274         In the remaining files, convert to all-interval notation if
20275         - there is already at least one year interval like 2000-2003
20276         - the file is maintained by me
20277         - the file is in lib/uni*/, where that style already prevails
20278         Otherwise, use update-copyright's default.
20279
20280 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20281         and Eric Blake  <ebb9@byu.net>
20282
20283         tests: don't require debug system() to pass
20284         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20285         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20286         * tests/test-unlink.h (test_unlink_func): Likewise.
20287         * tests/test-fstatat.c (main): ...into callers.
20288         * tests/test-lstat.c (main): Likewise.
20289         * tests/test-rmdir.c (main): Likewise.
20290         * tests/test-unlink.c (main): Likewise.
20291         * tests/test-unlinkat.c (main): Likewise.
20292         * tests/test-areadlink-with-size.c (main): Don't require a
20293         debug-only system call to pass, aiding cross-testing to mingw.
20294         * tests/test-areadlink.c (main): Likewise.
20295         * tests/test-areadlinkat-with-size.c (main): Likewise.
20296         * tests/test-areadlinkat.c (main): Likewise.
20297         * tests/test-canonicalize-lgpl.c (main): Likewise.
20298         * tests/test-canonicalize.c (main): Likewise.
20299         * tests/test-chown.c (main): Likewise.
20300         * tests/test-fchownat.c (main): Likewise.
20301         * tests/test-lchown.c (main): Likewise.
20302         * tests/test-fdutimensat.c (main): Likewise.
20303         * tests/test-futimens.c (main): Likewise.
20304         * tests/test-link.c (main): Likewise.
20305         * tests/test-linkat.c (main): Likewise.
20306         * tests/test-mkdir.c (main): Likewise.
20307         * tests/test-mkdirat.c (main): Likewise.
20308         * tests/test-mkfifo.c (main): Likewise.
20309         * tests/test-mkfifoat.c (main): Likewise.
20310         * tests/test-mknod.c (main): Likewise.
20311         * tests/test-readlink.c (main): Likewise.
20312         * tests/test-remove.c (main): Likewise.
20313         * tests/test-rename.c (main): Likewise.
20314         * tests/test-renameat.c (main): Likewise.
20315         * tests/test-symlink.c (main): Likewise.
20316         * tests/test-symlinkat.c (main): Likewise.
20317         * tests/test-utimens.c (main): Likewise.
20318         * tests/test-utimensat.c (main): Likewise.
20319
20320 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20321
20322         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20323         on $(UNUSED_PARAMETER_H) to avoid build failure.
20324
20325 2009-12-28  Jim Meyering  <meyering@redhat.com>
20326
20327         update-copyright: you may specify a max. line length other than 72
20328         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20329
20330         maint: use consistent FSF copyright line syntax
20331         * lib/posixtm.c: Add missing comma in FSF copyright line.
20332         * lib/posixtm.h: Likewise.
20333         * lib/getugroups.c: Add missing ", Inc.".
20334
20335         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20336         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20337         FSF copyright line.  Remove trailing blanks.
20338
20339 2009-12-28  Eric Blake  <ebb9@byu.net>
20340
20341         test-dup2: reduce dependencies
20342         * modules/cloexec (Configure.ac): Set witness.
20343         * modules/dup2-tests (Depends-on): Drop cloexec.
20344         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20345         not present.
20346         Suggested by Bruno Haible.
20347
20348 2009-12-26  Bruno Haible  <bruno@clisp.org>
20349
20350         Remove an unneeded dependency.
20351         * modules/fseterr (Depends-on): Remove dup2.
20352
20353 2009-12-26  Eric Blake  <ebb9@byu.net>
20354
20355         tests: use macros.h in more places
20356         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20357         (ASSERT_STREAM): Provide default of stderr.
20358         * tests/test-dirent-safer.c: Include macros.h, using alternate
20359         stream for assertions.
20360         * tests/test-dup-safer.c: Likewise.
20361         * tests/test-freopen-safer.c: Likewise.
20362         * tests/test-getopt.c: Likewise.
20363         * tests/test-openat-safer.c: Likewise.
20364         * tests/test-pipe.c: Likewise.
20365         * tests/test-popen-safer.c: Likewise.
20366         * modules/dirent-safer-tests (Files): Include macros.h.
20367         * modules/unistd-safer-tests (Files): Likewise.
20368         * modules/freopen-safer-tests (Files): Likewise.
20369         * modules/getopt-posix-tests (Files): Likewise.
20370         * modules/openat-safer-tests (Files): Likewise.
20371         * modules/pipe-tests (Files): Likewise.
20372
20373 2009-12-26  Bruno Haible  <bruno@clisp.org>
20374
20375         javacomp: Portability fix.
20376         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20377         that it also works on Solaris.
20378
20379 2009-12-26  Bruno Haible  <bruno@clisp.org>
20380
20381         localename: Fix storage allocation of gl_locale_name_thread's result.
20382         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20383         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20384         all platforms that have 'uselocale'.
20385         (gl_locale_name_thread_unsafe): New function, extracted from
20386         gl_locale_name_thread.
20387         (gl_locale_name_thread): Call struniq on all platforms that have
20388         'uselocale'.
20389         * tests/test-localename.c (test_locale_name_thread): Check that the
20390         resulting strings are permanently allocated.
20391         * modules/localename-tests (Depends-on): Add strdup.
20392
20393 2009-12-26  Bruno Haible  <bruno@clisp.org>
20394
20395         * tests/test-localename.c (categories): Fill in the strings.
20396
20397 2009-12-26  Jim Meyering  <meyering@redhat.com>
20398
20399         isdir: complete the removal of m4/isdir.m4
20400         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20401
20402         isdir: clean up, since at least grep still uses it
20403         * lib/isdir.c: Include "isdir.h".
20404         (S_ISDIR): Remove now-unneeded definition.
20405         * modules/isdir (Files): Add lib/isdir.h.
20406         * lib/isdir.h: New file, with declaration.
20407         * m4/isdir.m4: Remove file -- unneeded.
20408
20409 2009-12-25  Bruno Haible  <bruno@clisp.org>
20410
20411         selinux-h: Make generated .h files standalone.
20412         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20413         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20414         * lib/se-selinux.in.h: Likewise.
20415         * modules/selinux-h (Depends-on): Add unused-parameter.
20416         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20417         selinux/selinux.h and selinux/context.h.
20418         Suggested by Eric Blake.
20419
20420 2009-12-25  Bruno Haible  <bruno@clisp.org>
20421
20422         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20423         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20424         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20425         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20426         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20427
20428 2009-12-24  Bruno Haible  <bruno@clisp.org>
20429
20430         openat: Fix warning.
20431         * lib/openat-proc.c: Include <unistd.h>.
20432
20433 2009-12-24  Bruno Haible  <bruno@clisp.org>
20434
20435         New module 'unused-parameter'.
20436         * build-aux/unused-parameter.h: New file, extracted from earlier
20437         gnulib-common.m4.
20438         * modules/unused-parameter: New file.
20439         * lib/unistr.h: Include unused-parameter.h.
20440         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20441         _GL_UNUSED.
20442         * modules/unistr/base (Depends-on): Add unused-parameter.
20443
20444 2009-12-24  Bruno Haible  <bruno@clisp.org>
20445
20446         Add missing dependencies to 'extensions' module.
20447         * m4/extensions.m4: Add comment.
20448         * modules/accept4 (Depends-on): Add extensions.
20449         * modules/dup3 (Depends-on): Likewise.
20450         * modules/fcntl (Depends-on): Likewise.
20451         * modules/futimens (Depends-on): Likewise.
20452         * modules/mknod (Depends-on): Likewise.
20453         * modules/pipe2 (Depends-on): Likewise.
20454         * modules/stat-time (Depends-on): Likewise.
20455         * modules/strcasestr-simple (Depends-on): Likewise.
20456         * modules/strsignal (Depends-on): Likewise.
20457         * modules/utimensat (Depends-on): Likewise.
20458         * modules/localcharset (Depends-on): Likewise. Needed because of
20459         gl_FCNTL_O_FLAGS.
20460         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20461         AC_TYPE_MBSTATE_T.
20462         * modules/wcsnrtombs (Depends-on): Likewise.
20463         * modules/wcsrtombs (Depends-on): Likewise.
20464
20465 2009-12-24  Bruno Haible  <bruno@clisp.org>
20466
20467         binary-io: Avoid gcc warning due to SET_BINARY.
20468         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20469         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20470
20471 2009-12-24  Bruno Haible  <bruno@clisp.org>
20472
20473         Avoid future namespace pollution on glibc systems.
20474         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20475         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20476         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20477         glibc systems.
20478
20479 2009-12-24  Bruno Haible  <bruno@clisp.org>
20480
20481         Refactor common macros used in tests.
20482         * tests/macros.h: New file.
20483         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20484         and/or <stdlib.h>, if appropriate.
20485         (ASSERT, SIZEOF): Remove macros.
20486         * tests/test-areadlink-with-size.c: Likewise.
20487         * tests/test-areadlinkat.c: Likewise.
20488         * tests/test-areadlinkat-with-size.c: Likewise.
20489         * tests/test-argmatch.c: Likewise.
20490         * tests/test-argv-iter.c: Likewise.
20491         * tests/test-array-mergesort.c: Likewise.
20492         * tests/test-array_list.c: Likewise.
20493         * tests/test-array_oset.c: Likewise.
20494         * tests/test-avltree_list.c: Likewise.
20495         * tests/test-avltree_oset.c: Likewise.
20496         * tests/test-avltreehash_list.c: Likewise.
20497         * tests/test-base64.c: Likewise.
20498         * tests/test-binary-io.c: Likewise.
20499         * tests/test-bitrotate.c: Likewise.
20500         * tests/test-btowc.c: Likewise.
20501         * tests/test-byteswap.c: Likewise.
20502         * tests/test-c-ctype.c: Likewise.
20503         * tests/test-c-stack.c: Likewise.
20504         * tests/test-c-strcasecmp.c: Likewise.
20505         * tests/test-c-strcasestr.c: Likewise.
20506         * tests/test-c-strncasecmp.c: Likewise.
20507         * tests/test-c-strstr.c: Likewise.
20508         * tests/test-canonicalize-lgpl.c: Likewise.
20509         * tests/test-canonicalize.c: Likewise.
20510         * tests/test-carray_list.c: Likewise.
20511         * tests/test-ceilf1.c: Likewise.
20512         * tests/test-ceilf2.c: Likewise.
20513         * tests/test-ceill.c: Likewise.
20514         * tests/test-chown.c: Likewise.
20515         * tests/test-cloexec.c: Likewise.
20516         * tests/test-copy-acl.c: Likewise.
20517         * tests/test-copy-file.c: Likewise.
20518         * tests/test-count-one-bits.c: Likewise.
20519         * tests/test-dprintf-posix.c: Likewise.
20520         * tests/test-dup2.c: Likewise.
20521         * tests/test-dup3.c: Likewise.
20522         * tests/test-duplocale.c: Likewise.
20523         * tests/test-fbufmode.c: Likewise.
20524         * tests/test-fchdir.c: Likewise.
20525         * tests/test-fchownat.c: Likewise.
20526         * tests/test-fcntl-safer.c: Likewise.
20527         * tests/test-fcntl.c: Likewise.
20528         * tests/test-fdopendir.c: Likewise.
20529         * tests/test-fdutimensat.c: Likewise.
20530         * tests/test-fflush2.c: Likewise.
20531         * tests/test-file-has-acl.c: Likewise.
20532         * tests/test-filevercmp.c: Likewise.
20533         * tests/test-flock.c: Likewise.
20534         * tests/test-floorf1.c: Likewise.
20535         * tests/test-floorf2.c: Likewise.
20536         * tests/test-floorl.c: Likewise.
20537         * tests/test-fnmatch.c: Likewise.
20538         * tests/test-fopen.h: Likewise.
20539         * tests/test-fpending.c: Likewise.
20540         * tests/test-fprintf-posix.c: Likewise.
20541         * tests/test-fpurge.c: Likewise.
20542         * tests/test-freadable.c: Likewise.
20543         * tests/test-freadahead.c: Likewise.
20544         * tests/test-freading.c: Likewise.
20545         * tests/test-freadptr.c: Likewise.
20546         * tests/test-freadptr2.c: Likewise.
20547         * tests/test-freadseek.c: Likewise.
20548         * tests/test-freopen.c: Likewise.
20549         * tests/test-frexp.c: Likewise.
20550         * tests/test-frexpl.c: Likewise.
20551         * tests/test-fseek.c: Likewise.
20552         * tests/test-fseeko.c: Likewise.
20553         * tests/test-fstatat.c: Likewise.
20554         * tests/test-fstrcmp.c: Likewise.
20555         * tests/test-fsync.c: Likewise.
20556         * tests/test-ftell.c: Likewise.
20557         * tests/test-ftello.c: Likewise.
20558         * tests/test-func.c: Likewise.
20559         * tests/test-futimens.c: Likewise.
20560         * tests/test-fwritable.c: Likewise.
20561         * tests/test-fwriting.c: Likewise.
20562         * tests/test-getcwd.c: Likewise.
20563         * tests/test-getdate.c: Likewise.
20564         * tests/test-getdelim.c: Likewise.
20565         * tests/test-getdtablesize.c: Likewise.
20566         * tests/test-getgroups.c: Likewise.
20567         * tests/test-getline.c: Likewise.
20568         * tests/test-getndelim2.c: Likewise.
20569         * tests/test-glob.c: Likewise.
20570         * tests/test-hash.c: Likewise.
20571         * tests/test-i-ring.c: Likewise.
20572         * tests/test-iconv-utf.c: Likewise.
20573         * tests/test-iconv.c: Likewise.
20574         * tests/test-idpriv-drop.c: Likewise.
20575         * tests/test-idpriv-droptemp.c: Likewise.
20576         * tests/test-inet_ntop.c: Likewise.
20577         * tests/test-inet_pton.c: Likewise.
20578         * tests/test-isblank.c: Likewise.
20579         * tests/test-isfinite.c: Likewise.
20580         * tests/test-isinf.c: Likewise.
20581         * tests/test-isnan.c: Likewise.
20582         * tests/test-isnand.h: Likewise.
20583         * tests/test-isnanf.h: Likewise.
20584         * tests/test-isnanl.h: Likewise.
20585         * tests/test-lchown.c: Likewise.
20586         * tests/test-ldexpl.c: Likewise.
20587         * tests/test-link.c: Likewise.
20588         * tests/test-linkat.c: Likewise.
20589         * tests/test-linked_list.c: Likewise.
20590         * tests/test-linkedhash_list.c: Likewise.
20591         * tests/test-localename.c: Likewise.
20592         * tests/test-lseek.c: Likewise.
20593         * tests/test-lstat.c: Likewise.
20594         * tests/test-mbmemcasecmp.c: Likewise.
20595         * tests/test-mbmemcasecoll.c: Likewise.
20596         * tests/test-mbrtowc.c: Likewise.
20597         * tests/test-mbscasecmp.c: Likewise.
20598         * tests/test-mbscasestr1.c: Likewise.
20599         * tests/test-mbscasestr2.c: Likewise.
20600         * tests/test-mbscasestr3.c: Likewise.
20601         * tests/test-mbscasestr4.c: Likewise.
20602         * tests/test-mbschr.c: Likewise.
20603         * tests/test-mbscspn.c: Likewise.
20604         * tests/test-mbsinit.c: Likewise.
20605         * tests/test-mbsncasecmp.c: Likewise.
20606         * tests/test-mbsnrtowcs.c: Likewise.
20607         * tests/test-mbspbrk.c: Likewise.
20608         * tests/test-mbspcasecmp.c: Likewise.
20609         * tests/test-mbsrchr.c: Likewise.
20610         * tests/test-mbsrtowcs.c: Likewise.
20611         * tests/test-mbsspn.c: Likewise.
20612         * tests/test-mbsstr1.c: Likewise.
20613         * tests/test-mbsstr2.c: Likewise.
20614         * tests/test-mbsstr3.c: Likewise.
20615         * tests/test-memchr.c: Likewise.
20616         * tests/test-memchr2.c: Likewise.
20617         * tests/test-memcmp.c: Likewise.
20618         * tests/test-memmem.c: Likewise.
20619         * tests/test-memrchr.c: Likewise.
20620         * tests/test-mkdir.c: Likewise.
20621         * tests/test-mkdirat.c: Likewise.
20622         * tests/test-mkfifo.c: Likewise.
20623         * tests/test-mkfifoat.c: Likewise.
20624         * tests/test-mknod.c: Likewise.
20625         * tests/test-nanosleep.c: Likewise.
20626         * tests/test-nl_langinfo.c: Likewise.
20627         * tests/test-obstack-printf.c: Likewise.
20628         * tests/test-open.c: Likewise.
20629         * tests/test-openat.c: Likewise.
20630         * tests/test-pipe-filter-gi1.c: Likewise.
20631         * tests/test-pipe-filter-gi2-main.c: Likewise.
20632         * tests/test-pipe-filter-ii1.c: Likewise.
20633         * tests/test-pipe-filter-ii2-main.c: Likewise.
20634         * tests/test-pipe2.c: Likewise.
20635         * tests/test-popen.h: Likewise.
20636         * tests/test-posixtm.c: Likewise.
20637         * tests/test-pread.c: Likewise.
20638         * tests/test-printf-frexp.c: Likewise.
20639         * tests/test-printf-frexpl.c: Likewise.
20640         * tests/test-printf-posix.c: Likewise.
20641         * tests/test-priv-set.c: Likewise.
20642         * tests/test-quotearg.c: Likewise.
20643         * tests/test-random_r.c: Likewise.
20644         * tests/test-rawmemchr.c: Likewise.
20645         * tests/test-rbtree_list.c: Likewise.
20646         * tests/test-rbtree_oset.c: Likewise.
20647         * tests/test-rbtreehash_list.c: Likewise.
20648         * tests/test-readlink.c: Likewise.
20649         * tests/test-remove.c: Likewise.
20650         * tests/test-rename.c: Likewise.
20651         * tests/test-renameat.c: Likewise.
20652         * tests/test-rmdir.c: Likewise.
20653         * tests/test-round1.c: Likewise.
20654         * tests/test-roundf1.c: Likewise.
20655         * tests/test-roundl.c: Likewise.
20656         * tests/test-safe-alloc.c: Likewise.
20657         * tests/test-sameacls.c: Likewise.
20658         * tests/test-set-mode-acl.c: Likewise.
20659         * tests/test-setenv.c: Likewise.
20660         * tests/test-sigaction.c: Likewise.
20661         * tests/test-signbit.c: Likewise.
20662         * tests/test-sleep.c: Likewise.
20663         * tests/test-snprintf-posix.c: Likewise.
20664         * tests/test-snprintf.c: Likewise.
20665         * tests/test-sprintf-posix.c: Likewise.
20666         * tests/test-stat-time.c: Likewise.
20667         * tests/test-stat.c: Likewise.
20668         * tests/test-strcasestr.c: Likewise.
20669         * tests/test-strchrnul.c: Likewise.
20670         * tests/test-strerror.c: Likewise.
20671         * tests/test-striconv.c: Likewise.
20672         * tests/test-striconveh.c: Likewise.
20673         * tests/test-striconveha.c: Likewise.
20674         * tests/test-strsignal.c: Likewise.
20675         * tests/test-strstr.c: Likewise.
20676         * tests/test-strtod.c: Likewise.
20677         * tests/test-strverscmp.c: Likewise.
20678         * tests/test-symlink.c: Likewise.
20679         * tests/test-symlinkat.c: Likewise.
20680         * tests/test-trunc1.c: Likewise.
20681         * tests/test-trunc2.c: Likewise.
20682         * tests/test-truncf1.c: Likewise.
20683         * tests/test-truncf2.c: Likewise.
20684         * tests/test-truncl.c: Likewise.
20685         * tests/test-uname.c: Likewise.
20686         * tests/test-unlink.c: Likewise.
20687         * tests/test-unlinkat.c: Likewise.
20688         * tests/test-unsetenv.c: Likewise.
20689         * tests/test-usleep.c: Likewise.
20690         * tests/test-utimens.c: Likewise.
20691         * tests/test-utimensat.c: Likewise.
20692         * tests/test-vasnprintf-posix.c: Likewise.
20693         * tests/test-vasnprintf-posix2.c: Likewise.
20694         * tests/test-vasnprintf.c: Likewise.
20695         * tests/test-vasprintf-posix.c: Likewise.
20696         * tests/test-vasprintf.c: Likewise.
20697         * tests/test-vdprintf-posix.c: Likewise.
20698         * tests/test-vfprintf-posix.c: Likewise.
20699         * tests/test-vprintf-posix.c: Likewise.
20700         * tests/test-vsnprintf-posix.c: Likewise.
20701         * tests/test-vsnprintf.c: Likewise.
20702         * tests/test-vsprintf-posix.c: Likewise.
20703         * tests/test-wcrtomb.c: Likewise.
20704         * tests/test-wcsnrtombs.c: Likewise.
20705         * tests/test-wcsrtombs.c: Likewise.
20706         * tests/test-wctype.c: Likewise.
20707         * tests/test-wcwidth.c: Likewise.
20708         * tests/test-xfprintf-posix.c: Likewise.
20709         * tests/test-xmemdup0.c: Likewise.
20710         * tests/test-xprintf-posix.c: Likewise.
20711         * tests/test-xvasprintf.c: Likewise.
20712         * tests/unicase/test-locale-language.c: Likewise.
20713         * tests/unicase/test-mapping-part1.h: Likewise.
20714         * tests/unicase/test-predicate-part1.h: Likewise.
20715         * tests/unicase/test-u8-casecmp.c: Likewise.
20716         * tests/unicase/test-u8-casecoll.c: Likewise.
20717         * tests/unicase/test-u8-casefold.c: Likewise.
20718         * tests/unicase/test-u8-is-cased.c: Likewise.
20719         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20720         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20721         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20722         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20723         * tests/unicase/test-u8-tolower.c: Likewise.
20724         * tests/unicase/test-u8-totitle.c: Likewise.
20725         * tests/unicase/test-u8-toupper.c: Likewise.
20726         * tests/unicase/test-u16-casecmp.c: Likewise.
20727         * tests/unicase/test-u16-casecoll.c: Likewise.
20728         * tests/unicase/test-u16-casefold.c: Likewise.
20729         * tests/unicase/test-u16-is-cased.c: Likewise.
20730         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20731         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20732         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20733         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20734         * tests/unicase/test-u16-tolower.c: Likewise.
20735         * tests/unicase/test-u16-totitle.c: Likewise.
20736         * tests/unicase/test-u16-toupper.c: Likewise.
20737         * tests/unicase/test-u32-casecmp.c: Likewise.
20738         * tests/unicase/test-u32-casecoll.c: Likewise.
20739         * tests/unicase/test-u32-casefold.c: Likewise.
20740         * tests/unicase/test-u32-is-cased.c: Likewise.
20741         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20742         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20743         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20744         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20745         * tests/unicase/test-u32-tolower.c: Likewise.
20746         * tests/unicase/test-u32-totitle.c: Likewise.
20747         * tests/unicase/test-u32-toupper.c: Likewise.
20748         * tests/unicase/test-ulc-casecmp.c: Likewise.
20749         * tests/unicase/test-ulc-casecoll.c: Likewise.
20750         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20751         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20752         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20753         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20754         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20755         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20756         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20757         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20758         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20759         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20760         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20761         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20762         * tests/unictype/test-bidi_byname.c: Likewise.
20763         * tests/unictype/test-bidi_name.c: Likewise.
20764         * tests/unictype/test-bidi_of.c: Likewise.
20765         * tests/unictype/test-bidi_test.c: Likewise.
20766         * tests/unictype/test-block_list.c: Likewise.
20767         * tests/unictype/test-block_of.c: Likewise.
20768         * tests/unictype/test-block_test.c: Likewise.
20769         * tests/unictype/test-categ_and.c: Likewise.
20770         * tests/unictype/test-categ_and_not.c: Likewise.
20771         * tests/unictype/test-categ_byname.c: Likewise.
20772         * tests/unictype/test-categ_name.c: Likewise.
20773         * tests/unictype/test-categ_none.c: Likewise.
20774         * tests/unictype/test-categ_of.c: Likewise.
20775         * tests/unictype/test-categ_or.c: Likewise.
20776         * tests/unictype/test-categ_test_withtable.c: Likewise.
20777         * tests/unictype/test-combining.c: Likewise.
20778         * tests/unictype/test-decdigit.c: Likewise.
20779         * tests/unictype/test-digit.c: Likewise.
20780         * tests/unictype/test-mirror.c: Likewise.
20781         * tests/unictype/test-numeric.c: Likewise.
20782         * tests/unictype/test-pr_byname.c: Likewise.
20783         * tests/unictype/test-pr_test.c: Likewise.
20784         * tests/unictype/test-predicate-part1.h: Likewise.
20785         * tests/unictype/test-scripts.c: Likewise.
20786         * tests/unictype/test-sy_c_ident.c: Likewise.
20787         * tests/unictype/test-sy_java_ident.c: Likewise.
20788         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20789         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20790         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20791         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20792         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20793         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20794         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20795         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20796         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20797         * tests/uninorm/test-compat-decomposition.c: Likewise.
20798         * tests/uninorm/test-composition.c: Likewise.
20799         * tests/uninorm/test-decomposing-form.c: Likewise.
20800         * tests/uninorm/test-decomposition.c: Likewise.
20801         * tests/uninorm/test-u8-nfc.c: Likewise.
20802         * tests/uninorm/test-u8-nfd.c: Likewise.
20803         * tests/uninorm/test-u8-nfkc.c: Likewise.
20804         * tests/uninorm/test-u8-nfkd.c: Likewise.
20805         * tests/uninorm/test-u8-normcmp.c: Likewise.
20806         * tests/uninorm/test-u8-normcoll.c: Likewise.
20807         * tests/uninorm/test-u16-nfc.c: Likewise.
20808         * tests/uninorm/test-u16-nfd.c: Likewise.
20809         * tests/uninorm/test-u16-nfkc.c: Likewise.
20810         * tests/uninorm/test-u16-nfkd.c: Likewise.
20811         * tests/uninorm/test-u16-normcmp.c: Likewise.
20812         * tests/uninorm/test-u16-normcoll.c: Likewise.
20813         * tests/uninorm/test-u32-nfc.c: Likewise.
20814         * tests/uninorm/test-u32-nfd.c: Likewise.
20815         * tests/uninorm/test-u32-nfkc.c: Likewise.
20816         * tests/uninorm/test-u32-nfkd.c: Likewise.
20817         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20818         * tests/uninorm/test-u32-normcmp.c: Likewise.
20819         * tests/uninorm/test-u32-normcoll.c: Likewise.
20820         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20821         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20822         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20823         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20824         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20825         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20826         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20827         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20828         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20829         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20830         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20831         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20832         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20833         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20834         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20835         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20836         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20837         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20838         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20839         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20840         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20841         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20842         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20843         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20844         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20845         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20846         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20847         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20848         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20849         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20850         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20851         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20852         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20853         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20854         * tests/uniwidth/test-u8-width.c: Likewise.
20855         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20856         * tests/uniwidth/test-u16-width.c: Likewise.
20857         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20858         * tests/uniwidth/test-u32-width.c: Likewise.
20859         * tests/uniwidth/test-uc_width.c: Likewise.
20860         * tests/uniwidth/test-uc_width2.c: Likewise.
20861         * modules/acl-tests (Files): Add tests/macros.h.
20862         * modules/areadlink-tests (Files): Likewise.
20863         * modules/areadlink-with-size-tests (Files): Likewise.
20864         * modules/areadlinkat-tests (Files): Likewise.
20865         * modules/areadlinkat-with-size-tests (Files): Likewise.
20866         * modules/argmatch-tests (Files): Likewise.
20867         * modules/argv-iter-tests (Files): Likewise.
20868         * modules/array-list-tests (Files): Likewise.
20869         * modules/array-mergesort-tests (Files): Likewise.
20870         * modules/array-oset-tests (Files): Likewise.
20871         * modules/avltree-list-tests (Files): Likewise.
20872         * modules/avltree-oset-tests (Files): Likewise.
20873         * modules/avltreehash-list-tests (Files): Likewise.
20874         * modules/base64-tests (Files): Likewise.
20875         * modules/binary-io-tests (Files): Likewise.
20876         * modules/bitrotate-tests (Files): Likewise.
20877         * modules/btowc-tests (Files): Likewise.
20878         * modules/byteswap-tests (Files): Likewise.
20879         * modules/c-ctype-tests (Files): Likewise.
20880         * modules/c-stack-tests (Files): Likewise.
20881         * modules/c-strcase-tests (Files): Likewise.
20882         * modules/c-strcasestr-tests (Files): Likewise.
20883         * modules/c-strstr-tests (Files): Likewise.
20884         * modules/canonicalize-lgpl-tests (Files): Likewise.
20885         * modules/canonicalize-tests (Files): Likewise.
20886         * modules/carray-list-tests (Files): Likewise.
20887         * modules/ceilf-tests (Files): Likewise.
20888         * modules/ceill-tests (Files): Likewise.
20889         * modules/chown-tests (Files): Likewise.
20890         * modules/cloexec-tests (Files): Likewise.
20891         * modules/copy-file-tests (Files): Likewise.
20892         * modules/count-one-bits-tests (Files): Likewise.
20893         * modules/dprintf-posix-tests (Files): Likewise.
20894         * modules/dup2-tests (Files): Likewise.
20895         * modules/dup3-tests (Files): Likewise.
20896         * modules/duplocale-tests (Files): Likewise.
20897         * modules/fbufmode-tests (Files): Likewise.
20898         * modules/fchdir-tests (Files): Likewise.
20899         * modules/fcntl-safer-tests (Files): Likewise.
20900         * modules/fcntl-tests (Files): Likewise.
20901         * modules/fdopendir-tests (Files): Likewise.
20902         * modules/fdutimensat-tests (Files): Likewise.
20903         * modules/fflush-tests (Files): Likewise.
20904         * modules/filevercmp-tests (Files): Likewise.
20905         * modules/flock-tests (Files): Likewise.
20906         * modules/floorf-tests (Files): Likewise.
20907         * modules/floorl-tests (Files): Likewise.
20908         * modules/fnmatch-tests (Files): Likewise.
20909         * modules/fopen-safer-tests (Files): Likewise.
20910         * modules/fopen-tests (Files): Likewise.
20911         * modules/fpending-tests (Files): Likewise.
20912         * modules/fprintf-posix-tests (Files): Likewise.
20913         * modules/fpurge-tests (Files): Likewise.
20914         * modules/freadable-tests (Files): Likewise.
20915         * modules/freadahead-tests (Files): Likewise.
20916         * modules/freading-tests (Files): Likewise.
20917         * modules/freadptr-tests (Files): Likewise.
20918         * modules/freadseek-tests (Files): Likewise.
20919         * modules/freopen-tests (Files): Likewise.
20920         * modules/frexp-nolibm-tests (Files): Likewise.
20921         * modules/frexp-tests (Files): Likewise.
20922         * modules/frexpl-nolibm-tests (Files): Likewise.
20923         * modules/frexpl-tests (Files): Likewise.
20924         * modules/fseek-tests (Files): Likewise.
20925         * modules/fseeko-tests (Files): Likewise.
20926         * modules/fstrcmp-tests (Files): Likewise.
20927         * modules/fsync-tests (Files): Likewise.
20928         * modules/ftell-tests (Files): Likewise.
20929         * modules/ftello-tests (Files): Likewise.
20930         * modules/func-tests (Files): Likewise.
20931         * modules/futimens-tests (Files): Likewise.
20932         * modules/fwritable-tests (Files): Likewise.
20933         * modules/fwriting-tests (Files): Likewise.
20934         * modules/getcwd-tests (Files): Likewise.
20935         * modules/getdate-tests (Files): Likewise.
20936         * modules/getdelim-tests (Files): Likewise.
20937         * modules/getdtablesize-tests (Files): Likewise.
20938         * modules/getgroups-tests (Files): Likewise.
20939         * modules/getline-tests (Files): Likewise.
20940         * modules/getndelim2-tests (Files): Likewise.
20941         * modules/glob-tests (Files): Likewise.
20942         * modules/hash-tests (Files): Likewise.
20943         * modules/i-ring-tests (Files): Likewise.
20944         * modules/iconv-tests (Files): Likewise.
20945         * modules/iconv_open-utf-tests (Files): Likewise.
20946         * modules/idpriv-drop-tests (Files): Likewise.
20947         * modules/idpriv-droptemp-tests (Files): Likewise.
20948         * modules/inet_ntop-tests (Files): Likewise.
20949         * modules/inet_pton-tests (Files): Likewise.
20950         * modules/isblank-tests (Files): Likewise.
20951         * modules/isfinite-tests (Files): Likewise.
20952         * modules/isinf-tests (Files): Likewise.
20953         * modules/isnan-tests (Files): Likewise.
20954         * modules/isnand-nolibm-tests (Files): Likewise.
20955         * modules/isnand-tests (Files): Likewise.
20956         * modules/isnanf-nolibm-tests (Files): Likewise.
20957         * modules/isnanf-tests (Files): Likewise.
20958         * modules/isnanl-nolibm-tests (Files): Likewise.
20959         * modules/isnanl-tests (Files): Likewise.
20960         * modules/lchown-tests (Files): Likewise.
20961         * modules/ldexpl-tests (Files): Likewise.
20962         * modules/link-tests (Files): Likewise.
20963         * modules/linkat-tests (Files): Likewise.
20964         * modules/linked-list-tests (Files): Likewise.
20965         * modules/linkedhash-list-tests (Files): Likewise.
20966         * modules/localename-tests (Files): Likewise.
20967         * modules/lseek-tests (Files): Likewise.
20968         * modules/lstat-tests (Files): Likewise.
20969         * modules/mbmemcasecmp-tests (Files): Likewise.
20970         * modules/mbmemcasecoll-tests (Files): Likewise.
20971         * modules/mbrtowc-tests (Files): Likewise.
20972         * modules/mbscasecmp-tests (Files): Likewise.
20973         * modules/mbscasestr-tests (Files): Likewise.
20974         * modules/mbschr-tests (Files): Likewise.
20975         * modules/mbscspn-tests (Files): Likewise.
20976         * modules/mbsinit-tests (Files): Likewise.
20977         * modules/mbsncasecmp-tests (Files): Likewise.
20978         * modules/mbsnrtowcs-tests (Files): Likewise.
20979         * modules/mbspbrk-tests (Files): Likewise.
20980         * modules/mbspcasecmp-tests (Files): Likewise.
20981         * modules/mbsrchr-tests (Files): Likewise.
20982         * modules/mbsrtowcs-tests (Files): Likewise.
20983         * modules/mbsspn-tests (Files): Likewise.
20984         * modules/mbsstr-tests (Files): Likewise.
20985         * modules/memchr-tests (Files): Likewise.
20986         * modules/memchr2-tests (Files): Likewise.
20987         * modules/memcmp-tests (Files): Likewise.
20988         * modules/memmem-tests (Files): Likewise.
20989         * modules/memrchr-tests (Files): Likewise.
20990         * modules/mkdir-tests (Files): Likewise.
20991         * modules/mkfifo-tests (Files): Likewise.
20992         * modules/mkfifoat-tests (Files): Likewise.
20993         * modules/mknod-tests (Files): Likewise.
20994         * modules/nanosleep-tests (Files): Likewise.
20995         * modules/nl_langinfo-tests (Files): Likewise.
20996         * modules/obstack-printf-tests (Files): Likewise.
20997         * modules/open-tests (Files): Likewise.
20998         * modules/openat-tests (Files): Likewise.
20999         * modules/pipe-filter-gi-tests (Files): Likewise.
21000         * modules/pipe-filter-ii-tests (Files): Likewise.
21001         * modules/pipe2-tests (Files): Likewise.
21002         * modules/popen-safer-tests (Files): Likewise.
21003         * modules/popen-tests (Files): Likewise.
21004         * modules/posixtm-tests (Files): Likewise.
21005         * modules/pread-tests (Files): Likewise.
21006         * modules/printf-frexp-tests (Files): Likewise.
21007         * modules/printf-frexpl-tests (Files): Likewise.
21008         * modules/printf-posix-tests (Files): Likewise.
21009         * modules/priv-set-tests (Files): Likewise.
21010         * modules/quotearg-tests (Files): Likewise.
21011         * modules/random_r-tests (Files): Likewise.
21012         * modules/rawmemchr-tests (Files): Likewise.
21013         * modules/rbtree-list-tests (Files): Likewise.
21014         * modules/rbtree-oset-tests (Files): Likewise.
21015         * modules/rbtreehash-list-tests (Files): Likewise.
21016         * modules/readlink-tests (Files): Likewise.
21017         * modules/remove-tests (Files): Likewise.
21018         * modules/rename-tests (Files): Likewise.
21019         * modules/renameat-tests (Files): Likewise.
21020         * modules/rmdir-tests (Files): Likewise.
21021         * modules/round-tests (Files): Likewise.
21022         * modules/roundf-tests (Files): Likewise.
21023         * modules/roundl-tests (Files): Likewise.
21024         * modules/safe-alloc-tests (Files): Likewise.
21025         * modules/setenv-tests (Files): Likewise.
21026         * modules/sigaction-tests (Files): Likewise.
21027         * modules/signbit-tests (Files): Likewise.
21028         * modules/sleep-tests (Files): Likewise.
21029         * modules/snprintf-posix-tests (Files): Likewise.
21030         * modules/snprintf-tests (Files): Likewise.
21031         * modules/sprintf-posix-tests (Files): Likewise.
21032         * modules/stat-tests (Files): Likewise.
21033         * modules/stat-time-tests (Files): Likewise.
21034         * modules/strcasestr-tests (Files): Likewise.
21035         * modules/strchrnul-tests (Files): Likewise.
21036         * modules/strerror-tests (Files): Likewise.
21037         * modules/striconv-tests (Files): Likewise.
21038         * modules/striconveh-tests (Files): Likewise.
21039         * modules/striconveha-tests (Files): Likewise.
21040         * modules/strsignal-tests (Files): Likewise.
21041         * modules/strstr-tests (Files): Likewise.
21042         * modules/strtod-tests (Files): Likewise.
21043         * modules/strverscmp-tests (Files): Likewise.
21044         * modules/symlink-tests (Files): Likewise.
21045         * modules/symlinkat-tests (Files): Likewise.
21046         * modules/trunc-tests (Files): Likewise.
21047         * modules/truncf-tests (Files): Likewise.
21048         * modules/truncl-tests (Files): Likewise.
21049         * modules/uname-tests (Files): Likewise.
21050         * modules/unicase/cased-tests (Files): Likewise.
21051         * modules/unicase/ignorable-tests (Files): Likewise.
21052         * modules/unicase/locale-language-tests (Files): Likewise.
21053         * modules/unicase/tolower-tests (Files): Likewise.
21054         * modules/unicase/totitle-tests (Files): Likewise.
21055         * modules/unicase/toupper-tests (Files): Likewise.
21056         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21057         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21058         * modules/unicase/u8-casefold-tests (Files): Likewise.
21059         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21060         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21061         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21062         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21063         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21064         * modules/unicase/u8-tolower-tests (Files): Likewise.
21065         * modules/unicase/u8-totitle-tests (Files): Likewise.
21066         * modules/unicase/u8-toupper-tests (Files): Likewise.
21067         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21068         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21069         * modules/unicase/u16-casefold-tests (Files): Likewise.
21070         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21071         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21072         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21073         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21074         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21075         * modules/unicase/u16-tolower-tests (Files): Likewise.
21076         * modules/unicase/u16-totitle-tests (Files): Likewise.
21077         * modules/unicase/u16-toupper-tests (Files): Likewise.
21078         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21079         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21080         * modules/unicase/u32-casefold-tests (Files): Likewise.
21081         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21082         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21083         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21084         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21085         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21086         * modules/unicase/u32-tolower-tests (Files): Likewise.
21087         * modules/unicase/u32-totitle-tests (Files): Likewise.
21088         * modules/unicase/u32-toupper-tests (Files): Likewise.
21089         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21090         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21091         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21092         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21093         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21094         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21095         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21096         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21097         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21098         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21099         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21100         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21101         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21102         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21103         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21104         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21105         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21106         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21107         * modules/unictype/block-list-tests (Files): Likewise.
21108         * modules/unictype/block-of-tests (Files): Likewise.
21109         * modules/unictype/block-test-tests (Files): Likewise.
21110         * modules/unictype/category-C-tests (Files): Likewise.
21111         * modules/unictype/category-Cc-tests (Files): Likewise.
21112         * modules/unictype/category-Cf-tests (Files): Likewise.
21113         * modules/unictype/category-Cn-tests (Files): Likewise.
21114         * modules/unictype/category-Co-tests (Files): Likewise.
21115         * modules/unictype/category-Cs-tests (Files): Likewise.
21116         * modules/unictype/category-L-tests (Files): Likewise.
21117         * modules/unictype/category-Ll-tests (Files): Likewise.
21118         * modules/unictype/category-Lm-tests (Files): Likewise.
21119         * modules/unictype/category-Lo-tests (Files): Likewise.
21120         * modules/unictype/category-Lt-tests (Files): Likewise.
21121         * modules/unictype/category-Lu-tests (Files): Likewise.
21122         * modules/unictype/category-M-tests (Files): Likewise.
21123         * modules/unictype/category-Mc-tests (Files): Likewise.
21124         * modules/unictype/category-Me-tests (Files): Likewise.
21125         * modules/unictype/category-Mn-tests (Files): Likewise.
21126         * modules/unictype/category-N-tests (Files): Likewise.
21127         * modules/unictype/category-Nd-tests (Files): Likewise.
21128         * modules/unictype/category-Nl-tests (Files): Likewise.
21129         * modules/unictype/category-No-tests (Files): Likewise.
21130         * modules/unictype/category-P-tests (Files): Likewise.
21131         * modules/unictype/category-Pc-tests (Files): Likewise.
21132         * modules/unictype/category-Pd-tests (Files): Likewise.
21133         * modules/unictype/category-Pe-tests (Files): Likewise.
21134         * modules/unictype/category-Pf-tests (Files): Likewise.
21135         * modules/unictype/category-Pi-tests (Files): Likewise.
21136         * modules/unictype/category-Po-tests (Files): Likewise.
21137         * modules/unictype/category-Ps-tests (Files): Likewise.
21138         * modules/unictype/category-S-tests (Files): Likewise.
21139         * modules/unictype/category-Sc-tests (Files): Likewise.
21140         * modules/unictype/category-Sk-tests (Files): Likewise.
21141         * modules/unictype/category-Sm-tests (Files): Likewise.
21142         * modules/unictype/category-So-tests (Files): Likewise.
21143         * modules/unictype/category-Z-tests (Files): Likewise.
21144         * modules/unictype/category-Zl-tests (Files): Likewise.
21145         * modules/unictype/category-Zp-tests (Files): Likewise.
21146         * modules/unictype/category-Zs-tests (Files): Likewise.
21147         * modules/unictype/category-and-not-tests (Files): Likewise.
21148         * modules/unictype/category-and-tests (Files): Likewise.
21149         * modules/unictype/category-byname-tests (Files): Likewise.
21150         * modules/unictype/category-name-tests (Files): Likewise.
21151         * modules/unictype/category-none-tests (Files): Likewise.
21152         * modules/unictype/category-of-tests (Files): Likewise.
21153         * modules/unictype/category-or-tests (Files): Likewise.
21154         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21155         * modules/unictype/combining-class-tests (Files): Likewise.
21156         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21157         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21158         * modules/unictype/ctype-blank-tests (Files): Likewise.
21159         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21160         * modules/unictype/ctype-digit-tests (Files): Likewise.
21161         * modules/unictype/ctype-graph-tests (Files): Likewise.
21162         * modules/unictype/ctype-lower-tests (Files): Likewise.
21163         * modules/unictype/ctype-print-tests (Files): Likewise.
21164         * modules/unictype/ctype-punct-tests (Files): Likewise.
21165         * modules/unictype/ctype-space-tests (Files): Likewise.
21166         * modules/unictype/ctype-upper-tests (Files): Likewise.
21167         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21168         * modules/unictype/decimal-digit-tests (Files): Likewise.
21169         * modules/unictype/digit-tests (Files): Likewise.
21170         * modules/unictype/mirror-tests (Files): Likewise.
21171         * modules/unictype/numeric-tests (Files): Likewise.
21172         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21173         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21174         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21175         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21176         Likewise.
21177         * modules/unictype/property-bidi-block-separator-tests (Files):
21178         Likewise.
21179         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21180         Likewise.
21181         * modules/unictype/property-bidi-common-separator-tests (Files):
21182         Likewise.
21183         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21184         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21185         Likewise.
21186         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21187         Likewise.
21188         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21189         Likewise.
21190         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21191         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21192         Likewise.
21193         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21194         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21195         Likewise.
21196         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21197         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21198         * modules/unictype/property-bidi-segment-separator-tests (Files):
21199         Likewise.
21200         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21201         * modules/unictype/property-byname-tests (Files): Likewise.
21202         * modules/unictype/property-combining-tests (Files): Likewise.
21203         * modules/unictype/property-composite-tests (Files): Likewise.
21204         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21205         * modules/unictype/property-dash-tests (Files): Likewise.
21206         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21207         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21208         Likewise.
21209         * modules/unictype/property-deprecated-tests (Files): Likewise.
21210         * modules/unictype/property-diacritic-tests (Files): Likewise.
21211         * modules/unictype/property-extender-tests (Files): Likewise.
21212         * modules/unictype/property-format-control-tests (Files): Likewise.
21213         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21214         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21215         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21216         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21217         * modules/unictype/property-hyphen-tests (Files): Likewise.
21218         * modules/unictype/property-id-continue-tests (Files): Likewise.
21219         * modules/unictype/property-id-start-tests (Files): Likewise.
21220         * modules/unictype/property-ideographic-tests (Files): Likewise.
21221         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21222         * modules/unictype/property-ids-trinary-operator-tests (Files):
21223         Likewise.
21224         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21225         * modules/unictype/property-iso-control-tests (Files): Likewise.
21226         * modules/unictype/property-join-control-tests (Files): Likewise.
21227         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21228         * modules/unictype/property-line-separator-tests (Files): Likewise.
21229         * modules/unictype/property-logical-order-exception-tests (Files):
21230         Likewise.
21231         * modules/unictype/property-lowercase-tests (Files): Likewise.
21232         * modules/unictype/property-math-tests (Files): Likewise.
21233         * modules/unictype/property-non-break-tests (Files): Likewise.
21234         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21235         * modules/unictype/property-numeric-tests (Files): Likewise.
21236         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21237         * modules/unictype/property-other-default-ignorable-code-point-tests
21238         (Files): Likewise.
21239         * modules/unictype/property-other-grapheme-extend-tests (Files):
21240         Likewise.
21241         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21242         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21243         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21244         * modules/unictype/property-other-math-tests (Files): Likewise.
21245         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21246         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21247         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21248         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21249         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21250         * modules/unictype/property-private-use-tests (Files): Likewise.
21251         * modules/unictype/property-punctuation-tests (Files): Likewise.
21252         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21253         * modules/unictype/property-radical-tests (Files): Likewise.
21254         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21255         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21256         * modules/unictype/property-space-tests (Files): Likewise.
21257         * modules/unictype/property-terminal-punctuation-tests (Files):
21258         Likewise.
21259         * modules/unictype/property-test-tests (Files): Likewise.
21260         * modules/unictype/property-titlecase-tests (Files): Likewise.
21261         * modules/unictype/property-unassigned-code-value-tests (Files):
21262         Likewise.
21263         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21264         * modules/unictype/property-uppercase-tests (Files): Likewise.
21265         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21266         * modules/unictype/property-white-space-tests (Files): Likewise.
21267         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21268         * modules/unictype/property-xid-start-tests (Files): Likewise.
21269         * modules/unictype/property-zero-width-tests (Files): Likewise.
21270         * modules/unictype/scripts-tests (Files): Likewise.
21271         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21272         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21273         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21274         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21275         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21276         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21277         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21278         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21279         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21280         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21281         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21282         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21283         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21284         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21285         * modules/uninorm/composition-tests (Files): Likewise.
21286         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21287         * modules/uninorm/decomposition-tests (Files): Likewise.
21288         * modules/uninorm/filter-tests (Files): Likewise.
21289         * modules/uninorm/nfc-tests (Files): Likewise.
21290         * modules/uninorm/nfd-tests (Files): Likewise.
21291         * modules/uninorm/nfkc-tests (Files): Likewise.
21292         * modules/uninorm/nfkd-tests (Files): Likewise.
21293         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21294         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21295         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21296         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21297         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21298         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21299         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21300         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21301         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21302         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21303         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21304         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21305         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21306         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21307         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21308         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21309         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21310         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21311         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21312         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21313         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21314         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21315         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21316         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21317         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21318         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21319         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21320         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21321         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21322         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21323         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21324         * modules/uniwidth/u8-width-tests (Files): Likewise.
21325         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21326         * modules/uniwidth/u16-width-tests (Files): Likewise.
21327         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21328         * modules/uniwidth/u32-width-tests (Files): Likewise.
21329         * modules/uniwidth/width-tests (Files): Likewise.
21330         * modules/unlink-tests (Files): Likewise.
21331         * modules/unsetenv-tests (Files): Likewise.
21332         * modules/usleep-tests (Files): Likewise.
21333         * modules/utimens-tests (Files): Likewise.
21334         * modules/utimensat-tests (Files): Likewise.
21335         * modules/vasnprintf-posix-tests (Files): Likewise.
21336         * modules/vasnprintf-tests (Files): Likewise.
21337         * modules/vasprintf-posix-tests (Files): Likewise.
21338         * modules/vasprintf-tests (Files): Likewise.
21339         * modules/vdprintf-posix-tests (Files): Likewise.
21340         * modules/vfprintf-posix-tests (Files): Likewise.
21341         * modules/vprintf-posix-tests (Files): Likewise.
21342         * modules/vsnprintf-posix-tests (Files): Likewise.
21343         * modules/vsnprintf-tests (Files): Likewise.
21344         * modules/vsprintf-posix-tests (Files): Likewise.
21345         * modules/wcrtomb-tests (Files): Likewise.
21346         * modules/wcsnrtombs-tests (Files): Likewise.
21347         * modules/wcsrtombs-tests (Files): Likewise.
21348         * modules/wctype-tests (Files): Likewise.
21349         * modules/wcwidth-tests (Files): Likewise.
21350         * modules/xmemdup0-tests (Files): Likewise.
21351         * modules/xprintf-posix-tests (Files): Likewise.
21352         * modules/xvasprintf-tests (Files): Likewise.
21353
21354 2009-12-24  Eric Blake  <ebb9@byu.net>
21355
21356         test-nanosleep: fix typo
21357         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21358         patch.
21359         Reported by Bruno Haible.
21360
21361 2009-12-24  Bruno Haible  <bruno@clisp.org>
21362
21363         Reduce namespace pollution on glibc systems.
21364         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21365         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21366         systems.
21367         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21368         <getopt.h> on glibc systems.
21369         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21370         systems.
21371         * lib/fcntl.c: Include <unistd.h> here instead.
21372
21373 2009-12-24  Bruno Haible  <bruno@clisp.org>
21374
21375         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21376
21377 2009-12-24  Eric Blake  <ebb9@byu.net>
21378
21379         tests: add signature checks
21380         * tests/signature.h (SIGNATURE_CHECK): New file.
21381         * modules/atexit-tests (Files): Use it.
21382         * modules/btowc-tests (Files): Likewise.
21383         * modules/canonicalize-lgpl-tests (Files): Likewise.
21384         * modules/ceilf-tests (Files): Likewise.
21385         * modules/ceill-tests (Files): Likewise.
21386         * modules/chown-tests (Files): Likewise.
21387         * modules/dprintf-posix-tests (Files): Likewise.
21388         * modules/dup2-tests (Files): Likewise.
21389         * modules/dup3-tests (Files): Likewise.
21390         * modules/duplocale-tests (Files): Likewise.
21391         * modules/fchdir-tests (Files): Likewise.
21392         * modules/fcntl-tests (Files): Likewise.
21393         * modules/fdopendir-tests (Files): Likewise.
21394         * modules/fflush-tests (Files): Likewise.
21395         * modules/flock-tests (Files): Likewise.
21396         * modules/floorf-tests (Files): Likewise.
21397         * modules/floorl-tests (Files): Likewise.
21398         * modules/fnmatch-tests (Files): Likewise.
21399         * modules/fopen-tests (Files): Likewise.
21400         * modules/fprintf-posix-tests (Files): Likewise.
21401         * modules/freopen-tests (Files): Likewise.
21402         * modules/frexp-nolibm-tests (Files): Likewise.
21403         * modules/frexp-tests (Files): Likewise.
21404         * modules/frexpl-nolibm-tests (Files): Likewise.
21405         * modules/frexpl-tests (Files): Likewise.
21406         * modules/fseek-tests (Files): Likewise.
21407         * modules/fseeko-tests (Files): Likewise.
21408         * modules/fsync-tests (Files): Likewise.
21409         * modules/ftell-tests (Files): Likewise.
21410         * modules/ftello-tests (Files): Likewise.
21411         * modules/futimens-tests (Files): Likewise.
21412         * modules/getaddrinfo-tests (Files): Likewise.
21413         * modules/getcwd-tests (Files): Likewise.
21414         * modules/getdelim-tests (Files): Likewise.
21415         * modules/getdtablesize-tests (Files): Likewise.
21416         * modules/getgroups-tests (Files): Likewise.
21417         * modules/gethostname-tests (Files): Likewise.
21418         * modules/getline-tests (Files): Likewise.
21419         * modules/getopt-posix-tests (Files): Likewise.
21420         * modules/gettimeofday-tests (Files): Likewise.
21421         * modules/glob-tests (Files): Likewise.
21422         * modules/iconv-tests (Files): Likewise.
21423         * modules/inet_ntop-tests (Files): Likewise.
21424         * modules/inet_pton-tests (Files): Likewise.
21425         * modules/isblank-tests (Files): Likewise.
21426         * modules/lchown-tests (Files): Likewise.
21427         * modules/ldexpl-tests (Files): Likewise.
21428         * modules/link-tests (Files): Likewise.
21429         * modules/linkat-tests (Files): Likewise.
21430         * modules/lseek-tests (Files): Likewise.
21431         * modules/lstat-tests (Files): Likewise.
21432         * modules/mbrtowc-tests (Files): Likewise.
21433         * modules/mbsinit-tests (Files): Likewise.
21434         * modules/mbsnrtowcs-tests (Files): Likewise.
21435         * modules/mbsrtowcs-tests (Files): Likewise.
21436         * modules/memchr-tests (Files): Likewise.
21437         * modules/memcmp-tests (Files): Likewise.
21438         * modules/memmem-tests (Files): Likewise.
21439         * modules/memrchr-tests (Files): Likewise.
21440         * modules/mkdir-tests (Files): Likewise.
21441         * modules/mkfifo-tests (Files): Likewise.
21442         * modules/mkfifoat-tests (Files): Likewise.
21443         * modules/mknod-tests (Files): Likewise.
21444         * modules/nanosleep-tests (Files): Likewise.
21445         * modules/nl_langinfo-tests (Files): Likewise.
21446         * modules/obstack-printf-tests (Files): Likewise.
21447         * modules/open-tests (Files): Likewise.
21448         * modules/openat-tests (Files): Likewise.
21449         * modules/perror-tests (Files): Likewise.
21450         * modules/pipe2-tests (Files): Likewise.
21451         * modules/poll-tests (Files): Likewise.
21452         * modules/popen-tests (Files): Likewise.
21453         * modules/posix_spawn-tests (Files): Likewise.
21454         * modules/posix_spawnp-tests (Files): Likewise.
21455         * modules/pread-tests (Files): Likewise.
21456         * modules/printf-posix-tests (Files): Likewise.
21457         * modules/pty-tests (Files): Likewise.
21458         * modules/random_r-tests (Files): Likewise.
21459         * modules/rawmemchr-tests (Files): Likewise.
21460         * modules/readlink-tests (Files): Likewise.
21461         * modules/remove-tests (Files): Likewise.
21462         * modules/rename-tests (Files): Likewise.
21463         * modules/renameat-tests (Files): Likewise.
21464         * modules/rmdir-tests (Files): Likewise.
21465         * modules/round-tests (Files): Likewise.
21466         * modules/roundf-tests (Files): Likewise.
21467         * modules/roundl-tests (Files): Likewise.
21468         * modules/select-tests (Files): Likewise.
21469         * modules/setenv-tests (Files): Likewise.
21470         * modules/sigaction-tests (Files): Likewise.
21471         * modules/sleep-tests (Files): Likewise.
21472         * modules/snprintf-posix-tests (Files): Likewise.
21473         * modules/snprintf-tests (Files): Likewise.
21474         * modules/sprintf-posix-tests (Files): Likewise.
21475         * modules/stat-tests (Files): Likewise.
21476         * modules/strcasestr-tests (Files): Likewise.
21477         * modules/strchrnul-tests (Files): Likewise.
21478         * modules/strerror-tests (Files): Likewise.
21479         * modules/strsignal-tests (Files): Likewise.
21480         * modules/strstr-tests (Files): Likewise.
21481         * modules/strtod-tests (Files): Likewise.
21482         * modules/strverscmp-tests (Files): Likewise.
21483         * modules/symlink-tests (Files): Likewise.
21484         * modules/symlinkat-tests (Files): Likewise.
21485         * modules/times-tests (Files): Likewise.
21486         * modules/trunc-tests (Files): Likewise.
21487         * modules/truncf-tests (Files): Likewise.
21488         * modules/truncl-tests (Files): Likewise.
21489         * modules/tsearch-tests (Files): Likewise.
21490         * modules/uname-tests (Files): Likewise.
21491         * modules/unlink-tests (Files): Likewise.
21492         * modules/unsetenv-tests (Files): Likewise.
21493         * modules/usleep-tests (Files): Likewise.
21494         * modules/utimensat-tests (Files): Likewise.
21495         * modules/vasprintf-tests (Files): Likewise.
21496         * modules/vdprintf-posix-tests (Files): Likewise.
21497         * modules/vfprintf-posix-tests (Files): Likewise.
21498         * modules/vprintf-posix-tests (Files): Likewise.
21499         * modules/vsnprintf-posix-tests (Files): Likewise.
21500         * modules/vsnprintf-tests (Files): Likewise.
21501         * modules/vsprintf-posix-tests (Files): Likewise.
21502         * modules/wcrtomb-tests (Files): Likewise.
21503         * modules/wcsnrtombs-tests (Files): Likewise.
21504         * modules/wcsrtombs-tests (Files): Likewise.
21505         * modules/wcwidth-tests (Files): Likewise.
21506         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21507         * tests/test-isinf.c (isinf): Likewise.
21508         * tests/test-isnan.c (isnan): Likewise.
21509         * tests/test-signbit.c (signbit): Likewise.
21510         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21511         declaration, either as macro or with correct signature.
21512         (select): Ensure function under test is declared with correct
21513         signature in correct header.
21514         * tests/test-atexit.c (atexit): Likewise.
21515         * tests/test-btowc.c (btowc): Likewise.
21516         * tests/test-canonicalize-lgpl.c (realpath)
21517         (canonicalize_file_name): Likewise.
21518         * tests/test-ceilf1.c (ceilf): Likewise.
21519         * tests/test-ceill.c (ceill): Likewise.
21520         * tests/test-chown.c (chown): Likewise.
21521         * tests/test-dprintf-posix.c (dprintf): Likewise.
21522         * tests/test-dup2.c (dup2): Likewise.
21523         * tests/test-dup3.c (dup3): Likewise.
21524         * tests/test-duplocale.c (duplocale): Likewise.
21525         * tests/test-fchdir.c (fchdir): Likewise.
21526         * tests/test-fchownat.c (fchownat): Likewise.
21527         * tests/test-fcntl.c (fcntl): Likewise.
21528         * tests/test-fdopendir.c (fdopendir): Likewise.
21529         * tests/test-fflush.c (fflush): Likewise.
21530         * tests/test-flock.c (flock): Likewise.
21531         * tests/test-floorf1.c (floorf): Likewise.
21532         * tests/test-floorl.c (floorl): Likewise.
21533         * tests/test-fnmatch.c (fnmatch): Likewise.
21534         * tests/test-fopen.c (fopen): Likewise.
21535         * tests/test-fprintf-posix.c (fprintf): Likewise.
21536         * tests/test-freopen.c (freopen): Likewise.
21537         * tests/test-frexp.c (frexp): Likewise.
21538         * tests/test-frexpl.c (frexpl): Likewise.
21539         * tests/test-fseek.c (fseek): Likewise.
21540         * tests/test-fseeko.c (fseeko): Likewise.
21541         * tests/test-fstatat.c (fstatat): Likewise.
21542         * tests/test-fsync.c (fsync): Likewise.
21543         * tests/test-ftell.c (ftell): Likewise.
21544         * tests/test-ftello.c (ftello): Likewise.
21545         * tests/test-futimens.c (futimens): Likewise.
21546         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21547         (gai_strerror): Likewise.
21548         * tests/test-getcwd.c (getcwd): Likewise.
21549         * tests/test-getdelim.c (getdelim): Likewise.
21550         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21551         * tests/test-getgroups.c (getgroups): Likewise.
21552         * tests/test-gethostname.c (gethostname): Likewise.
21553         * tests/test-getline.c (getline): Likewise.
21554         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21555         Likewise.
21556         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21557         * tests/test-glob.c (glob, globfree): Likewise.
21558         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21559         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21560         * tests/test-inet_pton.c (inet_pton): Likewise.
21561         * tests/test-isblank.c (isblank): Likewise.
21562         * tests/test-lchown.c (lchown): Likewise.
21563         * tests/test-ldexpl.c (ldexpl): Likewise.
21564         * tests/test-link.c (link): Likewise.
21565         * tests/test-linkat.c (linkat): Likewise.
21566         * tests/test-lseek.c (lseek): Likewise.
21567         * tests/test-lstat.c (lstat): Likewise.
21568         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21569         * tests/test-mbsinit.c (mbsinit): Likewise.
21570         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21571         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21572         * tests/test-memchr.c (memchr): Likewise.
21573         * tests/test-memcmp.c (memcmp): Likewise.
21574         * tests/test-memmem.c (memmem): Likewise.
21575         * tests/test-memrchr.c (memrchr): Likewise.
21576         * tests/test-mkdir.c (mkdir): Likewise.
21577         * tests/test-mkdirat.c (mkdirat): Likewise.
21578         * tests/test-mkfifo.c (mkfifo): Likewise.
21579         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21580         * tests/test-mknod.c (mknod): Likewise.
21581         * tests/test-nanosleep.c (nanosleep): Likewise.
21582         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21583         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21584         Likewise.
21585         * tests/test-open.c (open): Likewise.
21586         * tests/test-openat.c (openat): Likewise.
21587         * tests/test-perror.c (perror): Likewise.
21588         * tests/test-pipe2.c (pipe2): Likewise.
21589         * tests/test-poll.c (poll): Likewise.
21590         * tests/test-popen.c (popen, pclose): Likewise.
21591         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21592         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21593         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21594         (posix_spawn_file_actions_destroy)
21595         (posix_spawn_file_actions_addclose)
21596         (posix_spawn_file_actions_addopen)
21597         (posix_spawn_file_actions_adddup2): Likewise.
21598         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21599         * tests/test-pread.c (pread): Likewise.
21600         * tests/test-printf-posix.c (printf): Likewise.
21601         * tests/test-pty.c (openpty, forkpty): Likewise.
21602         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21603         (random_r): Likewise.
21604         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21605         * tests/test-readlink.c (readlink): Likewise.
21606         * tests/test-remove.c (remove): Likewise.
21607         * tests/test-rename.c (rename): Likewise.
21608         * tests/test-renameat.c (renameat): Likewise.
21609         * tests/test-rmdir.c (rmdir): Likewise.
21610         * tests/test-round1.c (round): Likewise.
21611         * tests/test-roundf1.c (roundf): Likewise.
21612         * tests/test-roundl.c (roundl): Likewise.
21613         * tests/test-setenv.c (setenv): Likewise.
21614         * tests/test-sigaction.c (sigaction): Likewise.
21615         * tests/test-sleep.c (sleep): Likewise.
21616         * tests/test-snprintf.c (snprintf): Likewise.
21617         * tests/test-sprintf-posix.c (sprintf): Likewise.
21618         * tests/test-stat.c (stat): Likewise.
21619         * tests/test-stpncpy.c (stpncpy): Likewise.
21620         * tests/test-strcasestr.c (strcasestr): Likewise.
21621         * tests/test-strchrnul.c (strchrnul): Likewise.
21622         * tests/test-strerror.c (strerror): Likewise.
21623         * tests/test-strsignal.c (strsignal): Likewise.
21624         * tests/test-strstr.c (strstr): Likewise.
21625         * tests/test-strtod.c (strtod): Likewise.
21626         * tests/test-strverscmp.c (strverscmp): Likewise.
21627         * tests/test-symlink.c (symlink): Likewise.
21628         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21629         * tests/test-times.c (times): Likewise.
21630         * tests/test-trunc1.c (trunc): Likewise.
21631         * tests/test-truncf1.c (truncf): Likewise.
21632         * tests/test-truncl.c (truncl): Likewise.
21633         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21634         Likewise.
21635         * tests/test-uname.c (uname): Likewise.
21636         * tests/test-unlink.c (unlink): Likewise.
21637         * tests/test-unlinkat.c (unlinkat): Likewise.
21638         * tests/test-unsetenv.c (unsetenv): Likewise.
21639         * tests/test-usleep.c (usleep): Likewise.
21640         * tests/test-utimensat.c (utimensat): Likewise.
21641         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21642         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21643         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21644         * tests/test-vprintf-posix.c (vprintf): Likewise.
21645         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21646         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21647         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21648         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21649         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21650         * tests/test-wcwidth.c (wcwidth): Likewise.
21651
21652         build: pull in conditional headers during GNULIB_POSIXCHECK
21653         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21654         definitions from any conditionally-included headers.
21655         * lib/stdlib.in.h (includes): Likewise.
21656         * lib/unistd.in.h (includes): Likewise.
21657
21658 2009-12-24  Bruno Haible  <bruno@clisp.org>
21659
21660         * tests/test-argv-iter.c: Include header file being tested immediately
21661         after config.h.
21662         * tests/test-base64.c: Likewise.
21663         * tests/test-flock.c: Likewise.
21664         * tests/test-fsync.c: Likewise.
21665         * tests/test-getdate.c: Likewise.
21666         * tests/test-getndelim2.c: Likewise.
21667         * tests/test-isfinite.c: Likewise.
21668         * tests/test-isinf.c: Likewise.
21669         * tests/test-strerror.c: Likewise.
21670         * tests/test-strsignal.c: Likewise.
21671
21672 2009-12-23  Eric Blake  <ebb9@byu.net>
21673
21674         unistd: work around cygwin bug
21675         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21676         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21677         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21678
21679 2009-12-23  Bruno Haible  <bruno@clisp.org>
21680
21681         localename: More tests.
21682         * tests/test-localename.c (SIZEOF): New macro.
21683         (categories): New variable.
21684         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21685         test_locale_name_default): Add test w.r.t. thread locale.
21686         (test_locale_name_thread): New function.
21687         (main): Invoke it.
21688
21689         localename: Make aware of thread locale.
21690         * lib/localename.h (gl_locale_name_thread): New declaration.
21691         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21692         behaviour with respect to thread locale.
21693         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21694         <langinfo.h>, glthread/lock.h.
21695         (SIZE_BITS): New macro.
21696         (string_hash): New function.
21697         (struct hash_node): New type.
21698         (HASH_TABLE_SIZE): New macro.
21699         (struniq_hash_table, struniq_lock): New variables.
21700         (struniq): New function.
21701         (gl_locale_name_thread): New function.
21702         (gl_locale_name): Invoke it.
21703         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21704         * modules/localename (Depends-on): Add lock.
21705         Reported by Mike Gran <spk121@yahoo.com>.
21706
21707 2009-12-23  Eric Blake  <ebb9@byu.net>
21708
21709         va-args: new module
21710         * modules/va-args: New file.
21711         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21712         * MODULES.html.sh (Core language properties): Mention it.
21713
21714         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21715         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21716         named alias for __attribute__((__unused__)).
21717         * lib/chown.c: Update client.
21718         * lib/fchmodat.c: Likewise.
21719         * lib/fts.c: Likewise.
21720         * lib/getdate.y: Likewise.
21721         * lib/getgroups.c: Likewise.
21722         * lib/getopt.c: Likewise.
21723         * lib/getugroups.c: Likewise.
21724         * lib/mkdir.c: Likewise.
21725         * lib/mkfifo.c: Likewise.
21726         * lib/mkfifoat.c: Likewise.
21727         * lib/mknod.c: Likewise.
21728         * lib/mknodat.c: Likewise.
21729         * lib/readlink.c: Likewise.
21730         * lib/se-context.in.h: Likewise.
21731         * lib/se-selinux.in.h: Likewise.
21732         * lib/sockets.c: Likewise.
21733         * lib/symlink.c: Likewise.
21734         * lib/symlinkat.c: Likewise.
21735         * lib/unicodeio.c: Likewise.
21736         * lib/unistr.h: Likewise.
21737         * tests/test-areadlink.c: Likewise.
21738         * tests/test-areadlinkat.c: Likewise.
21739         * tests/test-filenamecat.c: Likewise.
21740         * tests/test-fseeko.c: Likewise.
21741         * tests/test-ftello.c: Likewise.
21742         * tests/test-getdate.c: Likewise.
21743         * tests/test-getgroups.c: Likewise.
21744         * tests/test-gethostname.c: Likewise.
21745         * tests/test-quotearg.c: Likewise.
21746         * tests/test-version-etc.c: Likewise.
21747         * tests/test-xalloc-die.c: Likewise.
21748         * tests/test-xfprintf-posix.c: Likewise.
21749         * tests/test-xprintf-posix.c: Likewise.
21750         * tests/test-xvasprintf.c: Likewise.
21751
21752         tests: avoid compiler warnings
21753         * tests/test-fcntl.c (main): Delete unused parameters.
21754         * tests/test-freopen-safer.c (main): Likewise.
21755         * tests/test-xalloc-die.c (main): Mark unused parameters.
21756         * tests/test-fseeko.c (main): Likewise.
21757         * tests/test-ftello.c (main): Likewise.
21758         * tests/test-nanosleep.c (main): Avoid declaration warning.
21759         * tests/test-sleep.c (main): Likewise.
21760         * tests/test-unsetenv.c (main): Silence warning about string
21761         literal.
21762         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21763
21764 2009-12-23  Bruno Haible  <bruno@clisp.org>
21765
21766         * tests/test-localename.c (test_locale_name): New function, extracted
21767         from main. Also test mixed situations.
21768         (test_locale_name_posix, test_locale_name_environ,
21769         test_locale_name_default): New functions.
21770         (main): Invoke them all.
21771         * modules/localename-tests (configure.ac): Test for newlocale.
21772
21773 2009-12-23  Bruno Haible  <bruno@clisp.org>
21774
21775         unistd: Ensure getcwd gets declared before being overridden.
21776         * lib/unistd.in.h: Conditionally include <io.h>.
21777
21778 2009-12-22  Bruno Haible  <bruno@clisp.org>
21779
21780         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21781         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21782         (gl_WCHAR_H): Invoke it.
21783         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21784         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21785         Reported by Karl Berry <karl@freefriends.org>.
21786
21787 2009-12-22  Eric Blake  <ebb9@byu.net>
21788
21789         math, unistd: avoid redundant includes
21790         * lib/math.in.h (isnan): No need to re-include <math.h>.
21791         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21792
21793         getsubopt: work around cygwin bug
21794         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21795         avoid conflicting with system getsubopt.
21796         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21797         bug.
21798
21799         getopt: synchronize from glibc
21800         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21801         parameter order.  Adjust all callers.
21802         (_getopt_internal_r, main): Adjust quoting in error messages.
21803         Drop considerations for outdated POSIX 1003.2 error message.
21804         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21805         callers.
21806         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21807
21808         test-getopt: test stderr behavior
21809         * modules/getopt-posix-tests (Depends-on): Add dup2.
21810         * tests/test-getopt.c (ASSERT): Avoid stderr.
21811         (main): Move stderr to a temporary file.
21812         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21813         Instead, add parameter to inform caller if output occurred.
21814         (test_getopt): Adjust all existing tests to expect silence, and
21815         add new tests of leading ":".
21816         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21817         glibc shortcomings with leading "-:" or "+:" in optstring.
21818         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21819         Likewise.
21820         * doc/posix-functions/getopt.texi (getopt): Likewise.
21821
21822         test-getopt: enhance test
21823         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21824         supports optind=0.
21825         * tests/test-getopt.c (OPTIND_MIN): Move...
21826         * tests/test-getopt.h (OPTIND_MIN): ...here.
21827         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21828         Require that optind=0 works, since modern BSD supports it in
21829         addition to optreset, and since coreutils expects it.
21830         (test_getopt_long_only): New test.
21831         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21832         glibc shortcomings with 'W;', and enforcement of optind=0.
21833         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21834         Likewise.
21835
21836 2009-12-21  Bruno Haible  <bruno@clisp.org>
21837
21838         localename: Improvements for MacOS X and Cygwin.
21839         * lib/localename.h (gl_locale_name_environ): New declaration.
21840         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21841         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21842         (gl_locale_name_posix): Invoke it.
21843         (gl_locale_name_default): Add comments. Use Windows native API also on
21844         Cygwin.
21845
21846 2009-12-21  Bruno Haible  <bruno@clisp.org>
21847
21848         Update list of Win32 locale ids.
21849         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21850         (LANG_SAMI): Renamed from LANG_SAAMI.
21851         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21852         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21853         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21854         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21855         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21856         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21857         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21858         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21859         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21860         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21861         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21862         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21863         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21864         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21865         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21866         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21867         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21868         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21869         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21870         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21871         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21872         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21873         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21874         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21875         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21876         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21877         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21878         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21879         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21880         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21881         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21882         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21883         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21884         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21885         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21886         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21887         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21888         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21889         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21890         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21891         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21892         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21893         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21894         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21895         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21896         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21897         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21898         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21899         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21900         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21901         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21902         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21903         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21904         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21905         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21906         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21907         Add more languages and countries for Sami, Sorbian. Add more countries
21908         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21909         for Pashto. Change country for Syriac, Tswana.
21910
21911 2009-12-21  Eric Blake  <ebb9@byu.net>
21912
21913         test-utimens: avoid spurious failure
21914         * tests/test-chown.h (nap): Factor...
21915         * tests/nap.h: ...into new file.
21916         * tests/test-lchown.h (nap): Avoid duplication.
21917         * tests/test-utimens-common.h (nap): Use shared implementation,
21918         necessary on file systems with 1-second resolution.
21919         * modules/chown-tests (Files): Include new file.
21920         * modules/fdutimensat-tests (Files): Likewise.
21921         * modules/futimens-tests (Files): Likewise.
21922         * modules/lchown-tests (Files): Likewise.
21923         * modules/openat-tests (Files): Likewise.
21924         * modules/utimens-tests (Files): Likewise.
21925         * modules/utimensat-tests (Files): Likewise.
21926
21927 2009-12-19  Eric Blake  <ebb9@byu.net>
21928
21929         futimens, utimensat: work around Linux bug
21930         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21931         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21932         * lib/utimensat.c (rpl_utimensat): Work around it.
21933         * lib/futimens.c (rpl_futimens): Adjust comment.
21934
21935         utimens: work around Linux ctime bug
21936         * lib/utimens.c (detect_ctime_bug): New helper function.
21937         (update_timespec): Differentiate between workaround needed for
21938         this bug vs. what is needed for systems that lack utimensat.
21939         (fdutimens, lutimens): Work around bug.
21940
21941         utimens: check for ctime update
21942         * tests/test-utimens-common.h (check_ctime): Define.
21943         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21944         * tests/test-futimens.h (test_futimens): Likewise.
21945         * tests/test-lutimens.h (test_lutimens): Likewise.
21946         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21947         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21948
21949 2009-12-19  Bruno Haible  <bruno@clisp.org>
21950
21951         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21952         * tests/test-dprintf-posix2.sh: New file.
21953         * tests/test-dprintf-posix2.c: New file.
21954         * modules/dprintf-posix-tests (Files): Add them.
21955         (configure.ac): Check for getrlimit and setrlimit.
21956         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21957
21958 2009-12-19  Bruno Haible  <bruno@clisp.org>
21959
21960         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21961         * tests/test-fprintf-posix3.sh: New file.
21962         * tests/test-fprintf-posix3.c: New file.
21963         * modules/fprintf-posix-tests (Files): Add them.
21964         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21965
21966 2009-12-19  Eric Blake  <ebb9@byu.net>
21967
21968         dirfd: fix prototype
21969         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21970         * lib/dirfd.c (dirfd): Likewise.
21971
21972         canonicalize: reduce memory usage
21973         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21974         allocation to size.
21975         Reported by Solar Designer <solar@openwall.com>.
21976
21977 2009-12-19  Bruno Haible  <bruno@clisp.org>
21978
21979         New module attribute 'Applicability'.
21980         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21981         * gnulib-tool: New option --extract-applicability.
21982         (func_usage): Document it.
21983         (sed_extract_prog): Recognize it.
21984         (func_get_applicability): New function.
21985         (func_import): Generalize handling of 'link-warning' module.
21986         * modules/link-warning (Applicability): New section.
21987         * modules/arg-nonnull (Applicability): New section.
21988         Repoted by Simon Josefsson <simon@josefsson.org>.
21989
21990 2009-12-19  Bruno Haible  <bruno@clisp.org>
21991
21992         fflush: tweak
21993         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21994         * lib/fseeko.c (rpl_fseeko): Likewise.
21995
21996 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21997
21998         * lib/gl_list.h: Fix typo in comment.
21999
22000 2009-12-16  Eric Blake  <ebb9@byu.net>
22001
22002         fcntl: use to simplify other modules
22003         * modules/cloexec (Depends-on): Add fcntl.
22004         * modules/fchdir (Depends-on): Likewise.
22005         * modules/fd-safer-flag (Depends-on): Likewise.
22006         * modules/unistd-safer (Depends-on): Likewise.
22007         * modules/dup3 (configure.ac): Set module indicator.
22008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22009         missing.
22010         * lib/fchdir.c (_gl_register_dup): Fix comment.
22011         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22012         * lib/dup-safer.c (dup_safer): Likewise.
22013         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22014         * lib/dup3.c (dup3): Likewise.
22015         * tests/test-fchdir.c (main): Enhance test.
22016         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22017
22018         fcntl: port portions of fcntl to mingw
22019         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22020         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22021         replacement for mingw.
22022         * modules/fcntl (Description): Update.
22023         (Depends-on): Add dup2.
22024         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22025         * modules/fcntl-h (Makefile.am): Substitute it.
22026         * lib/fcntl.in.h (fcntl): Update declaration.
22027         (F_DUPFD, F_GETFD): New macros, when needed.
22028         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22029         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22030         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22031         we now guarantee.
22032
22033         fcntl: work around cygwin bug in F_DUPFD
22034         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22035         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22036         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22037         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22038         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22039
22040         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22041         * modules/fcntl (Files): List new files.
22042         (configure.ac): Run a test.
22043         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22044         * lib/fcntl.c (rpl_fcntl): Likewise.
22045         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22046         (gl_FCNTL_H): Always replace fcntl.h.
22047         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22048         * lib/fcntl.in.h (fcntl): Declare replacement.
22049         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22050         needed, plus a witness.
22051         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22052         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22053         * tests/test-fcntl.c: New file.
22054         * modules/fcntl-tests: Likewise.
22055
22056         binary-io: avoid potential compilation warning
22057         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22058         directives.
22059
22060         fflush: avoid compilation error on NetBSD
22061         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22062         between off_t and fpos_t, since the latter is sometimes a struct.
22063         * lib/fseeko.c (rpl_fseeko): Likewise.
22064         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22065
22066 2009-12-15  Eric Blake  <ebb9@byu.net>
22067
22068         fcntl-h, stdio, sys_ioctl: fix declarations
22069         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22070         function must not take arguments.
22071         * lib/sys_ioctl.in.h (ioctl): Likewise.
22072         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22073         (open): Add a link warning.
22074
22075 2009-12-15  Jim Meyering  <meyering@redhat.com>
22076
22077         areadlink, areadlink-with-size: relax license to LGPLv2+
22078         * modules/areadlink (License): Relax to LGPLv2+.
22079         * modules/areadlink-with-size (License): Likewise.
22080
22081 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22082             Bruno Haible  <bruno@clisp.org>
22083
22084         *printf: Fix memory leak.
22085         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22086         * lib/vfprintf.c (vfprintf): Likewise.
22087         * lib/dprintf.c (dprintf): Likewise.
22088         * lib/vdprintf.c (vdprintf): Likewise.
22089
22090 2009-12-14  Eric Blake  <ebb9@byu.net>
22091
22092         accept4: adjust module dependencies
22093         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22094
22095         utimens: one more try at avoiding compiler warning
22096         * lib/utimens.c (lutimens): Lower scope of result.
22097
22098 2009-12-13  Bruno Haible  <bruno@clisp.org>
22099
22100         Move the malloc checking from module 'list' to new module 'xlist'.
22101         * modules/xlist: New file.
22102         * lib/gl_xlist.h: New file.
22103         * lib/gl_xlist.c: New file.
22104         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22105         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22106         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22107         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22108         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22109         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22110         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22111         gl_sortedlist_nx_add): New declarations.
22112         (struct gl_list_implementation): Rename and change methods accordingly.
22113         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22114         (gl_list_nx_create): Renamed from gl_list_create.
22115         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22116         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22117         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22118         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22119         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22120         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22121         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22122         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22123         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22124         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_array_list.c: Don't include xalloc.h.
22135         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22136         NULL upon out-of-memory.
22137         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22138         out-of-memory.
22139         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22140         Change return type to 'int'.
22141         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22142         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22143         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22144         upon out-of-memory.
22145         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22146         upon out-of-memory.
22147         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22148         upon out-of-memory.
22149         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22150         upon out-of-memory.
22151         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22152         out-of-memory.
22153         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22154         Update.
22155         (gl_array_list_implementation): Update.
22156         * lib/gl_carray_list.c: Don't include xalloc.h.
22157         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22158         Return NULL upon out-of-memory.
22159         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22160         out-of-memory.
22161         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22162         Change return type to 'int'.
22163         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22164         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22165         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22166         upon out-of-memory.
22167         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22168         upon out-of-memory.
22169         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22170         out-of-memory.
22171         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22172         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22173         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22174         Update.
22175         (gl_carray_list_implementation): Update.
22176         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22177         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22178         gl_linked_create_empty. Return NULL upon out-of-memory.
22179         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22180         out-of-memory.
22181         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22182         Change return type to 'int'. Return -1 upon out-of-memory.
22183         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22184         out-of-memory.
22185         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22186         upon out-of-memory.
22187         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22188         upon out-of-memory.
22189         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22190         NULL upon out-of-memory.
22191         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22192         upon out-of-memory.
22193         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22194         out-of-memory.
22195         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22196         Update.
22197         * lib/gl_linked_list.c: Don't include xalloc.h.
22198         (gl_linked_list_implementation): Update.
22199         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22200         (add_to_bucket): Change return type to 'int'.
22201         (gl_linkedhash_list_implementation): Update.
22202         * lib/gl_anytree_list1.h (free_subtree): New function.
22203         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22204         gl_tree_create_empty. Return NULL upon out-of-memory.
22205         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22206         Change return type to 'int'. Return -1 upon out-of-memory.
22207         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22208         out-of-memory.
22209         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22210         (gl_tree_remove_node): New function, moved here from
22211         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22212         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22213         Update.
22214         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22215         malloc, not xmalloc. Return NULL upon out-of-memory.
22216         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22217         out-of-memory.
22218         (gl_tree_remove_node_from_tree): New function, extracted from
22219         gl_tree_remove_node.
22220         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22221         upon out-of-memory.
22222         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22223         out-of-memory.
22224         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22225         upon out-of-memory.
22226         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22227         upon out-of-memory.
22228         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22229         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22230         not xmalloc. Return NULL upon out-of-memory.
22231         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22232         out-of-memory.
22233         (gl_tree_remove_node_from_tree): New function, extracted from
22234         gl_tree_remove_node.
22235         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22236         upon out-of-memory.
22237         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22238         out-of-memory.
22239         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22240         upon out-of-memory.
22241         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22242         upon out-of-memory.
22243         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22244         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22245         gl_anytree_list1.h before gl_anyavltree_list2.h.
22246         (gl_avltree_list_implementation): Update.
22247         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22248         gl_anytree_list1.h before gl_anyavltree_list2.h.
22249         (gl_rbtree_list_implementation): Update.
22250         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22251         Change return type to 'int'. Return -1 upon out-of-memory. Use
22252         __builtin_expect.
22253         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22254         (gl_avltreehash_list_implementation): Update.
22255         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22256         (gl_rbtreehash_list_implementation): Update.
22257         * modules/array-list (Depends-on): Remove xalloc.
22258         * modules/carray-list (Depends-on): Likewise.
22259         * modules/linked-list (Depends-on): Likewise.
22260         * modules/linkedhash-list (Depends-on): Likewise.
22261         * modules/avltree-list (Depends-on): Likewise.
22262         * modules/rbtree-list (Depends-on): Likewise.
22263         * modules/avltreehash-list (Depends-on): Likewise.
22264         * modules/rbtreehash-list (Depends-on): Likewise.
22265
22266         * modules/xsublist: New file.
22267         * lib/gl_xsublist.h: New file.
22268         * lib/gl_xsublist.c: New file.
22269         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22270         (gl_sublist_nx_create): New declaration.
22271         * lib/gl_sublist.c: Don't include xalloc.h.
22272         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22273         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22274         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22275         Change return type to 'int'. Return -1 upon out-of-memory.
22276         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22277         upon out-of-memory.
22278         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22279         NULL upon out-of-memory.
22280         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22281         upon out-of-memory.
22282         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22283         NULL upon out-of-memory.
22284         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22285         NULL upon out-of-memory.
22286         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22287         upon out-of-memory.
22288         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22289         (gl_sublist_list_implementation): Update.
22290         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22291         upon out-of-memory.
22292         * modules/sublist (Depends-on): Remove xalloc.
22293
22294         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22295         * tests/test-carray_list.c: Likewise.
22296         * tests/test-linked_list.c: Likewise.
22297         * tests/test-linkedhash_list.c: Likewise.
22298         * tests/test-avltree_list.c: Likewise.
22299         * tests/test-rbtree_list.c: Likewise.
22300         * tests/test-avltreehash_list.c: Likewise.
22301         * tests/test-rbtreehash_list.c: Likewise.
22302         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22303         * modules/carray-list-tests (Makefile.am): Likewise.
22304         * modules/linked-list-tests (Makefile.am): Likewise.
22305         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22306         * modules/avltree-list-tests (Makefile.am): Likewise.
22307         * modules/rbtree-list-tests (Makefile.am): Likewise.
22308         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22309         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22310
22311         * NEWS: Mention the changes.
22312
22313         * lib/clean-temp.c: Include gl_xlist.h.
22314         * modules/clean-temp (Depends-on): Add xlist.
22315
22316         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22317         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22318
22319         * tests/test-array_oset.c: Include gl_xlist.h.
22320         * modules/array-oset-tests (Depends-on): Add xlist.
22321
22322         Reported by José E. Marchesi <jemarch@gnu.org>.
22323
22324 2009-12-13  Bruno Haible  <bruno@clisp.org>
22325
22326         Move the malloc checking from module 'oset' to new module 'xoset'.
22327         * modules/xoset: New file.
22328         * lib/gl_xoset.h: New file.
22329         * lib/gl_xoset.c: New file.
22330         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22331         declarations.
22332         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22333         (struct gl_oset_implementation): Rename and change methods accordingly.
22334         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22335         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22336         'int'. Mark as __warn_unused_result__.
22337         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22338         gl_oset_create_empty.
22339         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22340         'int'.
22341         * lib/gl_array_oset.c: Don't include xalloc.h.
22342         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22343         malloc, not xmalloc.
22344         (grow): Change return type to 'int'. Don't call xalloc_die.
22345         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22346         to 'int'.
22347         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22348         'int'.
22349         (gl_array_oset_implementation): Update.
22350         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22351         gl_tree_create_empty.
22352         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22353         'int'.
22354         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22355         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22356         xmalloc.
22357         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22358         not xmalloc.
22359         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22360         xmalloc.
22361         (gl_avltree_oset_implementation): Update.
22362         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22363         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22364         xmalloc.
22365         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22366         not xmalloc.
22367         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22368         xmalloc.
22369         (gl_rbtree_oset_implementation): Update.
22370         * modules/array-oset (Depends-on): Remove xalloc.
22371         * modules/avltree-oset (Depends-on): Likewise.
22372         * modules/rbtree-oset (Depends-on): Likewise.
22373         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22374         * tests/test-avltree_oset.c: Likewise.
22375         * tests/test-rbtree_oset.c: Likewise.
22376         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22377         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22378         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22379         * NEWS: Mention the change.
22380
22381 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22382
22383         maint.mk: allow a project to override release-prep commands
22384         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22385         commands into a new rule.
22386         (release-prep): New rule.
22387         (release-prep-hook): New overridable variable.
22388
22389 2009-12-13  Bruno Haible  <bruno@clisp.org>
22390
22391         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22392
22393 2009-12-13  Jim Meyering  <meyering@redhat.com>
22394
22395         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22396         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22397
22398 2009-12-12  Bruno Haible  <bruno@clisp.org>
22399
22400         duplocale: Tweak.
22401         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22402
22403 2009-12-12  Karl Berry  <karl@gnu.org>
22404
22405         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22406
22407 2009-12-12  Bruno Haible  <bruno@clisp.org>
22408
22409         * m4/po.m4: Undo incorrect untabification.
22410
22411 2009-12-12  Bruno Haible  <bruno@clisp.org>
22412
22413         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22414         * modules/c-strtod (Depends-on): Add locale.
22415         * modules/c-strtold (Depends-on): Likewise.
22416
22417 2009-12-12  Bruno Haible  <bruno@clisp.org>
22418
22419         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22420
22421 2009-12-11  Eric Blake  <ebb9@byu.net>
22422
22423         setenv: relax requirement in light of POSIX ruling
22424         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22425         not NULL.
22426         * tests/test-setenv.c (main): Relax test.
22427         * tests/test-unsetenv.c (main): Likewise.
22428         * doc/posix-functions/setenv.texi (setenv): Document this.
22429         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22430
22431 2009-12-11  Bruno Haible  <bruno@clisp.org>
22432
22433         New module 'fd-safer-flag'.
22434         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22435         * lib/dup-safer.c (dup_safer_flag): Remove function.
22436         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22437         * lib/fd-safer.c (fd_safer_flag): Remove function.
22438         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22439         * modules/cloexec (configure.ac): Drop indicator macro.
22440         * modules/fd-safer-flag: New file.
22441         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22442         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22443         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22444
22445 2009-12-11  Bruno Haible  <bruno@clisp.org>
22446
22447         Tests for module 'nl_langinfo'.
22448         * modules/nl_langinfo-tests: New file.
22449         * tests/test-nl_langinfo.sh: New file.
22450         * tests/test-nl_langinfo.c: New file.
22451
22452         New module 'nl_langinfo'.
22453         * lib/nl_langinfo.c: New file.
22454         * m4/nl_langinfo.m4: New file.
22455         * modules/nl_langinfo: New file.
22456         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22457
22458 2009-12-11  Bruno Haible  <bruno@clisp.org>
22459
22460         Tests for module 'langinfo'.
22461         * modules/langinfo-tests: New file.
22462         * tests/test-langinfo.c: New file.
22463
22464         New module 'langinfo'.
22465         * lib/langinfo.in.h: New file.
22466         * m4/langinfo_h.m4: New file.
22467         * modules/langinfo: New file.
22468         * doc/posix-headers/langinfo.texi: Mention the new module.
22469
22470 2009-12-11  Bruno Haible  <bruno@clisp.org>
22471
22472         * lib/config.charset: Untabify.
22473
22474 2009-12-11  Bruno Haible  <bruno@clisp.org>
22475
22476         * modules/unistd-safer (configure.ac): Drop indicator macro.
22477
22478 2009-12-11  Bruno Haible  <bruno@clisp.org>
22479
22480         Move pipe2-safer code to its own file.
22481         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22482         * lib/pipe-safer.c (pipe2_safer): Remove function.
22483         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22484         (Makefile.am): Add it to lib_SOURCES.
22485
22486 2009-12-10  Bruno Haible  <bruno@clisp.org>
22487
22488         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22489
22490 2009-12-10  Bruno Haible  <bruno@clisp.org>
22491
22492         Declare which arguments expect non-NULL values, for GCC and clang.
22493         * build-aux/arg-nonnull.h: New file.
22494         * modules/arg-nonnull: New file.
22495         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22496         (inet_ntop, inet_pton): Use it.
22497         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22498         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22499         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22500         (open, openat): Use it.
22501         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22502         (fnmatch): Use it.
22503         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22504         (getopt, getopt_long, getopt_long_only): Use it.
22505         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22506         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22507         Use it.
22508         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22509         (iconv_open): Use it.
22510         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22511         (strtoimax, strtoumax): Use it.
22512         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22513         (duplocale): Use it.
22514         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22515         (frexp, frexpl): Use it.
22516         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22517         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22518         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22519         (tsearch, tfind, tdelete, twalk): Use it.
22520         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22521         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22522         sigpending): Use it.
22523         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22524         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22525         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22526         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22527         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22528         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22529         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22530         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22531         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22532         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22533         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22534         Use it.
22535         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22536         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22537         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22538         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22539         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22540         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22541         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22542         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22543         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22544         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22545         strtoull, unsetenv): Use it.
22546         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22547         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22548         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22549         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22550         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22551         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22552         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22553         (strcasecmp, strncasecmp): Use it.
22554         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22555         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22556         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22557         rpl_setsockopt): Use it.
22558         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22559         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22560         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22561         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22562         (gettimeofday): Use it.
22563         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22564         (times): Use it.
22565         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22566         (uname): Use it.
22567         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22568         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22569         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22570         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22571         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22572         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22573         unlinkat, write): Use it.
22574         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22575         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22576         * lib/argv-iter.h: Include arg-nonnull.h.
22577         (_ATTRIBUTE_NONNULL_): Remove macro.
22578         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22579         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22580         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22581         optimization.
22582         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22583         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22584         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22585         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22586         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22587         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22588         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22589         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22590         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22591         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22592         * modules/dirent (Depends-on): Add arg-nonnull.
22593         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22594         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22595         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22596         * modules/fnmatch (Depends-on): Add arg-nonnull.
22597         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22598         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22599         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22600         * modules/glob (Depends-on): Add arg-nonnull.
22601         (Makefile.am): Insert arg-nonnull.h into glob.h.
22602         * modules/iconv_open (Depends-on): Add arg-nonnull.
22603         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22604         * modules/inttypes (Depends-on): Add arg-nonnull.
22605         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22606         * modules/locale (Depends-on): Add arg-nonnull.
22607         (Makefile.am): Insert arg-nonnull.h into locale.h.
22608         * modules/math (Depends-on): Add arg-nonnull.
22609         (Makefile.am): Insert arg-nonnull.h into math.h.
22610         * modules/netdb (Depends-on): Add arg-nonnull.
22611         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22612         * modules/search (Depends-on): Add arg-nonnull.
22613         (Makefile.am): Insert arg-nonnull.h into search.h.
22614         * modules/signal (Depends-on): Add arg-nonnull.
22615         (Makefile.am): Insert arg-nonnull.h into signal.h.
22616         * modules/spawn (Depends-on): Add arg-nonnull.
22617         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22618         * modules/stdio (Depends-on): Add arg-nonnull.
22619         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22620         * modules/stdlib (Depends-on): Add arg-nonnull.
22621         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22622         * modules/string (Depends-on): Add arg-nonnull.
22623         (Makefile.am): Insert arg-nonnull.h into string.h.
22624         * modules/strings (Depends-on): Add arg-nonnull.
22625         (Makefile.am): Insert arg-nonnull.h into strings.h.
22626         * modules/sys_socket (Depends-on): Add arg-nonnull.
22627         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22628         * modules/sys_stat (Depends-on): Add arg-nonnull.
22629         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22630         * modules/sys_time (Depends-on): Add arg-nonnull.
22631         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22632         * modules/sys_times (Depends-on): Add arg-nonnull.
22633         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22634         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22635         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22636         * modules/time (Depends-on): Add arg-nonnull.
22637         (Makefile.am): Insert arg-nonnull.h into time.h.
22638         * modules/unistd (Depends-on): Add arg-nonnull.
22639         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22640         * modules/wchar (Depends-on): Add arg-nonnull.
22641         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22642         * modules/argv-iter (Depends-on): Add arg-nonnull.
22643         * tests/test-canonicalize.c (null_ptr): New function.
22644         (main): Use it.
22645         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22646         (main): Use it.
22647         * tests/test-memmem.c (null_ptr): New function.
22648         (main): Use it.
22649         Reported by Jim Meyering.
22650
22651 2009-12-10  Bruno Haible  <bruno@clisp.org>
22652
22653         Use spaces for indentation, not tabs.
22654         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22655         * m4/*.m4: Untabify.
22656         * build-aux/*.h: Untabify.
22657         * tests/**/*.[hc]: Untabify.
22658         * README: New section "Indent with spaces, not TABs", based on
22659         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22660         * NEWS: Mention the change.
22661
22662 2009-12-10  Bruno Haible  <bruno@clisp.org>
22663
22664         pty test: Fix link error.
22665         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22666         test_pty_LDADD.
22667
22668 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22669
22670         * modules/pty: New file.
22671         * modules/pty-tests: New file.
22672         * m4/pty.m4: New file.
22673         * tests/test-pty.c: New file.
22674         * doc/glibc-headers/pty.texi: Modified.
22675         * doc/glibc-functions/forkpty.texi: Modified.
22676         * doc/glibc-functions/openpty.texi: Modified.
22677
22678 2009-12-10  Bruno Haible  <bruno@clisp.org>
22679
22680         Avoid syntax error in C++ mode.
22681         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22682
22683 2009-12-10  Bruno Haible  <bruno@clisp.org>
22684
22685         Use sed with option -e.
22686         * gnulib-tool (func_version, func_emit_copyright_notice,
22687         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22688         option -e to sed.
22689         * modules/link-warning (Makefile.am): Likewise.
22690
22691 2009-12-10  Jim Meyering  <meyering@redhat.com>
22692
22693         mgetgroups: do not write bytes beyond end of malloc'd buffer
22694         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22695         username, we call getgroups with a one-element-shorter buffer,
22696         but still told it the length was original, max_n_groups.
22697
22698 2009-12-09  Eric Blake  <ebb9@byu.net>
22699
22700         cloexec: relax license
22701         * modules/cloexec (Maintainer): Add myself.
22702         (License): Use LGPL, not GPL.
22703
22704         link-warning: optimize generation
22705         * modules/link-warning (Makefile.am): Reduce process usage.
22706
22707 2009-12-09  Bruno Haible  <bruno@clisp.org>
22708
22709         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22710         workaround was added on 2009-11-17.
22711
22712 2009-12-09  Jim Meyering  <meyering@redhat.com>
22713             Bruno Haible  <bruno@clisp.org>
22714
22715         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22716         * modules/link-warning (Makefile.am): Make the comment-removing sed
22717         command more robust in the face of bootstrap-prepended comment lines.
22718
22719 2009-12-09  Bruno Haible  <bruno@clisp.org>
22720
22721         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22722         most one group.
22723
22724 2009-12-09  Simon Josefsson <simon@josefsson.org>
22725             Bruno Haible  <bruno@clisp.org>
22726
22727         * build-aux/link-warning.h: Add copyright notice.
22728         * modules/link-warning (Makefile.am): Generate link-warning.h from
22729         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22730         * NEWS: Mention change in link-warning module.
22731         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22732         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22733         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22734         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22735         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22736         * modules/math (Makefile.am): Add dependency to math.h.
22737         * modules/search (Makefile.am): Add dependency to search.h.
22738         * modules/signal (Makefile.am): Add dependency to signal.h.
22739         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22740         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22741         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22742         * modules/string (Makefile.am): Add dependency to string.h.
22743         * modules/strings (Makefile.am): Add dependency to strings.h.
22744         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22745         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22746         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22747         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22748         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22749         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22750         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22751         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22752         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22753
22754 2009-12-09  Bruno Haible  <bruno@clisp.org>
22755
22756         fchdir: Optimize away rpl_fstat when possible.
22757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22758         REPLACE_OPEN_DIRECTORY.
22759         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22760
22761 2009-12-09  Bruno Haible  <bruno@clisp.org>
22762
22763         * lib/fchdir.c: Update comment.
22764
22765 2009-12-09  Bruno Haible  <bruno@clisp.org>
22766
22767         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22768
22769 2009-12-08  Eric Blake  <ebb9@byu.net>
22770
22771         fchdir: avoid memory leak on re-registration.
22772         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22773
22774 2009-12-08  Jim Meyering  <meyering@redhat.com>
22775
22776         init.sh: avoid Solaris 10 /bin/sh portability problem
22777         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22778         sourced script:
22779           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22780           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22781           bar
22782         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22783         and two tests used that idiom.
22784         * tests/init.sh: Update suggested usage comments.
22785         (path_prepend_): New function, to be used in place
22786         of the --src-path=DIR option.
22787         (setup_): Move PATH-prepending code into path_prepend_.
22788         * tests/test-pread.sh: Adapt to new usage.
22789         * tests/test-xalloc-die.sh: Likewise.
22790
22791 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22792
22793         * doc/gnulib.texi (Glibc pty.h): Add.
22794         * doc/glibc-functions/forkpty.texi: Add.
22795         * doc/glibc-functions/openpty.texi: Add.
22796         Suggested by Bruno Haible.
22797
22798 2009-12-08  Eric Blake  <ebb9@byu.net>
22799
22800         fchdir: fix logic bugs
22801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22802         * tests/test-fchdir.c (main): Enhance test.
22803         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22804         is in use.
22805
22806         dup2: fix logic bugs
22807         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22808         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22809         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22810         exists.
22811         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22812
22813 2009-12-07  Eric Blake  <ebb9@byu.net>
22814
22815         unlink: fix m4 detection
22816         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22817
22818         unistd-safer: add unit test
22819         * modules/unistd-safer-tests: New file.
22820         * tests/test-dup-safer.c: Likewise.
22821         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22822         * tests/test-dup2.c (setmode): Likewise.
22823         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22824
22825         cloexec: preserve text vs. binary across dup_cloexec
22826         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22827         mode.
22828         * modules/dup2-tests (Depends-on): Add binary-io.
22829         * modules/cloexec-tests (Depends-on): Likewise.
22830         * tests/test-dup2.c (setmode, is_mode): New helpers.
22831         (main): Add tests that translation mode is preserved.
22832         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22833         Reported by Bruno Haible.
22834
22835         mgetgroups: reduce duplicate listings
22836         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22837         resulting array.
22838         * tests/test-chown.h (test_chown): Simplify client.
22839         * tests/test-lchown.h (test_lchown): Likewise.
22840
22841 2009-12-06  Bruno Haible  <bruno@clisp.org>
22842
22843         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22844         value.
22845
22846 2009-12-06  Bruno Haible  <bruno@clisp.org>
22847
22848         * lib/progname.c: Include stdio.h, stdlib.h.
22849         (set_program_name): Reject a NULL argument.
22850
22851 2009-12-05  Eric Blake  <ebb9@byu.net>
22852
22853         pipe2-safer: new module
22854         * modules/pipe2-safer: New file.
22855         * lib/unistd-safer.h (pipe2_safer): New prototype.
22856         * lib/unistd--.h (pipe2): New wrapper.
22857         * lib/pipe-safer.c (pipe2_safer): New function.
22858         * modules/pipe (Depends-on): Add pipe2-safer.
22859         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22860
22861         stdlib-safer: preserve cloexec flag for mkostemp[s]
22862         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22863         fd_safer_flag.
22864
22865         unistd-safer: allow preservation of cloexec status via flag
22866         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22867         prototypes.
22868         * lib/dup-safer.c (dup_safer_flag): New function.
22869         * lib/fd-safer.c (fd_safer_flag): Likewise.
22870         * modules/cloexec (configure.ac): Set witness.
22871
22872         test-dup2: enhance test
22873         * modules/dup2-tests (Depends-on): Add cloexec.
22874         * tests/test-dup2.c (main): Enhance test.
22875
22876         cloexec: add dup_cloexec
22877         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22878         header and comments.
22879         * lib/cloexec.c (set_cloexec_flag): Add comments.
22880         (dup_cloexec): New function, with mingw implementation borrowed
22881         from...
22882         * lib/w32spawn.h (dup_noinherit): ...here.
22883         * modules/execute (Depends-on): Add cloexec.
22884         * modules/pipe (Depends-on): Likewise.
22885         * modules/cloexec (Depends-on): Add dup2.
22886         * modules/cloexec-tests (Files): New file.
22887         * tests/test-cloexec.c: Likewise.
22888
22889         test-xalloc-die: fix test for mingw
22890         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22891         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22892         directory and .exe suffix off argv[0] output.
22893
22894         test-fseeko: fix test for mingw
22895         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22896         than undefining fseek, so test will pass on mingw.
22897
22898 2009-12-05  Bruno Haible  <bruno@clisp.org>
22899
22900         * lib/progname.h (set_program_name): Clarify specification.
22901         * lib/progname.c (set_program_name): Likewise.
22902         Reported by Jim Meyering.
22903
22904 2009-12-05  Jim Meyering  <meyering@redhat.com>
22905
22906         maint.mk: backslash-escape parens in default regexp
22907         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22908         backslash-escape the literal parentheses.
22909
22910         maint.mk: news-date-check: use grep -E
22911         * top/maint.mk (today): Define a Make variable, not a...
22912         (news-date-check): ...shell variable.
22913         (news-date-regexp): Use the Make variable.
22914         Use grep's -E option.  Change the failing diagnostic to mention
22915         the variable, $(news-date-regexp).
22916
22917 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22918
22919         maintainer-makefile: allow customization of NEWS entry format
22920         * top/maint.mk (news-date-regexp): New overridable variable.
22921         (news-date-check): Use it.
22922
22923 2009-12-04  Eric Blake  <ebb9@byu.net>
22924
22925         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22926         * lib/mgetgroups.h (xgetgroups): New prototype.
22927         * lib/mgetgroups.c (xgetgroups): New wrapper.
22928         (mgetgroups): Handle ENOSYS.
22929         * modules/mgetgroups (Depends-on): Add realloc.
22930         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22931
22932         mgetgroups: avoid argument promotion issues with -1
22933         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22934         for invalid gid_t.
22935         * tests/test-chown.h (getegid, test_chown): Likewise.
22936         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22937
22938 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22939
22940         exclude: Fix header file problems.
22941         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22942
22943 2009-12-01  Jim Meyering  <meyering@redhat.com>
22944
22945         fts: fts_open: do not let an empty string cause immediate failure
22946         This is required in support of GNU rm, for which the command
22947         "rm A '' B" must process and remove both A and B, in spite of
22948         the empty string argument.
22949         * lib/fts.c (fts_open): Do not let the presence of an empty string
22950         cause fts_open to fail immediately.  Most fts-using tools must be
22951         able to process all arguments, in order, and can be expected to
22952         diagnose such arguments themselves.
22953
22954 2009-11-30  Eric Blake  <ebb9@byu.net>
22955
22956         utimens: fix compilation error
22957         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22958         Declare variable at right scope.
22959
22960 2009-11-29  Jim Meyering  <meyering@redhat.com>
22961
22962         bootstrap: handle perl-5.11's changed --version output
22963         * build-aux/bootstrap (get_version): Handle perl separately,
22964         since perl-5.11's --version output is different.
22965
22966 2009-11-28  Jim Meyering  <meyering@redhat.com>
22967
22968         userspec: depend on the inttostr module, too
22969         * modules/userspec (Depends-on): Add inttostr.
22970
22971         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22972         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22973         number of MAXUID when it evaluates to (uid_t) -1.
22974         Likewise for group ID.  Reported by Matt McCutchen in
22975         <http://savannah.gnu.org/bugs/?28113>
22976
22977         userspec: reformat to use spaces, not TABs
22978         * lib/userspec.c: Expand TABs to spaces.
22979         Add Emacs' "indent-tabs-mode: nil" hint.
22980
22981 2009-11-27  Eric Blake  <ebb9@byu.net>
22982
22983         getopt-gnu: flush out another BSD bug
22984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22985         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22986         flush out BSD bug.
22987         * tests/test-getopt.h (test_getopt): End lists with NULL.
22988         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22989         (test_getopt_long_posix): Enhance test.
22990         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22991         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22992         getopt-gnu.
22993         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22994         Likewise.
22995
22996 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22997
22998         * modules/idpriv-droptemp-tests (Notice): Fix text.
22999
23000 2009-11-27  Jim Meyering  <meyering@redhat.com>
23001
23002         test-xalloc-die: avoid spurious failure due to libtool argv difference
23003         In a libtool-enabled project, this test would fail due to a difference
23004         in the emitted program name, e.g.,
23005         -test-xalloc-die: memory exhausted
23006         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23007         Use program to avoid that.
23008         * modules/xalloc-die-tests (Depends-on): Add progname.
23009         * tests/test-xalloc-die.c: Include progname.h".
23010         (program_name): Remove decl.
23011         (main): Call set_program_name.
23012         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23013
23014 2009-11-26  Richard Jones  <rjones@redhat.com>
23015
23016         w32sock: leave win32 error in place.
23017         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23018
23019 2009-11-26  Eric Blake  <ebb9@byu.net>
23020
23021         init.sh: suggest to use skip_ and fail_ functions in comments
23022         * tests/init.sh: Add a sentence.
23023
23024 2009-11-25  Bruno Haible  <bruno@clisp.org>
23025
23026         init.sh: add documentation in comments
23027         * tests/init.sh: Add some developer and user documentation.
23028
23029 2009-11-26  Jim Meyering  <meyering@redhat.com>
23030
23031         init.sh: accommodate even those who specify bogus srcdir manually
23032         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23033         configure-time tests to be sanitized, so that there is no need to
23034         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23035         (with no double quotes) suffices.  However, since tests may be
23036         invoked manually, and since you may explicitly set srcdir to the
23037         name of a directory containing spaces, do quote its uses here.
23038         * tests/test-pread.sh: Likewise.
23039         Suggested by Bruno Haible.
23040
23041         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23042         * tests/test-pread.sh: Write no data into the pipe, because
23043         test-pread actually reads none.  This avoids a diagnostic,
23044         "bash: echo: write error: Broken pipe", that arises in the unusual
23045         event something is ignoring SIGPIPE, and might be interpreted
23046         as some sort of failure.  Reported by Bruno Haible.
23047
23048 2009-11-25  Jim Meyering  <meyering@redhat.com>
23049
23050         test-pread: cover failure with ESPIPE and EINVAL
23051         * tests/test-pread.c (main): Test for failure, too.
23052         * tests/test-pread.sh: Invoke with stdin on a pipe.
23053         Suggested by Eric Blake.
23054
23055         pread: improvement and fix
23056         * modules/pread (Depends-on): Depend on lseek, for portability to
23057         e.g., mingw.  Suggested by Eric Blake.
23058         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23059
23060         unistd.in.h: correct declaration of pread
23061         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23062         Reported by Richard W.M. Jones.
23063
23064         test-pread.sh: distribute the test script
23065         * modules/pread-tests (Files): Include test-pread.sh.
23066
23067         test-pread.sh: clean up
23068         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23069         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23070         That is unnecessary, since it's always ".".
23071         Suggestion from Eric Blake.
23072
23073         test-pread.sh: make executable
23074         * tests/test-pread.sh: Set executable bit.
23075         Reported by Eric Blake.
23076
23077         correct typo in test-pread.sh
23078         * tests/test-pread.sh: Add #! line.
23079
23080         test pread
23081         * tests/test-pread.c: New file.
23082         * tests/test-pread.sh: Likewise.
23083         * modules/pread-tests: Likewise.
23084
23085         pread: new module
23086         * modules/pread: New file.
23087         * lib/unistd.in.h (pread): Define/declare.
23088         * lib/pread.c (pread): New file.
23089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23090         * modules/unistd (Makefile.am): Substitute witnesses.
23091         * doc/posix-functions/pread.texi (pread): Update.
23092         * MODULES.html.sh: Add pread.
23093
23094 2009-11-25  Jim Meyering  <meyering@redhat.com>
23095
23096         tests/init.sh: new file to be used via most *.sh tests
23097         * tests/init.sh: New file.
23098
23099 2009-11-25  Eric Blake  <ebb9@byu.net>
23100
23101         utimens: work around older Linux failure with symlinks
23102         * lib/utimens.c (lutimensat_works_really): New variable.
23103         (fdutimens, lutimens): Use it to manage kernels that support
23104         nanosecond times on files, but not on symlinks.
23105         Reported by OndÅ™ej Vašík.
23106
23107         utimes: fix configure grammar
23108         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23109
23110 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23111
23112         regex: Fix fastmap for multibyte character ranges.
23113         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23114         characters when a multibyte character range is included.
23115
23116 2009-11-22  Andy Wingo  <wingo@pobox.com>
23117
23118         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23119         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23120
23121 2009-11-24  Bruno Haible  <bruno@clisp.org>
23122
23123         doc: Most *_l functions exist in MacOS X 10.5.
23124         * doc/posix-functions/duplocale.texi: Update platforms list.
23125         * doc/posix-functions/freelocale.texi: Likewise.
23126         * doc/posix-functions/newlocale.texi: Likewise.
23127         * doc/posix-functions/uselocale.texi: Likewise.
23128         * doc/posix-functions/isalnum_l.texi: Likewise.
23129         * doc/posix-functions/isalpha_l.texi: Likewise.
23130         * doc/posix-functions/isblank_l.texi: Likewise.
23131         * doc/posix-functions/iscntrl_l.texi: Likewise.
23132         * doc/posix-functions/isdigit_l.texi: Likewise.
23133         * doc/posix-functions/isgraph_l.texi: Likewise.
23134         * doc/posix-functions/islower_l.texi: Likewise.
23135         * doc/posix-functions/isprint_l.texi: Likewise.
23136         * doc/posix-functions/ispunct_l.texi: Likewise.
23137         * doc/posix-functions/isspace_l.texi: Likewise.
23138         * doc/posix-functions/isupper_l.texi: Likewise.
23139         * doc/posix-functions/iswalnum_l.texi: Likewise.
23140         * doc/posix-functions/iswalpha_l.texi: Likewise.
23141         * doc/posix-functions/iswblank_l.texi: Likewise.
23142         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23143         * doc/posix-functions/iswctype_l.texi: Likewise.
23144         * doc/posix-functions/iswdigit_l.texi: Likewise.
23145         * doc/posix-functions/iswgraph_l.texi: Likewise.
23146         * doc/posix-functions/iswlower_l.texi: Likewise.
23147         * doc/posix-functions/iswprint_l.texi: Likewise.
23148         * doc/posix-functions/iswpunct_l.texi: Likewise.
23149         * doc/posix-functions/iswspace_l.texi: Likewise.
23150         * doc/posix-functions/iswupper_l.texi: Likewise.
23151         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23152         * doc/posix-functions/isxdigit_l.texi: Likewise.
23153         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23154         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23155         * doc/posix-functions/strcoll_l.texi: Likewise.
23156         * doc/posix-functions/strfmon_l.texi: Likewise.
23157         * doc/posix-functions/strftime_l.texi: Likewise.
23158         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23159         * doc/posix-functions/strxfrm_l.texi: Likewise.
23160         * doc/posix-functions/tolower_l.texi: Likewise.
23161         * doc/posix-functions/toupper_l.texi: Likewise.
23162         * doc/posix-functions/towctrans_l.texi: Likewise.
23163         * doc/posix-functions/towlower_l.texi: Likewise.
23164         * doc/posix-functions/towupper_l.texi: Likewise.
23165         * doc/posix-functions/wcscoll_l.texi: Likewise.
23166         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23167         * doc/posix-functions/wctrans_l.texi: Likewise.
23168         * doc/posix-functions/wctype_l.texi: Likewise.
23169         * doc/glibc-functions/strptime_l.texi: Likewise.
23170         * doc/glibc-functions/strtod_l.texi: Likewise.
23171         * doc/glibc-functions/strtof_l.texi: Likewise.
23172         * doc/glibc-functions/strtol_l.texi: Likewise.
23173         * doc/glibc-functions/strtold_l.texi: Likewise.
23174         * doc/glibc-functions/strtoll_l.texi: Likewise.
23175         * doc/glibc-functions/strtoul_l.texi: Likewise.
23176         * doc/glibc-functions/strtoull_l.texi: Likewise.
23177         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23178         * doc/glibc-functions/wcstod_l.texi: Likewise.
23179         * doc/glibc-functions/wcstof_l.texi: Likewise.
23180         * doc/glibc-functions/wcstol_l.texi: Likewise.
23181         * doc/glibc-functions/wcstold_l.texi: Likewise.
23182         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23183         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23184         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23185
23186 2009-11-24  Bruno Haible  <bruno@clisp.org>
23187
23188         duplocale: Fix logic bug.
23189         * lib/duplocale.c: Don't include <langinfo.h>.
23190         (_NL_LOCALE_NAME): Remove macro.
23191         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23192         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23193
23194 2009-11-23  Jim Meyering  <meyering@redhat.com>
23195
23196         test-update-copyright: don't hard-code /usr/bin/perl
23197         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23198         perl to print the current year.  Gilles Espinasse reported that
23199         the replaced use of perl was hard-coded as /usr/bin/perl.
23200
23201 2009-11-23  Bruno Haible  <bruno@clisp.org>
23202
23203         duplocale: Add support for glibc 2.3.x.
23204         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23205
23206 2009-11-22  Bruno Haible  <bruno@clisp.org>
23207
23208         vasnprintf: Tiny optimization.
23209         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23210         MacOS X.
23211
23212 2009-11-22  Bruno Haible  <bruno@clisp.org>
23213
23214         Tests for module 'duplocale'.
23215         * modules/duplocale-tests: New file.
23216         * tests/test-duplocale.c: New file.
23217
23218         New module 'duplocale'.
23219         * m4/duplocale.m4: New file.
23220         * lib/locale.in.h (duplocale): New declaration.
23221         * lib/duplocale.c: New file.
23222         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23223         gl_LOCALE_H_DEFAULTS): New macros.
23224         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23225         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23226         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23227         REPLACE_DUPLOCALE.
23228         * modules/duplocale: New file.
23229         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23230
23231 2009-11-22  Bruno Haible  <bruno@clisp.org>
23232
23233         * modules/locale-tests (configure.ac): Test for newlocale function.
23234         * tests/test-locale.c: When the system has extended locale functions,
23235         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23236
23237         locale: Make locale_t available when possible.
23238         * lib/locale.in.h: Include <xlocale.h> when it exists.
23239         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23240         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23241         * modules/locale (Depends-on): Add extensions.
23242         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23243         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23244
23245 2009-11-22  Bruno Haible  <bruno@clisp.org>
23246
23247         Add comments.
23248         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23249         invocation.
23250         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23251         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23252         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23253
23254 2009-11-22  Bruno Haible  <bruno@clisp.org>
23255
23256         error: account for the possibility of freopen (stdout).
23257         * lib/error.c: Include <unistd.h>.
23258         (flush_stdout): New function, extracted from error and error_at_line.
23259         Determine stdout's fd dynamically.
23260         (error, error_at_line): Invoke flush_stdout.
23261         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23262         * modules/error (Depends-on): Add unistd.
23263
23264 2009-11-22  Bruno Haible  <bruno@clisp.org>
23265
23266         diffseq: Add comment.
23267         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23268
23269 2009-11-22  Jim Meyering  <meyering@redhat.com>
23270
23271         c-stack: avoid defining an unused static function
23272         * lib/c-stack.c (find_stack_direction): Do not define this function
23273         when it will not be used.
23274
23275         diffseq: avoid spurious gcc warnings
23276         * lib/diffseq.h (IF_LINT2): Define.
23277         (compareseq): Use it to initialize two members of "part".
23278         This avoids two used-uninitialized warnings.
23279
23280 2009-11-21  Jim Meyering  <meyering@redhat.com>
23281
23282         c-stack: avoid "ignoring return value of `write'" warning
23283         * lib/c-stack.c: Include "ignore-value.h".
23284         (die): Explicitly ignore each write return value.
23285         * modules/c-stack (Depends-on): Add ignore-value.
23286
23287 2009-11-21  Bruno Haible  <bruno@clisp.org>
23288
23289         diffseq: reduce scope of variable 'best'.
23290         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23291         variable, earlier used for two different purposes.
23292
23293 2009-11-21  Jim Meyering  <meyering@redhat.com>
23294
23295         diffseq: remove useless assignment to "best"
23296         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23297         assignment.  At that point "best" is already guaranteed to be zero.
23298
23299 2009-11-20  Eric Blake  <ebb9@byu.net>
23300
23301         build: mention ftp redirector in release announcements
23302         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23303         values that used to come from cfg.mk; mention FTP redirect URL.
23304         * build-aux/announce-gen: Mention the mirror list.
23305         Suggested by Karl Berry.
23306
23307         nanosleep: improve port to mingw
23308         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23310         LIB_NANOSLEEP, but only when needed.
23311         * modules/select (Link): Document LIBSOCKET.
23312         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23313         enough.
23314
23315         nanosleep: work around cygwin bug
23316         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23317         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23318         bug.
23319         (getnow): Delete, not needed.
23320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23321         LIB_CLOCK_GETTIME.
23322         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23323         clock-time, gettime.
23324         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23325         bug.
23326         * modules/nanosleep-tests: New test.
23327         * tests/test-nanosleep.c: New file.
23328
23329         sleep: work around cygwin bug
23330         * lib/sleep.c (rpl_sleep): Work around the bug.
23331         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23332         (gl_PREREQ_SLEEP): Delete unused macro.
23333         * modules/sleep (Depends-on): Add verify.
23334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23335         * modules/unistd (Makefile.am): Substitute witness.
23336         * lib/unistd.in.h (sleep): Update prototype.
23337         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23338         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23339         * modules/sleep-tests (Depends-on): Check for alarm.
23340
23341 2009-11-20  Jim Meyering  <meyering@redhat.com>
23342
23343         maint.mk: improve sc_prohibit_magic_number_exit
23344         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23345         so it does not match uses like System.exit(1).
23346         Add comments showing how to correct all offenders.
23347
23348 2009-11-19  Eric Blake  <ebb9@byu.net>
23349
23350         xalloc-die-tests: add missing library
23351         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23352
23353         test-xvasprintf: silence compiler warnings
23354         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23355         empty string from gcc.
23356
23357 2009-11-19  Jim Meyering  <meyering@redhat.com>
23358
23359         xfreopen: new module, from coreutils
23360         * modules/xfreopen: New module.
23361         * lib/xfreopen.c: New file.
23362         * lib/xfreopen.h: New file.
23363         * MODULES.html.sh (File stream based Input/Output"): Add it.
23364
23365 2009-11-19  Eric Blake  <ebb9@byu.net>
23366
23367         manywarnings: depend on warnings
23368         * modules/manywarnings (Depends-on): Add warnings.
23369
23370         build: avoid compiler warnings
23371         * lib/select.c (rpl_select): Delete unused variable.
23372         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23373
23374 2009-11-18  Eric Blake  <ebb9@byu.net>
23375
23376         tests: avoid false negative with --with-packager
23377         * tests/test-version-etc.sh: Discard packager information.
23378         * tests/test-argp-version-etc-1.sh: Likewise.
23379         Reported by Mike Frysinger.
23380
23381         utimens: fix regression on Solaris
23382         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23383         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23384         can only change fd timestamps via futimesat.  Instead, use an
23385         additional witness macro to avoid BSD bug.
23386         Reported by Jim Meyering.
23387
23388 2009-11-17  Eric Blake  <ebb9@byu.net>
23389
23390         usleep: use it to simplify tests
23391         * modules/stat-time-tests (Depends-on): Add usleep.
23392         (configure.ac): Drop usleep check.
23393         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23394         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23395         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23396         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23397         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23398         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23399         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23400         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23401         Likewise.
23402         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23403         * tests/test-lchown.h (nap): Likewise.
23404         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23405         * tests/test-stat-time.c (nap): Likewise.
23406         * tests/test-utimens-common.h (nap): Update comments.
23407
23408         usleep: new module
23409         * modules/usleep: New file.
23410         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23411         * lib/usleep.c (usleep): Likewise.
23412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23413         * modules/unistd (Makefile.am): Substitute witnesses.
23414         * lib/unistd.in.h (usleep): Add declaration.
23415         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23416         * MODULES.html.sh (Date and time): Likewise.
23417         * modules/usleep-tests (Depends-on): New test.
23418         * tests/test-usleep.c: New file.
23419
23420         chown: work around OpenBSD bug
23421         * lib/chown.c (rpl_chown): Work around the bug.
23422         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23423         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23424         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23425         * modules/chown (Depends-on): Add stdbool.
23426         * modules/lchown (Depends-on): Likewise.
23427         * doc/posix-functions/chown.texi (chown): Document the bug.
23428         * doc/posix-functions/lchown.texi (lchown): Likewise.
23429         * tests/test-lchown.h (test_chown): Relax test.
23430
23431         mkstemp: avoid conflict with C++ keyword template
23432         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23433         * lib/mkostemp.c (mkostemp): Likewise.
23434         * lib/mkostemps.c (mkostemps): Likewise.
23435         * lib/mkstemp.c (mkstemp): Likewise.
23436         * lib/mkstemps.c (mkstemps): Likewise.
23437
23438         xalloc-die-tests: optimize
23439         * tests/test-xalloc-die.sh: Reduce number of processes.
23440
23441 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23442
23443         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23444         patch from ludo@gnu.org (Ludovic Courtès).
23445
23446 2009-11-17  Jim Meyering  <meyering@redhat.com>
23447
23448         version-etc: use proper license string
23449         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23450         * modules/version-etc-fsf: Likewise.
23451
23452 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23453
23454         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23455         printed to stdout.  Deal with EOL differences.
23456
23457 2009-11-17  Eric Blake  <ebb9@byu.net>
23458
23459         unsetenv: work around Solaris bug
23460         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23461         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23462         Reported by Jim Meyering.
23463
23464         vasnprintf: avoid compiler warnings
23465         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23466         variables.
23467         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23468
23469 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23470
23471         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23472         settings since xalloc-die is no longer the self test,
23473         xalloc-die.sh is.
23474
23475 2009-11-17  Jim Meyering  <meyering@redhat.com>
23476
23477         test-xalloc-die.sh: make the code agree with the commit log
23478         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23479         at the end, just in case you happen to have a test-xalloc-die
23480         program in some other PATH directory.
23481
23482         test-xalloc-die.sh: fix a portability bug
23483         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23484         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23485         Otherwise, argv[0] (as often seen in diagnostics) would be too
23486         system-dependent, sometimes with, and sometimes without the leading "./".
23487
23488         version-etc-fsf: relax license to LGPLv3+
23489         * modules/version-etc-fsf (License): Relax license.
23490
23491 2009-11-16  Eric Blake  <ebb9@byu.net>
23492
23493         xalloc-die-tests: avoid printing null pointer
23494         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23495         shell script.
23496         * tests/test-xalloc-die.c (program_name): Declare.
23497         * tests/test-xalloc-die.sh (tmpfiles): New file.
23498
23499         setenv, unsetenv: work around various bugs
23500         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23501         (setenv) [HAVE_SETENV]: Work around bugs.
23502         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23503         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23504         for bugs.
23505         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23506         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23508         * modules/stdlib (Makefile.am): Update substitutions.
23509         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23510         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23511         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23512         * modules/setenv-tests: New test.
23513         * modules/unsetenv-tests: Likewise.
23514         * tests/test-setenv.c: New file.
23515         * tests/test-unsetenv.c: Likewise.
23516
23517 2009-11-16  Jim Meyering  <meyering@redhat.com>
23518
23519         version-etc: relax license to LGPLv3+
23520         * modules/version-etc (License): Relax license.
23521
23522         better AC_REQUIRE expanded-before-required-warning avoidance
23523         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23524         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23525         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23526         which is no longer needed.
23527
23528 2009-11-16  Eric Blake  <ebb9@byu.net>
23529
23530         test-freading: clean up temporary file
23531         * tests/test-freading.c (main): Remove file on success, and use
23532         ASSERT more liberally.
23533         Reported by Jim Meyering.
23534
23535 2009-11-16  Jim Meyering  <meyering@redhat.com>
23536
23537         avoid new AC_REQUIRE expanded-before-required warnings
23538         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23539         merely using it.
23540         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23541         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23542
23543 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23544
23545         * tests/test-xalloc-die.c: New file.
23546         * modules/xalloc-die-tests: New file.
23547         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23548         XFAIL_TESTS so it can be appended by modules.
23549
23550 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23551
23552         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23553         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23554
23555 2009-11-14  Eric Blake  <ebb9@byu.net>
23556
23557         fnmatch: avoid compiler warning
23558         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23559         to silence compiler warning about mismatch signedness in ?:.
23560         Reported by Robert Millan.
23561
23562         intprops: add double-inclusion guard
23563         * lib/intprops.h: Allow idempotent includes.
23564         Suggested by Bruce Korb.
23565
23566         openat: detect Solaris fchownat bug
23567         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23568         penalizing glibc chownat when only lchownat is broken.
23569         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23570         trailing slash bugs.
23571         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23572         * modules/openat-tests (Files): Include more files.
23573         (Depends-on): Add mgetgroups, sleep, stat-time.
23574         (configure.ac): Add additional checks.
23575         (Makefile.am): Build new test.
23576         * tests/test-fchownat.c: New file.
23577
23578         lchown: detect Solaris and FreeBSD bug
23579         * lib/lchown.c (rpl_lchown): Work around bug.
23580         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23582         * modules/unistd (Makefile.am): Populate it.
23583         * lib/unistd.in.h (lchown): Update declaration.
23584         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23585         * modules/lchown-tests: New file.
23586         * tests/test-lchown.h (test_lchown): Likewise.
23587         * tests/test-lchown.c (main): Likewise.
23588
23589         chown: detect Solaris and FreeBSD bug
23590         * lib/chown.c (rpl_chown): Work around bug.
23591         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23592         (gl_PREREQ_CHOWN): Delete.
23593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23594         * modules/unistd (Makefile.am): Populate it.
23595         * lib/unistd.in.h (chown): Update declaration.
23596         * lib/lchown.c (chown): Update client.
23597         * modules/lchown (Depends-on): Add lstat.
23598         * doc/posix-functions/chown.texi (chown): Document the bug.
23599         * doc/posix-functions/getgroups.texi (getgroups): Document
23600         getgroups pitfall.
23601         * modules/chown-tests: New file.
23602         * tests/test-chown.h (test_chown): Likewise.
23603         * tests/test-chown.c (main): Likewise.
23604
23605 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23606
23607         gnulib-tool: correctly detect absence of m4 directories
23608         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23609
23610 2009-11-14  Jim Meyering  <meyering@redhat.com>
23611
23612         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23613         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23614
23615 2009-11-14  John W. Eaton  <jwe@gnu.org>
23616
23617         strftime.h: wrap funtion declaration in extern "C" block
23618         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23619
23620 2009-11-13  Eric Blake  <ebb9@byu.net>
23621
23622         getgroups: avoid compiler warning
23623         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23624
23625         getgroups: work around FreeBSD bug
23626         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23627         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23628         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23629         * tests/test-getgroups.c (main): Fix buffer overrun.
23630
23631         getgroups: avoid compilation failure
23632         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23633         * modules/getgroups (Depends-on): Add stdint.
23634
23635 2009-11-13  Jim Meyering  <meyering@redhat.com>
23636
23637         test-getgroups: avoid compilation failure
23638         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23639
23640 2009-11-13  Eric Blake  <ebb9@byu.net>
23641
23642         mgetgroups: new module, taken from coreutils
23643         * modules/mgetgroups: New file.
23644         * lib/mgetgroups.h: Likewise.
23645         * lib/mgetgroups.c (mgetgroups): Likewise.
23646         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23647         * MODULES.html.sh (Users and groups): Mention it.
23648
23649         getgroups: don't expose GETGROUPS_T to user
23650         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23651         an element at a time if GETGROUPS_T is wrong size.
23652         * lib/getugroups.h (getugroups): Change signature.
23653         * lib/unistd.in.h (getgroups): Likewise.
23654         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23655         signature needs fixing.
23656         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23657         AC_TYPE_GETGROUPS.
23658         * modules/group-member (Depends-on): Add getgroups.
23659         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23660         (group_member): Rely on getgroups replacement.
23661         * lib/getugroups.c (getugroups): Use gid_t.
23662         * tests/test-getgroups.c (main): Likewise.
23663         * NEWS: Mention the signature change.
23664         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23665         problem with signature.
23666         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23667         GETGROUPS_T is still useful for setgroups.
23668
23669         getgroups, getugroups: provide stubs for mingw
23670         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23671         * lib/getugroups.c (getugroups): Likewise.
23672         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23673         function.  Modernize replacement scheme.
23674         (gl_PREREQ_GETGROUPS): Delete.
23675         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23676         * modules/getgroups (configure.ac): Declare witness.
23677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23678         * modules/unistd (Depends-on): Substitute witness.
23679         * lib/unistd.in.h (getgroups): Declare replacement.
23680
23681         getgroups: avoid calling exit
23682         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23683         drop xalloc.
23684         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23685         dependencies.
23686         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23687         exiting, in the rare case of malloc failure.
23688
23689         getgroups: fix logic error
23690         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23691         has more than 20 groups.
23692         * modules/getgroups-tests: New test.
23693         * tests/test-getgroups.c: New file.
23694
23695 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23696
23697         * tests/test-base64.c: Improve.
23698
23699 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23700
23701         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23702         Blake <ebb9@byu.net>.
23703
23704 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23705
23706         * tests/test-xvasprintf.c: Add %s%s related checks.
23707
23708 2009-11-12  Eric Blake  <ebb9@byu.net>
23709
23710         version-etc: match standards.texi style
23711         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23712         and use <> only for URLs.
23713
23714 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23715
23716         fts: do not fail on a submount during traversal
23717         * lib/fts.c (fts_build): Read the stat info again after opening
23718         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23719         Original report at http://bugzilla.redhat.com/501848.
23720
23721 2009-11-12  Jim Meyering  <meyering@redhat.com>
23722
23723         bootstrap: sync from coreutils
23724         * build-aux/bootstrap (bootstrap_epilogue): New function.
23725         Use git_modules_config in one more place.  This make bootstrap's
23726         --gnulib-srcdir option more useful for testing.
23727
23728         bootstrap: generalize autoheader check
23729         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23730         AC_CONFIG_HEADERS.
23731
23732 2009-11-11  Eric Blake  <ebb9@byu.net>
23733
23734         mkfifoat: use new modules for Solaris and BSD bugs
23735         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23736         * lib/mkfifoat.c (mknodat): Split...
23737         * lib/mknodat.c (mknodat): ...into new file.
23738         * modules/mkfifoat (Files): Ship new file.
23739         (Depends-on): Add mkfifo, mknod.
23740         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23741         (Depends-on): Add symlink.
23742         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23743         redundant with test_mkfifo.h.
23744         (do_mkfifoat, do_mknodat): New helpers.
23745
23746         mknod: new module
23747         * modules/mknod: New file.
23748         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23749         * lib/mknod.c (mknod): Likewise.
23750         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23751         defaults.
23752         * modules/sys_stat (Makefile.am): Substitute them.
23753         * lib/sys_stat.in.h (mknod): Declare replacement.
23754         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23755         Document it.
23756         * doc/posix-functions/mknod.texi (mknod): Likewise.
23757         * modules/mknod-tests: New test.
23758         * tests/test-mknod.c: Likewise.
23759
23760         mkfifo: new module
23761         * modules/mkfifo: New file.
23762         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23763         * lib/mkfifo.c (mkfifo): Likewise.
23764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23765         defaults.
23766         * modules/sys_stat (Makefile.am): Substitute them.
23767         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23768         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23769         Document it.
23770         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23771         * modules/mkfifo-tests: New test.
23772         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23773         from test-mkfifoat.c.
23774         * tests/test-mkfifo.c: New file.
23775
23776         readlink: detect FreeBSD bug
23777         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23778         slash on symlink.
23779         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23780         * tests/test-readlink.h (test_readlink): Enhance test.
23781
23782         symlink: detect FreeBSD bug
23783         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23784         slash on symlink.
23785         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23786         * tests/test-symlink.h (test_symlink): Enhance test.
23787
23788 2009-11-10  Eric Blake  <ebb9@byu.net>
23789
23790         link: detect FreeBSD bug
23791         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23792         symlink.
23793         * doc/posix-functions/link.texi (link): Document the bug.
23794         * tests/test-link.h (test_link): Enhance test.
23795         * tests/test-linkat.c (main): Update caller.
23796
23797         unlink, remove: detect FreeBSD bug
23798         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23799         slash on symlink.
23800         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23801         * doc/posix-functions/remove.texi (remove): Likewise.
23802         * tests/test-unlink.h (test_unlink): Enhance test.
23803         * tests/test-remove.c (main): Likewise.
23804
23805 2009-11-09  Eric Blake  <ebb9@byu.net>
23806
23807         rename: detect FreeBSD bug
23808         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23809         slash on symlink.
23810         * modules/renameat-tests (Depends-on): Add filenamecat.
23811         * tests/test-rename.h (test_rename): Allow one more errno.
23812         * tests/test-renameat.c (main): Likewise.
23813         * doc/posix-functions/rename.texi (rename): Document the bug.
23814
23815         open: detect FreeBSD bug
23816         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23817         symlink.
23818         * doc/posix-functions/open.texi (open): Document the bug.
23819         * doc/posix-functions/utimes.texi (utimes): Likewise.
23820         * tests/test-open.h (test_open): Add parameters, and test symlink
23821         handling.
23822         * tests/test-open.c (main): Adjust caller.
23823         * tests/test-fcntl-safer.c (main): Likewise.
23824         * modules/open-tests (Depends-on): Add stdbool, symlink.
23825         * modules/fcntl-safer-tests (Depends-on): Likewise.
23826         * tests/test-openat.c (main): Add test-open tests.
23827
23828         stat: detect FreeBSD bug
23829         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23830         symlink.
23831         * doc/posix-functions/stat.texi (stat): Document the bug.
23832         * tests/test-stat.h (test_stat_func): Add argument.
23833         * tests/test-stat.c (main): Adjust caller.
23834         * tests/test-fstatat.c (main): Likewise.
23835         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23836         Reported by Jim Meyering.
23837
23838 2009-11-09  James Youngman  <jay@gnu.org>
23839
23840         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23841         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23842
23843 2009-11-08  Jim Meyering  <meyering@redhat.com>
23844
23845         utimens: remove invalid futimesat call
23846         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23847         It used the file descriptor of the target file as the DIR_FD
23848         parameter and NULL as the file name.  That caused failure with
23849         errno == EFAULT on FreeBSD-8.0-rc2
23850
23851 2009-11-07  Eric Blake  <ebb9@byu.net>
23852
23853         fflush, freadseek: use fseeko, not fseek
23854         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23855         (clear_ungetc_buffer): Avoid potential problems on large files.
23856         * lib/freadseek.c (freadseek): Likewise.
23857         * modules/freadseek (Depends-on): Add fseeko.
23858         * modules/fseek (configure.ac): Set a witness.
23859         * tests/test-fflush.c (main): Use fseeko.
23860         * tests/test-fpurge.c (fseek): Disable link warning.
23861         * tests/test-freadable.c (fseek): Likewise.
23862         * tests/test-freading.c (fseek): Likewise.
23863         * tests/test-fseeko.c (fseek): Likewise.
23864         * tests/test-ftell.c (fseek): Likewise.
23865         * tests/test-ftello.c (fseek): Likewise.
23866         * tests/test-fwritable.c (fseek): Likewise.
23867         * tests/test-fwriting.c (fseek): Likewise.
23868
23869 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23870
23871         * modules/memchr (Depends-on): Drop getpagesize dependency.
23872
23873 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23874
23875         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23876         Reported by Ludovic Courtès.
23877         * build-aux/pmccabe2html: Improve example usage.
23878         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23879
23880 2009-11-06  Jim Meyering  <meyering@redhat.com>
23881
23882         do-release-commit-and-tag: New module.
23883         Automate the release-commit and tag process.
23884         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23885         * modules/do-release-commit-and-tag: New file.
23886         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23887
23888 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23889
23890         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23891         because test-select.c uses inet_pton.
23892
23893 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23894
23895         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23896         GETADDRINFO_LIB.  Bump serial number.
23897         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23898         Suggested by Eric Blake <ebb9@byu.net>.
23899
23900 2009-11-05  Eric Blake  <ebb9@byu.net>
23901
23902         strtod: detect darwin bug
23903         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23904         Reported by Leo Davis.
23905
23906         freopen-safer: new module
23907         * modules/freopen-safer: New module.
23908         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23909         * lib/freopen-safer.c (freopen_safer): New file.
23910         * lib/stdio-safer.h (freopen_safer): New declaration.
23911         * lib/stdio--.h (freopen): New override.
23912         * MODULES.html.sh (File stream based Input/Output): Mention it.
23913         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23914         freopen-safer module.
23915         * doc/posix-functions/stderr.texi (stderr): Likewise.
23916         * doc/posix-functions/stdin.texi (stdin): Likewise.
23917         * doc/posix-functions/stdout.texi (stdout): Likewise.
23918         * modules/freopen-safer-tests: New test.
23919         * tests/test-reopen-safer.c: New file.
23920
23921 2009-11-05  Jim Meyering  <meyering@redhat.com>
23922
23923         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23924         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23925
23926 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23927
23928         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23929
23930 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23931
23932         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23933
23934 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23935
23936         Fix link error.
23937         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23938         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23939
23940 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23941
23942         * tests/test-func.c: Also test value of __func__.
23943
23944 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23945
23946         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23947         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23948
23949 2009-11-05  Bruno Haible  <bruno@clisp.org>
23950
23951         Fix link error.
23952         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23953         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23954         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23955
23956 2009-11-05  Bruno Haible  <bruno@clisp.org>
23957
23958         Tests for module 'inet_pton'.
23959         * modules/inet_pton-tests: New file.
23960         * tests/test-inet_pton.c: New file.
23961
23962 2009-11-05  Bruno Haible  <bruno@clisp.org>
23963
23964         Tests for module 'inet_ntop'.
23965         * modules/inet_ntop-tests: New file.
23966         * tests/test-inet_ntop.c: New file.
23967
23968 2009-11-04  Eric Blake  <ebb9@byu.net>
23969
23970         stdlib-safer: wrap all mkstemp variants
23971         * modules/mkostemp (configure.ac): Set witness.
23972         * modules/mkostemps (configure.ac): Likewise.
23973         * modules/mkstemps (configure.ac): Likewise.
23974         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23975         (mkstemps_safer): Wrap more functions.
23976         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23977         wrapping.
23978         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23979         (mkstemps_safer): Implement the wrappers.
23980
23981         mkstemps, mkostemps: new modules
23982         * modules/mkostemps: New module.
23983         * modules/mkstemps: Likewise.
23984         * lib/mkostemps.c (mkostemps): New file.
23985         * lib/mkstemps.c (mkstemps): Likewise.
23986         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23987         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23989         * modules/stdlib (Makefile.am): Substitute them.
23990         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23991         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23992         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23993         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23994         * MODULES.html.sh (File system functions): Mention them.
23995
23996         tempname: resync from glibc
23997         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23998         same values for __GT_FILE as glibc.  Abort even when assertions
23999         are disabled.
24000         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24001         match its value otherwise.  Allow idempotent inclusion.
24002         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24003         * lib/mkostemp.c (mkostemp): Likewise.
24004         * lib/mkstemp.c (mkstemp): Likewise.
24005         * lib/tmpfile.c (tmpfile): Likewise.
24006         * NEWS: Document this.
24007
24008         utimens: fix use of futimens on older Linux
24009         * lib/utimens.c (fdutimens): Use updated, rather than original,
24010         timespec to avoid bug in older Linux kernel.
24011         Reported by Simon Josefsson.
24012
24013 2009-11-04  Bruno Haible  <bruno@clisp.org>
24014
24015         Make num_processors more flexible and consistent.
24016         * lib/nproc.h (enum nproc_query): New type.
24017         (num_processors): Add a 'query' argument.
24018         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24019         (num_processors): Add a 'query' argument. Test the value of the
24020         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24021         mingw, count the number of CPUs available for the current process.
24022         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24023         Check for sched_getaffinity and sched_getaffinity_np.
24024         * modules/nproc (Depends-on): Add c-ctype, extensions.
24025         * NEWS: Mention the change.
24026
24027 2009-11-03  Bruno Haible  <bruno@clisp.org>
24028
24029         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24030
24031 2009-11-03  Jim Meyering  <meyering@redhat.com>
24032
24033         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24034         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24035         if it is defined.
24036
24037 2009-11-02  Eric Blake  <ebb9@byu.net>
24038
24039         mktime, timegm: share common declaration
24040         * lib/mktime-internal.h: New file.
24041         * lib/mktime.c: Use it rather than open-coding a declaration.
24042         * lib/timegm.c: Likewise.
24043         * modules/mktime (Files): Ship it.
24044         * modules/timegm (Files): Likewise.
24045         Suggested by Bruno Haible.
24046
24047         test-update-copyright: update test to match script changes
24048         * tests/test-update-copyright.sh: Avoid hard-coding perl
24049         location.  Don't update *.bak created by earlier runs.
24050
24051 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24052             Simon Josefsson  <simon@josefsson.org>
24053             Bruno Haible  <bruno@clisp.org>
24054
24055         Fix link error on Solaris 8.
24056         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24057         also in libnsl. Define also INET_PTON_LIB.
24058         * modules/inet_pton (Link): New section.
24059
24060 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24061             Bruno Haible  <bruno@clisp.org>
24062
24063         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24064         * modules/inet_ntop (Link): New section.
24065         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24066
24067 2009-11-02  Eric Blake  <ebb9@byu.net>
24068
24069         maint: avoid compiler warnings in m4 macros
24070         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24071         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24072
24073 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24074
24075         * m4/pmccabe2html.m4: Remove file.
24076         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24077         function.  Change maintainer.
24078         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24079         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24080         Courtès).
24081
24082 2009-10-31  Eric Blake  <ebb9@byu.net>
24083
24084         fseeko: fix m4 regression
24085         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24086         regression from 2009-10-27.
24087         Reported by Ralf Wildenhues.
24088
24089 2009-10-31  Jim Meyering  <meyering@redhat.com>
24090
24091         inttostr: aesthetics and improved (compile-time) safety
24092         Define inttype_is_signed rather than inttype_is_unsigned,
24093         since the sole use is via "#if inttype_is_signed".
24094         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24095         inttype_is_unsigned.
24096         * lib/offtostr.c (inttype_is_signed): Likewise.
24097         * lib/uinttostr.c (inttype_is_signed): Likewise.
24098         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24099         * lib/inttostr.c (inttostr): Use verify to cross-check the
24100         inttype_is_signed value and the signedness of the actual type.
24101         * modules/inttostr (Depends-on): Add verify.
24102
24103 2009-10-30  Eric Blake  <ebb9@byu.net>
24104
24105         build: avoid compiler warnings
24106         * lib/fchmodat.c (lchmod): Mark unused variables.
24107         * lib/getopt.c (_getopt_initialize): Likewise.
24108         * lib/mktime.c (__mktime_internal): Provide prototype.
24109         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24110         older gcc that do not understand #pragma GCC diagnostic.
24111         * lib/uinttostr.c (inttype_is_unsigned): Define.
24112         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24113
24114 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24115
24116         stat: fix compilation on AIX
24117         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24118         only see struct stat64.
24119
24120 2009-10-30  Eric Blake  <ebb9@byu.net>
24121
24122         exclude: make more robust
24123         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24124         rather than masking a coding bug.
24125         Suggested by Bruno Haible.
24126
24127 2009-10-30  Jim Meyering  <meyering@redhat.com>
24128
24129         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24130         Rather than putting #!/usr/bin/perl on the first line,
24131         start with a variant of what's recommended by "man perlrun" that
24132         invokes the first "perl" program from your shell's search path.
24133         * build-aux/gitlog-to-changelog: Replace #!... as above.
24134         Add a "Local Variables" perl mode setting.
24135         Prompted by a patch from Ludovic Courtès.
24136         Improved by Eric Blake.
24137         * build-aux/useless-if-before-free: Likewise.
24138         * build-aux/announce-gen: Likewise.
24139         * build-aux/update-copyright: Likewise.
24140
24141 2009-10-29  Eric Blake  <ebb9@byu.net>
24142
24143         filenamecat-lgpl: adjust clients
24144         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24145         filenamecat.
24146         * modules/renameat (Depends-on): Likewise.
24147
24148         filenamecat: split into filenamecat-lgpl
24149         * modules/filenamecat-lgpl: New module.
24150         * modules/filenamecat (Files): Move library-safe files into
24151         filenamecat-lgpl.
24152         (Depends-on): Add filenamecat-lgpl.
24153         (configure.ac): Declare witness.
24154         * lib/filenamecat.h (file_name_concat): Only declare when using
24155         GPL module.
24156         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24157         Move...
24158         * lib/filenamecat-lgpl.c: ...into new file.
24159         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24160         (gl_FILE_NAME_CONCAT): Use it.
24161         * MODULES.html.sh (File system functions): Mention new module.
24162
24163         argp: avoid memory leak
24164         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24165         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24166         base_name, since the latter malloc()s and can call exit().
24167         Leak introduced 2006-07-03.
24168
24169         dirname-lgpl: adjust clients that don't need full dirname
24170         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24171         * modules/filenamecat (Depends-on): Likewise.
24172         * modules/linkat (Depends-on): Likewise.
24173         * modules/mkancesdirs (Depends-on): Likewise.
24174         * modules/mkdir (Depends-on): Likewise.
24175         * modules/openat (Depends-on): Likewise.
24176         * modules/savewd (Depends-on): Likewise.
24177         * modules/rename (Depends-on): Likewise.
24178         (License): Relax license.
24179         * modules/mkdir-tests (Depends-on): Drop progname.
24180         (Makefile.am): Delete unneeded LDADD.
24181         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24182
24183         dirname: split into dirname-lgpl
24184         * modules/dirname-lgpl: New module.
24185         * modules/dirname (Files): Move library-safe files into
24186         dirname-lgpl.
24187         (Depends-on): Add dirname-lgpl.
24188         (configure.ac): Declare witness.
24189         * modules/double-slash-root (License): Relax license.
24190         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24191         module.
24192         * lib/dirname.c (dir_len, mdir_name): Move...
24193         * lib/dirname-lgpl.c: ...into new file.
24194         * lib/basename.c (last_component, base_len): Move...
24195         * lib/basename-lgpl.c: ...into new file.
24196         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24197         (gl_DIRNAME): Use it.
24198         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24199         Mention new module.
24200         * modules/dirname-tests (Depends-on): Add progname.
24201         * tests/test-dirname.c (program_name): Delete.
24202
24203         mkdir: make safe for libraries
24204         * modules/mkdir (Depends-on): Drop xalloc.
24205         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24206         exit.
24207
24208         tests: avoid some compiler warnings
24209         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24210         literals.
24211         * tests/test-memchr.c (main): Avoid type mismatch.
24212         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24213         * tests/test-base64.c (main): Likewise.
24214         * tests/test-getdelim.c (main): Likewise.
24215         * tests/test-gethostname.c (main): Likewise.
24216         * tests/test-getline.c (main): Likewise.
24217         * tests/test-netinet_in.c (main): Likewise.
24218         * tests/test-select.c (open_server_socket, main): Likewise.
24219         * tests/test-select-stdin.c (main): Likewise.
24220         * tests/test-sockets.c (main): Likewise.
24221         * tests/test-strsignal.c (main): Likewise.
24222         * tests/test-sys_select.c (main): Likewise.
24223         * tests/test-sys_socket.c (main): Likewise.
24224         * tests/test-u64.c (main): Likewise.
24225         * tests/test-xfprintf-posix.c (main): Likewise.
24226         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24227
24228         sockets: avoid compiler warning
24229         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24230
24231         maint: detect usage(1) and other suspicious exits
24232         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24233
24234 2009-10-29  Jim Meyering  <meyering@redhat.com>
24235
24236         timespec: long-to-int truncation could make timespec_cmp malfunction
24237         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24238         a multiple of 2^32 nanoseconds as no difference.
24239
24240 2009-10-28  Jim Meyering  <meyering@redhat.com>
24241
24242         fprintftime: wrap macro code argument in "do {...} while(0)"
24243         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24244         cpy macro must be a statement that can be followed by a semicolon.
24245         Now that the else clause contains a comment and is hence longer
24246         than one line, I require curly braces.  That in turn requires
24247         that we wrap this code block in the standard do...while(0).
24248
24249         fprintftime: remove stray semicolon from previous change
24250         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24251
24252         fprintftime: avoid a warning about ignored fwrite return value
24253         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24254         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24255         that is unsafe.
24256         * modules/fprintftime (Depends-on): Add ignore-value.
24257
24258         exclude: avoid an unwarranted warning
24259         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24260
24261 2009-10-27  Eric Blake  <ebb9@byu.net>
24262
24263         fseek: avoid compilation failure when fflush is replaced
24264         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24265         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24266         module is in use.
24267         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24268         module is not in use; since REPLACE_FSEEK worked otherwise.
24269         (GNULIB_FTELLO): Likewise for ftell.
24270         Reported by Ian Beckwith and others.
24271
24272 2009-10-27  Bruno Haible  <bruno@clisp.org>
24273
24274         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24275         Reported by Jim Meyering.
24276
24277 2009-10-27  Jim Meyering  <jim@meyering.net>
24278             Bruno Haible  <bruno@clisp.org>
24279
24280         Avoid warning despite dropping the return value of fwrite.
24281         * lib/unicodeio.c: Include ignore-value.h.
24282         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24283         * modules/unicodeio (Depends-on): Add ignore-value.
24284
24285 2009-10-26  Eric Blake  <ebb9@byu.net>
24286
24287         areadlinkat: fix fallback path
24288         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24289         pointer and zero.
24290
24291 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24292
24293         Use a better IO block size for modern systems
24294         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24295         * lib/md2.c: Likewise.
24296         * lib/md4.c: Likewise.
24297         * lib/md5.c: Likewise.
24298         * lib/sha1.c: Likewise.
24299         * lib/sha256.c: Likewise.
24300         * lib/sha512.c: Likewise.
24301
24302 2009-10-22  Eric Blake  <ebb9@byu.net>
24303
24304         tests: avoid several compiler warnings
24305         * tests/test-getcwd.c (main): Avoid buffer underflow.
24306         * tests/test-getdate.c (main): String literals are not safe with
24307         putenv, so use setenv.  Declare unused argument.
24308         * modules/getdate-tests (Depends-on): Add setenv.
24309         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24310         problems with string literals in char *.
24311         * tests/test-hash.c (main): Avoid shadowing declaration.
24312         (insert_new): Treat string literals as char const *.
24313         * tests/test-getopt.h (test_getopt): Likewise.
24314         (getopt_loop): Alter types to minimize casting elsewhere.
24315         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24316         (test_getopt_long_posix): Likewise.
24317         (do_getopt_long): Add wrapper to minimize casting.
24318         * tests/test-atexit.c (clear_temp_file): Use void.
24319         * tests/test-areadlink-with-size.c (main): Declare unused
24320         arguments.
24321         * tests/test-areadlink.c (main): Likewise.
24322         * tests/test-areadlinkat-with-size.c (main): Likewise.
24323         * tests/test-areadlinkat.c (main): Likewise.
24324         * tests/test-canonicalize-lgpl.c (main): Likewise.
24325         * tests/test-canonicalize.c (main): Likewise.
24326         * tests/test-dirent-safer.c (main): Likewise.
24327         * tests/test-dirname.c (main): Likewise.
24328         * tests/test-dup2.c (main): Likewise.
24329         * tests/test-fchdir.c (main): Likewise.
24330         * tests/test-fcntl-h.c (main): Likewise.
24331         * tests/test-fcntl-safer.c (main): Likewise.
24332         * tests/test-fdopendir.c (main): Likewise.
24333         * tests/test-fdutimensat.c (main): Likewise.
24334         * tests/test-fflush.c (main): Likewise.
24335         * tests/test-filenamecat.c (main): Likewise.
24336         * tests/test-filevercmp.c (main): Likewise.
24337         * tests/test-fopen-safer.c (main): Likewise.
24338         * tests/test-fopen.c (main): Likewise.
24339         * tests/test-fpending.c (main): Likewise.
24340         * tests/test-fpurge.c (main): Likewise.
24341         * tests/test-freading.c (main): Likewise.
24342         * tests/test-fstatat.c (main): Likewise.
24343         * tests/test-fsync.c (main): Likewise.
24344         * tests/test-futimens.c (main): Likewise.
24345         * tests/test-getndelim2.c (main): Likewise.
24346         * tests/test-gettimeofday.c (main): Likewise.
24347         * tests/test-getopt.c (main): Likewise.
24348         * tests/test-i-ring.c (main): Likewise.
24349         * tests/test-inttypes.c (main): Likewise.
24350         * tests/test-link.c (main): Likewise.
24351         * tests/test-lstat.c (main): Likewise.
24352         * tests/test-math.c (main): Likewise.
24353         * tests/test-md5.c (main): Likewise.
24354         * tests/test-memchr2.c (main): Likewise.
24355         * tests/test-memrchr.c (main): Likewise.
24356         * tests/test-mkdir.c (main): Likewise.
24357         * tests/test-mkdirat.c (main): Likewise.
24358         * tests/test-mkfifoat.c (main): Likewise.
24359         * tests/test-open.c (main): Likewise.
24360         * tests/test-openat-safer.c (main): Likewise.
24361         * tests/test-openat.c (main): Likewise.
24362         * tests/test-quotearg.c (main): Likewise.
24363         * tests/test-rawmemchr.c (main): Likewise.
24364         * tests/test-readlink.c (main): Likewise.
24365         * tests/test-remove.c (main): Likewise.
24366         * tests/test-rename.c (main): Likewise.
24367         * tests/test-renameat.c (main): Likewise.
24368         * tests/test-rmdir.c (main): Likewise.
24369         * tests/test-sha1.c (main): Likewise.
24370         * tests/test-signal.c (main): Likewise.
24371         * tests/test-sigaction.c (main): Likewise.
24372         * tests/test-stat.c (main): Likewise.
24373         * tests/test-stat-time.c (main): Likewise.
24374         * tests/test-stddef.c (main): Likewise.
24375         * tests/test-stdint.c (main): Likewise.
24376         * tests/test-stdio.c (main): Likewise.
24377         * tests/test-stdlib.c (main): Likewise.
24378         * tests/test-strchrnul.c (main): Likewise.
24379         * tests/test-strerror.c (main): Likewise.
24380         * tests/test-string.c (main): Likewise.
24381         * tests/test-strtod.c (main): Likewise.
24382         * tests/test-strverscmp.c (main): Likewise.
24383         * tests/test-symlink.c (main): Likewise.
24384         * tests/test-symlinkat.c (main): Likewise.
24385         * tests/test-sys_stat.c (main): Likewise.
24386         * tests/test-sys_time.c (main): Likewise.
24387         * tests/test-time.c (main): Likewise.
24388         * tests/test-unistd.c (main): Likewise.
24389         * tests/test-unlink.c (main): Likewise.
24390         * tests/test-unlinkat.c (main): Likewise.
24391         * tests/test-utimens.c (main): Likewise.
24392         * tests/test-utimensat.c (main): Likewise.
24393         * tests/test-version-etc.c (main): Likewise.
24394         * tests/test-wchar.c (main): Likewise.
24395         * tests/test-wctype.c (main): Likewise.
24396         * tests/test-xprintf-posix.c (main): Likewise.
24397         * tests/test-posixtm.c (main): Likewise.
24398         (STREQ): Delete unused macro.
24399         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24400         shadowed variables.
24401         * tests/test-memchr.c (main): Likewise.
24402
24403 2009-10-21  Eric Blake  <ebb9@byu.net>
24404
24405         areadlinkat: avoid failure on older glibc
24406         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24407         rather than mis-comparing 0 against FUNC_RESULT of char*.
24408
24409 2009-10-21  Bruno Haible  <bruno@clisp.org>
24410
24411         * modules/stpncpy (License): Relicense under LGPLv2+.
24412         Reported by David Lutterkort <lutter@redhat.com>.
24413
24414 2009-10-20  Eric Blake  <ebb9@byu.net>
24415
24416         utimensat: work around Solaris 9 bug
24417         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24418         has trailing slash bugs.
24419         * tests/test-lutimens.h (test_lutimens): Enhance test.
24420         * tests/test-utimens.h (test_utimens): Likewise.
24421         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24422         * doc/posix-functions/utimes.texi (utimes): Likewise.
24423         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24424         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24425         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24426         * doc/posix-functions/futimens.texi (futimens): Likewise.
24427
24428         fdutimensat: new module
24429         * modules/fdutimensat: New file.
24430         * lib/fdutimensat.c (fdutimensat): Likewise.
24431         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24432         * MODULES.html.sh (File system functions): Mention module.
24433         * modules/fdutimensat-tests: New test.
24434         * tests/test-fdutimensat.c: Likewise.
24435
24436         doc: regenerate INSTALL
24437         * doc/INSTALL: Reflect recent autoconf update.
24438         * doc/INSTALL.ISO: Likewise.
24439         * doc/INSTALL.UTF-8: Likewise.
24440
24441 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24442
24443         acl: warn if ACL support is not detected
24444         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24445
24446 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24447
24448         * lib/nproc.h: Add extern "C" block for C++.
24449
24450 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24451             Bruno Haible  <bruno@clisp.org>
24452
24453         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24454         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24455         * doc/posix-functions/isalpha.texi: Likewise.
24456         * doc/posix-functions/isblank.texi: Likewise.
24457         * doc/posix-functions/iscntrl.texi: Likewise.
24458         * doc/posix-functions/isdigit.texi: Likewise.
24459         * doc/posix-functions/isgraph.texi: Likewise.
24460         * doc/posix-functions/islower.texi: Likewise.
24461         * doc/posix-functions/isprint.texi: Likewise.
24462         * doc/posix-functions/ispunct.texi: Likewise.
24463         * doc/posix-functions/isspace.texi: Likewise.
24464         * doc/posix-functions/isupper.texi: Likewise.
24465         * doc/posix-functions/isxdigit.texi: Likewise.
24466
24467 2009-10-18  Bruno Haible  <bruno@clisp.org>
24468
24469         Tests for module 'isblank'.
24470         * modules/isblank-tests: New file.
24471         * tests/test-isblank.c: New file.
24472
24473         New module 'isblank'.
24474         * lib/isblank.c: New file.
24475         * m4/isblank.m4: New file.
24476         * modules/isblank: New file.
24477         * doc/posix-functions/isblank.texi: Mention the new module.
24478
24479 2009-10-18  Bruno Haible  <bruno@clisp.org>
24480
24481         New module 'ctype'.
24482         * lib/ctype.in.h: New file.
24483         * m4/ctype.m4: New file.
24484         * modules/ctype: New file.
24485         * doc/posix-headers/ctype.texi: Mention the new module.
24486
24487 2009-10-18  Jim Meyering  <meyering@redhat.com>
24488
24489         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24490         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24491         right after its initialization, rather than farther down.
24492         Keeping these in close proximity makes it easier to ensure
24493         that each such variable is initialized.  E.g.,
24494
24495             LIB_CLOCK_GETTIME=
24496             AC_SUBST([LIB_CLOCK_GETTIME])
24497
24498         This change also increments these serial numbers.
24499         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24500         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24502
24503 2009-10-18  Bruno Haible  <bruno@clisp.org>
24504
24505         Don't let environment variables perturb build.
24506         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24507         (gl_PREREQ_GETHRXTIME): ... not here.
24508
24509 2009-10-18  Bruno Haible  <bruno@clisp.org>
24510
24511         Avoid symlink attack in localcharset module.
24512         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24513         (O_NOFOLLOW): Define fallback.
24514         (get_charset_aliases): Don't open the file if it is a symbolic link.
24515         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24516         gl_FCNTL_H.
24517         (gl_FCNTL_H): Require it.
24518         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24519         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24520         Reported by Fergal Glynn <fglynn@veracode.com>.
24521
24522 2009-10-18  Bruno Haible  <bruno@clisp.org>
24523
24524         Implement nproc for mingw.
24525         * lib/nproc.c: Include <windows.h>
24526         (num_processors): On native Windows platforms, try GetSystemInfo.
24527
24528 2009-10-18  Bruno Haible  <bruno@clisp.org>
24529
24530         Implement nproc for IRIX.
24531         * lib/nproc.c: Include <sys/sysmp.h>.
24532         (num_processors): On IRIX systems, try sysmp.
24533         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24534
24535 2009-10-18  Bruno Haible  <bruno@clisp.org>
24536
24537         Implement nproc for HP-UX.
24538         * lib/nproc.c: Include <sys/pstat.h>
24539         (num_processors): On HP-UX systems, try pstat_getdynamic.
24540         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24541         pstat_getdynamic.
24542
24543 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24544             Bruno Haible  <bruno@clisp.org>
24545
24546         Implement nproc for NetBSD, OpenBSD.
24547         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24548         (ARRAY_SIZE): New macro.
24549         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24550         * m4/nproc.m4: New file.
24551         * modules/nproc (Files): Add m4/nproc.m4.
24552         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24553         (Makefile.am): Instead, augment lib_SOURCES.
24554
24555 2009-10-18  Bruno Haible  <bruno@clisp.org>
24556
24557         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24558         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24559         sys/param.h.
24560
24561 2009-10-16  Eric Blake  <ebb9@byu.net>
24562
24563         utimensat: new module
24564         * modules/utimensat: New file.
24565         * lib/utimensat.c (utimensat): Likewise.
24566         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24567         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24568         so we can work around Linux bugs.
24569         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24570         * modules/sys_stat (Makefile.am): Substitute them.
24571         * lib/sys_stat.in.h (utimensat): Declare it.
24572         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24573         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24574         * modules/utimensat-tests: New test.
24575         * tests/test-utimensat.c: Likewise.
24576
24577         utimens: let lutimens work on non-symlinks
24578         * lib/utimens.c (lutimens): Fall back to utimens rather than
24579         failing with ENOSYS, when file is not a symlink.
24580         (utimens): Reduce redirection.
24581         * tests/test-lutimens.h (test_lutimens): Update test to cover
24582         non-symlinks.
24583         * tests/test-utimens.h (test_utimens): Update test to cover
24584         symlinks.
24585         * tests/test-utimens.c (main): Update caller.
24586
24587         utimens: cache whether utimensat syscall works
24588         * lib/utimens.c (utimensat_works_really): New cache variable.
24589         (fdutimens, lutimens): Use it to avoid failing syscall.
24590
24591         test-stat-time, test-utimens: improve portability
24592         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24593         ext4 on alpha, and for cygwin.
24594         * tests/test-utimens-common.h: New file.
24595         (nap): Factor delays into single function.
24596         * tests/test-lutimens.h (test_lutimens): Use new header.
24597         * tests/test-futimens.h (test_futimens): Likewise.
24598         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24599         timestamps to occur from same machine, as was done previously for
24600         test_utimens.
24601         * modules/utimens-tests (Files): Ship new file.
24602         * modules/futimens-tests (Files): Likewise.
24603         Reported in part by Jim Meyering.
24604
24605         sys_stat: sort replacement declarations
24606         * lib/sys_stat.in.h: Sort declarations.
24607         * lib/futimens.c (futimens): Fix typo.
24608
24609 2009-10-15  Jim Meyering  <meyering@redhat.com>
24610
24611         don't let environment settings perturb build
24612         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24613         could cause a configure-time and/or build-time malfunction.
24614         Typically, a configure-time function-in-library test is performed
24615         via code like this:
24616
24617           LIB_VAR=
24618           AC_SUBST([LIB_VAR])
24619           prefix_saved_LIBS=$LIBS
24620             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24621                        [test "$ac_cv_search_FUNC" = "none required" ||
24622                         LIB_VAR=$ac_cv_search_FUNC])
24623           LIBS=$prefix_saved_LIBS
24624
24625         However, in each of the files affected by this change, the LIB_VAR=
24626         initialization was omitted.  Thus, when set in the environment, its
24627         value would propagate into generated Makefiles when FUNC is not found
24628         in LIB_NAME.
24629         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24630         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24632
24633 2009-10-14  Eric Blake  <ebb9@byu.net>
24634
24635         fchdir: avoid infinite recursion in mingw
24636         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24637         recursing.
24638
24639         test-stat-time: port to mingw
24640         * tests/test-stat-time.c (force_unlink): Return a value.
24641         (test_ctime) [W32]: Fix compilation error.
24642         (nap): Don't call usleep with too large an argument.  Use
24643         force_unlink.
24644         * doc/pastposix-functions/usleep.texi (usleep): Document the
24645         portability issue.
24646
24647 2009-10-13  Jim Meyering  <meyering@redhat.com>
24648
24649         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24650         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24651         * modules/pipe-filter-ii: Likewise.
24652         * modules/sys_socket-tests: Likewise.
24653         * modules/tsearch-tests: Likewise.
24654         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24655         (check): Depend on it.
24656
24657 2009-10-12  Eric Blake  <ebb9@byu.net>
24658
24659         utimens-tests: port to NFS file systems
24660         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24661         comparisons to avoid spurious failures from timestamp drift
24662         between NFS machines.
24663
24664 2009-10-12  Eric Blake  <ebb9@byu.net>
24665
24666         stat-time-tests: minor cleanups
24667         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24668         * tests/test-stat-time.c (nap): Separate assignment from call.
24669         Suggested by Paolo Bonzini and Bruno Haible.
24670
24671         sys_stat: guarantee struct timespec
24672         * lib/sys_stat.in.h (includes): Always include <time.h>
24673         * modules/sys_stat (Depends-on): Add time.
24674         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24675         mode_t permission values.
24676         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24677         get at subsecond timestamps.
24678
24679 2009-10-10  Eric Blake  <ebb9@byu.net>
24680
24681         futimens: new module
24682         * modules/futimens: New file.
24683         * lib/futimens.c (futimens): Likewise.
24684         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24685         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24686         we can work around Linux bugs.
24687         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24688         * modules/sys_stat (Makefile.am): Substitute them.
24689         * lib/sys_stat.in.h (futimens): Declare it.
24690         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24691         * doc/posix-functions/futimens.texi (futimens): Likewise.
24692         * modules/futimens-tests: New test.
24693         * tests/test-futimens.c: Likewise.
24694
24695         utimens: introduce fdutimens
24696         * lib/utimens.h (fdutimens): New prototype.
24697         * lib/utimens.c (gl_futimens): Move guts...
24698         (fdutimens): ...to new interface.
24699         * tests/test-utimens.c (do_fdutimens): Use it.
24700
24701         utimens: add UTIME_NOW and UTIME_OMIT support
24702         * lib/utimens.c (validate_timespec, update_timespec): New helper
24703         functions.
24704         (gl_futimens, lutimens): Use them.
24705         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24706         stdbool, sys_stat.
24707         (Link): Mention resulting library dependency.
24708         * modules/utimecmp (Link): Likewise.
24709         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24710         (Makefile.am): Pick up library dependency.
24711         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24712         definition.
24713         * tests/test-sys_stat.c: Test the definitions.
24714         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24715         * NEWS: Document library dependency.
24716
24717         utimecmp: support symlink timestamps
24718         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24719         hashing when possible.  Use pathconf when available.
24720         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24721         * modules/utimecmp (Depends-on): Add lstat.
24722
24723         utimens: add lutimens interface
24724         * lib/utimens.c (lutimens): New function.
24725         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24726         * lib/utimens.h (lutimens): Declare new interface.
24727         * tests/test-utimens.c (main): Enhance test.
24728         * tests/test-lutimens.h (test_lutimens): New file.
24729         * modules/utimens-tests (Files): Distribute it.
24730         (Depends-on): Add symlink.
24731         (configure.ac): Check for usleep.
24732
24733         utimens: validate futimens usage
24734         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24735         fewer syscalls on failure later on.  Avoid compiler warning on
24736         mingw.
24737         * modules/utimens (Depends-on): Add dup2.
24738
24739         utimens: add test
24740         * modules/utimens-tests: New test.
24741         * tests/test-utimens.h: New file.
24742         * tests/test-futimens.h: Likewise.
24743         * tests/test-utimens.c: Likewise.
24744
24745         doc: mention timestamp portability issues
24746         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24747         instead.
24748         * doc/posix-functions/utime.texi (utime): Likewise.
24749         * doc/posix-functions/utimes.texi (utimes): Likewise.
24750         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24751         instead.
24752         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24753         module.
24754         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24755         Mention weakness with symlink timestamps.
24756         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24757         to utimensat/futimens instead.
24758         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24759
24760         test-dup2: enhance test
24761         * tests/test-dup2.c (main): Also check AT_FDCWD.
24762
24763         test-stat-time: avoid more spurious failures
24764         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24765         xfs; and avoid race if the two timestamps cross quantization edge.
24766
24767         relocatable: prefer 'file system' over 'filesystem'
24768         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24769         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24770         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24771         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24772         * lib/relocatable.c (compute_curr_prefix): Likewise.
24773
24774 2009-10-10  Jim Meyering  <meyering@redhat.com>
24775
24776         stat-time-tests: check for the usleep function
24777         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24778
24779 2009-10-10  Bruno Haible  <bruno@clisp.org>
24780
24781         * modules/xnanosleep: Put the Link section after the Include section.
24782
24783 2009-10-09  Eric Blake  <ebb9@byu.net>
24784
24785         dup2: work around FreeBSD 6.1 bug
24786         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24787         * doc/posix-functions/dup2.texi (dup2): Document it.
24788         Reported by Nelson H. F. Beebe and Jim Meyering.
24789
24790         test-stat-time: port to buggy NFS clients
24791         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24792         (test_ctime): Also skip test if mtime and ctime are skewed.
24793
24794         maint: prefer 'file system' over 'filesystem'
24795         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24796         * doc/posix-functions/lstat.texi (lstat): Likewise.
24797         * lib/file-has-acl.c (file_has_acl): Likewise.
24798         * lib/fwriteerror.c [TEST]: Likewise.
24799         * tests/test-areadlink.h (test_areadlink): Likewise.
24800         * tests/test-areadlinkat-with-size.c (main): Likewise.
24801         * tests/test-areadlinkat.c (main): Likewise.
24802         * tests/test-canonicalize-lgpl.c (main): Likewise.
24803         * tests/test-canonicalize.c (main): Likewise.
24804         * tests/test-fstatat.c (main): Likewise.
24805         * tests/test-linkat.c (main): Likewise.
24806         * tests/test-lstat.h (test_lstat_func): Likewise.
24807         * tests/test-mkdir.h (test_mkdir): Likewise.
24808         * tests/test-readlink.h (test_readlink): Likewise.
24809         * tests/test-remove.c (main): Likewise.
24810         * tests/test-rename.h (test_rename): Likewise.
24811         * tests/test-renameat.c (main): Likewise.
24812         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24813         * tests/test-symlink.h (test_symlink): Likewise.
24814         * tests/test-symlinkat.c (main): Likewise.
24815         * tests/test-unlink.h (test_unlink_func): Likewise.
24816         * tests/test-unlinkat.c (main): Likewise.
24817
24818         maint: make realtime library usage explicit
24819         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24820         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24821         * modules/settime (Link): Likewise.
24822         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24823
24824         test-stat-time: speed up execution
24825         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24826         warning on mingw.
24827         (nap): New helper function.
24828         (prepare_test): Use it to reduce sleep time.
24829         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24830         execution.
24831         * modules/stat-time-tests (configure.ac): Check for usleep.
24832
24833 2009-10-09  Jim Meyering  <meyering@redhat.com>
24834
24835         selinux-h: always use getfilecon wrappers
24836         * lib/getfilecon.c: New file.
24837         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24838         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24839         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24840         (fgetfilecon): Provide a stub.
24841         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24842         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24843         file unconditionally.
24844         When <selinux/selinux.h> is found, arrange to use wrappers.
24845         * modules/selinux-h (Files): Add getfilecon.c.
24846         (Makefile.am): Substitute include-next-related bits
24847         into the now-always-generated selinux/selinux.h file.
24848         * doc/glibc-functions/lgetfilecon.texi: New file.
24849         * doc/glibc-functions/fgetfilecon.texi: New file.
24850         * doc/glibc-functions/getfilecon.texi: New file.
24851         * doc/glibc-functions/getfilecon-desc.texi: New file.
24852         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24853         which to pull in the new files.
24854         * MODULES.html.sh (Misc): Add selinux-h.
24855
24856 2009-10-08  Jim Meyering  <meyering@redhat.com>
24857
24858         unistd: fix comment typo
24859         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24860
24861 2009-10-08  Eric Blake  <ebb9@byu.net>
24862
24863         areadlink: use SIZE_MAX consistently
24864         * modules/areadlink (Depends-on): Add stdint.
24865         * modules/areadlink-with-size (Depends-on): Likewise.
24866         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24867         gives NULL; drop sys/types, since unistd gives size_t; and add
24868         stdint for SIZE_MAX.
24869         (SIZE_MAX): Rely on headers.
24870         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24871         and add stdint.
24872         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24873         (SIZE_MAX): Likewise.
24874         (INITIAL_BUF_SIZE): Turn into enum.
24875         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24876
24877 2009-10-08  Jim Meyering  <meyering@redhat.com>
24878
24879         areadlinkat: avoid compilation failure
24880         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24881         Fix typo in comment.
24882
24883 2009-10-07  Eric Blake  <ebb9@byu.net>
24884
24885         areadlinkat-with-size: new module
24886         * modules/areadlinkat-with-size: New module.
24887         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24888         * lib/areadlink.h (areadlinkat): Declare it.
24889         * MODULES.html.sh (File system functions): Mention it.
24890         * modules/areadlinkat-with-size-tests: New test.
24891         * tests/test-areadlinkat-with-size.c: New file.
24892
24893         xreadlinkat: new module
24894         * modules/xreadlinkat: New module.
24895         * lib/xreadlinkat.c (xreadlinkat): New file.
24896         * lib/xreadlink.h (xreadlinkat): Declare it.
24897         * MODULES.html.sh (File system functions): Mention it.
24898
24899         areadlinkat: new module
24900         * lib/at-func.c (FUNC_FAIL): New define.
24901         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24902         * modules/areadlinkat: New module.
24903         * lib/linkat.c (areadlinkat): Move...
24904         * lib/areadlinkat.c (areadlinkat): ...to new file.
24905         * lib/areadlink.h (areadlinkat): Declare it.
24906         * modules/linkat (Depends-on): Add areadlinkat.
24907         * MODULES.html.sh (File system functions): Mention it.
24908         * modules/areadlinkat-tests: New test.
24909         * tests/test-areadlinkat.c: New file.
24910
24911         areadlink, areadlink-with-size: add tests
24912         * modules/areadlink-tests: New test.
24913         * modules/areadlink-with-size-tests: Likewise.
24914         * tests/test-areadlink.h: New file.
24915         * tests/test-areadlink.c: Likewise.
24916         * tests/test-areadlink-with-size.c: Likewise.
24917
24918         maint: minor cleanups
24919         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24920         _UNUSED_PARAMETER_ instead.
24921         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24922         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24923         * modules/linkat-tests (Files): Distribute test-link.h.
24924
24925         openat, utimens: whitespace cleanup
24926         * lib/openat.c: Prefer space throughout, rather than mix of 8
24927         spaces vs. tabs.
24928         * lib/at-func.c: Likewise.
24929         * lib/utimens.c: Likewise.
24930
24931         openat: avoid using wrong fd
24932         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24933         working directory chooses same fd.
24934         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24935
24936         mkdir, mkdirat: fix cygwin 1.5.x bug
24937         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24938         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24939         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24940         bug.
24941         (gl_PREREQ_MKDIR): Delete unused macro.
24942         * modules/mkdir (Files): Track file rename.
24943         (configure.ac): Update macro name.
24944         * modules/openat (Depends-on): Add mkdir.
24945         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24946
24947         mkdir, mkdirat: add tests
24948         * modules/mkdir-tests: New test.
24949         * tests/test-mkdir.h: New file.
24950         * tests/test-mkdir.c: Likewise.
24951         * tests/test-mkdirat.c: Likewise.
24952         * modules/openat-tests (Files): Add new files.
24953         (Makefile.am): Run new test.
24954
24955 2009-10-06  Eric Blake  <ebb9@byu.net>
24956
24957         doc: tweak *at function documentation
24958         * doc/posix-functions/faccessat.texi (faccessat): Mention
24959         known issue with replacement.
24960         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24961         * doc/posix-functions/linkat.texi (linkat): Likewise.
24962         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24963         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24964         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24965         * doc/posix-functions/renameat.texi (renameat): Likewise.
24966         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24967
24968         openat: fix GNU/Hurd bug in unlinkat
24969         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24970         broken.
24971         * doc/posix-functions/unlink.texi (unlink): Document this.
24972         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24973
24974         fdopendir: fix GNU/Hurd bug
24975         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24976         allowing non-directory fds.
24977         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24978         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24979         * modules/dirent (Makefile.am): Substitute it.
24980         * lib/dirent.in.h (fdopendir): Declare replacement.
24981         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24982         * tests/test-fdopendir.c (main): Test something other than
24983         /dev/null, since on Hurd that behaves like a directory.
24984
24985         test-symlink: port to GNU/Hurd
24986         * tests/test-symlink.h (test_symlink): Relax expected errno.
24987
24988         doc: tweak more cygwin information
24989         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24990         now compatible with glibc.
24991         * doc/posix-functions/getopt.texi (getopt): Likewise.
24992
24993         getopt-gnu: add another test
24994         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24995         guarantee behavior relied on by m4.
24996         * tests/test-getopt.c (main): Use it.
24997         * modules/getopt-posix-tests (Depends-on): Add setenv.
24998         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24999
25000         getopt: fix compilation on darwin
25001         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25002         include.
25003         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25004         Reported by Ludovic Courtès.
25005
25006 2009-10-06  Bruno Haible  <bruno@clisp.org>
25007
25008         * modules/size_max (Description): Discourage its use.
25009         Reported by Simon Josefsson.
25010
25011 2009-10-06  Jim Meyering  <meyering@redhat.com>
25012
25013         linkat: avoid compilation failure
25014         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25015
25016 2009-10-05  Eric Blake  <ebb9@byu.net>
25017
25018         linkat: support Linux 2.6.17
25019         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25020         linkat on Linux, but allow cache variable override.
25021         * lib/linkat.c (rpl_linkat): Define override.
25022         * modules/linkat (Depends-on): Add symlinkat.
25023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25024         * modules/unistd (Makefile.am): Substitute it.
25025         * lib/unistd.in.h (linkat): Declare replacement.
25026         Reported by Pádraig Brady.
25027
25028         quotearg: port test to systems with C.UTF-8 locale
25029         * tests/test-quotearg.c (struct result_strings): Add another
25030         member, differentiating between C.ASCII and C.UTF-8 handling.
25031         (compare_strings): Add parameter.
25032         (main): Adjust all callers.
25033
25034         getopt: avoid clash with FreeBSD _getopt_internal
25035         * lib/getopt.in.h (_getopt_internal): Override the name.
25036         * lib/getopt_int.h (includes): Pick up any overrides.
25037         Reported by Reuben Thomas.
25038
25039         hash: allow C89 compilation
25040         * lib/hash.c (check_tuning): Move declaration before statement.
25041         Reported by Reuben Thomas.
25042
25043 2009-10-05  Karl Berry  <karl@gnu.org>
25044
25045         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25046
25047 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25048             Bruno Haible  <bruno@clisp.org>
25049
25050         * lib/uname.c (uname): Use a table-driven algorithm to compute
25051         Windows NT versions.
25052
25053 2009-10-04  Bruno Haible  <bruno@clisp.org>
25054
25055         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25056         program_invocation_short_name.
25057         * modules/progname (configure.ac): Test for presence of
25058         program_invocation_short_name.
25059         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25060
25061 2009-10-04  Bruno Haible  <bruno@clisp.org>
25062
25063         * lib/progname.c (set_program_name): Fix comment.
25064         Reported by Jim Meyering.
25065
25066 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25067             Bruno Haible  <bruno@clisp.org>
25068
25069         * lib/uname.c: Include <string.h>.
25070         (uname): Do only one call to GetVersionEx in the common case.
25071
25072 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25073             Bruno Haible  <bruno@clisp.org>
25074
25075         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25076         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25077         (uname): Add support for Windows CE and various non-x86 CPU types.
25078
25079 2009-10-03  Bruno Haible  <bruno@clisp.org>
25080
25081         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25082         invocation to tests/configure.ac.
25083         Reported by Ian Beckwith <ianb@erislabs.net>.
25084
25085 2009-10-02  Eric Blake  <ebb9@byu.net>
25086
25087         fchdir: avoid compiler warning
25088         * lib/fchdir.c (canonicalize_file_name)
25089         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25090
25091         test-open: support mingw errno values
25092         * tests/test-open.h (test_open): Relax test.
25093         * tests/test-fopen.h (test_fopen): Likewise.
25094         * tests/test-openat-safer.c (main): Likewise.
25095
25096         open: fix opening directory on mingw
25097         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25098
25099         test-open: on GNU/Hurd, /dev/null is a directory
25100         * tests/test-fopen.h (main): Rename...
25101         (test_fopen): ...to this.  Use a guaranteed non-directory when
25102         confirming open behavior on trailing slash.
25103         * tests/test-openat-safer.c (main): Likewise.
25104         * tests/test-open.h (main): Likewise....
25105         (test_open): ...to this.
25106         * tests/test-fopen.c (main): Adjust caller.
25107         * tests/test-fopen-safer.c (main): Likewise.
25108         * tests/test-open.c (main): Likewise.
25109         * tests/test-fcntl-safer.c (main): Likewise.
25110         Reported by Samuel Thibault.
25111
25112         rename, fchdir: don't ignore chdir failure
25113         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25114         * lib/rename.c (rpl_rename) [W32]: Likewise.
25115         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25116         an empty destination directory if source cannot be renamed,
25117         although there is still possibility for failure.
25118         * doc/posix-functions/rename.texi (rename): Document the race.
25119         Reported by Jim Meyering.
25120
25121         maint: cleanup whitespace in recent commits
25122         * lib/rename.c (rpl_rename): Remove tabs.
25123         * tests/test-link.h (test_link): Likewise.
25124         * lib/fchdir.c (get_name): Likewise.
25125         Reported by Jim Meyering.
25126
25127 2009-10-02  Ben Pfaff  <blp@gnu.org>
25128
25129         relocatable-prog-wrapper: Add missing dependency on
25130         double-slash-root.
25131         * modules/relocatable-prog-wrapper: Add dependency.
25132         Reported by Ian Beckwith <ianb@erislabs.net>.
25133
25134 2009-10-02  Eric Blake  <ebb9@byu.net>
25135
25136         renameat: fix Solaris bugs
25137         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25138         needed fixing.
25139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25140         * modules/stdio (Makefile.am): Substitute it.
25141         * lib/stdio.in.h (renameat): Declare replacement.
25142         * lib/renameat.c (rpl_renameat): Implement fix.
25143
25144         renameat: new module
25145         * modules/renameat: New file.
25146         * lib/renameat.c (renameat): Likewise.
25147         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25149         * modules/stdio (Makefile.am): Substitute them.
25150         * lib/stdio.in.h (renameat): Declare it.
25151         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25152         * doc/posix-functions/renameat.texi (renameat): Likewise.
25153         * modules/renameat-tests: New test.
25154         * tests/test-renameat.c: Likewise.
25155
25156         rename: fix mingw bugs
25157         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25158         directory overwrite bugs.
25159
25160         rename: fix another cygwin 1.5 bug
25161         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25162         checks.
25163         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25164         unnecessary cygwin workarounds.  Also work around bug with moving
25165         full directory onto an empty one.
25166         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25167
25168         rename-dest-slash: merge into rename module
25169         * modules/rename-dest-slash (Status): Mark obsolete.
25170         (Depends-on): Add rename.
25171         (Files): Let rename do it all.
25172         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25173         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25174         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25175         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25176         * lib/rename.c (rpl_rename): Update comments.
25177
25178         rename: fix cygwin 1.5.x bugs
25179         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25180         * lib/rename.c (rpl_rename): Work around them.
25181         * modules/rename (Depends-on): Add same-inode.
25182
25183         rename: fix Solaris 10 bug
25184         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25185         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25186         was the only bug.
25187
25188         rename: fix Solaris 9 bug
25189         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25190         on non-directory.  Avoid calling exit.
25191         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25192         strdup.
25193         * modules/rename-tests (Depends-on): Drop lstat.
25194         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25195         (gl_PREREQ_RENAME): Delete unused macro.
25196
25197         rename-dest-slash: fix NetBSD bug
25198         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25199         links.
25200         * modules/rename-dest-slash (Depends-on): Add same-inode.
25201
25202         rename-tests: new test, exposes several platform bugs
25203         * modules/rename-tests: New file.
25204         * tests/test-rename.h: Likewise.
25205         * tests/test-rename.c: Likewise.
25206         * doc/posix-functions/rename.texi (rename): Improve documentation,
25207         including bugs that will eventually be fixed in gnulib.
25208
25209 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25210
25211         * lib/uname.c: Include <stdlib.h>
25212         (uname): Assume version info is available.
25213
25214 2009-10-02  Jim Meyering  <meyering@redhat.com>
25215
25216         gnu-web-doc-update: correct --help output
25217         * build-aux/gnu-web-doc-update: Make --help output relevant.
25218
25219         gnu-web-doc-update: add standard options
25220         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25221
25222         gnu-web-doc-update: New module.
25223         Use this script to automatically update the on-line web documentation
25224         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25225         * modules/gnu-web-doc-update: New file, from coreutils.
25226         * build-aux/gnu-web-doc-update: New script.
25227
25228 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25229
25230         link: LoadLibrary is not needed.
25231         * lib/link.c: Use GetModuleHandle.
25232
25233 2009-10-01  Eric Blake  <ebb9@byu.net>
25234
25235         getopt: bump serial number
25236         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25237         change.
25238
25239         tests: tighten link, rmdir, and remove tests
25240         * tests/test-link.h (includes): No need to use <config.h> here.
25241         Clean up if directory hard link was created, otherwise test for
25242         trailing '.'.
25243         * tests/test-linkat.c (main): Simplify.
25244         * tests/test-remove.c (main): Enhance test for trailing '.'.
25245         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25246
25247 2009-10-01  Jim Meyering  <meyering@redhat.com>
25248
25249         maint.mk: requiring "make major" was annoying, for a "minor" release.
25250         What is intended is "stable", to contrast with alpha and beta,
25251         so require "make stable", not "make major".
25252         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25253         (get_tool_versions): Likewise.
25254         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25255
25256 2009-09-30  Ben Pfaff  <blp@gnu.org>
25257
25258         Fix broken build of replacement for Windows tmpfile().
25259         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25260         flags argument added along with the 'mkostemp' module.
25261
25262 2009-09-28  Bruno Haible  <bruno@clisp.org>
25263
25264         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25265         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25266         to 'remove_elt'.
25267         (gl_list_remove): Update.
25268         * lib/gl_list.c (gl_list_remove): Update.
25269         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25270         to 'remove_elt'.
25271         (gl_oset_remove): Update.
25272         * lib/gl_list.c (gl_oset_remove): Update.
25273         Reported by Eric Blake.
25274
25275 2009-09-28  Eric Blake  <ebb9@byu.net>
25276
25277         doc: mention yet more cygwin 1.7 status
25278         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25279         cygwin.
25280         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25281         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25282
25283         argp: fix test failure
25284         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25285         that are not upper-case.  Pass correct range to tolower.
25286
25287 2009-09-27  Jim Meyering  <meyering@redhat.com>
25288
25289         test-yesno: work around sparc-dash here-document infelicity
25290         Without this change, the literal \177 byte in a here document
25291         would make dash 0.5.5.1-3 access uninitialized memory.
25292         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25293         Instead, use a marker, "@", and filter through tr to create the desired
25294         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25295
25296 2009-09-27  Bruno Haible  <bruno@clisp.org>
25297
25298         Disable untested support for new flavours of ACLs on AIX.
25299         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25300         progress.
25301         * lib/set-mode-acl.c (qset_acl): Likewise.
25302
25303 2008-12-07  Bruno Haible  <bruno@clisp.org>
25304
25305         Add support for new flavours of ACLs on AIX. (Untested.)
25306         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25307         (file_has_acl): Add support for newer AIX.
25308         * lib/set-mode-acl.c (qset_acl): Likewise.
25309         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25310         Rainer Tammer <tammer@tammer.net>.
25311
25312 2009-09-26  Eric Blake  <ebb9@byu.net>
25313
25314         argp: fix compilation of getopt
25315         * lib/getopt.in.h (includes): Use different guard than glibc.
25316         Reported by Sergey Poznyakoff.
25317
25318         doc: mention more cygwin 1.7 status
25319         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25320         bug.
25321         * doc/posix-functions/execl.texi (execl): Likewise.
25322         * doc/posix-functions/execle.texi (execle): Likewise.
25323         * doc/posix-functions/execlp.texi (execlp): Likewise.
25324         * doc/posix-functions/execv.texi (execv): Likewise.
25325         * doc/posix-functions/execve.texi (execve): Likewise.
25326         * doc/posix-functions/execvp.texi (execvp): Likewise.
25327         * doc/glibc-functions/canonicalize_file_name.texi
25328         (canonicalize_file_name): Cygwin 1.7 now provides this.
25329         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25330         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25331         on AT_SYMLINK_NOFOLLOW.
25332
25333 2009-09-24  Eric Blake  <ebb9@byu.net>
25334
25335         test-linkat: make test more robust
25336         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25337
25338         getopt: fix inclusion guards for cygwin
25339         * modules/getopt-posix (Depends-on): Add include-next.
25340         (Makefile.am): Substitute more items in replacement header.
25341         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25342         <getopt.h>.
25343         * lib/getopt.in.h (includes): Use split inclusion guard, and
25344         prefer <getopt.h> over include <unistd.h> when one is present.
25345         (option): Also override name of 'struct option'.
25346
25347         same-inode: revert prior change; it is not yet ready
25348         * NEWS: Undo mention of this change.
25349         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25350         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25351         * lib/cycle-check.c (cycle_check): Likewise.
25352         * lib/same.c (same_name): Likewise.
25353         * lib/at-func2.c (at_func2): Likewise.
25354
25355 2009-09-23  Eric Blake  <ebb9@byu.net>
25356
25357         linkat: new module
25358         * modules/linkat: New file.
25359         * lib/at-func2.c (at_func2): Likewise.
25360         * lib/linkat.c (linkat): Likewise.
25361         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25362         * lib/openat-priv.h (at_func2): Add declaration.
25363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25364         * modules/unistd (Makefile.am): Substitute them.
25365         * lib/unistd.in.h (linkat): Declare it.
25366         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25367         * doc/posix-functions/linkat.texi (linkat): Likewise.
25368         * doc/posix-functions/link.texi (link): Tweak wording.
25369         * tests/test-link.c (main): Move guts...
25370         * tests/test-link.h (test_link): ...into new file.
25371         * modules/linkat-tests: New test.
25372         * tests/test-linkat.c: Likewise.
25373         * modules/link-tests (Files): Ship new file.
25374         (Depends-on): Add stdbool.
25375
25376         dirname: add library-safe mdir_name
25377         * lib/dirname.h (mdir_name): New prototype.
25378         * lib/dirname.c (dir_name): Move guts...
25379         (mdir_name): ...to new function that avoids xalloc_die.
25380
25381         fchdir: another mingw fix
25382         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25383         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25384         on mingw (where it has not yet been ported), and make it optional
25385         elsewhere.
25386         (_gl_register_fd): Use it.
25387
25388         same-inode: make SAME_INODE tri-state, to port to mingw
25389         * NEWS: Mention this change.
25390         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25391         st_ino always being 0.
25392         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25393         * lib/cycle-check.c (cycle_check): Likewise.
25394         * lib/same.c (same_name): Likewise.
25395
25396         lstat: avoid mingw compilation error
25397         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25398         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25399         lstat ourselves.
25400         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25401         was adequate.
25402         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25403         the checks for lstat.
25404         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25405
25406         link: fix test failure on Solaris 9
25407         * lib/link.c (rpl_link): Don't assume link will catch bogus
25408         trailing slash on source.
25409
25410         test-symlinkat: enhance test
25411         * tests/test-readlink.c (main): Move guts...
25412         * tests/test-readlink.h (test_readlink): ...into new file.
25413         * tests/test-symlink.c (main): Move guts...
25414         * tests/test-symlink.h (test_symlink): ...into new file.
25415         * tests/test-symlinkat.c (main): Use new files for further
25416         coverage.
25417         (do_symlink, do_readlink): New helper functions.
25418         * modules/symlink-tests (Files): Ship new file.
25419         (Depends-on): Add stdbool.
25420         * modules/readlink-tests (Files): Ship new file.
25421         (Depends-on): Add stdbool.
25422         * modules/symlinkat-tests (Files): Use new files.
25423
25424 2009-09-23  Eric Blake  <ebb9@byu.net>
25425
25426         readlink: document portability issue with symlink length
25427         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25428         systems have bogus st_size on symlinks, and mention the
25429         areadlink-with-size module.
25430         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25431         * doc/posix-functions/readlink.texi (readlink): Mention the
25432         areadlink module, and ERANGE failure.
25433         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25434         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25435
25436         readlink: fix Solaris 9 bug with trailing slash
25437         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25438         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25439         * doc/posix-functions/readlink.texi (readlink): Document this.
25440         * modules/readlink-tests: New test.
25441         * tests/test-readlink.c: Likewise.
25442
25443         readlink: fix cygwin 1.5.x bug with return type
25444         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25445         * lib/unistd.in.h (readlink): Use ssize_t.
25446         * lib/readlink.c (readlink): Likewise.
25447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25448         * modules/unistd (Makefile.am): Substitute it.
25449         * lib/unistd.in.h (readlink): Declare replacement.
25450         * doc/posix-functions/readlink.texi (readlink): Document this.
25451
25452         symlink: use throughout gnulib
25453         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25454         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25455         symlink is not used.
25456         * modules/symlinkat (Depends-on): Add symlink.
25457         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25458         * modules/canonicalize-tests (Depends-on): Likewise.
25459         * modules/lstat-tests (Depends-on): Likewise.
25460         * modules/openat-tests (Depends-on): Likewise.
25461         * modules/remove-tests (Depends-on): Likewise.
25462         * modules/rmdir-tests (Depends-on): Likewise.
25463         * modules/unlink-tests (Depends-on): Likewise.
25464         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25465         * tests/test-canonicalize.c (symlink): Likewise.
25466         * tests/test-fstatat.c (symlink): Likewise.
25467         * tests/test-lstat.c (symlink): Likewise.
25468         * tests/test-remove.c (symlink): Likewise.
25469         * tests/test-rmdir.c (symlink): Likewise.
25470         * tests/test-unlink.c (symlink): Likewise.
25471         * tests/test-unlinkat.c (symlink): Likewise.
25472
25473         symlink: new module, for Solaris 9 bug
25474         * modules/symlink: New file.
25475         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25476         * lib/symlink.c: Likewise.
25477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25478         * modules/unistd (Makefile.am): Substitute them.
25479         * lib/unistd.in.h (symlink): Declare replacement.
25480         * MODULES.html.sh (File system functions): Mention it.
25481         * doc/posix-functions/symlink.texi (symlink): Likewise.
25482         * modules/symlink-tests: New test.
25483         * tests/test-symlink.c: Likewise.
25484
25485 2009-09-23  Bruno Haible  <bruno@clisp.org>
25486
25487         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25488         when needed.
25489         Test case: gnulib-tool --import --with-tests atexit inttypes.
25490         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25491
25492 2009-09-23  Bruno Haible  <bruno@clisp.org>
25493
25494         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25495         subcommand, not in a subshell.
25496
25497 2009-09-22  Eric Blake  <ebb9@byu.net>
25498
25499         unistd: sort replacement declarations
25500         * lib/unistd.in.h: Sort declarations.
25501
25502         open, openat: minor optimization
25503         * lib/open.c (open): If open succeeded, len is non-zero.
25504         * lib/openat.c (rpl_openat): Likewise.
25505
25506         link-follow: ensure correct result
25507         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25508         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25509         distinguish between possible failures.
25510
25511 2009-09-21  Eric Blake  <ebb9@byu.net>
25512
25513         fts: avoid compiler warning
25514         * lib/fts.c (dirent_inode_sort_may_be_useful)
25515         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25516
25517 2009-09-19  Bruno Haible  <bruno@clisp.org>
25518
25519         * lib/progreloc.c (canonicalize_file_name): New declaration.
25520
25521 2009-09-19  Eric Blake  <ebb9@byu.net>
25522
25523         link: fix quoting
25524         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25525
25526         openat: fix openat bugs on Solaris 9
25527         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25528         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25529         * modules/openat (Depends-on): Add open.
25530         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25531         * modules/fcntl-h (Makefile.am): Substitute it.
25532         * lib/fcntl.in.h (openat): Declare replacement.
25533         * doc/posix-functions/openat.texi (openat): Document this.
25534
25535         openat: move fstatat and unlinkat into correct files
25536         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25537         compiled.
25538         * lib/openat.c (fstatat, unlinkat): Move...
25539         * lib/fstatat.c (fstatat): ...into correct files.
25540         * lib/unlinkat.c (unlinkat): Likewise.
25541
25542         openat: fix unlinkat bugs on Solaris 9
25543         * lib/unlinkat.c (unlinkat): New file.
25544         * modules/openat (Depends-on): Add unlink.
25545         (Files): Distribute it.
25546         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25547         trailing slash behavior is broken.
25548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25549         * modules/unistd (Makefile.am): Substitute it.
25550         * lib/unistd.in.h (unlinkat): Declare replacement.
25551         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25552
25553         openat: fix fstatat bugs on Solaris 9
25554         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25555         stat.
25556         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25557
25558         test-unlinkat: enhance test, to expose Solaris 9 bug
25559         * tests/test-unlink.c (main): Factor guts...
25560         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25561         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25562         * tests/test-rmdir.c (main): Adjust caller.
25563         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25564         (unlinker): New helper function.
25565         (rmdirat): Enhance check.
25566         * modules/rmdir-tests (Depends-on): Add stdbool.
25567         * modules/unlink-tests (Depends-on): Likewise.
25568         (Files): Add test-unlink.h.
25569         * modules/openat-tests (Files): Likewise.
25570         (Depends-on): Add unlinkdir.
25571
25572         test-fstatat: new test, to expose Solaris 9 bugs
25573         * tests/test-stat.c (main): Factor guts...
25574         * tests/test-stat.h (test_stat_func): ...into new file.
25575         * tests/test-lstat.c (main): Factor guts...
25576         * tests/test-lstat.h (test_lstat_func): ...into new file.
25577         * tests/test-fstatat.c: New file.
25578         * modules/stat-tests (Files): Add test-stat.h.
25579         * modules/lstat-tests (Files): Add test-lstat.h.
25580         (Depends-on): Add stdbool.
25581         * modules/openat-tests (Depends-on): Add pathmax.
25582         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25583         (Makefile.am): Run new test.
25584
25585         remove: new module, for mingw and Solaris 9 bugs
25586         * modules/remove: New file.
25587         * lib/remove.c: Likewise.
25588         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25590         * modules/stdio (Makefile.am): Use them.
25591         * lib/stdio.in.h (remove): Declare replacement.
25592         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25593         * doc/posix-functions/remove.texi (remove): Likewise.
25594         * modules/remove-tests: New test.
25595         * tests/test-remove.c: Likewise.
25596
25597         unlink: new module, for Solaris 9 bug
25598         * modules/unlink: New file.
25599         * lib/unlink.c: Likewise.
25600         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25602         * modules/unistd (Makefile.am): Use them.
25603         * lib/unistd.in.h (stat): Declare replacement.
25604         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25605         * doc/posix-functions/unlink.texi (unlink): Likewise.
25606         * modules/unlink-tests: New test.
25607         * tests/test-unlink.c: Likewise.
25608
25609         lstat: fix Solaris 9 bug
25610         * lib/lstat.c (lstat): Also check for trailing slash on
25611         non-symlink, non-directories.  Use stat module to simplify logic.
25612         * doc/posix-functions/lstat.texi (lstat): Document it.
25613         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25614         (configure.ac): Check for symlink.
25615         * tests/test-lstat.c (main): Add more tests.
25616
25617         stat: add as dependency to other modules
25618         * modules/chown (Depends-on): Add stat.
25619         * modules/euidaccess (Depends-on): Likewise.
25620         * modules/fchdir (Depends-on): Likewise.
25621         * modules/isdir (Depends-on): Likewise.
25622         * modules/link (Depends-on): Likewise.
25623         * modules/lstat (Depends-on): Likewise.
25624         * modules/mkdir-p (Depends-on): Likewise.
25625         * modules/modechange (Depends-on): Likewise.
25626         * modules/open (Depends-on): Likewise.
25627         * modules/readlink (Depends-on): Likewise.
25628         * modules/same (Depends-on): Likewise.
25629
25630         stat: fix Solaris 9 bug
25631         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25632         slash.
25633         * lib/stat.c (rpl_stat): Work around it.
25634         * doc/posix-functions/stat.texi (stat): Update documentation.
25635
25636         stat: new module, for mingw bug
25637         * modules/stat: New file.
25638         * lib/stat.c: Likewise.
25639         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25640         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25641         * modules/sys_stat (Makefile.am): Use them.
25642         * lib/sys_stat.in.h (stat): Declare replacement.
25643         * lib/openat.c (fstatat): Deal with lstat and stat being function
25644         macros.
25645         * modules/openat (Depends-on): Add inline.
25646         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25647         * doc/posix-functions/stat.texi (stat): Likewise.
25648         * modules/stat-tests: New test.
25649         * tests/test-stat.c: Likewise.
25650
25651 2009-09-19  Jim Meyering  <meyering@redhat.com>
25652
25653         syntax-check: detect unnecessary inclusion of canonicalize.h
25654         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25655
25656 2009-09-19  Eric Blake  <ebb9@byu.net>
25657
25658         canonicalize-lgpl: adjust clients to use correct header
25659         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25660         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25661         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25662         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25663         * lib/progreloc.c (includes): Likewise.
25664
25665 2009-09-19  Jim Meyering  <meyering@redhat.com>
25666
25667         test-posixtm.c: correct a comment
25668         * tests/test-posixtm.c: Correct first-line comment.
25669         Spotted by Eric Blake.
25670
25671 2009-09-16  Jim Meyering  <meyering@redhat.com>
25672
25673         posixtm-tests: make T const-correct; add a test case
25674         * tests/test-posixtm.c (T): Declare const.
25675         Add a test for -(2^31+1).
25676         Remove useless can-succeed-only-in-2002 test.
25677
25678         posixtm-tests: adjust the sole failing test
25679         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25680         expected output matches what mktime now produces.  Cross-checked via
25681         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25682
25683         posixtm: move #ifdef'd tests into a new module
25684         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25685         * tests/test-posixtm.c: ... this new file.
25686         * modules/posixtm-tests: New module.
25687
25688 2009-09-19  Eric Blake  <ebb9@byu.net>
25689
25690         openat: simplify use of at-func.c
25691         * lib/at-func.c (includes): Include prerequisites here, to
25692         simplify requirements on client files.
25693         * lib/openat-priv.h: Add double-inclusion guard.
25694         * lib/faccessat.c (includes): Simplify.
25695         * lib/fchmodat.c (includes): Likewise.
25696         * lib/fchownat.c (includes): Likewise.
25697         * lib/mkdirat.c (includes): Likewise.
25698         * lib/mkfifoat.c (includes): Likewise.
25699         * lib/symlinkat.c (includes): Likewise.
25700
25701         openat: allow return of fd 0
25702         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25703         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25704         unistd-safer.
25705         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25706         <fcntl.h>; this module does not leak fds.
25707         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25708         must be allowed to return 0, leaving openat_safer to add the
25709         safety.
25710         (openat_permissive): Avoid writing to just-opened fd 2 if
25711         restoring the current directory fails.
25712         * lib/openat-die.c (openat_restore_fail): Add comment.
25713         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25714         (save_cwd): Guarantee safe fd, but without use of open_safer.
25715         * tests/test-openat.c: New test.
25716         * modules/openat-tests (Files, Makefile.am): Distribute and build
25717         new file.
25718
25719         relocatable-prog-wrapper: fix build
25720         * modules/relocatable-prog-wrapper (Files): Update name of
25721         canonicalize m4 file, broken on 2009-09-17.
25722         Reported by emad hajjar <aleppos@hotmail.com>.
25723
25724 2009-09-19  Bruno Haible  <bruno@clisp.org>
25725
25726         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25727         * lib/safe-alloc.c: Likewise.
25728         Reported by Ian Beckwith <ianb@erislabs.net>.
25729
25730 2009-09-18  Bruno Haible  <bruno@clisp.org>
25731
25732         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25733         Reported by <erobles@sensacd.com.mx>.
25734
25735 2009-09-17  Eric Blake  <ebb9@byu.net>
25736
25737         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25738         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25739         slashes when checking if last component is missing.
25740         * tests/test-canonicalize.c (main): Test this.
25741
25742         canonicalize, canonicalize-lgpl: honor // if distinct from /
25743         * modules/canonicalize (Files): Add double-slash-root.m4.
25744         * modules/canonicalize-lgpl (Files): Likewise.
25745         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25746         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25747         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25748         fallback definition.
25749         (canonicalize_filename_mode): Use it to protect //.
25750         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25751         (__realpath): Likewise.
25752         * tests/test-canonicalize.c (main): Test this.
25753         * tests/test-canonicalize-lgpl.c (main): Likewise.
25754         * modules/canonicalize-tests (Depends-on): Add same-inode.
25755         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25756
25757         canonicalize-lgpl: fix glibc bug with trailing slash
25758         * m4/canonicalize-lgpl.m4: Move contents...
25759         * m4/canonicalize.m4: ...here.
25760         (gl_CANONICALIZE_LGPL): Factor realpath check...
25761         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25762         glibc 2.3.5 bug, fixed 2005-04-27.
25763         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25764         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25765         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25766         * modules/canonicalize-lgpl (Files): Manage file rename.
25767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25768         * modules/stdlib (Makefile.am): Substitute witness.
25769         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25770         is needed.
25771         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25772         replacement is required.
25773         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25774         * doc/glibc-functions/canonicalize_file_name.texi
25775         (canonicalize_file_name): Document this.
25776         * doc/posix-functions/realpath.texi (realpath): Likewise.
25777
25778         canonicalize-lgpl: reject non-directory with trailing slash
25779         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25780         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25781         catches failures in glibc 2.3.5.
25782         * tests/test-canonicalize.c (main): Likewise.
25783
25784         canonicalize-lgpl: use native realpath if it works
25785         * lib/canonicalize-lgpl.c (realpath): Guard with
25786         FUNC_REALPATH_WORKS.
25787         * lib/stdlib.in.h (realpath): Make declaration optional based on
25788         HAVE_REALPATH.
25789         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25790         native realpath works.
25791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25792         * modules/stdlib (Makefile.am): Substitute witness.
25793
25794         canonicalize, canonicalize-lgpl: use <stdlib.h>
25795         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25796         (Include): Mention <stdlib.h>.
25797         (configure.ac): Mention functions we provide.
25798         * modules/canonicalize (configure.ac): Likewise.
25799         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25800         realpath if canonicalize_file_name is missing.
25801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25802         * modules/stdlib (Makefile.am): Substitute witnesses.
25803         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25804         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25805         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25806         * NEWS: Document this.
25807         * doc/glibc-functions/canonicalize_file_name.texi
25808         (canonicalize_file_name): Likewise.
25809         * doc/posix-functions/realpath.texi (realpath): Likewise.
25810         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25811
25812         test-canonicalize: consolidate into single C program
25813         * tests/test-canonicalize.sh: Delete; move setup into...
25814         * tests/test-canonicalize.c (main): ...the program, making it
25815         easier to run in debugger.  Add some tests.
25816         * modules/canonicalize-tests (Files): Remove unused file.
25817         (Depends-on): Add progname.
25818         (configure.ac, Makefile.am): Simplify.
25819
25820         test-canonicalize-lgpl: consolidate into single C program
25821         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25822         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25823         easier to run in debugger.  Add some tests.
25824         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25825         (configure.ac, Makefile.am): Simplify.
25826
25827         canonicalize: avoid resolvepath
25828         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25829         unnecessary checks.
25830         * lib/canonicalize.c (includes): Simplify.
25831         (canonicalize_file_name): Drop resolvepath implementation.
25832         * modules/canonicalize (Depends-on): Drop filenamecat.
25833
25834         canonicalize: don't lose errno
25835         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25836         over calls to free.
25837
25838         canonicalize: simplify errno handling
25839         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25840         assignment.
25841
25842         canonicalize, canonicalize-lgpl: update module dependencies
25843         * modules/canonicalize (Depends-on): Add extensions, lstat,
25844         pathmax, stdlib.
25845         (Files): Drop pathmax.h.
25846         (configure.ac): Adjust macro name.
25847         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25848         lstat, stdlib, sys_stat.
25849         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25850         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25851         extensions.
25852         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25853         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25854         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25855         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25856         declaration, if available.
25857         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25858         we can rely on the readlink module.
25859         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25860         (includes): Use <unistd.h> unconditionally.
25861
25862 2009-09-17  Eric Blake  <ebb9@byu.net>
25863
25864         maint: make Include sections of modules consistent
25865         * modules/alloca: Use only header name; no need to list #include.
25866         * modules/alloca-opt: Likewise.
25867         * modules/arpa_inet: Likewise.
25868         * modules/canon-host: Likewise.
25869         * modules/configmake: Likewise.
25870         * modules/dirent: Likewise.
25871         * modules/eealloc: Likewise.
25872         * modules/environ: Likewise.
25873         * modules/fchdir: Likewise.
25874         * modules/fcntl: Likewise.
25875         * modules/fcntl-h: Likewise.
25876         * modules/gethrxtime: Likewise.
25877         * modules/gettime: Likewise.
25878         * modules/ignore-value: Likewise.
25879         * modules/inet_ntop: Likewise.
25880         * modules/inet_pton: Likewise.
25881         * modules/inttypes: Likewise.
25882         * modules/isnand-nolibm: Likewise.
25883         * modules/isnanf-nolibm: Likewise.
25884         * modules/mbchar: Likewise.
25885         * modules/mbfile: Likewise.
25886         * modules/mbiter: Likewise.
25887         * modules/mbuiter: Likewise.
25888         * modules/netdb: Likewise.
25889         * modules/netinet_in: Likewise.
25890         * modules/nproc: Likewise.
25891         * modules/pagealign_alloc: Likewise.
25892         * modules/poll: Likewise.
25893         * modules/printf-frexp: Likewise.
25894         * modules/pthread: Likewise.
25895         * modules/putenv: Likewise.
25896         * modules/random_r: Likewise.
25897         * modules/relocatable-prog: Likewise.
25898         * modules/search: Likewise.
25899         * modules/select: Likewise.
25900         * modules/selinux-h: Likewise.
25901         * modules/settime: Likewise.
25902         * modules/signal: Likewise.
25903         * modules/size_max: Likewise.
25904         * modules/socklen: Likewise.
25905         * modules/ssize_t: Likewise.
25906         * modules/stdarg: Likewise.
25907         * modules/stdbool: Likewise.
25908         * modules/stddef: Likewise.
25909         * modules/stdint: Likewise.
25910         * modules/stdio: Likewise.
25911         * modules/stdlib: Likewise.
25912         * modules/string: Likewise.
25913         * modules/strings: Likewise.
25914         * modules/sys_file: Likewise.
25915         * modules/sys_ioctl: Likewise.
25916         * modules/sys_select: Likewise.
25917         * modules/sys_socket: Likewise.
25918         * modules/sys_stat: Likewise.
25919         * modules/sys_time: Likewise.
25920         * modules/sys_times: Likewise.
25921         * modules/sys_utsname: Likewise.
25922         * modules/sys_wait: Likewise.
25923         * modules/sysexits: Likewise.
25924         * modules/time: Likewise.
25925         * modules/times: Likewise.
25926         * modules/tmpfile: Likewise.
25927         * modules/trim: Likewise.
25928         * modules/unistd: Likewise.
25929         * modules/wchar: Likewise.
25930         * modules/wctype: Likewise.
25931
25932 2009-09-17  Bruno Haible  <bruno@clisp.org>
25933
25934         Make getdate.y compile on QNX and NetBSD 5 / i386.
25935         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25936         TIME_T_FITS_IN_LONG_INT.
25937         * lib/getdate.y (long_time_t): New type.
25938         (relative_time): Change type of 'seconds' field to long_time_t.
25939         (get_date): Update types of local variables. Check against overflow
25940         during conversion from long_time_t to time_t.
25941         Reported by Matt Kraai <kraai@ftbfs.org>
25942         and Hasso Tepper <hasso@netbsd.org>.
25943
25944 2009-09-17  Bruno Haible  <bruno@clisp.org>
25945
25946         * modules/COPYING: Update copyright years.
25947         * modules/README: Likeiwse.
25948         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25949         Reported by Ian Beckwith <ianb@erislabs.net>.
25950
25951 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25952
25953         * users.txt: Update references for gnuit package.
25954
25955 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25956
25957         * m4/getdelim.m4: Fix typo in copyright line.
25958
25959 2009-09-17  Bruno Haible  <bruno@clisp.org>
25960
25961         * lib/atoll.c: Use the standard header with GPL copyright.
25962         * lib/argz.in.h: Likewise.
25963         * lib/glob.c: Likewise.
25964         * lib/glob-libc.h: Likewise.
25965         * lib/random_r.c: Likewise.
25966         * lib/siglist.h: Likewise.
25967         * lib/strsignal.c: Likewise.
25968         Reported by Ian Beckwith <ianb@erislabs.net>.
25969
25970 2009-09-17  Eric Blake  <ebb9@byu.net>
25971
25972         rmdir: ensure correct dependency order
25973         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25974
25975 2009-09-17  Bruno Haible  <bruno@clisp.org>
25976
25977         Disable assertion that fails on NetBSD 5 / i386.
25978         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25979         Reported by Sam Steingold <sds@gnu.org>
25980         and Hasso Tepper <hasso@netbsd.org>.
25981
25982 2009-09-16  Eric Blake  <ebb9@byu.net>
25983
25984         unlinkdir: port to mingw
25985         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25986         on which no one can unlink a directory.
25987
25988         stdlib: sort witness names
25989         * modules/stdlib (Makefile.am): Sort replacements.
25990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25991         * lib/stdlib.in.h: Likewise.
25992
25993         parse-duration-tests: avoid link failure
25994         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25995         LIBINTL.
25996         Reported by Tom G. Christensen.
25997
25998         openat-tests: ensure unlinkat behaves like rmdir
25999         * tests/test-rmdir.c (main): Factor guts...
26000         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26001         * modules/rmdir-tests (Files): Ship new file.
26002         * modules/openat-tests: New test.
26003         * tests/test-unlinkat.c: Likewise.
26004
26005         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26006         * modules/rmdir-errno (Status, Notice): Now obsolete.
26007
26008         rmdir: work around cygwin 1.5.x and mingw bugs
26009         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26010         * lib/rmdir.c (rmdir): Work around it.
26011         * modules/rmdir (Status, Notice): No longer obsolete.
26012         (Files): Add dos.m4.
26013         (Depends-on): Add unistd.
26014         (configure.ac): Set witnesses.
26015         (License): Relax to LGPLv2+.
26016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26017         * modules/unistd (Makefile.am): Substitute witnesses.
26018         * lib/unistd.in.h (rmdir): Declare replacement.
26019         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26020         * modules/rmdir-tests: New tests.
26021         * tests/test-rmdir.c: Likewise.
26022
26023 2009-09-15  Eric Blake  <ebb9@byu.net>
26024
26025         fchdir: improve use of replacement functions
26026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26027         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26028         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26029         REPLACE_CLOSEDIR.
26030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26031         * modules/sys_stat (Makefile.am): Substitute correct witness.
26032         * modules/dirent (Makefile.am): Likewise.
26033         * modules/unistd (Makefile.am): Likewise.
26034         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26035         * lib/unistd.in.h (dup): Likewise.
26036         * lib/sys_stat.in.h (fstat): Likewise.
26037
26038         maint: ignore gnulib-tool temp files
26039         * .gitignore: Ignore files created during gnulib-tool --test.
26040
26041 2009-09-13  Jim Meyering  <meyering@redhat.com>
26042
26043         posixtm: don't reject a time that specify "60" as the number of seconds
26044         * lib/posixtm.c (posixtime): The code to reject invalid dates
26045         would also reject a time specified with the .60 suffix.
26046         But POSIX allows that, in order to accommodate leap seconds.
26047         So don't reject it.
26048         (main): Adjust tests accordingly.
26049         * modules/posixtm (Depends-on): Add stpcpy.
26050
26051 2009-09-11  Jim Meyering  <meyering@redhat.com>
26052
26053         announce-gen: include [$release_type] in emitted Subject:
26054         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26055         e.g., [stable] in the emitted Subject: line.
26056
26057 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26058
26059         Remove obsolete macros from several modules.
26060         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26061         obsolete Autoconf macros with their modern counterparts.
26062         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26063         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26064         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26065         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26066         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26067         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26069         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26070         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26071         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26072         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26073         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26074         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26075         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26076         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26077         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26078         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26079         * m4/time_r.m4 (gl_TIME_R): Likewise.
26080         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26081         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26082         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26083
26084         Fix copyright header in build-aux scripts.
26085         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26086         recommendation.
26087         * build-aux/ncftpput-ftp: Likewise.
26088         * build-aux/update-copyright: Likewise.
26089
26090 2009-09-09  Eric Blake  <ebb9@byu.net>
26091
26092         test-link: allow Linux choice of errno
26093         * tests/test-link.c (main): Relax test for alternate error.
26094
26095         strndup: fix improper m4 caching
26096         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26097         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26098         (gl_PREREQ_STRNDUP): Delete.
26099         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26100         * modules/string (Makefile.am): Substitute it.
26101         * lib/string.in.h (strndup): Modernize prototype.
26102
26103         getcwd: port to mingw
26104         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26105         different from the POSIX assumptions made throughout the getcwd
26106         module; fortunately, the mingw getcwd does not need replacement.
26107         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26108         * modules/getcwd-tests: New test.
26109         * tests/test-getcwd.c: Likewise.
26110
26111         link: fix platform bugs
26112         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26113         * lib/link.c (link): Work around them.  Fix related mingw bug.
26114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26115         * modules/unistd (Makefile.am): Substitute it.
26116         * lib/unistd.in.h (link): Declare replacement.
26117         * doc/posix-functions/link.texi (link): Document this.
26118         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26119
26120         test-link: consolidate into single C program, test more cases
26121         * tests/test-link.sh: Delete.
26122         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26123         at least Cygwin and Solaris.
26124         * modules/link-tests (Files): Remove unused file.
26125         (Depends-on): Add errno, sys_stat.
26126         (Makefile.am): Simplify.
26127
26128 2009-09-08  Bruno Haible  <bruno@clisp.org>
26129
26130         Work around towlower, towupper bug on mingw.
26131         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26132         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26133         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26134         * doc/posix-functions/towupper.texi: Likewise.
26135         Reported by Eric Blake.
26136
26137 2009-09-08  Jim Meyering  <meyering@redhat.com>
26138
26139         build: don't try to run autoheader if we don't use it
26140         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26141         is not used in configure.ac.
26142
26143 2009-09-08  Eric Blake  <ebb9@byu.net>
26144
26145         euidaccess: fix compilation error
26146         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26147
26148         rawmemchr: relax license
26149         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26150         okay.
26151         Reported by Jim Meyering.
26152
26153         mkfifoat: new module
26154         * modules/mkfifoat: New file.
26155         * lib/mkfifoat.c: Likewise.
26156         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26157         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26158         * modules/sys_stat (Makefile.am): Use them.
26159         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26160         * MODULES.html.sh (File system functions): Mention module.
26161         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26162         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26163         * modules/mkfifoat-tests: New test.
26164         * tests/test-mkfifoat.c: Likewise.
26165
26166         strchrnul: relax license
26167         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26168         okay.
26169         Reported by Jim Meyering.
26170
26171 2009-09-08  Eric Blake  <ebb9@byu.net>
26172
26173         fstatat: fix compilation on Solaris
26174         * lib/fstatat.c (includes): Add fcntl.h.
26175         Reported by Pádraig Brady.
26176
26177 2009-09-07  Eric Blake  <ebb9@byu.net>
26178
26179         rename: modernize replacement
26180         * modules/rename (Depends-on): Add stdio.
26181         (configure.ac): Declare witness.
26182         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26183         stdio take care of replacement.
26184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26185         * modules/stdio (Makefile.am): Substitute them.
26186         * lib/stdio.in.h (rename): Declare replacement.
26187         * lib/rename.c (includes): Allow cross-compilation to non-windows
26188         machines.
26189         * doc/posix-functions/rename.texi (rename): Improve
26190         documentation.
26191
26192         stdio: sort witness names
26193         * modules/stdio (Makefile.am): Sort replacements.
26194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26195         * lib/stdio.in.h: Likewise.
26196
26197         getcwd: minor cleanups
26198         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26199         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26200
26201         openat: provide more convenience names
26202         * modules/faccessat (configure.ac): Add C witness.
26203         * lib/unistd.in.h (readlinkat): Fix typo.
26204         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26205         convenience wrappers.
26206         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26207         wrappers in syntax checks.
26208
26209 2009-09-06  Eric Blake  <ebb9@byu.net>
26210
26211         doc: fix comments in recent patches
26212         * lib/faccessat.c: Mention correct function.
26213         * lib/fchmodat.c: Likewise.
26214         * lib/fchownat.c: Likewise.
26215         * lib/symlinkat.c: Likewise.
26216         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26217         constants.
26218
26219         faccessat, symlinkat: continue cleanup of previous patch
26220         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26221         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26222         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26224         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26225         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26226         set.
26227
26228 2009-09-06  Bruno Haible  <bruno@clisp.org>
26229
26230         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26231         (fstatat): Declare if GNULIB_FSTATAT is set.
26232         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26233         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26234         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26235         * modules/fcntl-h (Files): Remove m4/openat.m4.
26236         * modules/sys_stat (Files): Remove m4/openat.m4.
26237         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26238         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26239         * modules/unistd (Files): Remove m4/openat.m4.
26240         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26241         GNULIB_OPENAT.
26242         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26243         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26245         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26246         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26247         gl_OPENAT_DEFAULTS.
26248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26249         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26250         Don't require gl_OPENAT_DEFAULTS.
26251         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26252         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26253         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26254         (gl_OPENAT_DEFAULTS): Remove macro.
26255
26256 2009-09-06  Bruno Haible  <bruno@clisp.org>
26257
26258         * modules/openat (configure.ac): Remove unneeded witness.
26259
26260 2009-09-06  Bruno Haible  <bruno@clisp.org>
26261
26262         Set errno to ENOSYS when a function is entirely unsupported.
26263         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26264         EOPNOTSUPP.
26265         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26266         * modules/chown (Depends-on): Remove errno.
26267
26268 2009-09-06  Bruno Haible  <bruno@clisp.org>
26269
26270         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26271
26272 2009-09-06  Bruno Haible  <bruno@clisp.org>
26273
26274         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26275
26276 2009-09-06  Ben Pfaff  <blp@gnu.org>
26277             Bruno Haible  <bruno@clisp.org>
26278
26279         Work around a glibc bug in strtok_r.
26280         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26281         Undefine if UNDEFINE_STRTOK_R is set.
26282         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26284         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26285         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26286         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26287         UNDEFINE_STRTOK_R.
26288         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26289
26290 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26291
26292         exclude: minor fix
26293         * lib/exclude.c: Include wctype.h
26294
26295 2009-09-06  Akim Demaille  <demaille@gostai.com>
26296
26297         bootstrap: improve error message
26298         * build-aux/bootstrap (find_tool): Upon failure, report the list
26299         of candidates.
26300         Honor the initial value of the envvar.
26301
26302 2009-09-05  Eric Blake  <ebb9@byu.net>
26303
26304         symlinkat: new module
26305         * modules/symlinkat: New file.
26306         * lib/symlinkat.c: Likewise.
26307         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26309         * modules/unistd (Makefile.am): Use them.
26310         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26311         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26312         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26313         * MODULES.html.sh (File system functions): Mention module.
26314         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26315         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26316         * modules/symlinkat-tests: New test.
26317         * tests/test-symlinkat.c: Likewise.
26318
26319         test-openat-safer: add more checks
26320         * tests/test-openat-safer.c (main): Check more code paths.
26321
26322 2009-09-05  Jim Meyering  <meyering@redhat.com>
26323
26324         syntax-check: detect unnecessary inclusion of openat.h
26325         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26326
26327 2009-09-05  Bruno Haible  <bruno@clisp.org>
26328
26329         Support towlower, towupper.
26330         * doc/posix-functions/towlower.texi: Mention module wctype.
26331         * doc/posix-functions/towupper.texi: Likewise.
26332         * lib/wctype.in.h (towlower, towupper): New functions.
26333         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26334         (ASSERT): New macro.
26335         (e): New variable.
26336         (main): Test also towlower, towupper. Test WEOF argument.
26337         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26338
26339 2009-09-05  Bruno Haible  <bruno@clisp.org>
26340
26341         Fix conversion behaviour when the input is invalid.
26342         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26343         mark occurring in first pass of indirect conversion.
26344         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26345         input.
26346         Found by clang's static analyzer.
26347
26348 2009-09-05  Bruno Haible  <bruno@clisp.org>
26349
26350         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26351         where direct conversion is possible.
26352
26353 2009-09-04  Eric Blake  <ebb9@byu.net>
26354
26355         openat: fail with ENOENT on empty name
26356         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26357         buffer.
26358
26359         link-follow: fix logic bug in prior patch
26360         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26361         reversed sense of yes and no in prior patch.  Avoid confusing
26362         compilation failure with desired semantics.
26363
26364         link-follow: accomodate mingw and cross-compilation
26365         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26366         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26367         cross-compilation results to -1, to make linkat easier to
26368         implement when cross-compiling.  Trivially support mingw.
26369         * modules/link-follow (configure.ac): Call new name.
26370         * NEWS: Mention this.
26371
26372 2009-09-03  Eric Blake  <ebb9@byu.net>
26373
26374         faccessat: compile replacement
26375         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26376         needed.
26377
26378         fts: fix compilation error
26379         * lib/fts.c (includes): Re-add "openat.h", for
26380         openat_needs_fchdir.
26381
26382         faccessat: new module
26383         * modules/faccessat: New file.
26384         * lib/faccessat.c: Likewise.
26385         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26387         * modules/unistd (Makefile.am): Use it.
26388         * lib/unistd.in.h (faccessat): Declare it.
26389         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26390         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26391         * MODULES.html.sh (File system functions): Mention it.
26392         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26393         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26394
26395         euidaccess: prefer POSIX over non-standard implementation
26396         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26397         * lib/euidaccess.c (euidaccess): Use it if available.
26398
26399         openat: make template easier to use
26400         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26401         AT_FUNC_F2 to be undefined.
26402         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26403         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26404         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26405         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26406         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26407         Likewise.
26408         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26409         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26410         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26411         Likewise.
26412
26413         openat: declare in POSIX headers
26414         * NEWS: Mention this.
26415         * modules/openat (configure.ac): Declare witnesses.
26416         (Depends-on): Add fcntl-h, sys_stat, unistd.
26417         (Include): Mention correct headers.
26418         * modules/fcntl-h (Depends-on): Add link-warning.
26419         (Files): Add openat.m4.
26420         (Makefile.am): Substitute witnesses.
26421         * modules/sys_stat (Files, Makefile.am): Likewise.
26422         * modules/unistd (Files, Makefile.am): Likewise.
26423         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26424         (gl_OPENAT_DEFAULTS): New macro.
26425         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26427         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26428         (SYS_STAT_H): Remove unused variable.
26429         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26430         * lib/fcntl--.h (includes): Remove unneeded header.
26431         * lib/openat-safer.c (includes): Likewise.
26432         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26433         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26434         appropriate headers.
26435         (__OPENAT_PREFIX): Delete.
26436         * lib/fcntl.in.h (openat): Provide declaration.
26437         (AT_FDCWD): Fix Solaris bug.
26438         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26439         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26440         * lib/fchmodat.c (includes):  Adjust to find declaration.
26441         * lib/fchownat.c (includes): Likewise.
26442         * lib/mkdirat.c (includes): Likewise.
26443         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26444         still visible.
26445
26446 2009-09-02  Eric Blake  <ebb9@byu.net>
26447
26448         errno: use consistently
26449         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26450         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26451         * lib/canonicalize.c (ELOOP): Likewise.
26452         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26453         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26454         * lib/lchown.c (EOPNOTSUPP): Likewise.
26455         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26456         * lib/savewd.c (ESTALE): Likewise.
26457         * lib/settime.c (ENOSYS): Likewise.
26458         * lib/utimens.c (ENOSYS): Likewise.
26459         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26460         * lib/chdir-safer.c (ELOOP): Likewise.
26461         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26462         * modules/c-stack (Depends-on): Add errno.
26463         * modules/canonicalize (Depends-on): Likewise.
26464         * modules/chdir-safer (Depends-on): Likewise.
26465         * modules/fdopendir (Depends-on): Likewise.
26466         * modules/inet_ntop (Depends-on): Likewise.
26467         * modules/inet_pton (Depends-on): Likewise.
26468         * modules/lchown (Depends-on): Likewise.
26469         * modules/openat (Depends-on): Likewise.
26470         * modules/savewd (Depends-on): Likewise.
26471         * modules/settime (Depends-on): Likewise.
26472         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26473
26474         fts: avoid leaking fds
26475         * modules/fts (Depends-on): Add cloexec.
26476         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26477         flag.
26478
26479         fts: make directory fds more robust
26480         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26481         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26482
26483         backupfile, chdir-long, fts, savedir: make safer
26484         * lib/backupfile.c (includes): Use "dirent--.h", since
26485         numbered_backup can write to stderr during readdir.
26486         * lib/savedir.c (includes): Likewise.
26487         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26488         emulation can write to stderr on failure.
26489         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26490         * lib/getcwd.c: Document why opendir_safer is unused.
26491         * lib/glob.c: Likewise.
26492         * lib/scandir.c: Likewise.
26493         * lib/openat-proc.c: Likewise, for open_safer.
26494         * modules/backupfile (Depends-on): Add dirent-safer.
26495         * modules/savedir (Depends-on): Likewise.
26496         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26497         * modules/chdir-long (Depends-on): Add openat-safer.
26498
26499         openat-safer: new module
26500         * modules/openat-safer: New file.
26501         * lib/openat-safer.c: Likewise.
26502         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26503         * lib/fcntl-safer.h (openat_safer): Declare.
26504         * lib/fcntl--.h (openat): Override.
26505         * MODULES.html.sh (File descriptor based I/O): Mention it.
26506         * lib/openat.h: Add double-inclusion guards.
26507         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26508         "fcntl--.h", so we can implement openat.
26509         * modules/openat-safer-tests: New test.
26510         * tests/test-openat-safer.c: New file.
26511
26512         dirent-safer: new module
26513         * modules/dirent-safer: New file.
26514         * lib/dirent--.h: Likewise.
26515         * lib/dirent-safer.h: Likewise.
26516         * lib/opendir-safer.c: Likewise.
26517         * m4/dirent-safer.m4: Likewise.
26518         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26519         * modules/dirent-safer-tests: New test.
26520         * tests/test-dirent-safer.c: New file.
26521         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26522
26523         fdopendir: optimize on mingw
26524         * lib/unistd.in.h (_gl_directory_name): New prototype.
26525         * lib/fchdir.c (_gl_directory_name): Implement it.
26526         (fchdir): Use it to simplify implementation.
26527         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26528         fchdir, when available, to avoid calling [f]chdir().
26529
26530         fdopendir: split into its own module
26531         * lib/openat.c (fdopendir): Move...
26532         * lib/fdopendir.c: ...into new file.
26533         * modules/fdopendir: New module.
26534         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26535         * modules/openat (Depends-on): Add fdopendir.
26536         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26537         fdopendir here.
26538         * modules/savedir (Depends-on): Only need fdopendir, not full
26539         openat.
26540         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26541         * lib/openat.h (fdopendir): Drop prototype.
26542         * lib/dirent.in.h (fdopendir): Provide prototype.
26543         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26544         * modules/dirent (Makefile.am): Substitute them.
26545         * MODULES.html.sh (File system functions): Mention it.
26546         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26547         * modules/fdopendir-tests: New file.
26548         * tests/test-fdopendir.c: Likewise.
26549
26550         fchdir: use more consistent macro convention
26551         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26552         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26553         REPLACE_FCHDIR, rather than relying on config.h macros.
26554         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26555         inside a single make-time REPLACE_FCHDIR block, rather than using
26556         the config.h FCHDIR_REPLACEMENT.
26557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26558         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26559         Manage fstat replacement.
26560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26561         REPLACE_FCHDIR.
26562         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26563         (Makefile.am): Substitute REPLACE_FCHDIR.
26564         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26565         FCHDIR_REPLACEMENT.
26566         * lib/dup-safer.c (dup_safer): Likewise.
26567         * lib/dup2.c (rpl_dup2): Likewise.
26568         * lib/dup3.c (rpl_dup3): Likewise.
26569         * lib/open.c (rpl_open): Likewise.
26570
26571         fchdir: simplify error handling, and support dup3
26572         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26573         stdbool, malloc-posix, realloc-posix.
26574         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26575         (ensure_dirs_slot): Return false on allocation failure.
26576         (rpl_dup2): Delete.
26577         (_gl_register_dup): New function.
26578         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26579         (_gl_register_fd): Close fd on allocation failure.
26580         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26581         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26582         prototype.
26583         (rpl_dup2_fchdir): Delete prototype.
26584         * lib/open.c (open): Update caller.
26585         * lib/dup2.c (dup2): Track fchdir metadata.
26586         * lib/dup3.c (dup3): Likewise.
26587         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26588         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26589
26590 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26591
26592         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26593         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26594         don't pass arguments to AC_OUTPUT.
26595
26596 2009-09-02  Bruno Haible  <bruno@clisp.org>
26597
26598         * modules/mkdtemp (License): Relicense under LGPLv2+.
26599         Reported by Paolo Bonzini.
26600
26601 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26602
26603         Replace uses of obsolete autoconf macros in Jim's modules.
26604         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26605         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26606         can evoke a warning from autoconf when run with -Wobsolete
26607         enabled.  They were declared obsolete for good reasons (see
26608         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26609         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26610         should not continue using the deprecated macros.
26611         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26612         obsolete Autoconf macros with modern counterparts.
26613         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26614         * m4/dos.m4 (gl_AC_DOS): Likewise.
26615         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26616         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26617         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26618         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26619         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26620         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26621         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26622         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26623         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26624         Likewise.
26625         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26626         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26627         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26628         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26629         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26630         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26631
26632 2009-09-01  Eric Blake  <ebb9@byu.net>
26633
26634         fchdir: fix off-by-one bug in previous patch
26635         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26636         (_gl_unregister_fd): Delete useless if.
26637
26638 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26639
26640         maint.mk: sort the list of syntax-check rules
26641         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26642         easier to get a sense of progress when the rules are run sequentially
26643         and take a long time.
26644
26645 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26646
26647         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26648         * modules/netinet_in: Likewise.
26649         * modules/sys_file: Likewise.
26650         * modules/sys_ioctl: Likewise.
26651         * modules/sys_select: Likewise.
26652         * modules/sys_socket: Likewise.
26653         * modules/sys_stat: Likewise.
26654         * modules/sys_time: Likewise.
26655         * modules/sys_times: Likewise.
26656         * modules/sys_utsname: Likewise.
26657         * modules/sys_wait: Likewise.
26658
26659 2009-09-01  Jim Meyering  <meyering@redhat.com>
26660
26661         fts: help ensure that return values are not ignored
26662         * lib/fts_.h (__GNUC_PREREQ): Define.
26663         (__attribute_warn_unused_result__): Define.
26664         (fts_children, fts_close, fts_open, fts_read): Declare with
26665         __attribute_warn_unused_result__.
26666
26667         fts: fts_close now fails also when closing a dir file descriptor fails
26668         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26669         and propagate to caller, along with errno.
26670
26671         announce-gen: correct formatting in --help output
26672         * build-aux/announce-gen (usage): Move the one-line description in
26673         --help output "up", to where it belongs, just after Usage:.
26674
26675 2009-08-31  Eric Blake  <ebb9@byu.net>
26676
26677         fchdir: port to mingw
26678         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26679         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26680         opened, then use a substitute.
26681         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26682         replacement.
26683         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26684         (_gl_register_fd): No need to check stat if open already filters
26685         all directories.
26686         (fchdir): Fix error condition to match POSIX.
26687         * modules/fchdir (Depends-on): Add sys_stat.
26688         * doc/posix-functions/open.texi (open): Document the limitation.
26689         * modules/fchdir-tests: New file.
26690         * tests/test-fchdir.c: Likewise.
26691
26692         canonicalize: allow cross-testing from cygwin to mingw
26693         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26694         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26695         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26696         Likewise.
26697         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26698         target does not support symlinks.
26699         * tests/test-canonicalize-lgpl.sh: Likewise.
26700
26701         chown: avoid compilation warning on mingw
26702         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26703         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26704         mingw.
26705         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26706         * modules/chown (Depends-on): Add errno.
26707
26708 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26709
26710         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26711         command.
26712
26713 2009-08-31  Jim Meyering  <meyering@redhat.com>
26714
26715         canonicalize: remove useless initialization
26716         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26717         initialization of local, "end".
26718
26719 2009-08-30  Bruno Haible  <bruno@clisp.org>
26720
26721         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26722         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26723         ENOSYS.
26724
26725 2009-08-30  Bruno Haible  <bruno@clisp.org>
26726
26727         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26728         /usr/xpg4/bin/tr when it exists.
26729         * tests/test-pipe-filter-gi1.sh: Likewise.
26730
26731 2009-08-30  Bruno Haible  <bruno@clisp.org>
26732
26733         Work around deficient /usr/bin/id program on Solaris.
26734         * tests/test-file-has-acl.sh (ID): New variable.
26735         * tests/test-set-mode-acl.sh (ID): Likewise.
26736         * tests/test-copy-acl.sh (ID): Likewise.
26737         * tests/test-copy-file.sh (ID): Likewise.
26738
26739 2009-08-30  Bruno Haible  <bruno@clisp.org>
26740
26741         New module 'xstriconveh'.
26742         * lib/xstriconveh.h: New file.
26743         * lib/xstriconveh.c: New file.
26744         * modules/xstriconveh: New file.
26745
26746 2009-08-30  Bruno Haible  <bruno@clisp.org>
26747
26748         Make it easier to use mem_cd_iconveh.
26749         * lib/striconveh.h (iconveh_t): New type.
26750         (iconveh_open, iconveh_close): New declarations.
26751         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26752         with a single 'const iconveh_t *' argument.
26753         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26754         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26755         with a single 'const iconveh_t *' argument.
26756         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26757         * tests/test-striconveh.c (main): Update.
26758         * NEWS: Mention the change.
26759
26760 2009-08-30  Bruno Haible  <bruno@clisp.org>
26761
26762         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26763         problem.
26764
26765 2009-08-30  Bruno Haible  <bruno@clisp.org>
26766
26767         Work around iconv_open problem on Solaris.
26768         * lib/iconv_open-solaris.gperf: New file.
26769         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26770         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26771         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26772         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26773         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26774         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26775
26776 2009-08-29  Jim Meyering  <meyering@redhat.com>
26777
26778         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26779         * top/maint.mk (cvs-check): Remove target; it was just an alias
26780         to the better-named vc-diff-check.
26781         (maintainer-distcheck): Remove rule.  It was used only from
26782         the (alpha/beta/major) target, and all of its commands but one
26783         were coreutils-specific.
26784         (vc-dist): Remove rule.
26785         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26786         Run vc-diff-check, not vc-dist.
26787         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26788
26789 2009-08-27  Bruno Haible  <bruno@clisp.org>
26790
26791         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26792         of 0.
26793
26794 2009-08-27  Bruno Haible  <bruno@clisp.org>
26795
26796         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26797         compilers.
26798         * doc/func.texi: Document the SunPRO C bug.
26799
26800 2009-08-27  Bruno Haible  <bruno@clisp.org>
26801
26802         Fix link error on Solaris.
26803         * tests/test-parse-duration.c (xstrdup): Remove function.
26804
26805 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26806
26807         ignore-value: handle pointer types, too
26808         * lib/ignore-value.h (__attribute__): Remove definition.
26809         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26810         of a more concise and more-often effective "(void) i" statement.
26811         (ignore_ptr): New function to suppress warnings from functions that
26812         return pointers, and to make it explicit that one function doesn't
26813         handle all cases.
26814
26815 2009-08-25  Bruno Haible  <bruno@clisp.org>
26816
26817         dup2: work around a Linux bug.
26818         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26819         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26820         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26821         Reported by Simon Josefsson.
26822
26823 2009-08-25  Jim Meyering  <meyering@redhat.com>
26824
26825         libguestfs uses gnulib
26826         * users.txt: Add libguestfs.
26827
26828 2009-08-24  Eric Blake  <ebb9@byu.net>
26829
26830         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26831         * lib/pipe2.c (includes): Add binary-io.h.
26832         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26833
26834 2009-08-24  Bruno Haible  <bruno@clisp.org>
26835
26836         Tolerate declared but missing accept4 syscall.
26837         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26838         available.
26839         * lib/sys_socket.in.h (accept4): If the function is already present,
26840         override it.
26841         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26842         * modules/accept4 (Makefile.am): Compile accept4.c always.
26843         Reported by Paolo Bonzini and Eric Blake.
26844
26845 2009-08-23  Bruno Haible  <bruno@clisp.org>
26846
26847         New module 'accept4'.
26848         * lib/sys_socket.in.h (accept4): New declaration.
26849         * lib/accept4.c: New file.
26850         * m4/accept4.m4: New file.
26851         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26852         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26853         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26854         HAVE_ACCEPT4.
26855         * modules/accept4: New file.
26856         * doc/glibc-functions/accept4.texi: Mention the new module.
26857
26858 2009-08-24  Jim Meyering  <meyering@redhat.com>
26859
26860         progname: also set global program_invocation_name, when possible
26861         Before this change, a libtool-enabled program that calls glibc's
26862         error function would report the program name as
26863         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26864         * modules/progname (configure.ac): Check for a declaration of
26865         program_invocation_name.
26866         * lib/progname.c:  Include <errno.h>.
26867         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26868         Set program_invocation_name.
26869
26870 2009-08-23  Bruno Haible  <bruno@clisp.org>
26871
26872         * lib/dup3.c: Include <string.h>.
26873
26874 2009-08-23  Bruno Haible  <bruno@clisp.org>
26875
26876         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26877         * lib/pipe2.c (pipe2): Likewise.
26878         Suggested by Eric Blake.
26879
26880 2009-08-23  Bruno Haible  <bruno@clisp.org>
26881
26882         Tolerate declared but missing dup3 syscall.
26883         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26884         * lib/unistd.in.h (dup3): If the function is already present,
26885         override it.
26886         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26887         * modules/dup3 (Makefile.am): Compile dup3.c always.
26888         Reported by Paolo Bonzini.
26889
26890 2009-08-23  Bruno Haible  <bruno@clisp.org>
26891
26892         Tolerate declared but missing pipe2 syscall.
26893         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26894         available.
26895         * lib/unistd.in.h (pipe2): If the function is already present,
26896         override it.
26897         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26898         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26899         Reported by Paolo Bonzini.
26900
26901 2009-08-23  Bruno Haible  <bruno@clisp.org>
26902
26903         * lib/pipe2.c (pipe2): Move #ifs inside function.
26904
26905 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26906
26907         quotearg: document limitations of quote_these_too
26908         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26909         those limitations are created.
26910         * lib/quotearg.h (set_char_quoting): Document that digits and
26911         letters that are special after backslash are not permitted.
26912         (quotearg_char): Cross-reference set_char_quoting documentation.
26913
26914 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26915
26916         quotearg: implement custom_quoting_style
26917         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26918         right_quote fields.
26919         (set_custom_quoting): New public function.
26920         (quotearg_buffer_restyled): Add left_quote and right_quote
26921         arguments, handle them very much like locale quoting, and update
26922         all uses.
26923         (quotearg_n_custom): New public function.
26924         (quotearg_n_custom_mem): New public function.
26925         (quotearg_custom): New public function.
26926         (quotearg_custom_mem): New public function.
26927         * lib/quotearg.h: Prototype and document new public functions.
26928         (enum quoting_style): For escape_quoting_style and
26929         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26930         ignored even though they're otherwise like c_quoting_style.
26931         Add custom_quoting_style member and document with comparison to
26932         clocale_quoting_style.
26933         * tests/test-quotearg.c (custom_quotes): New array.
26934         (custom_results): New array.
26935         (main): Extend to test custom quoting.
26936
26937 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26938
26939         quotearg: fix right quote escaping when it's in quote_these_too
26940         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26941         quote, be sure to prepend only one backslash.
26942         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26943         (main): Test it.
26944
26945 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26946
26947         quotearg-tests: test escaping of embedded locale quotes
26948         * tests/test-quotearg.c (struct result_strings): Add member for
26949         new input.
26950         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26951         (inputs): Add new input.
26952         (results_g): Add expected results.
26953         (flag_results): Likewise.
26954         (locale_results): Likewise.
26955         (compare_strings): Check those.
26956
26957 2009-08-23  Bruno Haible  <bruno@clisp.org>
26958
26959         Tests for module 'dup3'.
26960         * modules/dup3-tests: New file.
26961         * tests/test-dup3.c: New file.
26962
26963         New module 'dup3'.
26964         * lib/unistd.in.h (dup3): New declaration.
26965         * lib/dup3.c: New file.
26966         * m4/dup3.m4: New file.
26967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26968         HAVE_DUP3.
26969         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26970         * modules/dup3: New file.
26971         * doc/glibc-functions/dup3.texi: Mention the new module.
26972
26973 2009-08-23  Bruno Haible  <bruno@clisp.org>
26974
26975         Tweak the dup2 test.
26976         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26977         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26978         the test file is still empty. Fix argument order of lseek.
26979
26980 2009-08-23  Bruno Haible  <bruno@clisp.org>
26981
26982         Avoid test link errors when the modules getopt-gnu, gettext are used.
26983         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26984         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26985
26986 2009-08-23  Bruno Haible  <bruno@clisp.org>
26987
26988         Fix getdtablesize() on mingw.
26989         * lib/getdtablesize.c (getdtablesize): Implement differently.
26990         * lib/unistd.in.h (getdtablesize): Improve comment.
26991
26992 2009-08-23  Bruno Haible  <bruno@clisp.org>
26993
26994         New module 'mkostemp'.
26995         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26996         * lib/stdlib.in.h (mksotemp): New declaration.
26997         * lib/mkostemp.c: New file, from glibc with modifications.
26998         * lib/tempname.h (GT_FILE): Remove outdated comment.
26999         (gen_tempname): Add flags argument.
27000         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27001         (__GT_FILE): Map to 1.
27002         (small_open, large_open): Remove macros.
27003         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27004         * lib/mkstemp.c (mkstemp): Update.
27005         * lib/mkdtemp.c (mkdtemp): Likewise.
27006         * m4/mkostemp.m4: New file.
27007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27008         HAVE_MKOSTEMP.
27009         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27010         HAVE_MKOSTEMP.
27011         * modules/mkostemp: New file, based on modules/mkstemp.
27012         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27013         * NEWS: Mention the change.
27014
27015 2009-08-23  Bruno Haible  <bruno@clisp.org>
27016
27017         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27018         Reported by Eric Blake.
27019
27020 2009-08-23  Bruno Haible  <bruno@clisp.org>
27021
27022         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27023         Reported by Eric Blake.
27024
27025 2009-08-23  Bruno Haible  <bruno@clisp.org>
27026
27027         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27028         * modules/pipe2 (Depends-on): Likewise.
27029
27030 2009-08-23  Eric Blake  <ebb9@byu.net>
27031
27032         fcntl-h: add O_TTY_INIT support
27033         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27034         * tests/test-fcntl-h.c (o): Test it.
27035         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27036
27037         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27038         * modules/fcntl: Move <fcntl.h> header replacement...
27039         * modules/fcntl-h: ...to new name, so as not to collide with
27040         like-named function.
27041         * tests/test-fcntl.c: Rename...
27042         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27043         * modules/fcntl-tests: Rename...
27044         * modules/fcntl-h-tests: ...to this.  Update test file name.
27045         * modules/chdir-long (Depends-on): Update clients.
27046         * modules/chdir-safer (Depends-on): Likewise.
27047         * modules/fcntl-safer (Depends-on): Likewise.
27048         * modules/fts (Depends-on): Likewise.
27049         * modules/mkancesdirs (Depends-on): Likewise.
27050         * modules/mkdir-p (Depends-on): Likewise.
27051         * modules/open (Depends-on): Likewise.
27052         * modules/savewd (Depends-on): Likewise.
27053         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27054         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27055
27056 2009-08-22  Bruno Haible  <bruno@clisp.org>
27057
27058         * modules/binary-io (License): Relicense under LGPL.
27059         * modules/pipe2 (License): Likewise.
27060
27061 2009-08-22  Bruno Haible  <bruno@clisp.org>
27062
27063         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27064         return value.
27065         * lib/pipe-filter-gi.c (filter_init): Likewise.
27066         Reported by Eric Blake.
27067
27068 2009-08-22  Bruno Haible  <bruno@clisp.org>
27069
27070         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27071         * modules/pipe (Depends-on): Add pipe2.
27072
27073 2009-08-22  Bruno Haible  <bruno@clisp.org>
27074
27075         Tests for module 'pipe2'.
27076         * modules/pipe2-tests: New file.
27077         * tests/test-pipe2.c: New file.
27078
27079         New module 'pipe2'.
27080         * lib/unistd.in.h (pipe2): New declaration.
27081         * lib/pipe2.c: New file.
27082         * m4/pipe2.m4: New file.
27083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27084         HAVE_PIPE2.
27085         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27086         * modules/pipe2: New file.
27087         * doc/glibc-functions/pipe2.texi: Mention the new module.
27088
27089 2009-08-22  Bruno Haible  <bruno@clisp.org>
27090
27091         Reference some new glibc functions.
27092         * doc/glibc-functions/accept4.texi: New file.
27093         * doc/glibc-functions/dup3.texi: New file.
27094         * doc/glibc-functions/mkostemp.texi: New file.
27095         * doc/glibc-functions/pipe2.texi: New file.
27096         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27097         (Glibc sys/socket.h): Refer to accept4.
27098         (Glibc unistd.h): Refer to dup3, pipe2.
27099         Reported by Eric Blake.
27100
27101 2009-08-22  Jim Meyering  <meyering@redhat.com>
27102             Bruno Haible  <bruno@clisp.org>
27103
27104         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27105         This makes it so packages using automake-1.11's silent-rules option
27106         can print e.g., a single "GEN    configmake.h" line, rather than
27107         the 30+ statements that perform the job.  If you want to see the
27108         actual commands, you can still run "make V=1".
27109         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27110         so that make output is abbreviated when those variables are defined
27111         appropriately.
27112         * modules/argz: Likewise.
27113         * modules/arpa_inet: Likewise.
27114         * modules/byteswap: Likewise.
27115         * modules/configmake: Likewise.
27116         * modules/dirent: Likewise.
27117         * modules/errno: Likewise.
27118         * modules/fcntl: Likewise.
27119         * modules/float: Likewise.
27120         * modules/fnmatch: Likewise.
27121         * modules/getopt-posix: Likewise.
27122         * modules/glob: Likewise.
27123         * modules/iconv_open: Likewise.
27124         * modules/inttypes: Likewise.
27125         * modules/localcharset: Likewise.
27126         * modules/locale: Likewise.
27127         * modules/math: Likewise.
27128         * modules/netdb: Likewise.
27129         * modules/netinet_in: Likewise.
27130         * modules/poll: Likewise.
27131         * modules/posix_spawnp-tests: Likewise.
27132         * modules/sched: Likewise.
27133         * modules/search: Likewise.
27134         * modules/selinux-h: Likewise.
27135         * modules/signal: Likewise.
27136         * modules/spawn: Likewise.
27137         * modules/stdarg: Likewise.
27138         * modules/stdbool: Likewise.
27139         * modules/stddef: Likewise.
27140         * modules/stdint: Likewise.
27141         * modules/stdio: Likewise.
27142         * modules/stdlib: Likewise.
27143         * modules/string: Likewise.
27144         * modules/strings: Likewise.
27145         * modules/sys_file: Likewise.
27146         * modules/sys_ioctl: Likewise.
27147         * modules/sys_select: Likewise.
27148         * modules/sys_socket: Likewise.
27149         * modules/sys_stat: Likewise.
27150         * modules/sys_time: Likewise.
27151         * modules/sys_times: Likewise.
27152         * modules/sys_utsname: Likewise.
27153         * modules/sys_wait: Likewise.
27154         * modules/sysexits: Likewise.
27155         * modules/time: Likewise.
27156         * modules/unistd: Likewise.
27157         * modules/wchar: Likewise.
27158         * modules/wctype: Likewise.
27159
27160 2009-08-22  Jim Meyering  <meyering@redhat.com>
27161
27162         announce-gen: detect write failure
27163         * build-aux/announce-gen: Add Coda at end.
27164         Remove equivalent-but-more-verbose block at top.
27165
27166 2009-08-19  Akim Demaille  <demaille@gostai.com>
27167
27168         bootstrap: --help to stdout.
27169         * bootstrap (usage): Don't send --help to stderr.
27170         Use a here doc instead of a long string.
27171
27172 2009-08-21  Eric Blake  <ebb9@byu.net>
27173
27174         test-popen-safer: split from test-popen
27175         * tests/test-popen.c (main): Move...
27176         * tests/test-popen.h: ...into new file.
27177         * tests/test-popen-safer2.c: New file.
27178         * modules/popen-tests (Files): Add test-popen.h.
27179         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27180         Suggested by Bruno Haible.
27181
27182         test-fcntl-safer: split from test-open
27183         * tests/test-open.c (main): Move...
27184         * tests/test-open.h: ...into new file.
27185         * tests/test-fcntl-safer.c: New file.
27186         * modules/open-tests (Files): Add test-open.h.
27187         * modules/fcntl-safer-tests: New file.
27188         Suggested by Bruno Haible.
27189
27190         test-fopen-safer: split from test-fopen
27191         * tests/test-fopen.c (main): Move...
27192         * tests/test-fopen.h: ...into new file.
27193         * tests/test-fopen-safer.c: New file.
27194         * modules/fopen-tests (Files): Add test-fopen.h.
27195         * modules/fopen-safer-tests: New file.
27196         Suggested by Bruno Haible.
27197
27198 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27199
27200         popen-safer: test O_CLOEXEC at run-time.
27201         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27202
27203 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27204
27205         fcntl: move more flags to the header
27206         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27207         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27208         * lib/fcntl.in.h: Do both things here.
27209
27210 2009-08-21  Jim Meyering  <meyering@redhat.com>
27211
27212         consistently remove $@-t before redirecting to it
27213         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27214         * modules/alloca-opt: Likewise.
27215         * modules/byteswap: Likewise.
27216         * modules/fnmatch: Likewise.
27217         * modules/getopt-posix: Likewise.
27218         * modules/glob: Likewise.
27219         * modules/poll: Likewise.
27220         * modules/posix_spawnp-tests: Likewise.
27221         * modules/sys_socket: Likewise.
27222         * modules/sysexits: Likewise.
27223
27224 2009-08-21  Eric Blake  <ebb9@byu.net>
27225
27226         popen: simplify access to original popen
27227         * lib/popen.c (rpl_popen): No need to worry about popen being a
27228         macro.
27229         Reported by Bruno Haible.
27230
27231 2009-08-20  Eric Blake  <ebb9@byu.net>
27232
27233         build: avoid some compiler warnings
27234         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27235         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27236         type.
27237         (new_exclude_segment, excluded_file_pattern_p)
27238         (excluded_file_name_p): Reduce scope.
27239         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27240         old-style declaration.
27241
27242 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27243
27244         * tests/test-exclude1.sh: Handle Windows EOL.
27245         * tests/test-exclude2.sh: Likewise.
27246         * tests/test-exclude3.sh: Likewise.
27247         * tests/test-exclude4.sh: Likewise.
27248         * tests/test-exclude5.sh: Likewise.
27249         * tests/test-exclude6.sh: Likewise.
27250         * tests/test-exclude7.sh: Likewise.
27251
27252 2009-08-19  Akim Demaille  <demaille@gostai.com>
27253
27254         bootstrap: find sha1sum when named gsha1sum.
27255         * bootstrap (find_tool): New.
27256         ($SHA1SUM): New.
27257         Use it.
27258
27259 2009-08-20  Jim Meyering  <meyering@redhat.com>
27260
27261         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27262         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27263         expression that converts "." in a file name to "\." in the resulting
27264         regexp.  Start with a dummy statement, so that prior shell variable
27265         definitions are expanded portably.  Reported by Simon Josefsson.
27266
27267 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27268
27269         Fix polling for writeability of a screen buffer.
27270         * lib/poll.c: Distinguish input and screen buffers for the
27271         Win32 implementation.
27272         * lib/select.c: Likewise.
27273
27274 2009-08-19  Eric Blake  <ebb9@byu.net>
27275
27276         popen-safer: prevent popen from clobbering std descriptors
27277         * modules/popen-safer: New file.
27278         * lib/popen-safer.c: Likewise.
27279         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27280         * lib/stdio--.h (popen): Provide override.
27281         * lib/stdio-safer.h (popen_safer): Provide declaration.
27282         * tests/test-popen.c (includes): Partially test this.
27283         * modules/popen-safer-tests: New file, for more tests.
27284         * tests/test-popen-safer.c: Likewise.
27285         * MODULES.html.sh (file stream based Input/Output): Mention it.
27286
27287         tests: test some of the *-safer modules
27288         * modules/fopen-safer (Depends-on): Add fopen.
27289         * modules/fcntl-safer (Depends-on): Add fcntl.
27290         * modules/stdlib-safer (Depends-on): Add stdlib.
27291         (configure.ac): Set indicator.
27292         * modules/unistd-safer (configure.ac): Likewise.
27293         * modules/tmpfile-safer (configure.ac): Likewise.
27294         (Depends-on): Add tmpfile.
27295         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27296         active.
27297         * tests/test-fopen.c (includes): Test safer versions when they are
27298         in use.
27299         * tests/test-open.c (includes): Likewise.
27300
27301         popen: fix cygwin 1.5 bug when stdin closed
27302         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27303         * modules/popen: New file.
27304         * modules/popen-tests: Likewise.
27305         * tests/test-popen.c: Likewise.
27306         * m4/popen.m4: Likewise.
27307         * lib/popen.c: Likewise.
27308         * lib/stdio.in.h (popen): New declaration.
27309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27310         * modules/stdio (Makefile.am): Likewise.
27311         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27312
27313 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27314
27315         maint.mk: give full control over update-copyright exclusions
27316         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27317         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27318         (update-copyright): Don't force inclusion of top-level
27319         ChangeLog.  Don't force exclusion of all COPYING files, but make
27320         them the default exclusion instead.
27321
27322 2009-08-16  Bruno Haible  <bruno@clisp.org>
27323
27324         Fix test failures on Solaris 10.
27325         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27326         tests when Solaris iconv() is used.
27327         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27328         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27329         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27330         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27331         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27332
27333 2009-08-16  Bruno Haible  <bruno@clisp.org>
27334
27335         Fix test failures on Solaris 10.
27336         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27337         'tr' program and pass it as first argument.
27338         * tests/test-pipe-filter-gi1.sh: Likewise.
27339         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27340         program as first argument.
27341         * tests/test-pipe-filter-gi1.c (main): Likewise.
27342
27343 2009-08-16  Eric Blake  <ebb9@byu.net>
27344
27345         fpurge: fix previous commits
27346         * modules/fpurge (Makefile.am): Make replacement conditional,
27347         partially reverting 2007-04-29 change; missed in previous
27348         attempt.
27349         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27350         is missing.
27351
27352 2009-08-16  Bruno Haible  <bruno@clisp.org>
27353
27354         Clarify fpurge's effect on the file position.
27355         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27356         * tests/test-fpurge.c (main): Make a second pass for checking the file
27357         position.
27358
27359 2009-08-16  Bruno Haible  <bruno@clisp.org>
27360
27361         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27362         declaration of fpurge is missing.
27363         * tests/test-fpurge.c (main): Check that the file has not more contents
27364         than expected. Close the file before removing it.
27365
27366 2009-08-15  Eric Blake  <ebb9@byu.net>
27367
27368         fpurge: don't wrap working cygwin implementation
27369         * lib/fpurge.c (fpurge): Fix comment typo.
27370         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27371         1.7 to avoid replacement.
27372         * tests/test-fpurge.c (main): Enhance test.
27373
27374 2009-08-15  Eric Blake  <ebb9@byu.net>
27375         and Jim Meyering  <meyering@redhat.com>
27376
27377         test-update-copyright: skip if perl is insufficient
27378         * tests/test-update-copyright.sh: Failure to run maintainer tool
27379         should not cause testsuite failure on cygwin 1.5.
27380
27381 2009-08-14  Eric Blake  <ebb9@byu.net>
27382
27383         doc: mention more functions added in cygwin 1.7.0
27384         * doc/posix-headers/limits.texi (limits.h): Update for recent
27385         cygwin additions.
27386         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27387         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27388         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27389         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27390         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27391
27392 2009-08-14  Eric Blake  <ebb9@byu.net>
27393
27394         maint.mk: simplify update-copyright rule
27395         * top/maint.mk (update-copyright-local): Delete, and document how
27396         to do it in cfg.mk instead.
27397         (update-copyright-exclude-regexp): Delete, and document how to do
27398         it in .x-update-copyright instead.
27399         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27400         exclude ChangeLog.
27401
27402 2009-08-14  Bruno Haible  <bruno@clisp.org>
27403
27404         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27405
27406 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27407
27408         maint.mk: support update-copyright-env
27409         * top/maint.mk (update-copyright-env): Define place-holder.
27410         (update-copyright): Expand $(update-copyright-env) before
27411         invoking update-copyright.
27412
27413 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27414
27415         update-copyright: implement forced reformatting
27416         * build-aux/update-copyright: Implement and document
27417         UPDATE_COPYRIGHT_FORCE.
27418         * tests/test-update-copyright.sh: Test it.
27419
27420 2009-08-14  Eric Blake  <ebb9@byu.net>
27421         and Bruno Haible  <bruno@clisp.org>
27422
27423         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27424         * tests/test-locale.c: Revert previous patch related to NULL.
27425         * tests/test-stdio.c: Likewise.
27426         * tests/test-stdlib.c: Likewise.
27427         * tests/test-string.c: Likewise.
27428         * tests/test-unistd.c: Likewise.
27429         * modules/time-tests (Depends-on): Add verify.
27430         * modules/wchar-tests (Depends-on): Likewise.
27431         * tests/test-time.c: Test for NULL compliance.
27432         * tests/test-wchar.c: Likewise.
27433         * modules/locale (Depends-on): Add stddef.
27434         * modules/stdio (Depends-on): Likewise.
27435         * modules/stdlib (Depends-on): Likewise.
27436         * modules/string (Depends-on): Likewise.
27437         * modules/time (Depends-on): Likewise.
27438         * modules/unistd (Depends-on): Likewise.
27439         * modules/wchar (Depends-on): Likewise.
27440         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27441         * lib/stdlib.in.h (includes): Likewise.
27442         * lib/string.in.h (includes): Likewise.
27443         * lib/time.in.h (includes): Likewise.
27444         * lib/unistd.in.h (includes): Likewise.
27445         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27446         replaced.
27447         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27448         * m4/stddef_h.m4: New file.
27449         * modules/stddef: Likewise.
27450         * lib/stddef.in.h: Likewise.
27451         * modules/stddef-tests: Likewise.
27452         * tests/test-stddef.c: Likewise.
27453         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27454         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27455         * doc/posix-headers/locale.texi (locale.h): Likewise.
27456         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27457         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27458         * doc/posix-headers/string.texi (string.h): Likewise.
27459         * doc/posix-headers/time.texi (time.h): Likewise.
27460         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27461         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27462
27463 2009-08-14  Eric Blake  <ebb9@byu.net>
27464
27465         doc: improve git diff of texinfo files
27466         * .gitattributes: Add rule for *.texi files, with hint on how to
27467         use it.
27468         Copied from m4, and based on a report by Bruno Haible.
27469
27470 2009-08-14  Bruno Haible  <bruno@clisp.org>
27471
27472         Disable multithread support by default on Cygwin 1.5.x for real.
27473         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27474
27475 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27476
27477         update-copyright: much ado about intervals
27478         * build-aux/update-copyright: Implement and document
27479         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27480         of copyright year intervals.
27481         Also, document UPDATE_COPYRIGHT_YEAR.
27482         * tests/test-update-copyright.sh: Test it.
27483
27484         update-copyright: convert 2-digit to 4-digit years
27485         * build-aux/update-copyright: Implement and document.
27486         * tests/test-update-copyright.sh: Update.
27487
27488 2009-08-14  Jim Meyering  <meyering@redhat.com>
27489
27490         test-exclude: avoid coreutils "make check" failure
27491         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27492         just as in test-argmatch.c.
27493
27494 2009-08-13  Eric Blake  <ebb9@byu.net>
27495
27496         test-dup2: fix bad assumption
27497         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27498         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27499
27500         test-version-etc: fix CRLF portability issue
27501         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27502         recognize \r.
27503         * tests/test-argp-version-etc-1.sh: Likewise.
27504
27505         getopt: update client modules
27506         * modules/argp (Depends-on): Use getopt-gnu.
27507         * modules/git-merge-changelog (Depends-on): Likewise.
27508         * modules/long-options (Depends-on): Likewise.
27509         * modules/xstrtol (Depends-on): Likewise.
27510
27511 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27512
27513         * tests/test-version-etc.sh: Don't fail on different
27514         project/version.  Don't fail on CRLF differences.  Rewrite to use
27515         multiple -e instead of multiple sed forks, suggested by Eric Blake
27516         <ebb9@byu.net>.
27517         * tests/test-argp-version-etc-1.sh: Likewise.
27518
27519 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27520
27521         * tests/test-version-etc.sh: Don't fail on different
27522         project/version.
27523
27524 2009-08-12  Bruno Haible  <bruno@clisp.org>
27525
27526         Tests for modules 'getopt-posix', 'getopt-gnu'.
27527         * modules/getopt-posix-tests: New file.
27528         * tests/test-getopt.c: New file.
27529         * tests/test-getopt.h: New file.
27530         * tests/test-getopt_long.h: New file.
27531
27532         New modules 'getopt-posix', 'getopt-gnu'.
27533         * modules/getopt-gnu: New file, renamed from modules/getopt.
27534         * modules/getopt-posix: New file.
27535         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27536         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27537         (gl_GETOPT): Remove macro.
27538         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27539         Disable the test against BSD systems that declare optreset. Test
27540         against mingw bug. Test against lack of support of optional arguments
27541         on many platforms.
27542         * doc/glibc-headers/getopt.texi: Update module name and list of
27543         relevant platforms.
27544         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27545         'getopt-gnu' and more portability problems.
27546         * NEWS: Mention the changes.
27547
27548 2009-08-12  Bruno Haible  <bruno@clisp.org>
27549
27550         Ensure that optarg etc. get declared by <unistd.h>.
27551         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27552         AC_USE_SYSTEM_EXTENSIONS.
27553         * modules/getopt (Depends-on): Add 'extensions'.
27554
27555 2009-08-12  Bruno Haible  <bruno@clisp.org>
27556
27557         Avoid test link errors.
27558         * modules/pipe-filter-ii-tests (Makefile.am): Define
27559         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27560         * modules/pipe-filter-gi-tests (Makefile.am): Define
27561         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27562         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27563
27564 2009-08-12  Bruno Haible  <bruno@clisp.org>
27565
27566         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27567         gl_GETOPT_SUBSTITUTE before.
27568         (gl_GETOPT): Use it.
27569         * m4/argp.m4 (gl_ARGP): Update.
27570         Reported by Sergey Poznyakoff.
27571
27572         * m4/getopt.m4: Reorder macros.
27573         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27574         (gl_GETOPT_SUBSTITUTE): Remove macro.
27575
27576 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27577
27578         Minor improvement in gitlog-to-changelog
27579
27580         * build-aux/gitlog-to-changelog: New option `--format' makes
27581         output format string configurable.
27582
27583 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27584
27585         Optimize exclude: use hash tables for non-wildcard patterns.
27586
27587         * lib/exclude.c: Include hash.h and mbuiter.h
27588         (struct exclude_pattern, exclude_segment): New data types.
27589         (struct exclude): Rewrite.
27590         (fnmatch_pattern_has_wildcards): New function.
27591         (new_exclude_segment, free_exclude_segment): New functions.
27592         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27593         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27594         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27595         * modules/exclude: Depend on hash and mbuiter.
27596
27597         * modules/exclude-tests: New file.
27598         * tests/test-exclude.c: New file.
27599         * tests/test-exclude1.sh: New file.
27600         * tests/test-exclude2.sh: New file.
27601         * tests/test-exclude3.sh: New file.
27602         * tests/test-exclude4.sh: New file.
27603         * tests/test-exclude5.sh: New file.
27604         * tests/test-exclude6.sh: New file.
27605         * tests/test-exclude7.sh: New file.
27606
27607 2009-08-12  Bruno Haible  <bruno@clisp.org>
27608
27609         Ensure that getopt() gets declared by <unistd.h>.
27610         * lib/unistd.in.h: Conditionally include getopt.h.
27611         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27612         Set GNULIB_UNISTD_H_GETOPT.
27613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27614         GNULIB_UNISTD_H_GETOPT.
27615         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27616
27617 2009-08-12  Bruno Haible  <bruno@clisp.org>
27618
27619         Clarify logic.
27620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27621         gl_replace_getopt instead of GETOPT_H.
27622
27623 2009-08-12  Bruno Haible  <bruno@clisp.org>
27624
27625         * m4/getopt.m4: Add comments.
27626
27627 2009-08-12  Bruno Haible  <bruno@clisp.org>
27628
27629         Disable multithread support by default on Cygwin 1.5.x.
27630         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27631         set gl_use_threads=no if not specified otherwise.
27632
27633 2009-08-11  Bruno Haible  <bruno@clisp.org>
27634
27635         Avoid compilation error on NetBSD 5.0.
27636         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27637         * tests/test-stdio.c: Likewise.
27638         * tests/test-stdlib.c: Likewise.
27639         * tests/test-string.c: Likewise.
27640         * tests/test-unistd.c: Likewise.
27641         Reported by Greg Troxel <gdt@ir.bbn.com>
27642         at <https://savannah.gnu.org/support/?106973>.
27643
27644 2009-08-11  Bruno Haible  <bruno@clisp.org>
27645
27646         * modules/dup2-tests (Depends-on): Remove close.
27647
27648         Undo 2009-07-19 commit.
27649         * modules/acl-tests (Depends-on): Remove close.
27650         * modules/binary-io-tests (Depends-on): Likewise.
27651         * modules/closein-tests (Depends-on): Likewise.
27652         * modules/flock-tests (Depends-on): Likewise.
27653         * modules/fsync-tests (Depends-on): Likewise.
27654         * modules/lseek-tests (Depends-on): Likewise.
27655         * modules/pipe-tests (Depends-on): Likewise.
27656         * modules/posix_spawn-tests (Depends-on): Likewise.
27657         * modules/posix_spawnp-tests (Depends-on): Likewise.
27658         * modules/stat-time-tests (Depends-on): Likewise.
27659         * modules/yesno-tests (Depends-on): Likewise.
27660
27661 2009-08-10  Bruno Haible  <bruno@clisp.org>
27662
27663         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27664
27665 2009-08-10  Bruno Haible  <bruno@clisp.org>
27666
27667         Fix a gcc warning.
27668         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27669
27670 2009-08-10  Bruno Haible  <bruno@clisp.org>
27671
27672         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27673         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27674         not only the first time.
27675         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27676         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27677         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27678         is 1, not only the the first time.
27679
27680 2009-08-10  Bruno Haible  <bruno@clisp.org>
27681
27682         Make it possible to use module 'gethostname' without module 'close'.
27683         * lib/unistd.in.h (close): Evoke a link error only if
27684         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27686         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27687         * modules/unistd (Makefile.am): Substitute
27688         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27689         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27690         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27691         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27692         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27693         * modules/sys_ioctl (Makefile.am): Substitute
27694         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27695         * modules/socket (configure.ac): On native Windows, set
27696         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27697         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27698         Reported by Sam Steingold <sds@gnu.org>.
27699
27700 2009-08-10  Bruno Haible  <bruno@clisp.org>
27701
27702         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27703         * modules/ioctl (configure.ac): Likewise.
27704
27705 2009-08-10  Bruno Haible  <bruno@clisp.org>
27706
27707         Avoid collision between gnulib wrapper and libintl wrapper.
27708         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27709         already defined in intl/printf.c.
27710         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27711         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27712
27713 2009-08-09  Bruno Haible  <bruno@clisp.org>
27714
27715         Make <sys/select.h> really self-contained, also on Solaris 10.
27716         * lib/sys_select.in.h: Include <string.h>.
27717         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27718         Solaris 10 problem.
27719         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27720         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27721         Reported by Jim Meyering.
27722
27723 2009-08-09  Bruno Haible  <bruno@clisp.org>
27724
27725         Avoid warnings from 'aclocal' that are due to a use of macro name
27726         AM_XGETTEXT_OPTION that is not defined in automake.
27727         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27728         automake.
27729         * modules/error (configure.ac): Likewise.
27730         * modules/propername (configure.ac): Likewise.
27731         * modules/vasprintf (configure.ac): Likewise.
27732         * modules/verror (configure.ac): Likewise.
27733         * modules/xprintf (configure.ac): Likewise.
27734         * modules/xvasprintf (configure.ac): Likewise.
27735
27736 2009-08-08  Bruno Haible  <bruno@clisp.org>
27737
27738         Avoid compilation error in C++ mode.
27739         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27740         Reported by Sam Steingold <sds@gnu.org>.
27741
27742 2009-08-08  Bruno Haible  <bruno@clisp.org>
27743
27744         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27745         for the various Unix platforms.
27746         * doc/posix-headers/limits.texi: Update platforms list regarding
27747         HOST_NAME_MAX.
27748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27749
27750 2009-08-07  Jim Meyering  <meyering@redhat.com>
27751
27752         selinux-at: fix typo in a comment
27753         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27754         Spotted by Paolo Bonzini.
27755
27756         selinux-at: remove redundant m4 code, add documentation
27757         * modules/selinux-at (configure.ac): Remove redundant code.
27758         LIB_SELINUX is already set via the dependent module, selinux-h.
27759         (Include): Add quotes around selinux-at.h.
27760         * lib/selinux-at.h: Add documentation.
27761         Reported by Bruno Haible in
27762         http://marc.info/?l=gnulib-bug&m=124958988300749
27763
27764 2009-08-07  Bruno Haible  <bruno@clisp.org>
27765
27766         Avoid link error on MacOS X 10.3 and 10.4.
27767         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27768         on non-ELF systems.
27769         * lib/argp-pv.c (argp_program_version): Likewise.
27770         Reported by Simon Josefsson.
27771
27772 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27773
27774         * tests/test-version-etc.sh: Use $EXEEXT.
27775
27776 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27777
27778         update-copyright: update documentation to point to maint.mk
27779         * build-aux/update-copyright: Here.
27780
27781 2009-08-06  Jim Meyering  <meyering@redhat.com>
27782
27783         maint.mk: support update-copyright-local
27784         * top/maint.mk (update-copyright-local): Define place-holder.
27785         (update-copyright): Depend on $(update-copyright-local).
27786
27787 2009-08-06  Jim Meyering  <meyering@redhat.com>
27788
27789         selinux-at: new module
27790         Initially written for coreutils, this module will soon be
27791         used by findutils, too.
27792         * MODULES.html.sh [Misc]: Add selinux-at.
27793         * lib/selinux-at.h: New file, from coreutils.
27794         * lib/selinux-at.c: Likewise.
27795         * modules/selinux-at: Likewise.
27796         (License): Change from LGPL to GPL, since it depends
27797         on the GPL'd openat module.
27798
27799         doc: update README
27800         * README: Remove references to cogito.
27801         Remove cvs-repo-updating instructions from 2007.
27802         Don't imply that CVS is better if you have limited disk space.
27803
27804 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27805
27806         update-copyright: support C-style comments
27807         * build-aux/update-copyright: Implement and document.
27808         * tests/test-update-copyright.sh: Test.
27809
27810 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27811
27812         update-copyright: support omitted "(C)"
27813         * build-aux/update-copyright: Implement and document.  Also,
27814         allow variable whitespace before "(C)".
27815         * tests/test-update-copyright.sh: Test.
27816
27817 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27818
27819         update-copyright: don't trip on non-FSF copyright statements
27820         * build-aux/update-copyright: Fix so that the first correctly
27821         formatted FSF copyright statement is recognized no matter what
27822         appears before it.  Update documentation.
27823         * tests/test-update-copyright.sh: Test that.
27824
27825 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27826
27827         update-copyright: clean up code a little
27828         * build-aux/update-copyright: Append "_re" to the name of any
27829         variable holding a regular expression.
27830         Replace "old" and "new" with "stmt" in variable names.
27831         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27832         handled correctly.
27833         Format code more consistently.
27834
27835 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27836
27837         update-copyright-tests: improve portability
27838         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27839         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27840
27841 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27842
27843         update-copyright: support @copyright{} and &copy;
27844         * build-aux/update-copyright: Implement and document.
27845         * tests/test-update-copyright.sh: Test.
27846
27847 2009-08-04  Jim Meyering  <meyering@redhat.com>
27848
27849         update-copyright-tests: correctly test EOL=\r\n handling
27850         * tests/test-update-copyright.sh: Put \r at the end of some lines
27851         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27852
27853         maint.mk: make update-copyright exclusion list more configurable
27854         * top/maint.mk (update-copyright): Default to excluding COPYING,
27855         but allow an override, in case someone does want to update that file.
27856
27857         maint.mk: don't update copyright date in COPYING
27858         * top/maint.mk (update-copyright): Exclude COPYING.
27859
27860         maint.mk: add a copyright-updating rule
27861         * top/maint.mk (update-copyright): New rule.
27862         Derived from coreutils/Makefile.am.
27863
27864         update-copyright: rename some variables
27865         * build-aux/update-copyright: Rename a few variables for clarity.
27866         Tweak syntax.  List Joel E. Denny as coauthor.
27867
27868 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27869
27870         update-copyright: fix bug for 2-digit last year and add tests
27871         * build-aux/update-copyright: Fix bug.
27872         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27873         specified.
27874         * modules/update-copyright-tests: New
27875         * tests/test-update-copyright.sh: New.
27876
27877 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27878
27879         update-copyright: handle leading tabs in line prefix
27880         * build-aux/update-copyright: Count leading tabs as 8 spaces
27881         when computing margin.  This helps with the formatting of
27882         ChangeLogs, for example.
27883         Fix documentation a little.
27884
27885 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27886
27887         update-copyright: support EOL=\r\n
27888         * build-aux/update-copyright: Implement that.
27889
27890 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27891
27892         update-copyright: automatically format copyright statements
27893         * build-aux/update-copyright: Implement that.
27894         Also, be a little more predictable and safer by always failing
27895         when the full copyright format is not perfectly recognized as an
27896         unbroken whole.  Discussed at
27897         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27898         Rewrite documentation.
27899
27900 2009-08-03  Bruno Haible  <bruno@clisp.org>
27901
27902         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27903
27904 2009-08-02  Bruno Haible  <bruno@clisp.org>
27905
27906         Tests for module 'uname'.
27907         * modules/uname-tests: New file.
27908         * tests/test-uname.c: New file.
27909
27910         New module 'uname'.
27911         * lib/uname.c: New file.
27912         * m4/uname.m4: New file.
27913         * modules/uname: New file.
27914         * doc/posix-functions/uname.texi: Mention the new module.
27915
27916 2009-08-02  Bruno Haible  <bruno@clisp.org>
27917
27918         Tests for module 'sys_utsname'.
27919         * modules/sys_utsname-tests: New file.
27920         * tests/test-sys_utsname.c: New file.
27921
27922         New module 'sys_utsname'.
27923         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27924         * m4/sys_utsname_h.m4: New file.
27925         * modules/sys_utsname: New file.
27926         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27927
27928 2009-08-02  Bruno Haible  <bruno@clisp.org>
27929
27930         Implicitly initialize the sockets library.
27931         * lib/gethostname.c: Include sockets.h.
27932         (rpl_gethostname): Invoke gl_sockets_startup.
27933         * lib/socket.c: Include sockets.h.
27934         (rpl_socket): Invoke gl_sockets_startup.
27935         * modules/gethostname (Depends-on): Add sockets.
27936         * modules/socket (Depends-on): Likewise.
27937         * tests/test-poll.c: Don't include sockets.h.
27938         (main): Don't invoke gl_sockets_startup.
27939         * tests/test-select.c: Don't include sockets.h.
27940         (main): Don't invoke gl_sockets_startup.
27941
27942 2009-08-02  Bruno Haible  <bruno@clisp.org>
27943
27944         Allow multiple calls to gl_sockets_startup.
27945         * lib/sockets.c (initialized_sockets_version): New variable.
27946         (gl_sockets_startup): Do nothing if already called for this or a higher
27947         version.
27948         (gl_sockets_cleanup): Reset initialized_sockets_version.
27949
27950 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27951
27952         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27953         different project/version.
27954
27955 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27956             Bruno Haible  <bruno@clisp.org>
27957
27958         Tests for module 'pipe-filter-gi'.
27959         * modules/pipe-filter-gi-tests: New file.
27960         * tests/test-pipe-filter-gi1.sh: New file.
27961         * tests/test-pipe-filter-gi1.c: New file.
27962         * tests/test-pipe-filter-gi2.sh: New file.
27963         * tests/test-pipe-filter-gi2-main.c: New file.
27964         * tests/test-pipe-filter-gi2-child.c: New file.
27965
27966         New module 'pipe-filter-gi'.
27967         * lib/pipe-filter-gi.c: New file.
27968         * modules/pipe-filter-gi: New file.
27969
27970 2009-08-02  Bruno Haible  <bruno@clisp.org>
27971             Paolo Bonzini  <bonzini@gnu.org>
27972
27973         Tests for module 'pipe-filter-ii'.
27974         * modules/pipe-filter-ii-tests: New file.
27975         * tests/test-pipe-filter-ii1.sh: New file.
27976         * tests/test-pipe-filter-ii1.c: New file.
27977         * tests/test-pipe-filter-ii2.sh: New file.
27978         * tests/test-pipe-filter-ii2-main.c: New file.
27979         * tests/test-pipe-filter-ii2-child.c: New file.
27980
27981         New module 'pipe-filter-ii'.
27982         * lib/pipe-filter.h: New file.
27983         * lib/pipe-filter-ii.c: New file.
27984         * lib/pipe-filter-aux.h: New file.
27985         * modules/pipe-filter-ii: New file.
27986
27987 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27988
27989         * lib/gc-libgcrypt.c: Change copyright to FSF.
27990         * lib/gc-gnulib.c: Likewise.
27991
27992 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27993
27994         * lib/gethostname.c: Include limits.h.
27995
27996 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27997             Bruno Haible  <bruno@clisp.org>
27998
27999         Ensure HOST_NAME_MAX as part of the gethostname module.
28000         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28001         define also HOST_NAME_MAX.
28002         * tests/test-gethostname.c: Include <limits.h>.
28003         (main): Check also HOST_NAME_MAX.
28004         * doc/posix-headers/limits.texi: Document the mingw problem.
28005
28006 2009-08-02  Bruno Haible  <bruno@clisp.org>
28007
28008         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28009         Add comments.
28010
28011 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28012
28013         * lib/gethostname.c: Add Windows wrapper.
28014         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28015         * modules/gethostname: Depend on sys_socket & errno, for also
28016         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28017         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28018
28019 2009-07-31  Jim Meyering  <meyering@redhat.com>
28020
28021         getloadavg: fix symbol name in comment
28022         * lib/getloadavg.c: Correct a typo I introduced when adding
28023         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28024         Matt Kraai spotted the problem.
28025
28026 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28027
28028         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28029         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28030         code also if ! defined N_NAME_POINTER.
28031         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28032         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28033         but the n_name member is a 12-byte array.
28034
28035 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28036
28037         update-copyright: generalize comment handling
28038         * build-aux/update-copyright: Handle copyright statements
28039         within more comment styles.
28040         Document usage.
28041         Report any file with an external copyright holder or parse failure.
28042
28043 2009-07-29  Jim Meyering  <meyering@redhat.com>
28044
28045         mktime: correct setting of REPLACE_MKTIME
28046         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28047
28048         update-copyright: new module
28049         * modules/update-copyright: New file.
28050         * build-aux/update-copyright: New file.
28051         * MODULES.html.sh (maint+release support): Add update-copyright.
28052
28053 2009-07-27  Bruno Haible  <bruno@clisp.org>
28054
28055         Fix compilation error when <ctime> is used and mktime is replaced.
28056         * lib/time.in.h (mktime): New declaration.
28057         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28058         REPLACE_MKTIME instead of defining mktime in config.h.
28059         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28060         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28061         Reported by Ross McFarland <rwmcfa1@neces.com>.
28062
28063 2009-07-27  Bruno Haible  <bruno@clisp.org>
28064
28065         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28066         Reported by Matt Kraai <mkraai@beckman.com>.
28067
28068 2009-07-25  Jim Meyering  <meyering@redhat.com>
28069
28070         maint.mk: avoid warnings about missing files
28071         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28072         diagnostic when .prev-version does not exist.
28073         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28074         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28075         nonexistent cfg.mk.
28076         Suggestions from Simon Josefsson.
28077
28078 2009-07-25  Bruno Haible  <bruno@clisp.org>
28079
28080         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28081         defined as macros. Needed on QNX 6.4.1.
28082         Reported by Matt Kraai <mkraai@beckman.com>.
28083
28084 2009-07-23  Jim Meyering  <meyering@redhat.com>
28085
28086         maint.mk: invoke "make dist" with a working value of XZ_OPT
28087         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28088
28089 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28090
28091         Make fseeko.c compile on QNX.
28092         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28093
28094 2009-07-22  Peter Simons  <simons@cryp.to>
28095
28096         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28097         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28098         * lib/md4.h: Likewise.
28099         * lib/md5.h: Likewise.
28100         * lib/sha1.h: Likewise.
28101         * lib/sha256.h: Likewise.
28102         * lib/sha512.h: Likewise.
28103
28104         tests-sha1: don't assign literal string to 'char *' variable
28105         * tests/test-sha1.c (main): Declare locals with "const" to match
28106         attributes of the right hand side.
28107
28108 2009-07-21  Eric Blake  <ebb9@byu.net>
28109
28110         dup2: fix more mingw problems
28111         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28112         fd to itself.
28113         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28114         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28115         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28116         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28117         care of mingw bugs.
28118
28119 2009-07-21  Jim Meyering  <meyering@redhat.com>
28120
28121         vc-list-files: avoid failure when /bin/sh is dash
28122         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28123         On some Debian based systems, /bin/sh is a symlink to dash, and running
28124         this command would omit the "/" following each 'tests' prefix:
28125           dash -x build-aux/vc-list-files -C . tests
28126         That is because bash and dash work differently:
28127           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28128           bash ok
28129           dash odd
28130
28131 2009-07-21  Eric Blake  <ebb9@byu.net>
28132
28133         dup2-tests: test previous patch
28134         * modules/dup2-tests: New file.
28135         * tests/test-dup2.c: Likewise.
28136         * tests/test-open.c (main): Avoid unspecified behavior.
28137         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28138         test.
28139
28140         dup2: work around mingw and cygwin 1.5 bug
28141         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28143         * modules/unistd (Makefile.am): Substitute it.
28144         * lib/unistd.in.h (dup2): Declare the replacement.
28145         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28146         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28147         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28148         * modules/execute (Depends-on): Add dup2.
28149         * modules/fseterr (Depends-on): Likewise.
28150         * modules/pipe (Depends-on): Likewise.
28151         * modules/posix_spawn-internal (Depends-on): Likewise.
28152
28153 2009-07-21  Bruno Haible  <bruno@clisp.org>
28154
28155         * modules/.gitattributes: New file.
28156
28157 2009-07-20  Bruno Haible  <bruno@clisp.org>
28158
28159         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28160         (main): Use it.
28161
28162 2009-07-20  Eric Blake  <ebb9@byu.net>
28163
28164         test-pipe: make a bit more robust.
28165         * tests/test-pipe.c (myerr): Allow error messages regardless of
28166         what we do to stderr.
28167         (test_pipe): Rearrange to avoid deadlock.
28168         (child_main): Try a larger read, to ensure we avoided deadlock.
28169         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28170         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28171         if misused.
28172
28173 2009-07-19  Jim Meyering  <meyering@redhat.com>
28174
28175         fts: avoid false-positive cycle-detection
28176         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28177         for each new command line argument.
28178
28179 2009-07-19  Bruno Haible  <bruno@clisp.org>
28180
28181         Fix build error on mingw with the modules sys_select and unistd.
28182         * modules/acl-tests (Depends-on): Add close.
28183         * modules/binary-io-tests (Depends-on): Likewise.
28184         * modules/closein-tests (Depends-on): Likewise.
28185         * modules/flock-tests (Depends-on): Likewise.
28186         * modules/fsync-tests (Depends-on): Likewise.
28187         * modules/lseek-tests (Depends-on): Likewise.
28188         * modules/pipe-tests (Depends-on): Likewise.
28189         * modules/posix_spawn-tests (Depends-on): Likewise.
28190         * modules/posix_spawnp-tests (Depends-on): Likewise.
28191         * modules/stat-time-tests (Depends-on): Likewise.
28192         * modules/yesno-tests (Depends-on): Likewise.
28193
28194 2009-07-19  Bruno Haible  <bruno@clisp.org>
28195
28196         Unify conditionals.
28197         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28198         macros, not at the compiler macros.
28199         * lib/pipe.c: Likewise.
28200         * lib/execute.c: Likewise.
28201         * lib/spawni.c: Likewise.
28202
28203 2009-07-19  Bruno Haible  <bruno@clisp.org>
28204
28205         Fix handling of closed stdin/stdout/stderr on mingw.
28206         * lib/w32spawn.h: Include unistd.h.
28207         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28208         file descriptor with O_NOINHERIT flag.
28209         (fd_safer_noinherit): New function, based on fd-safer.c.
28210         (dup_safer_noinherit): New function, based on dup-safer.c.
28211         (undup_safer_noinherit): New function.
28212         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28213         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28214         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28215         instead of fd_safer.
28216         * tests/test-pipe.c: Include <windows.h>.
28217         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28218         result.
28219
28220         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28221         from main.
28222         (test_pipe): Pass an extra argument for disambiguation.
28223         (main): Invoke parent_main or child_main.
28224
28225         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28226         consistently.
28227
28228 2009-07-18  Eric Blake  <ebb9@byu.net>
28229
28230         test-pipe: fix mingw build
28231         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28232
28233 2009-07-18  Bruno Haible  <bruno@clisp.org>
28234
28235         * modules/pipe-tests (Makefile.am): Fix typo.
28236
28237 2009-07-18  Eric Blake  <ebb9@byu.net>
28238
28239         error: fix mingw build
28240         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28241         Reported by Bruno Haible.
28242
28243         error: avoid undefined use of stdout
28244         * lib/error.c (error, error_at_line): Check that fd 1 is open
28245         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28246         is handling faults and the close_stdout module wants to report the
28247         detection of closed stdout as an error.
28248
28249 2009-07-17  Eric Blake  <ebb9@byu.net>
28250
28251         pipe: be robust in face of closed fds
28252         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28253         should cause child to misbehave.
28254         * modules/pipe-tests: New module.
28255         * tests/test-pipe.c: New file.
28256         * tests/test-pipe.sh: New file.
28257         Reported by Akim Demaille.
28258
28259 2009-07-14  Bruno Haible  <bruno@clisp.org>
28260
28261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28262         Reported by anonymous kc.
28263
28264 2009-07-07  Jim Meyering  <meyering@redhat.com>
28265
28266         maint.mk: don't look for translatable strings in *.m4 or *.mk
28267         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28268         when searching for translatable strings.
28269
28270 2009-07-05  Jim Meyering  <meyering@redhat.com>
28271
28272         remove superfluous parentheses in STREQ definition
28273         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28274         * lib/getugroups.c (STREQ): Likewise.
28275         * lib/fnmatch.c (STREQ): Likewise.
28276         Spotted by Bruno Haible.
28277
28278 2009-07-04  Jim Meyering  <meyering@redhat.com>
28279
28280         argv-iter: new module
28281         * MODULES.html.sh: Add argv-iter.
28282         * lib/argv-iter.c, lib/argv-iter.h: New files.
28283         * modules/argv-iter: New file.
28284         * modules/argv-iter-tests: New file.
28285         * tests/test-argv-iter.c: Test it.
28286
28287 2009-07-04  Bruno Haible  <bruno@clisp.org>
28288
28289         Fix assertion.
28290         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28291         contains more exact copies of a given entry than file2, leave the extra
28292         copies unpaired rather than aborting.
28293         Reported by Eric Blake.
28294
28295 2009-07-02  Bruno Haible  <bruno@clisp.org>
28296
28297         Speedup git-merge-changelog for git cherry-pick.
28298         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28299         (entries_mapping_get): New function, extracted from compute_mapping.
28300         (entries_mapping_reverse_get): New function.
28301         (compute_mapping): Add a 'full' argument. Return the result in a
28302         'struct entries_mapping'.
28303         (main): Update. Access the mappings through entries_mapping_get.
28304         Reported by Eric Blake.
28305
28306 2009-07-02  Bruno Haible  <bruno@clisp.org>
28307
28308         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28309         best_i.
28310
28311 2009-07-02  Bruno Haible  <bruno@clisp.org>
28312
28313         Speed up approximate search for matching ChangeLog entries.
28314         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28315         argument. Call fstrcmp_bounded instead of fstrcmp.
28316         (compute_mapping, try_split_merged_entry, main): Update callers.
28317
28318 2009-07-02  Bruno Haible  <bruno@clisp.org>
28319
28320         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28321
28322 2009-06-30  Bruno Haible  <bruno@clisp.org>
28323
28324         Reduce the number of uc_is_cased calls.
28325         * lib/unicase.h (casing_suffix_context_t): Add
28326         'first_char_except_ignorable' field.
28327         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28328         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28329         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28330         Update initializer.
28331         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28332         case-ignorable characters.
28333         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28334         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28335         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28336         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28337         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28338
28339 2009-06-30  Bruno Haible  <bruno@clisp.org>
28340
28341         Tests for module 'unicase/ignorable'.
28342         * modules/unicase/ignorable-tests: New file.
28343         * tests/unicase/test-ignorable.c: New file, generated by
28344         gen-uni-tables.
28345
28346         Tests for module 'unicase/cased'.
28347         * modules/unicase/cased-tests: New file.
28348         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28349         * tests/unicase/test-predicate-part1.h: New file, derived from
28350         tests/unictype/test-predicate-part1.h.
28351         * tests/unicase/test-predicate-part2.h: New file, same as
28352         tests/unictype/test-predicate-part2.h.
28353
28354         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28355         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28356         (output_casing_properties): New function.
28357         (main): Call it.
28358         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28359         * lib/unicase/cased.c: Include unictype/bitmap.h.
28360         (uc_is_cased): Define through a bitmap lookup.
28361         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28362         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28363         (uc_is_case_ignorable): Define through a bitmap lookup.
28364         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28365         lib/unictype/bitmap.h.
28366         (Depends-on): Add inline. Clean up.
28367         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28368         lib/unictype/bitmap.h.
28369         (Depends-on): Add inline. Clean up.
28370         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28371         recognition.
28372         * tests/unicase/test-u16-tolower.c (main): Likewise.
28373         * tests/unicase/test-u32-tolower.c (main): Likewise.
28374
28375 2009-06-30  Bruno Haible  <bruno@clisp.org>
28376
28377         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28378         * lib/unicase/u16-casemap.c: Likewise.
28379         * lib/unicase/u32-casemap.c: Likewise.
28380
28381 2009-06-29  Bruno Haible  <bruno@clisp.org>
28382
28383         Define u32_casefold as a wrapper around u32_ct_casefold.
28384         * lib/unicase/u32-casefold.c: Update.
28385         * modules/unicase/u32-casefold (Depends-on): Add
28386         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28387         unicase/empty-suffix-context. Clean up.
28388
28389         Define u16_casefold as a wrapper around u16_ct_casefold.
28390         * lib/unicase/u16-casefold.c: Update.
28391         * modules/unicase/u16-casefold (Depends-on): Add
28392         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28393         unicase/empty-suffix-context. Clean up.
28394
28395         Define u8_casefold as a wrapper around u8_ct_casefold.
28396         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28397         * lib/unicase/u8-casefold.c: Update.
28398         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28399         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28400
28401         Define u32_totitle as a wrapper around u32_ct_totitle.
28402         * lib/unicase/u32-totitle.c: Update.
28403         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28404         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28405
28406         Define u16_totitle as a wrapper around u16_ct_totitle.
28407         * lib/unicase/u16-totitle.c: Update.
28408         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28409         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28410
28411         Define u8_totitle as a wrapper around u8_ct_totitle.
28412         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28413         functions.
28414         (FUNC): Delegate to U_CT_TOTITLE.
28415         * lib/unicase/u8-totitle.c: Update.
28416         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28417         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28418
28419         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28420         invocation.
28421         * modules/unicase/u32-tolower (Depends-on): Add
28422         unicase/empty-prefix-context, unicase/empty-suffix-context.
28423
28424         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28425         invocation.
28426         * modules/unicase/u16-tolower (Depends-on): Add
28427         unicase/empty-prefix-context, unicase/empty-suffix-context.
28428
28429         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28430         * modules/unicase/u8-tolower (Depends-on): Add
28431         unicase/empty-prefix-context, unicase/empty-suffix-context.
28432
28433         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28434         invocation.
28435         * modules/unicase/u32-toupper (Depends-on): Add
28436         unicase/empty-prefix-context, unicase/empty-suffix-context.
28437
28438         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28439         invocation.
28440         * modules/unicase/u16-toupper (Depends-on): Add
28441         unicase/empty-prefix-context, unicase/empty-suffix-context.
28442
28443         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28444         * modules/unicase/u8-toupper (Depends-on): Add
28445         unicase/empty-prefix-context, unicase/empty-suffix-context.
28446
28447         New module 'unicase/u32-ct-casefold'.
28448         * lib/unicase/u32-ct-casefold.c: New file.
28449         * modules/unicase/u32-ct-casefold: New file.
28450
28451         New module 'unicase/u16-ct-casefold'.
28452         * lib/unicase/u16-ct-casefold.c: New file.
28453         * modules/unicase/u16-ct-casefold: New file.
28454
28455         New module 'unicase/u8-ct-casefold'.
28456         * lib/unicase/u8-ct-casefold.c: New file.
28457         * lib/unicase/u-ct-casefold.h: New file, derived from
28458         lib/unicase/u-casefold.h.
28459         * modules/unicase/u8-ct-casefold: New file.
28460
28461         New module 'unicase/u32-ct-totitle'.
28462         * lib/unicase/u32-ct-totitle.c: New file.
28463         * modules/unicase/u32-ct-totitle: New file.
28464
28465         New module 'unicase/u16-ct-totitle'.
28466         * lib/unicase/u16-ct-totitle.c: New file.
28467         * modules/unicase/u16-ct-totitle: New file.
28468
28469         New module 'unicase/u8-ct-totitle'.
28470         * lib/unicase/u8-ct-totitle.c: New file.
28471         * lib/unicase/u-ct-totitle.h: New file, derived from
28472         lib/unicase/u-totitle.h.
28473         * modules/unicase/u8-ct-totitle: New file.
28474
28475         New module 'unicase/u32-ct-tolower'.
28476         * lib/unicase/u32-ct-tolower.c: New file.
28477         * modules/unicase/u32-ct-tolower: New file.
28478
28479         New module 'unicase/u16-ct-tolower'.
28480         * lib/unicase/u16-ct-tolower.c: New file.
28481         * modules/unicase/u16-ct-tolower: New file.
28482
28483         New module 'unicase/u8-ct-tolower'.
28484         * lib/unicase/u8-ct-tolower.c: New file.
28485         * modules/unicase/u8-ct-tolower: New file.
28486
28487         New module 'unicase/u32-ct-toupper'.
28488         * lib/unicase/u32-ct-toupper.c: New file.
28489         * modules/unicase/u32-ct-toupper: New file.
28490
28491         New module 'unicase/u16-ct-toupper'.
28492         * lib/unicase/u16-ct-toupper.c: New file.
28493         * modules/unicase/u16-ct-toupper: New file.
28494
28495         New module 'unicase/u8-ct-toupper'.
28496         * lib/unicase/u8-ct-toupper.c: New file.
28497         * modules/unicase/u8-ct-toupper: New file.
28498
28499         Add context arguments to u*_casemap functions.
28500         * lib/unicase/unicasemap.h: Include unicase.h.
28501         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28502         suffix_context arguments.
28503         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28504         functions.
28505         (FUNC): Add prefix_context and suffix_context arguments. Use
28506         uc_is_cased and uc_is_case_ignorable.
28507         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28508         * lib/unicase/u16-casemap.c: Likewise.
28509         * lib/unicase/u32-casemap.c: Likewise.
28510         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28511         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28512         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28513         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28514         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28515         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28516
28517         New module 'unicase/u32-suffix-context'.
28518         * lib/unicase/u32-suffix-context.c: New file.
28519         * modules/unicase/u32-suffix-context: New file.
28520
28521         New module 'unicase/u16-suffix-context'.
28522         * lib/unicase/u16-suffix-context.c: New file.
28523         * modules/unicase/u16-suffix-context: New file.
28524
28525         New module 'unicase/u8-suffix-context'.
28526         * lib/unicase/u8-suffix-context.c: New file.
28527         * lib/unicase/u-suffix-context.h: New file.
28528         * modules/unicase/u8-suffix-context: New file.
28529
28530         New module 'unicase/empty-suffix-context'.
28531         * lib/unicase/empty-suffix-context.c: New file.
28532         * modules/unicase/empty-suffix-context: New file.
28533
28534         New module 'unicase/u32-prefix-context'.
28535         * lib/unicase/u32-prefix-context.c: New file.
28536         * modules/unicase/u32-prefix-context: New file.
28537
28538         New module 'unicase/u16-prefix-context'.
28539         * lib/unicase/u16-prefix-context.c: New file.
28540         * modules/unicase/u16-prefix-context: New file.
28541
28542         New module 'unicase/u8-prefix-context'.
28543         * lib/unicase/u8-prefix-context.c: New file.
28544         * lib/unicase/u-prefix-context.h: New file.
28545         * lib/unicase/context.h: New file.
28546         * modules/unicase/u8-prefix-context: New file.
28547
28548         New module 'unicase/empty-prefix-context'.
28549         * lib/unicase/empty-prefix-context.c: New file.
28550         * modules/unicase/empty-prefix-context: New file.
28551
28552         New module 'unicase/ignorable'.
28553         * lib/unicase/ignorable.c: New file.
28554         * modules/unicase/ignorable: New file.
28555
28556         New module 'unicase/cased'.
28557         * lib/unicase/caseprop.h: New file.
28558         * lib/unicase/cased.c: New file.
28559         * modules/unicase/cased: New file.
28560
28561         New functions for case mapping of substrings.
28562         * lib/unicase.h (casing_prefix_context_t): New type.
28563         (unicase_empty_prefix_context): New variable.
28564         (u8_casing_prefix_context, u16_casing_prefix_context,
28565         u32_casing_prefix_context, u8_casing_prefixes_context,
28566         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28567         declarations.
28568         (casing_suffix_context_t): New type.
28569         (unicase_empty_suffix_context): New variable.
28570         (u8_casing_suffix_context, u16_casing_suffix_context,
28571         u32_casing_suffix_context, u8_casing_suffixes_context,
28572         u16_casing_suffixes_context, u32_casing_suffixes_context,
28573         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28574         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28575         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28576         declarations.
28577
28578 2009-06-28  Jim Meyering  <meyering@redhat.com>
28579
28580         boostrap: indent only with spaces
28581         * build-aux/bootstrap: Indent only with spaces, never TABs.
28582
28583         bootstrap: split long lines
28584         * build-aux/bootstrap: Keep line length < 80.
28585
28586         bootstrap: sync from coreutils
28587         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28588         just as autoreconf does.  Verify a list of prerequisite
28589         package-name,version-number pairs if defined in bootstrap.conf.
28590         Refer to README-prereq, if prerequisites are not satisfied.
28591
28592 2009-06-27  Eric Blake  <ebb9@byu.net>
28593
28594         tests: add test for bogus NULL definition
28595         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28596         * tests/test-stdlib.c: Likewise.
28597         * tests/test-string.c: Likewise.
28598         * tests/test-locale.c: Likewise.
28599         * tests/test-unistd.c: Likewise.
28600         * modules/stdio-tests (Depends-on): Add verify.
28601         * modules/stdlib-tests (Depends-on): Likewise.
28602         * modules/string-tests (Depends-on): Likewise.
28603         * modules/locale-tests (Depends-on): Likewise.
28604         * modules/unistd-tests (Depends-on): Likewise.
28605
28606 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28607
28608         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28609         self-explaining comment.
28610         * m4/selinux-selinux-h: Update serial.
28611         (gl_LIBSELINUX): New macro, adding a warning for missing development
28612         packages to code extracted from...
28613         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28614         Add warning for missing development packages here, too.
28615
28616 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28617
28618         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28619
28620 2009-06-25  Eric Blake  <ebb9@byu.net>
28621
28622         version-etc: fix regression
28623         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28624         gcc.
28625         (version_etc): Use it, to catch bugs with trailing NULL.
28626         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28627         (version_etc_va): Fix logic bug.
28628         * modules/version-etc-tests: Add test.
28629         * tests/test-version-etc.c: New file.
28630         * tests/test-version-etc.sh: Likewise.
28631
28632 2009-06-25  Sam Steingold  <sds@gnu.org>
28633
28634         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28635         mbtowc declaration.
28636
28637 2009-06-25  Eric Blake  <ebb9@byu.net>
28638
28639         fpurge: migrate into <stdio.h>
28640         * lib/fpurge.h: Delete...
28641         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28642         * lib/fpurge.c (fpurge): Change declaring header.
28643         * modules/fpurge (Files): Drop deleted file.
28644         (Depends-on): Add stdio.
28645         (configure.ac): Set witness.
28646         * modules/stdio (Makefile.am): Support fpurge macros.
28647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28648         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28649         * lib/fflush.c: Update client.
28650         * tests/test-fpurge.c: Likewise.
28651         * NEWS: Mention the change.
28652
28653 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28654
28655         * lib/argp-version-etc.c (program_authors): Add const
28656         qualifier.
28657         * lib/version-etc.c: Fix typos in the comments.
28658         * modules/argp-version-etc: Depends on version-etc.
28659
28660 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28661
28662         argp-version-etc: new module.
28663
28664         * lib/argp-version-etc.c: New file.
28665         * lib/argp-version-etc.h: New file.
28666         * modules/argp-version-etc: New file.
28667         * modules/argp-version-etc-tests: New file.
28668         * tests/test-argp-version-etc.c: New test.
28669         * tests/test-argp-version-etc-1.sh: New test.
28670
28671 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28672
28673         Provide additional interfaces and documentation for version-etc
28674         module.
28675
28676         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28677         interfaces.
28678         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28679         prototypes.
28680
28681 2009-06-24  Bruno Haible  <bruno@clisp.org>
28682
28683         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28684         HAVE_LIB${NAME} macro.
28685         Reported by Sam Steingold <sds@gnu.org>.
28686
28687 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28688
28689         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28690         needed.
28691
28692 2009-06-21  Bruno Haible  <bruno@clisp.org>
28693
28694         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28695         work.
28696         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28697         together with LIB${NAME}, LTLIB${NAME}.
28698         Reported by Sam Steingold <sds@gnu.org>.
28699
28700 2009-06-20  Jim Meyering  <meyering@redhat.com>
28701
28702         tests: make sc_require_test_exit_idiom more generic
28703         * top/maint.mk (Exit_witness_file): New overridable variable.
28704         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28705         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28706
28707 2009-06-19  Jim Meyering  <meyering@redhat.com>
28708
28709         hash: reverse order of src/dst parameters in an internal interface
28710         * lib/hash.c (transfer_entries): Reverse order of parameters to
28711         put DST before SRC.  Adjust callers.
28712
28713         tests: test-hash: avoid wholesale duplication
28714         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28715         Instead, use a loop and add a single conditional.
28716
28717         tests: test-hash: allow seed selection via a command line argument
28718         * tests/test-hash.c (get_seed): New function.
28719         (main): Use it.
28720
28721 2009-06-19  Eric Blake  <ebb9@byu.net>
28722
28723         hash: avoid memory leak on allocation failure
28724         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28725         failure.  Factor repeated algorithm...
28726         (transfer_entries): ...into new helper routine.
28727         (hash_delete): React to hash_rehash return value.
28728
28729         hash: reduce memory pressure in hash_rehash no-op case
28730         * lib/hash.c (next_prime): Avoid overflow.
28731         (hash_initialize): Factor bucket size computation...
28732         (compute_bucket_size): ...into new helper function.
28733         (hash_rehash): Use new function and open coding to reduce memory
28734         pressure, and avoid a memory leak in USE_OBSTACK code.
28735         Reported by Jim Meyering.
28736
28737 2009-06-18  Eric Blake  <ebb9@byu.net>
28738
28739         hash: make rotation more obvious
28740         * modules/hash (Depends-on): Add bitrotate and stdint.
28741         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28742         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28743         (SIZE_MAX): Rely on headers for definition.
28744         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28745         (raw_hasher): Use rotr_sz.
28746         Suggested by Jim Meyering.
28747
28748         hash: fix memory leak in last patch
28749         * lib/hash.c (hash_rehash): Avoid memory leak.
28750
28751         hash: avoid no-op rehashing
28752         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28753
28754         hash: provide default callback functions
28755         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28756         (hash_initialize): Use them as defaults.
28757         * tests/test-hash.c (main): Test this.
28758
28759         hash: minor optimization
28760         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28761         when possible.
28762         (hash_initialize): Document this promise.
28763         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28764         * tests/test-hash.c (hash_compare_strings): Test this.
28765
28766 2009-06-18  Bruno Haible  <bruno@clisp.org>
28767
28768         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28769         going to be replaced anyway.
28770
28771 2009-06-18  Bruno Haible  <bruno@clisp.org>
28772
28773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28774         in one place.
28775         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28776         be replaced anyway.
28777
28778 2009-06-18  Eric Blake  <ebb9@byu.net>
28779
28780         hash: check for resize before insertion
28781         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28782         threshold before insertion, so that a pathological hash_rehash
28783         that fills every bucket can still trigger another rehash.
28784
28785 2009-06-18  Jim Meyering  <meyering@redhat.com>
28786
28787         hash-tests: add a loop around the small tests
28788         * tests/test-hash.c (main): Repeat small tests with selected
28789         small initial table sizes.
28790
28791 2009-06-17  Eric Blake  <ebb9@byu.net>
28792
28793         hash: minor cleanups
28794         * lib/hash.h (hash_entry): Make opaque, by moving...
28795         * lib/hash.c (hash_entry): ...here.
28796         (hash_insert): Clarify restrictions on what can be inserted.
28797         (hash_get_next): Clarify when it is safe to remove an element
28798         during traversal.
28799         (check_tuning): Skip verification when tuning is known safe.
28800         (hash_initialize): Clarify restrictions on tuning.
28801
28802 2009-06-17  Jim Meyering  <jim@meyering.net>
28803         and Eric Blake  <ebb9@byu.net>
28804
28805         hash-tests: new module
28806         * modules/hash-tests: New file.
28807         * tests/test-hash.c: New file.
28808
28809 2009-06-17  Eric Blake  <ebb9@byu.net>
28810
28811         strstr-simple: document new module
28812         * MODULES.html.sh: Document new module.
28813
28814         strstr, strcasestr: replace on platforms with broken memchr
28815         * modules/strstr: Split into...
28816         * modules/strstr-simple: ...new module that does not care about
28817         performance, but does care about glibc bug.
28818         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28819         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28820         if platform memchr is broken, per Debian bug 521737.
28821         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28822         memchr.
28823         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28824         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28825         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28826         * modules/mountlist (Depends-on): Add strstr-simple.
28827         * modules/gen-uni-tables (Depends-on): Likewise.
28828         * modules/argz (Depends-on): Add strstr.
28829
28830 2009-06-17  Bruno Haible  <bruno@clisp.org>
28831
28832         * modules/posix_spawn-internal (Depends-on): Add errno.
28833
28834 2009-06-17  Bruno Haible  <bruno@clisp.org>
28835
28836         Define missing ESTALE on Interix 3.5.
28837         * lib/errno.in.h (ESTALE): Assign a value if missing.
28838         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28839         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28840         missing.
28841         * doc/posix-headers/errno.texi: Mention the Interix bug.
28842         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28843
28844 2009-06-15  Eric Blake  <ebb9@byu.net>
28845
28846         memchr, memchr2: add valgrind exception
28847         * lib/memchr.valgrind: New file.
28848         * lib/memchr2.valgrind: New file.
28849         * modules/memchr (Files): Distribute valgrind file.
28850         * modules/memchr2 (Files): Likewise.
28851
28852         docs: memchr is no longer obsolete
28853         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28854         * lib/string.in.h (memchr): Simplify logic.
28855
28856 2009-06-14  Jim Meyering  <meyering@redhat.com>
28857
28858         link-follow: fix the "checking..." message to not mention trailing slash
28859         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28860         never considered trailing slashes.
28861
28862 2009-06-14  Bruno Haible  <bruno@clisp.org>
28863
28864         * m4/memchr.m4: Mention also the bug on IA-64.
28865         * doc/posix-functions/memchr.texi: Likewise.
28866
28867 2009-06-12  Eric Blake  <ebb9@byu.net>
28868
28869         memchr: detect broken x86_64 and alpha implementations
28870         * modules/memchr-tests (Depends-on): Move mmap detection...
28871         * modules/memchr (Depends-on): ...here.
28872         (configure.ac): Set indicator.
28873         * lib/string.in.h (memchr): Declare replacement.
28874         * modules/string (Makefile.am): Trigger replacement.
28875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28876         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28877         bugs.
28878         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28879         * modules/getpagesize (License): Relax license.
28880
28881 2009-06-11  Bruno Haible  <bruno@clisp.org>
28882
28883         * lib/idpriv.h: Add more references.
28884
28885 2009-06-08  Bruno Haible  <bruno@clisp.org>
28886
28887         Tests for module 'idpriv-droptemp'.
28888         * modules/idpriv-droptemp-tests: New file.
28889         * tests/test-idpriv-droptemp.sh: New file.
28890         * tests/test-idpriv-droptemp.su.sh: New file.
28891         * tests/test-idpriv-droptemp.c: New file.
28892
28893         New module 'idpriv-droptemp'.
28894         * lib/idpriv-droptemp.c: New file.
28895         * modules/idpriv-droptemp: New file.
28896
28897 2009-06-08  Bruno Haible  <bruno@clisp.org>
28898
28899         Tests for module 'idpriv-drop'.
28900         * modules/idpriv-drop-tests: New file.
28901         * tests/test-idpriv-drop.sh: New file.
28902         * tests/test-idpriv-drop.su.sh: New file.
28903         * tests/test-idpriv-drop.c: New file.
28904
28905         New module 'idpriv-drop'.
28906         * lib/idpriv.h: New file.
28907         * lib-idpriv-drop.c: New file.
28908         * m4/idpriv.m4: New file.
28909         * modules/idpriv-drop: New file.
28910
28911 2009-06-08  Bruno Haible  <bruno@clisp.org>
28912
28913         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28914         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28915         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28916         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28917         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28918         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28919         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28920
28921 2009-06-08  Eric Blake  <ebb9@byu.net>
28922
28923         test-strstr: use memory fence, when possible
28924         * tests/test-strstr.c (main): Use memory fence, in order to be
28925         more likely to trigger Debian bug 521737.
28926         * modules/strstr-tests (Files): Pull in additional files.
28927
28928         memchr: no longer obsolete, for wider field testing
28929         * modules/memchr (Status, Notice): Delete, this module is no
28930         longer obsolete.
28931         * modules/vasnprintf (Depends-on): Add memchr.
28932
28933 2009-06-07  Jim Meyering  <meyering@redhat.com>
28934
28935         hash: declare some functions with the warn_unused_result attribute
28936         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28937
28938 2009-06-07  Bruno Haible  <bruno@clisp.org>
28939
28940         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28941         Reported by Eric Blake.
28942
28943 2009-06-06  Eric Blake  <ebb9@byu.net>
28944
28945         test-alignof: fix typo with long double
28946         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28947         compiler error.
28948
28949 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28950
28951         Escape non-texinfo { and }s.
28952         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28953         markup error.
28954
28955 2009-06-04  Jim Meyering  <meyering@redhat.com>
28956
28957         gitlog-to-changelog: don't infloop on an empty commit log
28958         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28959         Reported by Boris Petersen <transacid@centerim.org>.
28960
28961 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28962
28963         version-etc: extend for packagers
28964         Add three new configure options, intended for packagers:
28965           --with-packager="packager name"
28966           --with-packager-version="packager-specific version"
28967           --with-packager-bug-reports="packager bug reporting"
28968         An example with coreutils:
28969           $ ./configure \
28970             --with-packager=Gentoo \
28971             --with-packager-bug-report=http://bugs.gentoo.org/ \
28972             --with-packager-version="patchset 1.6"
28973           $ ./src/ls --version | head -n2
28974           ls (GNU coreutils) 7.1-dirty
28975           Packaged by Gentoo (patchset 1.6)
28976         Note that the bug reporting info via --help doesn't show up because
28977         coreutils uses its own custom emit_bug_reporting_address() implementation
28978         in src/system.h.  If it didn't, it'd look like:
28979           $ ./src/ls --help | tail -n4
28980           Report bugs to <bug-coreutils@gnu.org>.
28981           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28982           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28983           General help using GNU software: <http://www.gnu.org/gethelp/>.
28984         * lib/version-etc.c: Print new information, if provided.
28985         * m4/version-etc.m4: New file.
28986         * modules/version-etc (Files): Add m4/version-etc.m4.
28987         (configure.ac): Add gl_VERSION_ETC.
28988
28989 2009-05-31  Bruno Haible  <bruno@clisp.org>
28990
28991         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28992         and 'int64_t'.
28993         * modules/alignof-tests (Dependencies): Add stdint.
28994         Reported by Eric Blake.
28995
28996 2009-05-31  Bruno Haible  <bruno@clisp.org>
28997
28998         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28999         restriction due to compiler bugs.
29000         Reported by Eric Blake.
29001
29002 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29003             Bruno Haible  <bruno@clisp.org>
29004
29005         Fix test-alignof failure.
29006         * lib/alignof.h (alignof_slot): New macro.
29007         (alignof_type): New macro, with the same semantics as the previous
29008         'alignof'.
29009         (alignof): Alias to alignof_slot.
29010         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29011         check that the results are usable as constant expressions.
29012
29013 2009-05-31  Bruno Haible  <bruno@clisp.org>
29014
29015         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29016         * tests/test-memchr.c (main): Check that memchr does not read past the
29017         first occurrence of the byte.
29018         * tests/test-strstr.c (main): Update comment.
29019         Suggested by Eric Blake.
29020
29021 2009-05-30  Bruno Haible  <bruno@clisp.org>
29022
29023         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29024         detail how to use dumpbin.
29025         Reported by David Byron <dbyron@dbyron.com>.
29026
29027 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29028
29029         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29030
29031 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29032
29033         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29034
29035 2009-05-28  Bruno Haible  <bruno@clisp.org>
29036
29037         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29038         build-aux/ files.
29039
29040 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29041
29042         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29043
29044 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29045
29046         * gnulib-tool (sed_transform_main_lib_file)
29047         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29048         regexps.
29049
29050 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29051
29052         * tests/test-strstr.c: Add another self-test.
29053         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29054         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29055
29056 2009-05-23  Bruno Haible  <bruno@clisp.org>
29057
29058         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29059         change.
29060
29061 2009-05-21  Bruno Haible  <bruno@clisp.org>
29062
29063         Simplify use of mode_t varargs.
29064         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29065         uses 'mode_t' or 'int'.
29066         * lib/openat.c (openat): Likewise.
29067         * lib/open-safer.c (open_safer): Likewise.
29068         * m4/mode_t.m4: New file.
29069         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29070         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29071         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29072         * modules/open (Files): Add m4/mode_t.m4.
29073         * modules/openat (Files): Likewise.
29074         * modules/fcntl-safer (Files): Likewise.
29075         Suggested by Eric Blake.
29076
29077 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29078
29079         * doc/glibc-functions/fallocate.texi: New file.
29080         * doc/gnulib.texi: Include it.
29081
29082 2009-05-21  Eric Blake  <ebb9@byu.net>
29083             Bruno Haible  <bruno@clisp.org>
29084
29085         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29086         invocations.
29087         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29088
29089 2009-05-21  Eric Blake  <ebb9@byu.net>
29090             Bruno Haible  <bruno@clisp.org>
29091
29092         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29093         include_next. Fix of 2008-11-20 commit.
29094         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29095         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29096         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29097         NEXT_MATH_H.
29098         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29099         instead of NEXT_MATH_H.
29100
29101 2009-05-21  Bruno Haible  <bruno@clisp.org>
29102
29103         Avoid redefinition warnings for SIZE_MAX.
29104         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29105         Reported by Simon Josefsson.
29106
29107 2009-05-21  Bruno Haible  <bruno@clisp.org>
29108
29109         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29110         AC_CACHE_VAL.
29111
29112 2009-05-20  Bruno Haible  <bruno@clisp.org>
29113
29114         Make zeroptr.h work on mingw.
29115         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29116         mprotect.
29117         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29118         * modules/memchr2-tests (configure.ac): Likewise.
29119         * modules/memcmp-tests (configure.ac): Likewise.
29120         * modules/memmem-tests (configure.ac): Likewise.
29121         * modules/memrchr-tests (configure.ac): Likewise.
29122         Reported by Simon Josefsson.
29123
29124 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29125
29126         * tests/test-glob.c: Include string.h for strcmp prototype.
29127
29128 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29129
29130         * modules/getdelim (Depends-on): Add explicit stdint, although it
29131         was implicitly already pulled in via realloc-posix.
29132         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29133
29134 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29135
29136         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29137         G. Christensen" <tgc@jupiterrise.com>.
29138         * m4/sys_socket_h.m4: Check for sa_family_t.
29139         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29140         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29141         * tests/test-sys_socket.c: Check that sa_family_t works.
29142
29143 2009-05-18  Eric Blake  <ebb9@byu.net>
29144
29145         maint.mk: allow gnulib_dir in VPATH build
29146         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29147
29148 2009-05-15  Jim Meyering  <meyering@redhat.com>
29149
29150         maint.mk: Give gnulib_dir a default definition.
29151         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29152         Thus, most packages no longer need to specify this variable in cfg.mk
29153
29154 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29155
29156         rename.m4: fix typos that would make non-mingw cross-configure fail
29157         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29158
29159 2009-05-13  Eric Blake  <ebb9@byu.net>
29160
29161         mmap-anon: avoid out-of-order autoconf expansion
29162         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29163         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29164         * modules/memchr-tests (Depends-on): Add extensions.
29165         * modules/memchr2-tests (Depends-on): Add extensions.
29166         * modules/memcmp-tests (Depends-on): Add extensions.
29167         * modules/memmem-tests (Depends-on): Add extensions.
29168         * modules/memrchr-tests (Depends-on): Add extensions.
29169
29170 2009-05-13  Bruno Haible  <bruno@clisp.org>
29171
29172         Make some tests ISO C 99 compliant.
29173         * tests/zerosize-ptr.h: New file.
29174         * tests/test-memchr.c: Include zerosize-ptr.h.
29175         (main): Use a zero-size object pointer instead of NULL.
29176         * tests/test-memchr2.c: Include zerosize-ptr.h.
29177         (main): Use a zero-size object pointer instead of NULL.
29178         * tests/test-memcmp.c: Include zerosize-ptr.h.
29179         (main): Use a zero-size object pointer instead of NULL.
29180         * tests/test-memmem.c: Include zerosize-ptr.h.
29181         (main): Use a zero-size object pointer instead of NULL.
29182         * tests/test-memrchr.c: Include zerosize-ptr.h.
29183         (main): Use a zero-size object pointer instead of NULL.
29184         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29185         m4/mmap-anon.m4.
29186         (Depends-on): Add getpagesize.
29187         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29188         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29189         m4/mmap-anon.m4.
29190         (Depends-on): Add getpagesize.
29191         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29192         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29193         m4/mmap-anon.m4.
29194         (Depends-on): Add getpagesize.
29195         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29196         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29197         m4/mmap-anon.m4.
29198         (Depends-on): Add getpagesize.
29199         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29200         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29201         m4/mmap-anon.m4.
29202         (Depends-on): Add getpagesize.
29203         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29204
29205 2009-05-12  Bruno Haible  <bruno@clisp.org>
29206
29207         Tests for module 'alignof'.
29208         * modules/alignof-tests: New file.
29209         * tests/test-alignof.c: New file.
29210
29211 2009-05-12  Bruno Haible  <bruno@clisp.org>
29212
29213         Fix alignof macro.
29214         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29215         vendor compilers that are always correct.
29216
29217 2009-05-12  Bruno Haible  <bruno@clisp.org>
29218
29219         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29220         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29221         not whether its fully works.
29222
29223 2009-05-12  Bruno Haible  <bruno@clisp.org>
29224
29225         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29226
29227 2009-05-12  Jim Meyering  <meyering@redhat.com>
29228
29229         * top/maint.mk: Adjust backslash alignment.
29230
29231 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29232
29233         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29234
29235 2009-05-11  Eric Blake  <ebb9@byu.net>
29236
29237         argp: avoid undefined behavior
29238         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29239         macros.
29240
29241 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29242
29243         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29244         user.name to prevent git commit from complaining.
29245
29246 2009-05-10  Bruno Haible  <bruno@clisp.org>
29247
29248         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29249         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29250         it rewrites every file name only once.
29251         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29252
29253 2009-05-08  Bruno Haible  <bruno@clisp.org>
29254
29255         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29256         instead of 'max'.
29257
29258 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29259
29260         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29261         sockaddr_storage test.
29262
29263 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29264
29265         * modules/sys_socket (Makefile.am): Substitute
29266         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29267         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29268         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29269         * tests/test-sys_socket.c: Check sockaddr_storage.
29270
29271 2009-05-08  Bruno Haible  <bruno@clisp.org>
29272
29273         New module 'alignof'.
29274         * lib/alignof.h: New file.
29275         * modules/alignof: New file.
29276
29277 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29278             Bruno Haible  <bruno@clisp.org>
29279
29280         Fix test-file-has-acl on FreeBSD.
29281         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29282         mask is implicitly added.
29283         * tests/test-file-has-acl.c: Include <signal.h>.
29284         (main): Terminate the test after 5 seconds.
29285         * modules/acl-tests (configure.ac): Check for alarm function.
29286
29287 2009-05-04  Bruno Haible  <bruno@clisp.org>
29288
29289         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29290         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29291         * modules/errno (configure.ac): Drop AC_REQUIRE.
29292         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29293         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29294
29295 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29296
29297         * modules/glob-tests: New module.
29298         * tests/test-glob.c: Add.
29299
29300 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29301
29302         * modules/fnmatch-tests: New module.
29303         * tests/test-fnmatch.c: Add.
29304
29305 2009-05-04  Eric Blake  <ebb9@byu.net>
29306
29307         maint: make the new no-submodule-changes rule VPATH-safe
29308         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29309
29310 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29311             Bruno Haible  <bruno@clisp.org>
29312
29313         acl: Fix infinite loop on FreeBSD.
29314         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29315         of return value from acl_get_entry.
29316         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29317         Likewise.
29318
29319 2009-05-03  Bruno Haible  <bruno@clisp.org>
29320
29321         * lib/acl-internal.h (acl_entries): Clarify return value.
29322         * lib/acl_entries.c (acl_entries): Likewise.
29323
29324 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29325
29326         Bug fix in acl module.
29327         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29328
29329 2009-05-03  Bruno Haible  <bruno@clisp.org>
29330
29331         Create gperf-generated file in the source dir, not in the build dir.
29332         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29333         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29334         * modules/unicase/locale-language (unicase/locale-languages.h):
29335         Likewise.
29336         * modules/unicase/special-casing (unicase/special-casing-table.h):
29337         Likewise.
29338         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29339         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29340         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29341         Reported by Ralf Wildenhues.
29342
29343 2009-05-03  Bruno Haible  <bruno@clisp.org>
29344
29345         * modules/fnmatch (Description, configure.ac): Taken from
29346         fnmatch-posix.
29347         * modules/fnmatch-posix: Turn into a symbolic reference to the
29348         'fnmatch' module, and deprecate.
29349         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29350
29351 2009-05-03  Bruno Haible  <bruno@clisp.org>
29352
29353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29354         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29355         Reported by Ralf Wildenhues.
29356
29357 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29358
29359         * m4/fnmatch.m4: Fix fnmatch re-define.
29360
29361 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29362
29363         priv-set: new module and tests; adapt write-any-file
29364         * lib/priv-set.c: New file.
29365         * lib/priv-set.h: New file.
29366         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29367         * lib/write-any-file.c: Simplify by using priv-set module.
29368         * m4/priv-set.m4: New file.
29369         * modules/priv-set: New file.
29370         * modules/unlinkdir: Add dependency on priv-set module.
29371         * modules/write-any-file: Likewise.
29372
29373         Tests for module 'priv-set'.
29374         * modules/priv-set-tests: New file.
29375         * tests/test-priv-set.c: New file.
29376
29377 2009-05-03  Jim Meyering  <meyering@redhat.com>
29378             Bruno Haible  <bruno@clisp.org>
29379
29380         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29381         use the converted UTF-8 variant of the name instead.
29382
29383 2009-05-03  Jim Meyering  <meyering@redhat.com>
29384
29385         tests: tighten some getdate tests
29386         * tests/test-getdate.c (main): Tighten tests: require equality,
29387         not just greater than.  Set TZ envvar to UTC0.
29388
29389 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29390
29391         getdate: correctly interpret "next monday" when run on a Monday
29392         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29393         that e.g., "next tues" (when run on a tuesday) results in a date
29394         that is one week in the future, and not today's date.
29395         I.e., add a week when the wday is the same as the current one.
29396         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29397         and earlier by Martin Bernreuther and Jan Minář.
29398         * tests/test-getdate.c (main): Check that "next DAY" is always in
29399         the future and that "last DAY" is always in the past.
29400
29401 2009-05-02  Jim Meyering  <meyering@redhat.com>
29402
29403         build: ensure that a release build fails when a submodule is unclean
29404         * top/maint.mk (no-submodule-changes): New rule.
29405         (alpha beta major): Depend on it.
29406
29407 2009-05-02  Bruno Haible  <bruno@clisp.org>
29408
29409         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29410         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29411         shell variable gl_fnmatch_required to detect which variant is
29412         requested.
29413         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29414         gl_FUNC_FNMATCH_POSIX.
29415         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29416         exclude fnmatch-posix.
29417
29418 2009-05-02  Bruno Haible  <bruno@clisp.org>
29419
29420         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29421         * modules/mbsrtowcs (License): Change to LGPLv2+.
29422         * modules/strnlen1 (License): Likewise.
29423         Reported by Simon Josefsson.
29424
29425 2009-05-02  Bruno Haible  <bruno@clisp.org>
29426
29427         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29428         "cross".
29429         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29430         gnulib-tool was called with option --source-base=lib.
29431
29432 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29433
29434         Use automake *-local hooks without commands, for extensibility.
29435         * modules/localcharset (Makefile.am): Rename install-exec-local
29436         rule to install-exec-localcharset, and make it a prerequisite of
29437         install-exec-local.  Likewise, rename the uninstall-local rule to
29438         uninstall-localcharset, and make it a prerequisite of the former.
29439
29440 2009-05-01  Bruno Haible  <bruno@clisp.org>
29441
29442         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29443         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29444         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29446         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29447         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29448         m4/locale-zh.m4, m4/codeset.m4.
29449
29450         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29451         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29452         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29453         m4/locale-zh.m4.
29454
29455         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29456         REPLACE_WCRTOMB if mbstate_t must be replaced.
29457         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29458         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29459
29460 2009-05-01  Bruno Haible  <bruno@clisp.org>
29461
29462         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29463         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29464         dngettext, dcngettext, textdomain, bindtextdomain,
29465         bind_textdomain_codeset): Undefine before redefining.
29466
29467 2009-04-30  Bruno Haible  <bruno@clisp.org>
29468
29469         Fix bug introduced on 2009-04-25.
29470         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29471         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29472         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29473         is defined.
29474         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29475         is defined.
29476         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29477         is defined.
29478         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29479
29480 2009-04-28  Bruno Haible  <bruno@clisp.org>
29481
29482         Comment tweaks.
29483         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29484         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29485         * lib/unicase.h (u*_casexfrm): Likewise.
29486         Reported by Paolo Bonzini.
29487
29488 2009-04-28  Bruno Haible  <bruno@clisp.org>
29489
29490         Fix a compilation error.
29491         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29492         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29493         Reported by Jim Meyering.
29494
29495 2009-04-27  Bruno Haible  <bruno@clisp.org>
29496
29497         New module 'libunistring'.
29498         * modules/libunistring: New file.
29499         * m4/libunistring.m4: New file.
29500         * MODULES.html.sh (Unicode string functions): Add it.
29501
29502 2009-04-27  Eric Blake  <ebb9@byu.net>
29503
29504         maint.mk: allow package-specific header to provide <config.h>
29505         * top/maint.mk (sc_require_config_h): New variable.
29506         (sc_require_config_h, sc_require_config_h_first): Use it.
29507
29508 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29509
29510         * top/maint.mk (sc_avoid_if_before_free): Except
29511         useless-if-before-free script.
29512
29513 2009-04-27  Eric Blake  <ebb9@byu.net>
29514
29515         maintainer-makefile: depend on all required helper scripts
29516         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29517         useless-if-before-free.
29518         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29519         version, rather than assuming gnulib checkout is available.
29520         Reported by Simen Josefsson.
29521
29522 2009-04-26  Bruno Haible  <bruno@clisp.org>
29523
29524         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29525         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29526         "../" or "..".
29527
29528 2009-04-26  Bruno Haible  <bruno@clisp.org>
29529
29530         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29531         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29532         AC_LIB_HAVE_LINKFLAGS.
29533
29534 2009-04-26  Bruno Haible  <bruno@clisp.org>
29535
29536         Simplify calling convention of u*_conv_from_encoding.
29537         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29538         u32_conv_from_encoding): Expect a resultbuf argument and return the
29539         result directly as a pointer.
29540         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29541         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29542         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29543         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29544         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29545         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29546         Update.
29547         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29548         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29549         * lib/vasnprintf.c (VASNPRINTF): Update.
29550         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29551         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29552         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29553         * NEWS: Mention the change.
29554
29555 2009-04-26  Bruno Haible  <bruno@clisp.org>
29556
29557         Simplify calling convention of u*_conv_to_encoding.
29558         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29559         u32_conv_to_encoding): Expect a resultbuf argument and return the
29560         result directly as a pointer.
29561         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29562         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29563         freeing scaled_offsets if mem_iconveha failed.
29564         * lib/unicase/u-casexfrm.h (FUNC): Update.
29565         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29566         * lib/vasnprintf.c (VASNPRINTF): Update.
29567         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29568         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29569         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29570         * NEWS: Mention the change.
29571
29572 2009-04-26  Bruno Haible  <bruno@clisp.org>
29573
29574         Avoid test failures on AIX and OSF/1.
29575         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29576         malloc(0).
29577         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29578         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29579         Likewise.
29580         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29581         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29582         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29583         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29584         * doc/posix-functions/malloc.texi: Document the portability problem
29585         related to malloc(0).
29586
29587 2009-04-26  Bruno Haible  <bruno@clisp.org>
29588
29589         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29590         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29591         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29592
29593 2009-04-25  Bruno Haible  <bruno@clisp.org>
29594
29595         Avoid link error when creating a namespace clean library.
29596         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29597         as macro with arguments if already defined as an alias.
29598         * lib/signbitf.c (gl_signbitf): Don't undefine.
29599         * lib/signbitd.c (gl_signbitd): Don't undefine.
29600         * lib/signbitl.c (gl_signbitl): Don't undefine.
29601
29602 2009-04-25  Jim Meyering  <meyering@redhat.com>
29603
29604         vc-list-files: fix another quoting bug
29605         * build-aux/vc-list-files: Avoid sed backslash expansion
29606         of pathological directory names.
29607
29608 2009-04-25  Eric Blake  <ebb9@byu.net>
29609
29610         vc-list-files: fix shell quoting error
29611         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29612         timestamp.
29613
29614 2009-04-25  Jim Meyering  <meyering@redhat.com>
29615
29616         vc-list-files: restore lost functionality with subdir argument
29617         * build-aux/vc-list-files: When given a non-"." sub-directory
29618         argument, substitute the $dir/ prefix back onto each resulting name.
29619         Otherwise, coreutils' root_tests check would fail.
29620
29621 2009-04-24  Eric Blake  <ebb9@byu.net>
29622
29623         vc-list-files: ignore git symlinks
29624         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29625         than ls-files, to ignore git symlinks.
29626
29627         maint.mk: import improvements from m4
29628         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29629         (move_if_change): Delete unused macro.
29630         (news-date-check, vc-diff-check): Support VPATH builds.
29631         (announcement): Likewise.  Split --bootstrap-tools list...
29632         (boostrap-tools): ...into separate list, which can be overridden
29633         in cfg.mk.
29634         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29635         requiring dependency on useless-if-before-free module.
29636         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29637         Support VPATH builds.
29638
29639 2009-04-24  Jim Meyering  <meyering@redhat.com>
29640
29641         maint.mk: remove coreutils-specific rules and variables
29642         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29643         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29644         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29645
29646         maint.mk: remove obsolete rule
29647         * top/maint.mk (rel-check): Remove rule.
29648         (WGET, WGETFLAGS): Remove now-unused variables.
29649
29650 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29651
29652         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29653         consistency.
29654
29655         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29656         '$(PATH_SEPARATOR)' instead of ':'.
29657
29658 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29659
29660         * lib/getopt1.c (main): Use 'const' for static array.
29661
29662 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29663
29664         * top/maint.mk: Sync with coreutils.
29665         * NEWS: Explain incompatibilities.
29666
29667 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29668             Bruno Haible  <bruno@clisp.org>
29669
29670         Fix cross-compilation results.
29671         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29672         statement, as third argument of AC_TRY_RUN.
29673         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29674         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29675         Likewise.
29676         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29677         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29678         Likewise.
29679         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29680         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29681         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29682
29683 2009-04-20  Bruno Haible  <bruno@clisp.org>
29684
29685         Avoid test failure on mingw.
29686         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29687
29688 2009-04-20  Bruno Haible  <bruno@clisp.org>
29689
29690         Avoid compilation error on mingw.
29691         * modules/localename-tests (Depends-on): Add locale.
29692
29693 2009-04-19  Bruno Haible  <bruno@clisp.org>
29694
29695         Support for building a shared library on Windows platforms.
29696         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29697         (main): Test the presence of UNINORM_NFC here.
29698         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29699         (main): Test the presence of UNINORM_NFD here.
29700         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29701         (main): Test the presence of UNINORM_NFKC here.
29702         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29703         (main): Test the presence of UNINORM_NFKD here.
29704
29705 2009-04-19  Bruno Haible  <bruno@clisp.org>
29706
29707         Avoid a compiler warning.
29708         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29709         Change type of variable 'sequence'.
29710
29711 2009-04-19  Bruno Haible  <bruno@clisp.org>
29712
29713         * modules/configmake (Makefile.am): When the contents of configmake.h
29714         does not change, arrange to preserve its modification time.
29715
29716 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29717
29718         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29719         gettext domain.
29720
29721 2009-04-16  Jim Meyering  <meyering@redhat.com>
29722
29723         useless-if-before-free: improve conversion code
29724         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29725         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29726
29727 2009-04-14  Bruno Haible  <bruno@clisp.org>
29728
29729         * modules/fcntl (Depends-on): Add extensions.
29730         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29731
29732 2009-04-12  Ben Pfaff  <blp@gnu.org>
29733
29734         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29735         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29736
29737 2009-03-20  Ben Pfaff  <blp@gnu.org>
29738
29739         Make rename replace existing destinations on Windows.
29740         * m4/rename.m4: Add test for Mingw.
29741         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29742         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29743         * doc/posix-functions/rename.texi: Document.
29744
29745 2009-04-10  Bruno Haible  <bruno@clisp.org>
29746
29747         New include file "iconveh.h".
29748         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29749         * lib/striconveh.h: Include it.
29750         (enum iconv_ilseq_handler): Remove definition.
29751         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29752         striconveh.h.
29753         * lib/striconveha.c: Include striconveh.h.
29754         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29755         * modules/striconveh (Files): Add lib/iconveh.h.
29756         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29757         lib/striconveh.h.
29758
29759 2009-04-10  Bruno Haible  <bruno@clisp.org>
29760
29761         * lib/uniconv.h: Update comment.
29762
29763 2009-04-10  Bruno Haible  <bruno@clisp.org>
29764
29765         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29766         always.
29767         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29768         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29769         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29770         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29771         "unistring-notinline.h", so that the function gets defined always.
29772         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29773         * lib/unistr/u8-uctomb.c: Likewise.
29774         * lib/unistr/u16-mbtouc.c: Likewise.
29775         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29776         * lib/unistr/u16-uctomb.c: Likewise.
29777         * lib/unistr/u32-mbtouc.c: Likewise.
29778         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29779         * lib/unistr/u32-uctomb.c: Likewise.
29780
29781 2009-04-10  Bruno Haible  <bruno@clisp.org>
29782
29783         Mark 'utime' obsolete.
29784         * modules/utime (Status, Notice): New sections.
29785         Suggested by Jim Meyering.
29786
29787         Fix cross-compile guess for utime test.
29788         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29789         autoconf.
29790         * doc/posix-functions/utime.texi: Give more precisions.
29791         Reported by Jan <ipif@ymail.com>.
29792
29793 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29794
29795         filevercmp: correct today's change
29796         * lib/filevercmp.c: Also handle coreutils' test inputs.
29797         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29798
29799         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29800         for reporting it.
29801         * lib/filevercmp.c: Special handle for "", "." and "..".
29802         * tests/test-filevercmp.c: Enlarge the set suite.
29803
29804 2009-04-07  Jim Meyering  <meyering@redhat.com>
29805
29806         useless-if-before-free: show how to remove braced useless free, too
29807         * build-aux/useless-if-before-free: still only in a comment, though.
29808
29809 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29810
29811         maint.mk: import changes to syntax-check macros from coreutils
29812         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29813         Use them in the relevant macros.
29814
29815 2009-04-06  Bruno Haible  <bruno@clisp.org>
29816
29817         Fix unportable use of bit-fields.
29818         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29819         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29820         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29821
29822 2009-04-06  Bruno Haible  <bruno@clisp.org>
29823
29824         Avoid test failures on AIX and OSF/1.
29825         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29826         that malloc(0) = NULL.
29827         * tests/unicase/test-u8-tolower.c (check): Likewise.
29828         * tests/unicase/test-u8-totitle.c (check): Likewise.
29829         * tests/unicase/test-u8-toupper.c (check): Likewise.
29830         * tests/unicase/test-u16-casefold.c (check): Likewise.
29831         * tests/unicase/test-u16-tolower.c (check): Likewise.
29832         * tests/unicase/test-u16-totitle.c (check): Likewise.
29833         * tests/unicase/test-u16-toupper.c (check): Likewise.
29834         * tests/unicase/test-u32-casefold.c (check): Likewise.
29835         * tests/unicase/test-u32-tolower.c (check): Likewise.
29836         * tests/unicase/test-u32-totitle.c (check): Likewise.
29837         * tests/unicase/test-u32-toupper.c (check): Likewise.
29838         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29839         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29840         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29841         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29842         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29843         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29844         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29845         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29846         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29847         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29848         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29849         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29850
29851 2009-04-05  Bruno Haible  <bruno@clisp.org>
29852
29853         Work around an autoconf limitation.
29854         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29855         comment line if it would be longer than 3 KB.
29856
29857 2009-04-05  Bruno Haible  <bruno@clisp.org>
29858
29859         Avoid test failure with libiconv-1.13.
29860         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29861         of the expected test results.
29862
29863 2009-04-05  Bruno Haible  <bruno@clisp.org>
29864
29865         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29866         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29867         that it should be installed.
29868
29869 2009-04-05  Bruno Haible  <bruno@clisp.org>
29870
29871         * gnulib-tool: New option --copy-file.
29872         (func_usage): Document it.
29873         (func_dest_tmpfilename): Moved out of func_import.
29874         (func_add_file, func_update_file): New functions, extracted from
29875         func_import.
29876         (func_import): Update.
29877
29878 2009-04-05  Karl Berry  <karl@gnu.org>
29879
29880         * README: prominently mention gnulib-tool.
29881         Rearrange sections so getting the code is near the top.
29882
29883 2009-04-05  Bruno Haible  <bruno@clisp.org>
29884
29885         * lib/unicase.h: Mention u*_cmp2.
29886         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29887         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29888         * lib/unicase/ulc-casecmp.c: Likewise.
29889         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29890         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29891         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29892         unistr/u8-cmp.
29893         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29894         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29895         unistr/u16-cmp.
29896         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29897         unistr/u32-cmp.
29898
29899         * lib/uninorm.h: Mention u*_cmp2.
29900         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29901         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29902         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29903         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29904         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29905         unistr/u8-cmp.
29906         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29907         unistr/u16-cmp.
29908         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29909         unistr/u32-cmp.
29910
29911         New module 'unistr/u32-cmp2'.
29912         * lib/unistr/u32-cmp2.c: New file.
29913         * modules/unistr/u32-cmp2: New file.
29914
29915         New module 'unistr/u16-cmp2'.
29916         * lib/unistr/u16-cmp2.c: New file.
29917         * modules/unistr/u16-cmp2: New file.
29918
29919         New module 'unistr/u8-cmp2'.
29920         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29921         * lib/unistr/u8-cmp2.c: New file.
29922         * lib/unistr/u-cmp2.h: New file.
29923         * modules/unistr/u8-cmp2: New file.
29924
29925 2009-04-05  Bruno Haible  <bruno@clisp.org>
29926
29927         * lib/unictype.h (uc_property_is_valid): New macro.
29928         * tests/unictype/test-pr_byname.c (main): Use it.
29929
29930         * lib/unistr.h: Doc fixes.
29931         * lib/uniconv.h: Doc fixes.
29932         * lib/unictype.h: Doc fixes.
29933
29934 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29935
29936         Port coreutils 7.2 to Solaris 8.
29937
29938         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29939         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29940         for Solaris 8.  This is a bit of a hack, as it means it's the
29941         caller's responsibility to add -lnsl if needed, but most likely it
29942         won't be needed since only getaddrinfo uses this and getaddrinfo
29943         isn't needed on Solaris 8.
29944
29945         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29946         problem to Solaris 8 encountered with coreutils 7.2, which
29947         resulted in a message "fnmatch.c:292: warning: passing argument 4
29948         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29949         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29950
29951 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29952
29953         * m4/ld-version-script.m4: Add FIXME comment.
29954
29955 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29956
29957         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29958         SOVERSION variable.
29959
29960 2009-04-02  Bruno Haible  <bruno@clisp.org>
29961
29962         * Makefile (info, html, dvi, pdf): Combine the rules.
29963         Suggested by Jim Meyering.
29964
29965 2009-04-01  Bruno Haible  <bruno@clisp.org>
29966
29967         * Makefile (info, html, dvi, pdf): New targets.
29968         Reported by Reuben Thomas <rrt@sc3d.org>.
29969
29970 2009-04-01  Bruno Haible  <bruno@clisp.org>
29971
29972         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29973         can be put into PATH.
29974         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29975
29976 2009-04-01  Bruno Haible  <bruno@clisp.org>
29977
29978         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29979
29980 2009-04-01  Bruno Haible  <bruno@clisp.org>
29981
29982         Rename module 'visibility'.
29983         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29984         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29985         * doc/gnulib.texi: Update.
29986         * MODULES.html.sh (Misc): Update.
29987         * NEWS: Mention the change.
29988
29989 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29990
29991         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29992         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29993         Eric Blake <ebb9@byu.net> for review.
29994         * MODULES.html.sh: Add lib-msvc-compat.
29995         * doc/gnulib.texi: Link to new section.
29996         * m4/ld-output-def.m4: New file.
29997         * doc/ld-output-def.texi: New file.
29998
29999 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30000
30001         Rename ld-version-script to lib-symbol-versions.  Suggested by
30002         Bruno Haible <bruno@clisp.org>.
30003         * modules/ld-version-script: Renamed to lib-symbol-versions.
30004         * doc/ld-version-script.texi: Fix module name.
30005         * MODULES.html.sh: Add lib-symbol-versions.
30006
30007 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30008
30009         * modules/u64-tests: New file.
30010         * tests/test-u64.c: New file.
30011
30012 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30013
30014         * MODULES.html.sh: Mention u64.
30015         * modules/u64: New module.
30016         * modules/crypto/sha512: Depend on u64 module instead of providing
30017         u64.h.
30018
30019 2009-03-27  Eric Blake  <ebb9@byu.net>
30020
30021         test-strerror: make debugging EAI_SYSTEM easier
30022         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30023         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30024         failure was EAI_SYSTEM.
30025
30026 2009-03-25  Bruno Haible  <bruno@clisp.org>
30027
30028         Fix a problem with --enable-relocatable on Solaris 7.
30029         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30030         since 2008-02-24.
30031
30032 2009-03-25  Eric Blake  <ebb9@byu.net>
30033
30034         test-sockets: avoid gcc warning
30035         * tests/test-sockets.c (main): Silence compiler warning.
30036
30037 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30038
30039         New modules nproc, pthread, contributed by Glen Lenker.
30040
30041         * MODULES.html.sh: Add pthread, nproc.
30042         * lib/nproc.c: New file.
30043         * lib/nproc.h: New file.
30044         * lib/pthread.in.h: New file.
30045         * m4/pthread.m4: New file.
30046         * modules/nproc: New file.
30047         * modules/pthread: New file.
30048
30049 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30050
30051         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30052         New variable.
30053
30054 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30055
30056         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30057         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30058         * tests/test-filevercmp.c: Add tests for backup suffixes.
30059
30060 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30061
30062         * modules/stdlib (Depends-on): Add stdint, needed when defining
30063         struct random_data on, for example, HP-UX 10.20.  Reported by
30064         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30065
30066 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30067
30068         * lib/readline.c (readline): Call fflush on stdout after printing
30069         prompt.
30070
30071 2009-03-20  Bruno Haible  <bruno@clisp.org>
30072
30073         Remove dependency from 'close' module to -lws2_32 on native Windows.
30074         * lib/close-hook.h: New file.
30075         * lib/close-hook.c: New file.
30076         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30077         w32sock.h.
30078         (_gl_close_fd_maybe_socket): Remove function.
30079         (rpl_close): Invoke execute_all_close_hooks instead of
30080         _gl_close_fd_maybe_socket.
30081         * lib/sockets.c: Include close-hook.h, w32sock.h.
30082         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30083         (close_sockets_hook): New variable.
30084         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30085         (gl_sockets_cleanup): Unregister it.
30086         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30087         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30088         * modules/close-hook: New file.
30089         * modules/close (Files): Remove lib/w32sock.h.
30090         (Depends-on): Add close-hook.
30091         (Link): Remove section.
30092         * modules/sockets (Files): Add lib/w32sock.h.
30093         (Depends-on): Add close-hook.
30094         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30095         invocation.
30096         * NEWS: Mention that LIB_CLOSE is gone.
30097
30098 2009-03-23  Eric Blake  <ebb9@byu.net>
30099
30100         signal-tests: test previous patch
30101         * tests/test-signal.c: New file.
30102         * modules/signal-tests: Likewise.
30103
30104         signal.h: always support 'volatile sig_atomic_t'
30105         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30106         (gl_SIGNAL_H_DEFAULTS): Add a default.
30107         * modules/signal (Makefile.am): Substitute if needed.
30108         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30109         users can blindly add volatile.
30110         * doc/posix-headers/signal.texi (signal.h): Document it.
30111         Reported by Matthew Woehlke.
30112
30113 2009-03-23  Jim Meyering  <meyering@redhat.com>
30114
30115         pathmax: PATH_MAX: use pathconf only when available
30116         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30117         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30118         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30119         This avoids a link failure in a PSP cross-compilation environment
30120         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30121
30122         * lib/vasnprintf.c (divide): Fix typo in comment.
30123
30124 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30125
30126         * gnulib-tool (func_filter_filelist): Fix comment.
30127
30128 2009-03-20  Bruno Haible  <bruno@clisp.org>
30129
30130         Make sockets.h self-contained.
30131         * lib/sockets.c: Include sockets.h first.
30132         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30133
30134 2009-03-19  Eric Blake  <ebb9@byu.net>
30135
30136         doc: mention more functions added in cygwin 1.7.0
30137         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30138         addition.
30139         * doc/posix-functions/log2f.texi: Likewise.
30140
30141 2009-03-19  Jim Meyering  <meyering@redhat.com>
30142
30143         fsusage: avoid syntax error due to statement-before-declaration
30144         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30145         after all declarations.  Reported by Matthew Woehlke in
30146         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30147
30148 2009-03-18  Eric Blake  <ebb9@byu.net>
30149
30150         build-aux/compile: sync from automake
30151         * build-aux/compile: New file, from automake.
30152         * config/srclist.txt: Mention build-aux/compile.
30153
30154 2009-03-17  Bruno Haible  <bruno@clisp.org>
30155
30156         * lib/git-merge-changelog.c: Fix typo in comment.
30157         Reported by Reuben Thomas <rrt@sc3d.org>.
30158
30159 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30160
30161         * m4/regex.m4: update and improve help for
30162         --without-included-regex.
30163
30164 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30165
30166         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30167         failure on missing include files.
30168
30169 2009-03-17  Eric Blake  <ebb9@byu.net>
30170
30171         doc: mention more functions added in cygwin 1.7.0
30172         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30173         addition.
30174         * doc/posix-functions/fwscanf.texi: Likewise.
30175         * doc/posix-functions/swprintf.texi: Likewise.
30176         * doc/posix-functions/swscanf.texi: Likewise.
30177         * doc/posix-functions/vfwprintf.texi: Likewise.
30178         * doc/posix-functions/vfwscanf.texi: Likewise.
30179         * doc/posix-functions/vswprintf.texi: Likewise.
30180         * doc/posix-functions/vswscanf.texi: Likewise.
30181         * doc/posix-functions/vwprintf.texi: Likewise.
30182         * doc/posix-functions/vwscanf.texi: Likewise.
30183         * doc/posix-functions/wcscasecmp.texi: Likewise.
30184         * doc/posix-functions/wcsdup.texi: Likewise.
30185         * doc/posix-functions/wcsftime.texi: Likewise.
30186         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30187         * doc/posix-functions/wprintf.texi: Likewise.
30188         * doc/posix-functions/wscanf.texi: Likewise.
30189         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30190
30191 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30192
30193         maint.mk: really add $(AM_MAKEFLAGS)
30194         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30195         was inadvertently omitted in the last commit.
30196         Spotted by Bruno Haible.
30197
30198         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30199         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30200         $(AM_MAKEFLAGS)' rather than plain `make'.
30201
30202         gnulib-tool: execute $MAKE not make
30203         * gnulib-tool: Default $MAKE to 'make'.
30204         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30205         than make.  Initialize $MAKE in the do-autobuild script.
30206
30207         gnulib-tool: use $MAKE not make in generated files
30208         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30209         make, in generated files.  Initialize $MAKE in the do-autobuild
30210         script.
30211
30212         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30213
30214         GNUmakefile: disable parallelism only for multiple, recursive targets
30215         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30216         additions in the Makefile.
30217         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30218         by Automake.
30219         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30220         are listed on the command line and at least one of them is
30221         listed in $(ALL_RECURSIVE_TARGETS).
30222
30223 2009-03-14  Bruno Haible  <bruno@clisp.org>
30224
30225         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30226         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30227         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30228         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30229         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30230         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30231         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30232         unistr/u8-uctomb.
30233         * modules/unistr/u8-strchr (Depends-on): Likewise.
30234         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30235         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30236         unistr/u16-uctomb.
30237         * modules/unistr/u16-strchr (Depends-on): Likewise.
30238         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30239
30240 2009-03-12  Bruno Haible  <bruno@clisp.org>
30241
30242         Work around select() bug on Interix 3.5.
30243         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30244         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30245         * m4/select.m4: New file.
30246         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30247         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30248         * modules/select (Files): Add m4/select.m4.
30249         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30250         * modules/nanosleep (Depends-on): Add select.
30251         * modules/poll (Depends-on): Likewise.
30252         * doc/posix-functions/select.texi: Mention the Interix bug.
30253         Reported by Markus Duft <mduft@gentoo.org>.
30254
30255         * lib/select.c: Renamed from lib/winsock-select.c.
30256         * modules/select (Files): Add lib/select.c, remove
30257         lib/winsock-select.c.
30258         (configure.ac): Update.
30259
30260 2009-03-12  Jim Meyering  <meyering@redhat.com>
30261
30262         avoid gcc warnings about unused macro definitions
30263         * lib/readtokens.c (STREQ): Remove unused definition.
30264         * lib/xmalloc.c (SIZE_MAX): Likewise.
30265         * lib/openat-die.c (N_): Likewise.
30266         * lib/mountlist.c (SIZE_MAX): Remove definition.
30267         Instead, include <stdint.h>.
30268         * lib/readutmp.c: Likewise.
30269         * modules/readutmp (Depends-on): Add stdint.
30270         * modules/mountlist (Depends-on): Add stdint.
30271         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30272
30273 2009-03-10  Bruno Haible  <bruno@clisp.org>
30274
30275         Tests for module 'mbmemcasecoll'.
30276         * modules/mbmemcasecoll-tests: New file.
30277         * tests/test-mbmemcasecoll1.sh: New file.
30278         * tests/test-mbmemcasecoll2.sh: New file.
30279         * tests/test-mbmemcasecoll3.sh: New file.
30280         * tests/test-mbmemcasecoll.c: New file.
30281
30282         New module 'mbmemcasecoll'.
30283         * lib/mbmemcasecoll.h: New file.
30284         * lib/mbmemcasecoll.c: New file.
30285         * modules/mbmemcasecoll: New file.
30286
30287         * tests/test-mbmemcasecmp.h: New file, extracted from
30288         tests/test-mbmemcasecmp.c.
30289         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30290         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30291         (main): Update.
30292         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30293
30294 2009-03-09  Bruno Haible  <bruno@clisp.org>
30295
30296         Tests for module 'mbmemcasecmp'.
30297         * modules/mbmemcasecmp-tests: New file.
30298         * tests/test-mbmemcasecmp1.sh: New file.
30299         * tests/test-mbmemcasecmp2.sh: New file.
30300         * tests/test-mbmemcasecmp3.sh: New file.
30301         * tests/test-mbmemcasecmp.c: New file.
30302
30303         New module 'mbmemcasecmp'.
30304         * lib/mbmemcasecmp.h: New file.
30305         * lib/mbmemcasecmp.c: New file.
30306         * modules/mbmemcasecmp: New file.
30307
30308 2009-03-09  Bruno Haible  <bruno@clisp.org>
30309
30310         Tests for module 'unicase/ulc-casecoll'.
30311         * modules/unicase/ulc-casecoll-tests: New file.
30312         * tests/unicase/test-ulc-casecoll1.sh: New file.
30313         * tests/unicase/test-ulc-casecoll2.sh: New file.
30314         * tests/unicase/test-ulc-casecoll.c: New file.
30315
30316         New module 'unicase/ulc-casecoll'.
30317         * lib/unicase.h (ulc_casecoll): New declaration.
30318         * lib/unicase/ulc-casecoll.c: New file.
30319         * modules/unicase/ulc-casecoll: New file.
30320
30321         New module 'unicase/ulc-casexfrm'.
30322         * lib/unicase.h (ulc_casexfrm): New declaration.
30323         * lib/unicase/ulc-casexfrm.c: New file.
30324         * modules/unicase/ulc-casexfrm: New file.
30325
30326 2009-03-09  Bruno Haible  <bruno@clisp.org>
30327
30328         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30329         invocations.
30330
30331         * m4/mbscasecmp.m4: Remove file.
30332         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30333         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30334
30335         * m4/mbscasestr.m4: Remove file.
30336         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30337         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30338
30339         * m4/mbschr.m4: Remove file.
30340         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30341         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30342
30343         * m4/mbscspn.m4: Remove file.
30344         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30345         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30346
30347         * m4/mbslen.m4: Remove file.
30348         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30349         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30350
30351         * m4/mbsncasecmp.m4: Remove file.
30352         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30353         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30354
30355         * m4/mbsnlen.m4: Remove file.
30356         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30357         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30358
30359         * m4/mbspbrk.m4: Remove file.
30360         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30361         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30362
30363         * m4/mbspcasecmp.m4: Remove file.
30364         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30365         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30366
30367         * m4/mbsrchr.m4: Remove file.
30368         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30369         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30370
30371         * m4/mbssep.m4: Remove file.
30372         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30373         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30374
30375         * m4/mbsspn.m4: Remove file.
30376         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30377         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30378
30379         * m4/mbsstr.m4: Remove file.
30380         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30381         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30382
30383         * m4/mbstok_r.m4: Remove file.
30384         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30385         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30386
30387         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30388
30389         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30390         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30391
30392         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30393
30394 2009-03-08  Bruno Haible  <bruno@clisp.org>
30395
30396         Tests for module 'unicase/ulc-casecmp'.
30397         * modules/unicase/ulc-casecmp-tests: New file.
30398         * tests/unicase/test-ulc-casecmp1.sh: New file.
30399         * tests/unicase/test-ulc-casecmp2.sh: New file.
30400         * tests/unicase/test-ulc-casecmp.c: New file.
30401
30402         New module 'unicase/ulc-casecmp'.
30403         * lib/unicase.h (ulc_casecmp): New declaration.
30404         * lib/unicase/ulc-casecmp.c: New file.
30405         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30406         'const SRC_UNIT *'.
30407         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30408         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30409         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30410         * modules/unicase/ulc-casecmp: New file.
30411
30412         Tests for module 'unicase/u32-is-cased'.
30413         * modules/unicase/u32-is-cased-tests: New file.
30414         * tests/unicase/test-u32-is-cased.c: New file.
30415
30416         Tests for module 'unicase/u16-is-cased'.
30417         * modules/unicase/u16-is-cased-tests: New file.
30418         * tests/unicase/test-u16-is-cased.c: New file.
30419
30420         Tests for module 'unicase/u8-is-cased'.
30421         * modules/unicase/u8-is-cased-tests: New file.
30422         * tests/unicase/test-u8-is-cased.c: New file.
30423         * tests/unicase/test-is-cased.h: New file.
30424
30425         New module 'unicase/u32-is-cased'.
30426         * lib/unicase/u32-is-cased.c: New file.
30427         * modules/unicase/u32-is-cased: New file.
30428
30429         New module 'unicase/u16-is-cased'.
30430         * lib/unicase/u16-is-cased.c: New file.
30431         * modules/unicase/u16-is-cased: New file.
30432
30433         New module 'unicase/u8-is-cased'.
30434         * lib/unicase/u8-is-cased.c: New file.
30435         * lib/unicase/u-is-cased.h: New file.
30436         * modules/unicase/u8-is-cased: New file.
30437
30438         Tests for module 'unicase/u32-is-casefolded'.
30439         * modules/unicase/u32-is-casefolded-tests: New file.
30440         * tests/unicase/test-u32-is-casefolded.c: New file.
30441
30442         Tests for module 'unicase/u16-is-casefolded'.
30443         * modules/unicase/u16-is-casefolded-tests: New file.
30444         * tests/unicase/test-u16-is-casefolded.c: New file.
30445
30446         Tests for module 'unicase/u8-is-casefolded'.
30447         * modules/unicase/u8-is-casefolded-tests: New file.
30448         * tests/unicase/test-u8-is-casefolded.c: New file.
30449         * tests/unicase/test-is-casefolded.h: New file.
30450
30451         New module 'unicase/u32-is-casefolded'.
30452         * lib/unicase/u32-is-casefolded.c: New file.
30453         * modules/unicase/u32-is-casefolded: New file.
30454
30455         New module 'unicase/u16-is-casefolded'.
30456         * lib/unicase/u16-is-casefolded.c: New file.
30457         * modules/unicase/u16-is-casefolded: New file.
30458
30459         New module 'unicase/u8-is-casefolded'.
30460         * lib/unicase/u8-is-casefolded.c: New file.
30461         * modules/unicase/u8-is-casefolded: New file.
30462
30463         Tests for module 'unicase/u32-is-titlecase'.
30464         * modules/unicase/u32-is-titlecase-tests: New file.
30465         * tests/unicase/test-u32-is-titlecase.c: New file.
30466
30467         Tests for module 'unicase/u16-is-titlecase'.
30468         * modules/unicase/u16-is-titlecase-tests: New file.
30469         * tests/unicase/test-u16-is-titlecase.c: New file.
30470
30471         Tests for module 'unicase/u8-is-titlecase'.
30472         * modules/unicase/u8-is-titlecase-tests: New file.
30473         * tests/unicase/test-u8-is-titlecase.c: New file.
30474         * tests/unicase/test-is-titlecase.h: New file.
30475
30476         New module 'unicase/u32-is-titlecase'.
30477         * lib/unicase/u32-is-titlecase.c: New file.
30478         * modules/unicase/u32-is-titlecase: New file.
30479
30480         New module 'unicase/u16-is-titlecase'.
30481         * lib/unicase/u16-is-titlecase.c: New file.
30482         * modules/unicase/u16-is-titlecase: New file.
30483
30484         New module 'unicase/u8-is-titlecase'.
30485         * lib/unicase/u8-is-titlecase.c: New file.
30486         * modules/unicase/u8-is-titlecase: New file.
30487
30488         Tests for module 'unicase/u32-is-lowercase'.
30489         * modules/unicase/u32-is-lowercase-tests: New file.
30490         * tests/unicase/test-u32-is-lowercase.c: New file.
30491
30492         Tests for module 'unicase/u16-is-lowercase'.
30493         * modules/unicase/u16-is-lowercase-tests: New file.
30494         * tests/unicase/test-u16-is-lowercase.c: New file.
30495
30496         Tests for module 'unicase/u8-is-lowercase'.
30497         * modules/unicase/u8-is-lowercase-tests: New file.
30498         * tests/unicase/test-u8-is-lowercase.c: New file.
30499         * tests/unicase/test-is-lowercase.h: New file.
30500
30501         New module 'unicase/u32-is-lowercase'.
30502         * lib/unicase/u32-is-lowercase.c: New file.
30503         * modules/unicase/u32-is-lowercase: New file.
30504
30505         New module 'unicase/u16-is-lowercase'.
30506         * lib/unicase/u16-is-lowercase.c: New file.
30507         * modules/unicase/u16-is-lowercase: New file.
30508
30509         New module 'unicase/u8-is-lowercase'.
30510         * lib/unicase/u8-is-lowercase.c: New file.
30511         * modules/unicase/u8-is-lowercase: New file.
30512
30513         Tests for module 'unicase/u32-is-uppercase'.
30514         * modules/unicase/u32-is-uppercase-tests: New file.
30515         * tests/unicase/test-u32-is-uppercase.c: New file.
30516
30517         Tests for module 'unicase/u16-is-uppercase'.
30518         * modules/unicase/u16-is-uppercase-tests: New file.
30519         * tests/unicase/test-u16-is-uppercase.c: New file.
30520
30521         Tests for module 'unicase/u8-is-uppercase'.
30522         * modules/unicase/u8-is-uppercase-tests: New file.
30523         * tests/unicase/test-u8-is-uppercase.c: New file.
30524         * tests/unicase/test-is-uppercase.h: New file.
30525
30526         New module 'unicase/u32-is-uppercase'.
30527         * lib/unicase/u32-is-uppercase.c: New file.
30528         * modules/unicase/u32-is-uppercase: New file.
30529
30530         New module 'unicase/u16-is-uppercase'.
30531         * lib/unicase/u16-is-uppercase.c: New file.
30532         * modules/unicase/u16-is-uppercase: New file.
30533
30534         New module 'unicase/u8-is-uppercase'.
30535         * lib/unicase/u8-is-uppercase.c: New file.
30536         * modules/unicase/u8-is-uppercase: New file.
30537
30538         New module 'unicase/u32-is-invariant'.
30539         * lib/unicase/u32-is-invariant.c: New file.
30540         * modules/unicase/u32-is-invariant: New file.
30541
30542         New module 'unicase/u16-is-invariant'.
30543         * lib/unicase/u16-is-invariant.c: New file.
30544         * modules/unicase/u16-is-invariant: New file.
30545
30546         New module 'unicase/u8-is-invariant'.
30547         * lib/unicase/u8-is-invariant.c: New file.
30548         * lib/unicase/invariant.h: New file.
30549         * lib/unicase/u-is-invariant.h: New file.
30550         * modules/unicase/u8-is-invariant: New file.
30551
30552         Tests for module 'unicase/u32-casecoll'.
30553         * modules/unicase/u32-casecoll-tests: New file.
30554         * tests/unicase/test-u32-casecoll.c: New file.
30555
30556         Tests for module 'unicase/u16-casecoll'.
30557         * modules/unicase/u16-casecoll-tests: New file.
30558         * tests/unicase/test-u16-casecoll.c: New file.
30559
30560         Tests for module 'unicase/u8-casecoll'.
30561         * modules/unicase/u8-casecoll-tests: New file.
30562         * tests/unicase/test-u8-casecoll.c: New file.
30563
30564         New module 'unicase/u32-casecoll'.
30565         * lib/unicase/u32-casecoll.c: New file.
30566         * modules/unicase/u32-casecoll: New file.
30567
30568         New module 'unicase/u16-casecoll'.
30569         * lib/unicase/u16-casecoll.c: New file.
30570         * modules/unicase/u16-casecoll: New file.
30571
30572         New module 'unicase/u8-casecoll'.
30573         * lib/unicase/u8-casecoll.c: New file.
30574         * lib/unicase/u-casecoll.h: New file.
30575         * modules/unicase/u8-casecoll: New file.
30576
30577         New module 'unicase/u32-casexfrm'.
30578         * lib/unicase/u32-casexfrm.c: New file.
30579         * modules/unicase/u32-casexfrm: New file.
30580
30581         New module 'unicase/u16-casexfrm'.
30582         * lib/unicase/u16-casexfrm.c: New file.
30583         * modules/unicase/u16-casexfrm: New file.
30584
30585         New module 'unicase/u8-casexfrm'.
30586         * lib/unicase/u8-casexfrm.c: New file.
30587         * lib/unicase/u-casexfrm.h: New file.
30588         * modules/unicase/u8-casexfrm: New file.
30589
30590         Tests for module 'unicase/u32-casecmp'.
30591         * modules/unicase/u32-casecmp-tests: New file.
30592         * tests/unicase/test-u32-casecmp.c: New file.
30593
30594         Tests for module 'unicase/u16-casecmp'.
30595         * modules/unicase/u16-casecmp-tests: New file.
30596         * tests/unicase/test-u16-casecmp.c: New file.
30597
30598         Tests for module 'unicase/u8-casecmp'.
30599         * modules/unicase/u8-casecmp-tests: New file.
30600         * tests/unicase/test-u8-casecmp.c: New file.
30601         * tests/unicase/test-casecmp.h: New file.
30602
30603         New module 'unicase/u32-casecmp'.
30604         * lib/unicase/u32-casecmp.c: New file.
30605         * modules/unicase/u32-casecmp: New file.
30606
30607         New module 'unicase/u16-casecmp'.
30608         * lib/unicase/u16-casecmp.c: New file.
30609         * modules/unicase/u16-casecmp: New file.
30610
30611         New module 'unicase/u8-casecmp'.
30612         * lib/unicase/u8-casecmp.c: New file.
30613         * lib/unicase/u-casecmp.h: New file.
30614         * modules/unicase/u8-casecmp: New file.
30615
30616         Tests for module 'unicase/u32-casefold'.
30617         * modules/unicase/u32-casefold-tests: New file.
30618         * tests/unicase/test-u32-casefold.c: New file.
30619
30620         Tests for module 'unicase/u16-casefold'.
30621         * modules/unicase/u16-casefold-tests: New file.
30622         * tests/unicase/test-u16-casefold.c: New file.
30623
30624         Tests for module 'unicase/u8-casefold'.
30625         * modules/unicase/u8-casefold-tests: New file.
30626         * tests/unicase/test-u8-casefold.c: New file.
30627
30628         New module 'unicase/u32-casefold'.
30629         * lib/unicase/u32-casefold.c: New file.
30630         * modules/unicase/u32-casefold: New file.
30631
30632         New module 'unicase/u16-casefold'.
30633         * lib/unicase/u16-casefold.c: New file.
30634         * modules/unicase/u16-casefold: New file.
30635
30636         New module 'unicase/u8-casefold'.
30637         * lib/unicase/u8-casefold.c: New file.
30638         * lib/unicase/u-casefold.h: New file.
30639         * modules/unicase/u8-casefold: New file.
30640
30641         New module 'unicase/tocasefold'.
30642         * lib/unicase/casefold.h: New file.
30643         * lib/unicase/tocasefold.c: New file.
30644         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30645         * modules/unicase/tocasefold: New file.
30646
30647         Tests for module 'unicase/u32-totitle'.
30648         * modules/unicase/u32-totitle-tests: New file.
30649         * tests/unicase/test-u32-totitle.c: New file.
30650
30651         Tests for module 'unicase/u16-totitle'.
30652         * modules/unicase/u16-totitle-tests: New file.
30653         * tests/unicase/test-u16-totitle.c: New file.
30654
30655         Tests for module 'unicase/u8-totitle'.
30656         * modules/unicase/u8-totitle-tests: New file.
30657         * tests/unicase/test-u8-totitle.c: New file.
30658
30659         New module 'unicase/u32-totitle'.
30660         * lib/unicase/u32-totitle.c: New file.
30661         * modules/unicase/u32-totitle: New file.
30662
30663         New module 'unicase/u16-totitle'.
30664         * lib/unicase/u16-totitle.c: New file.
30665         * modules/unicase/u16-totitle: New file.
30666
30667         New module 'unicase/u8-totitle'.
30668         * lib/unicase/u8-totitle.c: New file.
30669         * lib/unicase/u-totitle.h: New file.
30670         * modules/unicase/u8-totitle: New file.
30671
30672         Tests for module 'unicase/u32-tolower'.
30673         * modules/unicase/u32-tolower-tests: New file.
30674         * tests/unicase/test-u32-tolower.c: New file.
30675
30676         Tests for module 'unicase/u16-tolower'.
30677         * modules/unicase/u16-tolower-tests: New file.
30678         * tests/unicase/test-u16-tolower.c: New file.
30679
30680         Tests for module 'unicase/u8-tolower'.
30681         * modules/unicase/u8-tolower-tests: New file.
30682         * tests/unicase/test-u8-tolower.c: New file.
30683
30684         New module 'unicase/u32-tolower'.
30685         * lib/unicase/u32-tolower.c: New file.
30686         * modules/unicase/u32-tolower: New file.
30687
30688         New module 'unicase/u16-tolower'.
30689         * lib/unicase/u16-tolower.c: New file.
30690         * modules/unicase/u16-tolower: New file.
30691
30692         New module 'unicase/u8-tolower'.
30693         * lib/unicase/u8-tolower.c: New file.
30694         * modules/unicase/u8-tolower: New file.
30695
30696         Tests for module 'unicase/u32-toupper'.
30697         * modules/unicase/u32-toupper-tests: New file.
30698         * tests/unicase/test-u32-toupper.c: New file.
30699
30700         Tests for module 'unicase/u16-toupper'.
30701         * modules/unicase/u16-toupper-tests: New file.
30702         * tests/unicase/test-u16-toupper.c: New file.
30703
30704         Tests for module 'unicase/u8-toupper'.
30705         * modules/unicase/u8-toupper-tests: New file.
30706         * tests/unicase/test-u8-toupper.c: New file.
30707
30708         New module 'unicase/u32-toupper'.
30709         * lib/unicase/u32-toupper.c: New file.
30710         * modules/unicase/u32-toupper: New file.
30711
30712         New module 'unicase/u16-toupper'.
30713         * lib/unicase/u16-toupper.c: New file.
30714         * modules/unicase/u16-toupper: New file.
30715
30716         New module 'unicase/u8-toupper'.
30717         * lib/unicase/u8-toupper.c: New file.
30718         * modules/unicase/u8-toupper: New file.
30719
30720         New module 'unicase/u32-casemap'.
30721         * lib/unicase/u32-casemap.c: New file.
30722         * modules/unicase/u32-casemap: New file.
30723
30724         New module 'unicase/u16-casemap'.
30725         * lib/unicase/u16-casemap.c: New file.
30726         * modules/unicase/u16-casemap: New file.
30727
30728         New module 'unicase/u8-casemap'.
30729         * lib/unicase/unicasemap.h: New file.
30730         * lib/unicase/u8-casemap.c: New file.
30731         * lib/unicase/u-casemap.h: New file.
30732         * modules/unicase/u8-casemap: New file.
30733
30734         New module 'unicase/special-casing'.
30735         * lib/unicase/special-casing.h: New file.
30736         * lib/unicase/special-casing.c: New file.
30737         * lib/unicase/special-casing-table.gperf: New file, generated by
30738         gen-uni-tables.c.
30739         * modules/unicase/special-casing: New file.
30740
30741         Tests for module 'unicase/locale-language'.
30742         * modules/unicase/locale-language-tests: New file.
30743         * tests/unicase/test-locale-language.sh: New file.
30744         * tests/unicase/test-locale-language.c: New file.
30745
30746         New module 'unicase/locale-language'.
30747         * lib/unicase/locale-language.c: New file.
30748         * lib/unicase/locale-languages.gperf: New file.
30749         * modules/unicase/locale-language: New file.
30750
30751         Generate more tables for case conversion and case folding.
30752         * lib/gen-uni-tables.c (SCC_*): New enum items.
30753         (struct special_casing_rule): New type.
30754         (casing_rules, num_casing_rules, allocated_casing_rules): New
30755         variables.
30756         (add_casing_rule, fill_casing_rules): New functions.
30757         (struct casefold_rule): New type.
30758         (casefolding_rules, num_casefolding_rules,
30759         allocated_casefolding_rules): New variables.
30760         (fill_casefolding_rules): New function.
30761         (unicode_casefold): New variable.
30762         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30763         sort_casing_rules, output_casing_rules): New functions.
30764         (main): Accept to more arguments: SpecialCasing.txt and
30765         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30766         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30767         Output mapping for casefolding.
30768
30769         * lib/unicase.h: Include stdbool.h, uninorm.h.
30770         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30771         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30772         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30773         arguments.
30774         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30775         resultp arguments.
30776         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30777         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30778         resultp arguments.
30779         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30780         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30781         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30782         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30783         declarations.
30784         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30785
30786 2009-03-08  Bruno Haible  <bruno@clisp.org>
30787
30788         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30789         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30790         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30791         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30792
30793 2009-03-07  Bruno Haible  <bruno@clisp.org>
30794
30795         Adjust u*_normcmp, u*_normcoll API.
30796         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30797         u16_normcoll, u32_normcoll): Change failure conventions.
30798         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30799         errno and return -1.
30800         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30801
30802 2009-03-07  Bruno Haible  <bruno@clisp.org>
30803
30804         Tests for module 'uninorm/u32-normcoll'.
30805         * modules/uninorm/u32-normcoll-tests: New file.
30806         * tests/uninorm/test-u32-normcoll.c: New file.
30807
30808         Tests for module 'uninorm/u16-normcoll'.
30809         * modules/uninorm/u16-normcoll-tests: New file.
30810         * tests/uninorm/test-u16-normcoll.c: New file.
30811
30812         Tests for module 'uninorm/u8-normcoll'.
30813         * modules/uninorm/u8-normcoll-tests: New file.
30814         * tests/uninorm/test-u8-normcoll.c: New file.
30815
30816 2009-03-07  Bruno Haible  <bruno@clisp.org>
30817
30818         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30819         tests/uninorm/test-u32-normcmp.c.
30820         * tests/uninorm/test-u32-normcmp.c: Include it.
30821         (test_nonascii): New function, extracted from main. Add some more
30822         tests.
30823         (main): Invoke test_ascii and test_nonascii.
30824         * modules/uninorm/u32-normcmp-tests (Files): Add
30825         tests/uninorm/test-u32-normcmp.h.
30826         (Depends-on): Remove uninorm/u32-normcmp.
30827
30828         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30829         tests/uninorm/test-u16-normcmp.c.
30830         * tests/uninorm/test-u16-normcmp.c: Include it.
30831         (test_nonascii): New function, extracted from main. Add some more
30832         tests.
30833         (main): Invoke test_ascii and test_nonascii.
30834         * modules/uninorm/u16-normcmp-tests (Files): Add
30835         tests/uninorm/test-u16-normcmp.h.
30836         (Depends-on): Remove uninorm/u16-normcmp.
30837
30838         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30839         tests/uninorm/test-u8-normcmp.c.
30840         * tests/uninorm/test-u8-normcmp.c: Include it.
30841         (test_nonascii): New function, extracted from main. Add some more
30842         tests.
30843         (main): Invoke test_ascii and test_nonascii.
30844         * modules/uninorm/u8-normcmp-tests (Files): Add
30845         tests/uninorm/test-u8-normcmp.h.
30846         (Depends-on): Remove uninorm/u8-normcmp.
30847
30848 2009-03-07  Bruno Haible  <bruno@clisp.org>
30849
30850         New module 'uninorm/u32-normcoll'.
30851         * lib/uninorm/u32-normcoll.c: New file.
30852         * modules/uninorm/u32-normcoll: New file.
30853
30854         New module 'uninorm/u16-normcoll'.
30855         * lib/uninorm/u16-normcoll.c: New file.
30856         * modules/uninorm/u16-normcoll: New file.
30857
30858         New module 'uninorm/u8-normcoll'.
30859         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30860         declarations.
30861         * lib/uninorm/u8-normcoll.c: New file.
30862         * lib/uninorm/u-normcoll.h: New file.
30863         * modules/uninorm/u8-normcoll: New file.
30864
30865         New module 'uninorm/u32-normxfrm'.
30866         * lib/uninorm/u32-normxfrm.c: New file.
30867         * modules/uninorm/u32-normxfrm: New file.
30868
30869         New module 'uninorm/u16-normxfrm'.
30870         * lib/uninorm/u16-normxfrm.c: New file.
30871         * modules/uninorm/u16-normxfrm: New file.
30872
30873         New module 'uninorm/u8-normxfrm'.
30874         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30875         declarations.
30876         * lib/uninorm/u8-normxfrm.c: New file.
30877         * lib/uninorm/u-normxfrm.h: New file.
30878         * modules/uninorm/u8-normxfrm: New file.
30879
30880 2009-03-07  Bruno Haible  <bruno@clisp.org>
30881
30882         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30883         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30884         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30885
30886 2009-03-07  Bruno Haible  <bruno@clisp.org>
30887
30888         New module 'memxfrm'.
30889         * lib/memxfrm.h: New file.
30890         * lib/memxfrm.c: New file.
30891         * modules/memxfrm: New file.
30892
30893 2009-03-07  Bruno Haible  <bruno@clisp.org>
30894
30895         New module 'memcmp2'.
30896         * lib/memcmp2.h: New file.
30897         * lib/memcmp2.c: New file.
30898         * modules/memcmp2: New file.
30899
30900 2009-03-07  Bruno Haible  <bruno@clisp.org>
30901
30902         Tests for module 'uninorm/decomposing-form'.
30903         * modules/uninorm/decomposing-form-tests: New file.
30904         * tests/uninorm/test-decomposing-form.c: New file.
30905
30906         New module 'uninorm/decomposing-form'.
30907         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30908         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30909         Add 'decomposing_variant' field.
30910         * lib/uninorm/decomposing-form.c: New file.
30911         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30912         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30913         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30914         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30915         * modules/uninorm/decomposing-form: New file.
30916         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30917         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30918
30919 2009-03-07  Bruno Haible  <bruno@clisp.org>
30920
30921         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30922         strings.
30923
30924 2009-03-06  Bruno Haible  <bruno@clisp.org>
30925
30926         Tests for module 'uninorm/u32-normcmp'.
30927         * tests/uninorm/test-u32-normcmp.c: New file.
30928         * modules/uninorm/u32-normcmp-tests: New file.
30929
30930         Tests for module 'uninorm/u16-normcmp'.
30931         * tests/uninorm/test-u16-normcmp.c: New file.
30932         * modules/uninorm/u16-normcmp-tests: New file.
30933
30934         Tests for module 'uninorm/u8-normcmp'.
30935         * tests/uninorm/test-u8-normcmp.c: New file.
30936         * modules/uninorm/u8-normcmp-tests: New file.
30937
30938         New module 'uninorm/u32-normcmp'.
30939         * lib/uninorm/u32-normcmp.c: New file.
30940         * modules/uninorm/u32-normcmp: New file.
30941
30942         New module 'uninorm/u16-normcmp'.
30943         * lib/uninorm/u16-normcmp.c: New file.
30944         * modules/uninorm/u16-normcmp: New file.
30945
30946         New module 'uninorm/u8-normcmp'.
30947         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30948         declarations.
30949         * lib/uninorm/u8-normcmp.c: New file.
30950         * lib/uninorm/u-normcmp.h: New file.
30951         * modules/uninorm/u8-normcmp: New file.
30952
30953 2009-03-06  Bruno Haible  <bruno@clisp.org>
30954
30955         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30956         Reported by Eric Blake.
30957
30958 2009-03-06  Eric Blake  <ebb9@byu.net>
30959             Bruno Haible  <bruno@clisp.org>
30960
30961         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30962         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30963         condition.
30964         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30965         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30966         condition.
30967         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30968
30969 2009-03-06  Eric Blake  <ebb9@byu.net>
30970
30971         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30972         to avoid compiler warnings.
30973         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30974
30975 2009-03-05  Bruno Haible  <bruno@clisp.org>
30976
30977         * tests/test-ftell.c (main): Disable test beyond end of file on
30978         FreeMiNT.
30979         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30980
30981 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30982
30983         * lib/filevercmp.c: Move hidden files up in ordering.
30984         * tests/test-filevercmp.c: Add tests for hidden files.
30985
30986 2009-03-04  Bruno Haible  <bruno@clisp.org>
30987
30988         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30989         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30990         AM_CFLAGS.
30991         Reported by Simon Josefsson.
30992
30993 2009-03-03  Bruno Haible  <bruno@clisp.org>
30994
30995         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30996         Reported by Simon Josefsson.
30997
30998         * doc/ld-version-script.texi: Update node reference.
30999
31000 2009-03-03  Bruno Haible  <bruno@clisp.org>
31001
31002         * modules/visibility (License): Change to 'unlimited'.
31003         Suggested by Simon Josefsson.
31004
31005 2009-03-03  Jim Meyering  <meyering@redhat.com>
31006
31007         unlinkdir: cannot_unlink_dir may modify process state
31008         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31009         it's neither thread-safe nor appropriate for use in a library.
31010
31011 2009-03-03  Eric Blake  <ebb9@byu.net>
31012
31013         test-closein: silence test under Darwin
31014         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31015         care if it dies from EPIPE or EBADF.
31016
31017 2009-03-03  Bruno Haible  <bruno@clisp.org>
31018
31019         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31020         earlier.
31021         * doc/visibility.texi: Fix @node and @section.
31022
31023 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31024
31025         * doc/gnulib.texi: Link to sections for ld version script and
31026         visibility.
31027         * doc/visibility.texi: Add @node and @section.
31028         * modules/ld-version-script: New module.
31029         * m4/ld-version-script.m4: New file.
31030         * doc/ld-version-script.texi: New file.
31031
31032 2009-03-02  David Lutterkort  <lutter@redhat.com>
31033
31034         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31036
31037 2009-03-02  Bruno Haible  <bruno@clisp.org>
31038
31039         * doc/visibility.texi: Mention libtool's -export-symbols option.
31040
31041 2009-03-02  Jim Meyering  <meyering@redhat.com>
31042
31043         announce-gen: new option: --no-print-checksums
31044         * build-aux/announce-gen (usage): Describe it.
31045         (print_checksums): Print a newline here, not in the [*] footnote.
31046         (main): Honor it.
31047
31048 2009-03-01  Bruno Haible  <bruno@clisp.org>
31049
31050         Use socklen_t in the native Windows replacements prototypes.
31051         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31052         instead of 'int'.
31053         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31054         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31055         * modules/getsockopt (Depends-on): Add socklen.
31056         * modules/setsockopt (Depends-on): Add socklen.
31057
31058 2009-03-01  Bruno Haible  <bruno@clisp.org>
31059
31060         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31061         least 4.2.
31062
31063 2009-03-01  Eric Blake  <ebb9@byu.net>
31064             Bruno Haible  <bruno@clisp.org>
31065
31066         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31067         error messages.
31068         * lib/wait-process.c (wait_subprocess): Omit error message about
31069         deadly signal sent to the child of termsigp != NULL.
31070
31071 2009-03-01  Eric Blake  <ebb9@byu.net>
31072
31073         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31074
31075 2009-03-01  Bruno Haible  <bruno@clisp.org>
31076
31077         Avoid a gcc warning.
31078         * tests/test-sched.c (b): Make global.
31079         Reported by Eric Blake.
31080
31081 2009-01-19  Martin Lambers  <marlam@marlam.de>
31082
31083         Provide POSIX semantics for socket timeout options on W32.
31084         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31085         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31086         * modules/setsockopt: Depend on sys_time module for struct timeval.
31087         * modules/getsockopt: Depend on sys_time module for struct timeval.
31088
31089 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31090
31091         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31092         __USE_GNU, for consistency with netdb.in.h.
31093         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31094
31095 2009-03-01  Bruno Haible  <bruno@clisp.org>
31096
31097         More support for FreeMiNT.
31098         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31099         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31100
31101 2009-03-01  Bruno Haible  <bruno@clisp.org>
31102
31103         More support for FreeMiNT.
31104         * lib/fpurge.c (fpurge): Correct last commit.
31105         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31106
31107 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31108
31109         Fix unportable awk script in vc-list-files.
31110         * build-aux/vc-list-files: In the replacement awk script, use
31111         substr with a second argument of 1, not zero.
31112         Report by Simon Josefsson.
31113
31114 2009-02-28  Bruno Haible  <bruno@clisp.org>
31115
31116         More support for FreeMiNT.
31117         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31118         to FreeMiNT today.
31119         * lib/fwriting.c (fwriting): Likewise.
31120         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31121
31122 2009-02-28  Bruno Haible  <bruno@clisp.org>
31123
31124         * tests/test-freadseek.c (main): Disable test beyond end of file on
31125         FreeMiNT.
31126         * tests/test-ftello.c (main): Likewise.
31127         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31128
31129 2009-02-28  Bruno Haible  <bruno@clisp.org>
31130
31131         Add tentative support for FreeMiNT.
31132         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31133         * lib/fpurge.c (fpurge): Likewise.
31134         * lib/freadable.c (freadable): Likewise.
31135         * lib/freading.c (freading): Likewise.
31136         * lib/freadptr.c (freadptr): Likewise.
31137         * lib/freadseek.c (freadptrinc): Likewise.
31138         * lib/fseeko.c (rpl_fseeko): Likewise.
31139         * lib/fseterr.c (fseterr): Likewise.
31140         * lib/fwritable.c (fwritable): Likewise.
31141         * lib/fwriting.c (fwriting): Likewise.
31142         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31143         Hourihane.
31144         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31145
31146 2009-02-28  Bruno Haible  <bruno@clisp.org>
31147
31148         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31149         SIGCHLD.
31150         Reported by Jim Meyering.
31151
31152 2009-02-28  Bruno Haible  <bruno@clisp.org>
31153
31154         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31155         Mention the results of these tests on various platforms.
31156         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31157         order.
31158         * doc/posix-functions/printf.texi: Likewise.
31159         * doc/posix-functions/snprintf.texi: Likewise.
31160         * doc/posix-functions/sprintf.texi: Likewise.
31161         * doc/posix-functions/vfprintf.texi: Likewise.
31162         * doc/posix-functions/vprintf.texi: Likewise.
31163         * doc/posix-functions/vsnprintf.texi: Likewise.
31164         * doc/posix-functions/vsprintf.texi: Likewise.
31165         * doc/glibc-functions/obstack_printf.texi: Likewise.
31166         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31167
31168 2009-02-28  Bruno Haible  <bruno@clisp.org>
31169
31170         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31171         Reported by Loïc Minier <lool@dooz.org>.
31172
31173 2009-02-27  Bruno Haible  <bruno@clisp.org>
31174
31175         * gnulib-tool (func_import): Make the sed expression used to create the
31176         sed script for updating the .gitignore file POSIX compliant.
31177         Reported by Eric Blake.
31178
31179 2009-02-27  Bruno Haible  <bruno@clisp.org>
31180
31181         * gnulib-tool (sed): Don't alias as "sed --posix".
31182         Reported by Eric Blake.
31183
31184 2009-02-27  Bruno Haible  <bruno@clisp.org>
31185
31186         Avoid test link errors.
31187         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31188         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31189         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31190         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31191         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31192
31193 2009-02-27  Bruno Haible  <bruno@clisp.org>
31194
31195         Avoid spurious "(cached)" in configure output.
31196         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31197         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31198         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31199         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31200         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31201         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31202         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31203         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31204         Reported by Eric Blake.
31205
31206 2009-02-27  Eric Blake  <ebb9@byu.net>
31207
31208         printf: fix regression in previous patch
31209         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31210
31211 2009-02-27  Bruno Haible  <bruno@clisp.org>
31212
31213         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31214         value.
31215         * lib/stdint.in.h: Likewise.
31216         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31217
31218 2009-02-27  Eric Blake  <ebb9@byu.net>
31219
31220         doc: mention more functions added in cygwin 1.7.0
31221         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31222         addition.
31223         * doc/posix-functions/open_wmemstream.texi: Likewise.
31224         * doc/posix-functions/wcsnlen.texi: Likewise.
31225         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31226         * doc/posix-functions/wcstod.texi: Likewise.
31227         * doc/posix-functions/wcstof.texi: Likewise.
31228         * doc/posix-functions/wcstoimax.texi: Likewise.
31229         * doc/posix-functions/wcstok.texi: Likewise.
31230         * doc/posix-functions/wcstoumax.texi: Likewise.
31231
31232         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31233         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31234         * doc/posix-functions/fprintf.texi: Update.
31235         * doc/posix-functions/printf.texi: Update.
31236         * doc/posix-functions/snprintf.texi: Update.
31237         * doc/posix-functions/sprintf.texi: Update.
31238         * doc/posix-functions/vfprintf.texi: Update.
31239         * doc/posix-functions/vprintf.texi: Update.
31240         * doc/posix-functions/vsnprintf.texi: Update.
31241         * doc/posix-functions/vsprintf.texi: Update.
31242         * doc/glibc-functions/obstack_printf.texi: Update.
31243         * doc/glibc-functions/obstack_vprintf.texi: Update.
31244
31245 2009-02-26  Eric Blake  <ebb9@byu.net>
31246
31247         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31248         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31249         compilation bug by using runtime conversion.
31250         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31251         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31252         * modules/ceill-tests (Files): Use nan.h.
31253         * modules/floorl-tests (Files): Likewise.
31254         * modules/frexpl-tests (Files): Likewise.
31255         * modules/isnanl-tests (Files): Likewise.
31256         * modules/ldexpl-tests (Files): Likewise.
31257         * modules/roundl-tests (Files): Likewise.
31258         * modules/truncl-tests (Files): Likewise.
31259         * tests/test-ceill.c (main): Use a working NaN.
31260         * tests/test-floorl.c (main): Likewise.
31261         * tests/test-frexpl.c (main): Likewise.
31262         * tests/test-isnan.c (test_long_double): Likewise.
31263         * tests/test-isnanl.h (main): Likewise.
31264         * tests/test-ldexpl.h (main): Likewise.
31265         * tests/test-roundl.h (main): Likewise.
31266         * tests/test-truncl.h (main): Likewise.
31267         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31268
31269 2009-02-26  Eric Blake  <ebb9@byu.net>
31270             Bruno Haible  <bruno@clisp.org>
31271
31272         Work around a *printf bug with %ls on Solaris.
31273         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31274         precision is specified, sprintf stops converting the wide string
31275         argument when the number of bytes that have been produced by this
31276         conversion equals or exceeds the precision.
31277         * doc/posix-functions/fprintf.texi: Update.
31278         * doc/posix-functions/printf.texi: Update.
31279         * doc/posix-functions/snprintf.texi: Update.
31280         * doc/posix-functions/sprintf.texi: Update.
31281         * doc/posix-functions/vfprintf.texi: Update.
31282         * doc/posix-functions/vprintf.texi: Update.
31283         * doc/posix-functions/vsnprintf.texi: Update.
31284         * doc/posix-functions/vsprintf.texi: Update.
31285         * doc/glibc-functions/obstack_printf.texi: Update.
31286         * doc/glibc-functions/obstack_vprintf.texi: Update.
31287
31288 2009-02-26  Eric Blake  <ebb9@byu.net>
31289
31290         stdlib: favor compiler check of random.h
31291         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31292         to avoid an ObjC random.h installed by Swarm.
31293
31294 2009-02-26  Bruno Haible  <bruno@clisp.org>
31295
31296         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31297         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31298         Reported by Gary V. Vaughan <gary@gnu.org>.
31299
31300 2009-02-26  Bruno Haible  <bruno@clisp.org>
31301
31302         Fix *printf behaviour regarding the %ls directive.
31303         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31304         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31305         NEED_PRINTF_DIRECTIVE_LS.
31306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31307         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31309         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31310         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31311         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31312         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31314         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31317         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31318         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31320         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31321         * doc/posix-functions/fprintf.texi: Update.
31322         * doc/posix-functions/printf.texi: Update.
31323         * doc/posix-functions/snprintf.texi: Update.
31324         * doc/posix-functions/sprintf.texi: Update.
31325         * doc/posix-functions/vfprintf.texi: Update.
31326         * doc/posix-functions/vprintf.texi: Update.
31327         * doc/posix-functions/vsnprintf.texi: Update.
31328         * doc/posix-functions/vsprintf.texi: Update.
31329         * doc/glibc-functions/obstack_printf.texi: Update.
31330         * doc/glibc-functions/obstack_vprintf.texi: Update.
31331         Reported by Eric Blake.
31332
31333 2009-02-25  Bruno Haible  <bruno@clisp.org>
31334
31335         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31336         with known value.
31337         Reported by Gary V. Vaughan <gary@gnu.org>.
31338
31339 2009-02-25  Bruno Haible  <bruno@clisp.org>
31340
31341         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31342         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31343         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31344         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31345         Reported by Gary V. Vaughan <gary@gnu.org>.
31346
31347 2009-02-25  Bruno Haible  <bruno@clisp.org>
31348
31349         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31350         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31351         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31352         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31353         Reported by Gary V. Vaughan <gary@gnu.org>.
31354
31355 2009-02-25  Eric Blake  <ebb9@byu.net>
31356
31357         tests: skip fseek/ftell tests if ungetc is broken
31358         * m4/ungetc.m4: New file.
31359         * modules/fseek-tests: Split test, so ungetc dependency is
31360         separate from rest of test.
31361         * modules/fseeko-tests: Likewise.
31362         * modules/ftell-tests: Likewise.
31363         * modules/ftello-tests: Likewise.
31364         * tests/test-fseek.c (main): Isolate ungetc dependency.
31365         * tests/test-fseeko.c (main): Likewise.
31366         * tests/test-ftell.c (main): Likewise.
31367         * tests/test-ftello.c (main): Likewise.
31368         * tests/test-fseek2.sh: New file.
31369         * tests/test-fseeko2.sh: Likewise.
31370         * tests/test-ftell2.sh: Likewise.
31371         * tests/test-ftello2.sh: Likewise.
31372
31373 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31374
31375         test-getaddrinfo: fix usage of skip return code 77
31376         * tests/test-gettaddrinfo.c: Return skip code 77 only
31377         for first occurance of skip (4x77 is not 77)
31378
31379 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31380
31381         strtod: avoid C99 decl-after-statement
31382         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31383
31384 2009-02-24  Eric Blake  <ebb9@byu.net>
31385
31386         strtod: detect HP-UX 11.31 bug
31387         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31388         Reported by Gary V. Vaughan.
31389
31390 2009-02-23  Bruno Haible  <bruno@clisp.org>
31391
31392         Fix invalid read past end of memory block.
31393         * lib/vasnprintf.c (DCHAR_SET): Define.
31394         (local_wcslen): Define only when needed.
31395         (local_strnlen, local_wcsnlen): New functions.
31396         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31397         directives that involve a conversion ourselves.
31398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31399         wcsnlen, mbrtowc, wcrtomb.
31400         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31401         * tests/test-vasprintf-posix.c (test_function): Likewise.
31402         * tests/test-snprintf-posix.h (test_function): Likewise.
31403         * tests/test-sprintf-posix.h (test_function): Likewise.
31404         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31405
31406 2009-02-22  Bruno Haible  <bruno@clisp.org>
31407
31408         Implement new clarified decomposition of Hangul syllables.
31409         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31410         of type LTV, return only a pairwise decomposition.
31411         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31412         Likewise.
31413         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31414         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31415         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31416
31417 2009-02-22  Bruno Haible  <bruno@clisp.org>
31418
31419         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31420         zero-length results and shrink excess allocated memory.
31421         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31422         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31423         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31424         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31425         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31426         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31427         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31428         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31429         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31430         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31431         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31432         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31433
31434 2009-02-21  Bruno Haible  <bruno@clisp.org>
31435
31436         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31437         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31438         spaces after a period. Put a space between a macro name and its
31439         argument list. Trivial rewordings.
31440         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31441         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31442         (main): Return 0 explicitly.
31443
31444 2009-02-21  Bruno Haible  <bruno@clisp.org>
31445
31446         Tests for module 'uninorm/filter'.
31447         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31448         * modules/uninorm/filter-tests: New file.
31449
31450         New module 'uninorm/filter'.
31451         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31452         uninorm_filter_flush, uninorm_filter_free): New declarations.
31453         * lib/uninorm/uninorm-filter.c: New file.
31454         * modules/uninorm/filter: New file.
31455
31456 2009-02-21  Bruno Haible  <bruno@clisp.org>
31457
31458         Tests for module 'uninorm/nfkc'.
31459         * tests/uninorm/test-nfkc.c: New file.
31460         * tests/uninorm/test-u8-nfkc.c: New file.
31461         * tests/uninorm/test-u16-nfkc.c: New file.
31462         * tests/uninorm/test-u32-nfkc.c: New file.
31463         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31464         * tests/uninorm/test-u32-nfkc-big.c: New file.
31465         * modules/uninorm/nfkc-tests: New file.
31466
31467         New module 'uninorm/nfkc'.
31468         * lib/uninorm/nfkc.c: New file.
31469         * modules/uninorm/nfkc: New file.
31470
31471         Tests for module 'uninorm/nfkd'.
31472         * tests/uninorm/test-nfkd.c: New file.
31473         * tests/uninorm/test-u8-nfkd.c: New file.
31474         * tests/uninorm/test-u16-nfkd.c: New file.
31475         * tests/uninorm/test-u32-nfkd.c: New file.
31476         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31477         * tests/uninorm/test-u32-nfkd-big.c: New file.
31478         * modules/uninorm/nfkd-tests: New file.
31479
31480         New module 'uninorm/nfkd'.
31481         * lib/uninorm/nfkd.c: New file.
31482         * modules/uninorm/nfkd: New file.
31483
31484         Tests for module 'uninorm/nfc'.
31485         * tests/uninorm/test-nfc.c: New file.
31486         * tests/uninorm/test-u8-nfc.c: New file.
31487         * tests/uninorm/test-u16-nfc.c: New file.
31488         * tests/uninorm/test-u32-nfc.c: New file.
31489         * tests/uninorm/test-u32-nfc-big.sh: New file.
31490         * tests/uninorm/test-u32-nfc-big.c: New file.
31491         * modules/uninorm/nfc-tests: New file.
31492
31493         New module 'uninorm/nfc'.
31494         * lib/uninorm/nfc.c: New file.
31495         * modules/uninorm/nfc: New file.
31496
31497         Tests for module 'uninorm/nfd'.
31498         * tests/uninorm/test-nfd.c: New file.
31499         * tests/uninorm/test-u8-nfd.c: New file.
31500         * tests/uninorm/test-u16-nfd.c: New file.
31501         * tests/uninorm/test-u32-nfd.c: New file.
31502         * tests/uninorm/test-u32-nfd-big.sh: New file.
31503         * tests/uninorm/test-u32-nfd-big.c: New file.
31504         * tests/uninorm/test-u32-normalize-big.h: New file.
31505         * tests/uninorm/test-u32-normalize-big.c: New file.
31506         * tests/uninorm/NormalizationTest.txt: New file, created from
31507         Unicode 5.1.0 NormalizationTest.txt.
31508         * modules/uninorm/nfd-tests: New file.
31509
31510         New module 'uninorm/nfd'.
31511         * lib/uninorm/nfd.c: New file.
31512         * modules/uninorm/nfd: New file.
31513
31514         New module 'uninorm/u32-normalize'.
31515         * lib/uninorm/u32-normalize.c: New file.
31516         * modules/uninorm/u32-normalize: New file.
31517
31518         New module 'uninorm/u16-normalize'.
31519         * lib/uninorm/u16-normalize.c: New file.
31520         * modules/uninorm/u16-normalize: New file.
31521
31522         New module 'uninorm/u8-normalize'.
31523         * lib/uninorm/u8-normalize.c: New file.
31524         * lib/uninorm/normalize-internal.h: New file.
31525         * lib/uninorm/u-normalize-internal.h: New file.
31526         * modules/uninorm/u8-normalize: New file.
31527
31528         New module 'uninorm/decompose-internal'.
31529         * lib/uninorm/decompose-internal.c: New file.
31530         * modules/uninorm/decompose-internal: New file.
31531
31532         Tests for module 'uninorm/composition'.
31533         * tests/uninorm/test-composition.c: New file.
31534         * modules/uninorm/composition-tests: New file.
31535
31536         New module 'uninorm/composition'.
31537         * lib/uninorm/composition.c: New file.
31538         * lib/uninorm/composition-table.gperf: New file, generated by
31539         gen-uni-tables.
31540         * modules/uninorm/composition: New file.
31541
31542         Tests for module 'uninorm/compat-decomposition'.
31543         * tests/uninorm/test-compat-decomposition.c: New file.
31544         * modules/uninorm/compat-decomposition-tests: New file.
31545
31546         New module 'uninorm/compat-decomposition'.
31547         * lib/uninorm/decompose-internal.h: New file.
31548         * lib/uninorm/compat-decomposition.c: New file.
31549         * modules/uninorm/compat-decomposition: New file.
31550
31551         Tests for module 'uninorm/canonical-decomposition'.
31552         * tests/uninorm/test-canonical-decomposition.c: New file.
31553         * modules/uninorm/canonical-decomposition-tests: New file.
31554
31555         New module 'uninorm/canonical-decomposition'.
31556         * lib/uninorm/canonical-decomposition.c: New file.
31557         * modules/uninorm/canonical-decomposition: New file.
31558
31559         Tests for module 'uninorm/decomposition'.
31560         * tests/uninorm/test-decomposition.c: New file.
31561         * modules/uninorm/decomposition-tests: New file.
31562
31563         New module 'uninorm/decomposition'.
31564         * lib/uninorm/decomposition.c: New file.
31565         * modules/uninorm/decomposition: New file.
31566
31567         New module 'uninorm/decomposition-table'.
31568         * lib/uninorm/decomposition-table.h: New file.
31569         * lib/uninorm/decomposition-table.c: New file.
31570         * lib/uninorm/decomposition-table1.h: New file, generated by
31571         gen-uni-tables.
31572         * lib/uninorm/decomposition-table2.h: New file, generated by
31573         gen-uni-tables.
31574         * modules/uninorm/decomposition-table: New file.
31575
31576         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31577         (UC_DECOMP_*): New enumeration items.
31578         (get_decomposition): New function.
31579         (struct decomp_table): New type.
31580         (output_decomposition, output_decomposition_tables): New functions.
31581         (unicode_composition_exclusions): New variable.
31582         (fill_composition_exclusions, debug_output_composition_tables): New
31583         functions.
31584         (main): Accept one more argument. Invoke fill_composition_exclusions.
31585         Output decomposition and composition tables.
31586
31587         New module 'uninorm/base'.
31588         * lib/uninorm.h: New file.
31589         * lib/unictype.h: Update comment.
31590         * modules/uninorm/base: New file.
31591
31592 2009-02-21  David Lutterkort  <lutter@redhat.com>
31593
31594         Tests for module 'safe-alloc'.
31595         * tests/test-safe-alloc.c: New file.
31596         * modules/safe-alloc-tests: New file.
31597
31598         New module 'safe-alloc'.
31599         * lib/safe-alloc.h: New file.
31600         * lib/safe-alloc.c: New file.
31601         * m4/safe-alloc.m4: New file.
31602         * modules/safe-alloc: New file.
31603         * doc/safe-alloc.texi: New file.
31604         * doc/gnulib.texi: Include it.
31605         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31606         safe-alloc.
31607
31608 2009-02-18  Bruno Haible  <bruno@clisp.org>
31609
31610         Fix link error on non-glibc systems.
31611         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31612         variable.
31613         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31614
31615 2009-02-18  Jim Meyering  <meyering@redhat.com>
31616
31617         fts: avoid used-uninitialized error due to recent change
31618         * lib/fts.c (fts_read): Guard uses of the new member,
31619         parent->fts_n_dirs_remaining, since it's not relevant for
31620         the parent of a directory specified on the command-line.
31621
31622 2009-02-17  James Youngman  <jay@gnu.org>
31623             Bruno Haible  <bruno@clisp.org>
31624
31625         * m4/include_next.m4: Reformulate comment.
31626
31627 2009-02-16  Jim Meyering  <meyering@redhat.com>
31628
31629         fts: add #if guards so that the fts_lgpl module still builds
31630         * lib/fts.c: Guard just-added hash-table-using parts with
31631         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31632         Reported by Simon Josefsson.
31633
31634 2009-02-15  Bruno Haible  <bruno@clisp.org>
31635
31636         * modules/array-mergesort-tests: New file.
31637         * tests/test-array-mergesort.c: New file.
31638
31639         New module 'array-mergesort'.
31640         * modules/array-mergesort: New file.
31641         * lib/array-mergesort.h: New file.
31642
31643 2009-02-15  Bruno Haible  <bruno@clisp.org>
31644
31645         Fix 2009-02-07 commit.
31646         * lib/gen-uni-tables.c (output_predicate, output_category,
31647         output_combclass, output_bidi_category, output_decimal_digit,
31648         output_digit, output_numeric, output_mirror, output_scripts,
31649         output_ident_category, output_simple_mapping): Fix format directives.
31650         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31651
31652 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31653
31654         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31655         fixes are available from IBM.
31656
31657 2009-02-13  Jim Meyering  <meyering@redhat.com>
31658
31659         fts: arrange not to stat non-directories in more cases
31660         This makes GNU find (when it doesn't need to stat each file)
31661         *much* more efficient at traversing reiserfs file systems.
31662         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31663         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31664         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31665         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31666         (leaf_optimization_applies): New function.
31667         (LCO_hash, LCO_compare): New helper functions.
31668         (link_count_optimize_ok): New function.
31669         (fts_stat): Initialize new member (if dir).
31670         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31671         we've just stat'ed a directory.  Skip the stat call when possible.
31672         ---
31673         Note this AFS-related exchange:
31674         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31675         and note find's pioctl call in find/fstype.c.
31676         But that is necessary only if you want to enable the
31677         optimization for AFS, and for now, I don't.
31678
31679         fts: move a function definition "up" (no semantic change)
31680         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31681         "up" to precede upcoming use of a related function.
31682
31683 2009-02-11  Jim Meyering  <meyering@redhat.com>
31684
31685         fts: correct internal computation of nlinks (optimization-related)
31686         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31687         whether the current entry is a directory, so don't test it.
31688
31689 2009-02-10  Bruno Haible  <bruno@clisp.org>
31690
31691         Tests for module 'uniwbrk/ulc-wordbreaks'.
31692         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31693         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31694         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31695
31696         Tests for module 'uniwbrk/u32-wordbreaks'.
31697         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31698         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31699
31700         Tests for module 'uniwbrk/u16-wordbreaks'.
31701         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31702         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31703
31704         Tests for module 'uniwbrk/u8-wordbreaks'.
31705         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31706         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31707
31708 2009-02-10  Bruno Haible  <bruno@clisp.org>
31709
31710         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31711         property.
31712         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31713         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31714         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31715
31716 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31717
31718         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31719         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31720
31721 2009-02-10  Bruno Haible  <bruno@clisp.org>
31722
31723         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31724         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31725         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31726         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31727         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31728         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31729
31730 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31731
31732         * lib/sockets.h (gl_fd_to_handle): New function.
31733
31734         * tests/test-sockets.c: Call gl_fd_to_handle.
31735
31736 2009-02-09  Bruno Haible  <bruno@clisp.org>
31737
31738         * doc/havelib.texi: Document the conventions on bi-arch systems.
31739
31740 2009-02-08  Bruno Haible  <bruno@clisp.org>
31741
31742         Document the AC_LIB_LINKFLAGS macro.
31743         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31744         * doc/gnulib.texi: Include it.
31745
31746 2009-02-08  Bruno Haible  <bruno@clisp.org>
31747
31748         Fix wrong order of sections, compared to TOC.
31749         * doc/gnulib.texi: Include relocatable-maint.texi after the
31750         "Regular expressions" node, not before.
31751
31752 2009-02-08  Bruno Haible  <bruno@clisp.org>
31753
31754         Tests for module 'unicase/totitle'.
31755         * modules/unicase/totitle-tests: New file.
31756
31757         Tests for module 'unicase/tolower'.
31758         * modules/unicase/tolower-tests: New file.
31759
31760         Tests for module 'unicase/toupper'.
31761         * modules/unicase/toupper-tests: New file.
31762         * tests/unicase/test-mapping-part1.h: New file.
31763         * tests/unicase/test-mapping-part2.h: New file.
31764
31765         New module 'unicase/totitle'.
31766         * modules/unicase/totitle: New file.
31767         * lib/unicase/totitle.c: New file.
31768
31769         New module 'unicase/tolower'.
31770         * modules/unicase/tolower: New file.
31771         * lib/unicase/tolower.c: New file.
31772
31773         New module 'unicase/toupper'.
31774         * modules/unicase/toupper: New file.
31775         * lib/unicase/toupper.c: New file.
31776         * lib/unicase/simple-mapping.h: New file.
31777
31778         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31779         (mapping_table): New structure.
31780         (output_simple_mapping): New function.
31781         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31782         * modules/gen-uni-tables (Description): Update.
31783         * lib/unicase/toupper.h: New file, automatically generated by
31784         gen-uni-tables.
31785         * lib/unicase/tolower.h: New file, automatically generated by
31786         gen-uni-tables.
31787         * lib/unicase/totitle.h: New file, automatically generated by
31788         gen-uni-tables.
31789         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31790         gen-uni-tables.
31791         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31792         gen-uni-tables.
31793         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31794         gen-uni-tables.
31795
31796         New module 'unicase/base'.
31797         * modules/unicase/base: New file.
31798         * lib/unicase.h: New file.
31799
31800 2009-02-08  Bruno Haible  <bruno@clisp.org>
31801
31802         New module 'uniwbrk/ulc-wordbreaks'.
31803         * modules/uniwbrk/ulc-wordbreaks: New file.
31804         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31805
31806         New module 'uniwbrk/u32-wordbreaks'.
31807         * modules/uniwbrk/u32-wordbreaks: New file.
31808         * lib/uniwbrk/u32-wordbreaks.c: New file.
31809
31810         New module 'uniwbrk/u16-wordbreaks'.
31811         * modules/uniwbrk/u16-wordbreaks: New file.
31812         * lib/uniwbrk/u16-wordbreaks.c: New file.
31813
31814         New module 'uniwbrk/u8-wordbreaks'.
31815         * modules/uniwbrk/u8-wordbreaks: New file.
31816         * lib/uniwbrk/u8-wordbreaks.c: New file.
31817         * lib/uniwbrk/u-wordbreaks.h: New file.
31818
31819         New module 'uniwbrk/table'.
31820         * modules/uniwbrk/table: New file.
31821         * lib/uniwbrk/wbrktable.h: New file.
31822         * lib/uniwbrk/wbrktable.c: New file.
31823
31824         New module 'uniwbrk/wordbreak-property'.
31825         * modules/uniwbrk/wordbreak-property: New file.
31826         * lib/uniwbrk/wordbreak-property.c: New file.
31827
31828         * lib/gen-uni-tables.c (WBP_*): New enum items.
31829         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31830         (unicode_org_wbp): New variable.
31831         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31832         New functions.
31833         (wbp_table): New structure.
31834         (output_wbp, output_wbrk_tables): New functions.
31835         (main): Accept additional argument. Invoke fill_org_wbp,
31836         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31837         output_wbrk_tables.
31838         * modules/gen-uni-tables (Description): Update.
31839         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31840         gen-uni-tables.
31841
31842         New module 'uniwbrk/base'.
31843         * modules/uniwbrk/base: New file.
31844         * lib/uniwbrk.h: New file.
31845
31846 2009-02-08  Bruno Haible  <bruno@clisp.org>
31847
31848         Update to Unicode 5.1.0.
31849         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31850         U+2185..U+2188.
31851         (is_property_default_ignorable_code_point): Don't include characters
31852         of category Cc or Cs and not-a-characters.
31853         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31854         U+0D79, U+109E, U+109F, U+A60C.
31855         * lib/unictype/bidi_of.h: Regenerated.
31856         * lib/unictype/blocks.h: Regenerated.
31857         * lib/unictype/categ_C.h: Regenerated.
31858         * lib/unictype/categ_Cf.h: Regenerated.
31859         * lib/unictype/categ_Cn.h: Regenerated.
31860         * lib/unictype/categ_L.h: Regenerated.
31861         * lib/unictype/categ_Ll.h: Regenerated.
31862         * lib/unictype/categ_Lm.h: Regenerated.
31863         * lib/unictype/categ_Lo.h: Regenerated.
31864         * lib/unictype/categ_Lu.h: Regenerated.
31865         * lib/unictype/categ_M.h: Regenerated.
31866         * lib/unictype/categ_Mc.h: Regenerated.
31867         * lib/unictype/categ_Me.h: Regenerated.
31868         * lib/unictype/categ_Mn.h: Regenerated.
31869         * lib/unictype/categ_N.h: Regenerated.
31870         * lib/unictype/categ_Nd.h: Regenerated.
31871         * lib/unictype/categ_Nl.h: Regenerated.
31872         * lib/unictype/categ_No.h: Regenerated.
31873         * lib/unictype/categ_P.h: Regenerated.
31874         * lib/unictype/categ_Pd.h: Regenerated.
31875         * lib/unictype/categ_Pe.h: Regenerated.
31876         * lib/unictype/categ_Pf.h: Regenerated.
31877         * lib/unictype/categ_Pi.h: Regenerated.
31878         * lib/unictype/categ_Po.h: Regenerated.
31879         * lib/unictype/categ_Ps.h: Regenerated.
31880         * lib/unictype/categ_S.h: Regenerated.
31881         * lib/unictype/categ_Sk.h: Regenerated.
31882         * lib/unictype/categ_Sm.h: Regenerated.
31883         * lib/unictype/categ_So.h: Regenerated.
31884         * lib/unictype/categ_of.h: Regenerated.
31885         * lib/unictype/combining.h: Regenerated.
31886         * lib/unictype/ctype_alnum.h: Regenerated.
31887         * lib/unictype/ctype_alpha.h: Regenerated.
31888         * lib/unictype/ctype_graph.h: Regenerated.
31889         * lib/unictype/ctype_lower.h: Regenerated.
31890         * lib/unictype/ctype_print.h: Regenerated.
31891         * lib/unictype/ctype_punct.h: Regenerated.
31892         * lib/unictype/ctype_upper.h: Regenerated.
31893         * lib/unictype/decdigit.h: Regenerated.
31894         * lib/unictype/digit.h: Regenerated.
31895         * lib/unictype/mirror.h: Regenerated.
31896         * lib/unictype/numeric.h: Regenerated.
31897         * lib/unictype/pr_alphabetic.h: Regenerated.
31898         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31899         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31900         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31901         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31902         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31903         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31904         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31905         * lib/unictype/pr_combining.h: Regenerated.
31906         * lib/unictype/pr_dash.h: Regenerated.
31907         * lib/unictype/pr_decimal_digit.h: Regenerated.
31908         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31909         * lib/unictype/pr_deprecated.h: Regenerated.
31910         * lib/unictype/pr_diacritic.h: Regenerated.
31911         * lib/unictype/pr_extender.h: Regenerated.
31912         * lib/unictype/pr_format_control.h: Regenerated.
31913         * lib/unictype/pr_grapheme_base.h: Regenerated.
31914         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31915         * lib/unictype/pr_grapheme_link.h: Regenerated.
31916         * lib/unictype/pr_id_continue.h: Regenerated.
31917         * lib/unictype/pr_id_start.h: Regenerated.
31918         * lib/unictype/pr_ideographic.h: Regenerated.
31919         * lib/unictype/pr_ignorable_control.h: Regenerated.
31920         * lib/unictype/pr_lowercase.h: Regenerated.
31921         * lib/unictype/pr_math.h: Regenerated.
31922         * lib/unictype/pr_numeric.h: Regenerated.
31923         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31924         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31925         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31926         * lib/unictype/pr_other_id_continue.h: Regenerated.
31927         * lib/unictype/pr_other_lowercase.h: Regenerated.
31928         * lib/unictype/pr_other_math.h: Regenerated.
31929         * lib/unictype/pr_punctuation.h: Regenerated.
31930         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31931         * lib/unictype/pr_soft_dotted.h: Regenerated.
31932         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31933         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31934         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31935         * lib/unictype/pr_uppercase.h: Regenerated.
31936         * lib/unictype/pr_xid_continue.h: Regenerated.
31937         * lib/unictype/pr_xid_start.h: Regenerated.
31938         * lib/unictype/pr_zero_width.h: Regenerated.
31939         * lib/unictype/scripts.h: Regenerated.
31940         * lib/unictype/scripts_byname.gperf: Regenerated.
31941         * lib/unictype/sy_java_ident.h: Regenerated.
31942         * lib/unilbrk/lbrkprop1.h: Regenerated.
31943         * lib/unilbrk/lbrkprop2.h: Regenerated.
31944         * tests/unictype/test-categ_C.c: Regenerated.
31945         * tests/unictype/test-categ_Cf.c: Regenerated.
31946         * tests/unictype/test-categ_Cn.c: Regenerated.
31947         * tests/unictype/test-categ_L.c: Regenerated.
31948         * tests/unictype/test-categ_Ll.c: Regenerated.
31949         * tests/unictype/test-categ_Lm.c: Regenerated.
31950         * tests/unictype/test-categ_Lo.c: Regenerated.
31951         * tests/unictype/test-categ_Lu.c: Regenerated.
31952         * tests/unictype/test-categ_M.c: Regenerated.
31953         * tests/unictype/test-categ_Mc.c: Regenerated.
31954         * tests/unictype/test-categ_Me.c: Regenerated.
31955         * tests/unictype/test-categ_Mn.c: Regenerated.
31956         * tests/unictype/test-categ_N.c: Regenerated.
31957         * tests/unictype/test-categ_Nd.c: Regenerated.
31958         * tests/unictype/test-categ_Nl.c: Regenerated.
31959         * tests/unictype/test-categ_No.c: Regenerated.
31960         * tests/unictype/test-categ_P.c: Regenerated.
31961         * tests/unictype/test-categ_Pd.c: Regenerated.
31962         * tests/unictype/test-categ_Pe.c: Regenerated.
31963         * tests/unictype/test-categ_Pf.c: Regenerated.
31964         * tests/unictype/test-categ_Pi.c: Regenerated.
31965         * tests/unictype/test-categ_Po.c: Regenerated.
31966         * tests/unictype/test-categ_Ps.c: Regenerated.
31967         * tests/unictype/test-categ_S.c: Regenerated.
31968         * tests/unictype/test-categ_Sk.c: Regenerated.
31969         * tests/unictype/test-categ_Sm.c: Regenerated.
31970         * tests/unictype/test-categ_So.c: Regenerated.
31971         * tests/unictype/test-ctype_alnum.c: Regenerated.
31972         * tests/unictype/test-ctype_alpha.c: Regenerated.
31973         * tests/unictype/test-ctype_graph.c: Regenerated.
31974         * tests/unictype/test-ctype_lower.c: Regenerated.
31975         * tests/unictype/test-ctype_print.c: Regenerated.
31976         * tests/unictype/test-ctype_punct.c: Regenerated.
31977         * tests/unictype/test-ctype_upper.c: Regenerated.
31978         * tests/unictype/test-decdigit.h: Regenerated.
31979         * tests/unictype/test-digit.h: Regenerated.
31980         * tests/unictype/test-numeric.h: Regenerated.
31981         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31982         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31983         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31984         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31985         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31986         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31987         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31988         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31989         * tests/unictype/test-pr_combining.c: Regenerated.
31990         * tests/unictype/test-pr_dash.c: Regenerated.
31991         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31992         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31993         * tests/unictype/test-pr_deprecated.c: Regenerated.
31994         * tests/unictype/test-pr_diacritic.c: Regenerated.
31995         * tests/unictype/test-pr_extender.c: Regenerated.
31996         * tests/unictype/test-pr_format_control.c: Regenerated.
31997         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31998         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31999         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32000         * tests/unictype/test-pr_id_continue.c: Regenerated.
32001         * tests/unictype/test-pr_id_start.c: Regenerated.
32002         * tests/unictype/test-pr_ideographic.c: Regenerated.
32003         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32004         * tests/unictype/test-pr_lowercase.c: Regenerated.
32005         * tests/unictype/test-pr_math.c: Regenerated.
32006         * tests/unictype/test-pr_numeric.c: Regenerated.
32007         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32008         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32009         Regenerated.
32010         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32011         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32012         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32013         * tests/unictype/test-pr_other_math.c: Regenerated.
32014         * tests/unictype/test-pr_punctuation.c: Regenerated.
32015         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32016         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32017         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32018         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32019         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32020         * tests/unictype/test-pr_uppercase.c: Regenerated.
32021         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32022         * tests/unictype/test-pr_xid_start.c: Regenerated.
32023         * tests/unictype/test-pr_zero_width.c: Regenerated.
32024
32025         Update to Unicode 5.1.0.
32026         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32027         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32028         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32029         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32030         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32031         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32032         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32033         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32034         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32035         (nonspacing_table_ind): Update.
32036         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32037
32038         Update to Unicode 5.1.0.
32039         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32040         code transform.
32041         * lib/uniname/uniname.c (unicode_character_name,
32042         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32043         * lib/uniname/uninames.h: Regenerated.
32044         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32045
32046 2009-02-07  Bruno Haible  <bruno@clisp.org>
32047
32048         Merge gen-ctype and gen-lbrk into a single program.
32049         * lib/gen-uni-tables.c: New file, incorporating
32050         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32051         Add directory prefixes to the names of the generated files.
32052         * lib/unictype/gen-ctype.c: Remove file.
32053         * lib/unilbrk/gen-lbrk.c: Remove file.
32054         * modules/gen-uni-tables: New file.
32055         * modules/unictype/gen-ctype: Remove file.
32056         * modules/unilbrk/gen-lbrk: Remove file.
32057
32058 2009-02-07  Bruno Haible  <bruno@clisp.org>
32059
32060         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32061
32062         New module 'unistr/u32-strcoll'.
32063         * modules/unistr/u32-strcoll: New file.
32064         * lib/unistr/u32-strcoll.c: New file.
32065
32066         New module 'unistr/u16-strcoll'.
32067         * modules/unistr/u16-strcoll: New file.
32068         * lib/unistr/u16-strcoll.c: New file.
32069
32070         New module 'unistr/u8-strcoll'.
32071         * modules/unistr/u8-strcoll: New file.
32072         * lib/unistr/u8-strcoll.c: New file.
32073         * lib/unistr/u-strcoll.h: New file.
32074
32075 2009-02-07  Bruno Haible  <bruno@clisp.org>
32076
32077         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32078         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32079         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32080         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32081         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32082         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32083
32084 2009-02-07  Bruno Haible  <bruno@clisp.org>
32085
32086         Make 64-bit clean.
32087         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32088         output_combclass, output_bidi_category, output_decimal_digit,
32089         output_digit, output_numeric, output_mirror, output_scripts,
32090         output_ident_category): Use proper width specifier in format strings.
32091
32092 2009-02-07  Bruno Haible  <bruno@clisp.org>
32093
32094         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32095         failure behaviour.
32096
32097 2009-02-07  Jim Meyering  <meyering@redhat.com>
32098
32099         regex: avoid compilation failure with upcoming gcc-4.4
32100         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32101         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32102         "... error: integer overflow in preprocessor expression".
32103
32104 2009-02-05  Ben Pfaff  <blp@gnu.org>
32105
32106         Fix link errors on Windows when close module is used.
32107         * modules/close: Add $(LIB_CLOSE) to Link section.
32108         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32109         $(LIB_CLOSE) on Windows.
32110
32111 2009-02-05  Jim Meyering  <meyering@redhat.com>
32112
32113         still avoid unused-parameter warnings, but do it cleanly
32114         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32115         (get_fs_usage): Cast to void instead.
32116         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32117         (dev_from_mount_options, read_file_system_list): Cast to void.
32118         Prompted by Bruno Haible.
32119
32120 2009-02-04  Jim Meyering  <meyering@redhat.com>
32121
32122         fsusage.c: correct copyright year
32123         * lib/fsusage.c: Reflect year in which the change is pushed into
32124
32125         avoid misc. warnings
32126         * lib/fsusage.c (UNUSED_PARAM): Define.
32127         (get_fs_usage): Mark parameter "disk" as unused.
32128         * lib/getugroups.c (getgrent): Use "void" in prototype.
32129         * lib/mountlist.c: Mark unused parameters.
32130         (read_file_system_list): Declare a local with "const".
32131         * lib/nanosleep.c (getnow): Declare static.
32132         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32133
32134         dirfd: set errno upon failure
32135         * lib/dirfd.c: Include <errno.h>.
32136         Set errno to ENOTSUP when returning -1.
32137         * modules/dirfd (Depends-on): Add errno.
32138         Suggested by John Kodis <kodis@comcast.net>.
32139
32140 2009-02-01  Bruno Haible  <bruno@clisp.org>
32141
32142         Don't assume sizeof (long) >= sizeof (void *).
32143         * lib/memcmp.c: Include stdint.h.
32144         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32145         srcp2 to 'const byte *'.
32146         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32147         types to uintptr_t.
32148         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32149         * modules/memcmp (Depends-on): Add stdint.
32150         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32151
32152 2009-01-30  Eric Blake  <ebb9@byu.net>
32153
32154         fix more require-before-expand issues
32155         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32156         expand, AC_PROG_AWK.
32157         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32158
32159 2009-01-28  Eric Blake  <ebb9@byu.net>
32160
32161         version-etc: use consistent URL formatting
32162         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32163         Improve formatting.  Use fputs for string without %.
32164
32165 2009-01-28  Jim Meyering  <meyering@redhat.com>
32166
32167         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32168         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32169         "underquoted definition of NAME" from autoconf-2.59.
32170
32171 2009-01-28  Bruno Haible  <bruno@clisp.org>
32172
32173         * doc/gnulib.texi: Add "Obsolete modules" to index.
32174
32175 2009-01-28  Jim Meyering  <meyering@redhat.com>
32176
32177         useless-if-before-free: recognize more variants
32178         * build-aux/useless-if-before-free: Also recognize e.g.,
32179         if (NULL != p) free (p);
32180
32181 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32182
32183         test-getaddrinfo: skip (don't fail) this test when there's no network
32184         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32185         on the presumption that it means you lack network access.
32186
32187 2009-01-26  Jim Meyering  <meyering@redhat.com>
32188
32189         fflush: avoid warnings on modern systems
32190         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32191         pos and result, into scopes where they're used.
32192
32193 2009-01-26  Eric Blake  <ebb9@byu.net>
32194
32195         Silence warning reintroduced by recent extensions patch.
32196         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32197         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32198         autoconf.
32199
32200         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32201         * m4/00gnulib.m4: New file.
32202         * gnulib-tool (func_get_filelist): Always use it.
32203         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32204         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32205
32206 2009-01-25  Bruno Haible  <bruno@clisp.org>
32207
32208         Make test-quotearg work on MacOS X and AIX.
32209         * tests/test-quotearg.sh: New file.
32210         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32211         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32212         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32213         include <libintl.h>.
32214         (fake_locale): Remove variable.
32215         (gettext, dgettext, dcgettext): Remove functions.
32216         (main): Instead of setting a fake locale, set a real locale. Call
32217         textdomain and bindtextdomain.
32218         * modules/quotearg-tests (Files): Add the new files.
32219         (Depends-on): Add gettext, setenv, unsetenv.
32220         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32221         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32222         Augment TESTS_ENVIRONMENT.
32223
32224 2009-01-25  Bruno Haible  <bruno@clisp.org>
32225
32226         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32227         fr_FR.ISO8859-1 locale on MacOS X.
32228         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32229         ja_JP.eucJP locale on MacOS X.
32230         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32231         zh_CN.GB18030 locale on MacOS X.
32232
32233 2009-01-25  Bruno Haible  <bruno@clisp.org>
32234
32235         Avoid link errors on MacOS X 10.3.
32236         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32237         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32238
32239 2009-01-25  Bruno Haible  <bruno@clisp.org>
32240
32241         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32242         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32243         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32244         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32245         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32246         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32247         posix_spawnattr_init, posix_spawnattr_setsigmask,
32248         posix_spawnattr_setflags, posix_spawnattr_destroy.
32249
32250         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32251         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32252         * modules/execute (Files): Remove m4/posix_spawn.m4.
32253         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32254         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32255         posix_spawnattr_init, posix_spawnattr_setsigmask,
32256         posix_spawnattr_setflags, posix_spawnattr_destroy.
32257
32258 2009-01-25  Bruno Haible  <bruno@clisp.org>
32259
32260         * lib/glthread/threadlib.c: Include <stdlib.h>.
32261
32262 2009-01-25  Bruno Haible  <bruno@clisp.org>
32263
32264         * lib/glthread/threadlib.c (dummy): New declaration.
32265
32266 2009-01-25  Bruno Haible  <bruno@clisp.org>
32267
32268         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32269         multibyte characters also for the GB18030 encoding. Don't crash when
32270         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32271
32272 2009-01-25  Bruno Haible  <bruno@clisp.org>
32273
32274         Avoid redefining 'struct random_data' on OSF/1 5.1.
32275         * lib/stdlib.in.h: Include <random.h> if it exists.
32276         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32277         HAVE_RANDOM_H. Include <random.h> when testing whether
32278         'struct random_data' exists.
32279         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32280
32281 2009-01-25  Bruno Haible  <bruno@clisp.org>
32282
32283         Don't install charset.alias on MacOS X >= 10.3.
32284         * lib/localcharset.c (DARWIN7): New macro.
32285         (get_charset_aliases): Hardcode the result for Darwin7.
32286         * modules/localcharset (install-exec-local): Don't install
32287         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32288
32289 2009-01-25  Bruno Haible  <bruno@clisp.org>
32290
32291         Don't install charset.alias on mingw and Cygwin.
32292         * modules/localcharset (install-exec-local): Don't install
32293         charset.alias on mingw and Cygwin, if the file does not yet exist.
32294         The result for these platforms is hardcoded in localcharset.c.
32295
32296 2009-01-25  Bruno Haible  <bruno@clisp.org>
32297
32298         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32299         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32300         before requiring AC_USE_SYSTEM_EXTENSIONS.
32301
32302 2009-01-25  Jim Meyering  <meyering@redhat.com>
32303
32304         c-strtod: avoid warnings
32305         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32306         "assignment discards qualifiers from pointer target type" warnings.
32307
32308 2009-01-24  Bruno Haible  <bruno@clisp.org>
32309
32310         Add support for non-UTF-8 locales on MacOS X.
32311         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32312         canonical encodings. For Darwin 7 and newer, don't map traditional
32313         encodings to UTF-8.
32314         Reported by Vincent Lefevre <vincent@vinc17.org>
32315         at <http://savannah.gnu.org/bugs/?25235>.
32316
32317 2009-01-24  Bruno Haible  <bruno@clisp.org>
32318
32319         * doc/gnulib.texi (Obsolete modules): New section.
32320         Reported by Mike Frysinger <vapier@gentoo.org>.
32321
32322 2009-01-24  Bruno Haible  <bruno@clisp.org>
32323
32324         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32325         (%.dvi): New rule.
32326
32327 2009-01-24  Bruno Haible  <bruno@clisp.org>
32328
32329         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32330         Reported by Eric Blake.
32331
32332 2009-01-24  Bruno Haible  <bruno@clisp.org>
32333
32334         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32335         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32336         Reported by Gary V. Vaughan <gary@gnu.org>.
32337
32338 2009-01-24  Bruno Haible  <bruno@clisp.org>
32339
32340         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32341
32342 2009-01-23  Bruno Haible  <bruno@clisp.org>
32343
32344         Make c-strtod, c-strtold usable in libraries.
32345         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32346         (C_STRTOD): Call strdup instead of xstrdup.
32347         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32348         * modules/c-strtold (Depends-on): Likewise.
32349         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32350         * NEWS: Mention the change.
32351         Reported by Michael Gold <mgold@ncf.ca>.
32352
32353 2009-01-23  Jim Meyering  <meyering@redhat.com>
32354
32355         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32356         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32357         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32358
32359 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32360
32361         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32362         GNU CoreUtils.
32363         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32364         * modules/version-etc (Description): Update.
32365
32366 2009-01-22  Bruno Haible  <bruno@clisp.org>
32367
32368         Cache the C locale object.
32369         * lib/c-strtod.c (c_locale_cache): New variable.
32370         (c_locale): New function.
32371         (C_STRTOD): Use it, and don't call freelocale.
32372         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32373         Suggested by Paolo Bonzini.
32374
32375 2009-01-21  Bruno Haible  <bruno@clisp.org>
32376
32377         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32378         conditions other than overflow.
32379
32380 2009-01-21  Bruno Haible  <bruno@clisp.org>
32381
32382         * lib/c-strtod.c: Include errno.h.
32383         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32384         value from STRTOD_L and STRTOD.
32385
32386 2009-01-21  Bruno Haible  <bruno@clisp.org>
32387         and Jim Meyering  <meyering@redhat.com>
32388
32389         nanosleep: skip configure test (fail it) for apple universal builds
32390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32391         universal builds, assume that nanosleep does not work.
32392         * modules/nanosleep (Depends-on): Add multiarch.
32393
32394         mktime: skip configure test (fail it) for apple universal builds
32395         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32396         universal builds, assume that mktime does not work.
32397         * modules/mktime (Depends-on): Add multiarch.
32398
32399 2009-01-21  Eric Blake  <ebb9@byu.net>
32400
32401         multiarch: avoid expand-before-require warning
32402         * modules/multiarch (configure.ac): Require, rather than expand,
32403         gl_MULTIARCH.
32404         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32405         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32406         enforce that all clients require it.  Partial reversion of
32407         2008-12-29 patch.
32408
32409         error: avoid expand-before-require warning
32410         * modules/errno (configure.ac): Require, rather than expand,
32411         gl_HEADER_ERRNO_H.
32412         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32413         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32414         enforce that all clients require it.
32415
32416         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32417         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32418         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32419         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32420
32421 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32422
32423         Revert:
32424         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32425
32426         regex: do not depend on obsolete modules.
32427         * modules/regex: Remove memcmp and memmove.
32428
32429 2009-01-20  Bruno Haible  <bruno@clisp.org>
32430
32431         Make the 'link' module link on Windows NT 4.
32432         * lib/link.c (_WIN32_WINNT): Don't define.
32433         (CreateHardLinkFuncType): New type.
32434         (CreateHardLinkFunc, initialized): New variables.
32435         (initialize): New function.
32436         (link): Invoke CreateHardLink indirectly through the function pointer.
32437
32438 2009-01-20  Bruno Haible  <bruno@clisp.org>
32439
32440         Fix compilation failure on mingw.
32441         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32442
32443 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32444
32445         * doc/c-strtod.texi: Mention a couple of restrictions.
32446
32447 2009-01-20  Jim Meyering  <meyering@redhat.com>
32448
32449         gettimeofday: move more declarations out of functions
32450         * lib/gettimeofday.c: Move extern declarations of tzset and
32451         gmtime out of containing functions.  Prompted by Bruno Haible.
32452
32453 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32454
32455         regex: do not depend on obsolete modules.
32456         * modules/regex: Remove memcmp and memmove.
32457
32458 2009-01-19  Bruno Haible  <bruno@clisp.org>
32459
32460         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32461         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32462         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32463         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32464         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32465
32466 2009-01-19  Bruno Haible  <bruno@clisp.org>
32467
32468         * tests/test-link.c: Include <errno.h>.
32469         (main): Exit with code 77 when a hard link cannot be created due to
32470         the file system.
32471         * tests/test-link.sh: Skip test when a hard link cannot be created due
32472         to the file system.
32473         Suggested by Eric Blake.
32474
32475 2009-01-19  Martin Lambers  <marlam@marlam.de>
32476
32477         * modules/link-tests: New file.
32478         * tests/test-link.sh: New file.
32479         * tests/test-link.c: New file.
32480
32481 2009-01-19  Eric Blake  <ebb9@byu.net>
32482
32483         doc: mention another function added in cygwin 1.7.0
32484         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32485         Another new function in cygwin 1.7.
32486
32487 2009-01-19  Bruno Haible  <bruno@clisp.org>
32488
32489         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32490         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32491         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32492         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32493         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32494         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32495         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32496         * m4/md4.m4 (gl_MD4): Likewise.
32497         * m4/md5.m4 (gl_MD5): Likewise.
32498         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32499         * m4/sha1.m4 (gl_SHA1): Likewise.
32500         * m4/sha256.m4 (gl_SHA256): Likewise.
32501         * m4/sha512.m4 (gl_SHA512): Likewise.
32502
32503 2009-01-19  Bruno Haible  <bruno@clisp.org>
32504
32505         * modules/uniname/uniname-tests (Depends-on): Add progname.
32506         * tests/uniname/test-uninames.c: Include progname.h.
32507         (main): Call set_program_name.
32508
32509         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32510         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32511         (main): Call set_program_name.
32512
32513         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32514         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32515         (main): Call set_program_name.
32516
32517         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32518         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32519         (main): Call set_program_name.
32520
32521         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32522         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32523         (main): Call set_program_name.
32524
32525         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32526         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32527         (main): Call set_program_name.
32528
32529         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32530         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32531         (main): Call set_program_name.
32532
32533         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32534         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32535         (main): Call set_program_name.
32536
32537         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32538         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32539         (main): Call set_program_name.
32540
32541 2009-01-19  Eric Blake  <ebb9@byu.net>
32542
32543         test-unistd: test previous patch
32544         * tests/test-unistd.c: Test *_FILENO macros.
32545
32546         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32547         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32548         Guarantee a definition.
32549         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32550         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32551         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32552         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32553         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32554         Likewise.
32555         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32556         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32557         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32558         Likewise.
32559         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32560         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32561         (STDERR_FILENO): Likewise.
32562         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32563         (STDERR_FILENO): Likewise.
32564         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32565         (STDERR_FILENO): Likewise.
32566         Reported by Elbert Pol.
32567
32568 2009-01-19  Eric Blake  <ebb9@byu.net>
32569
32570         doc: mention more functions added in cygwin 1.7.0
32571         * doc/posix-functions/abort.texi (abort): Update wording related
32572         to cygwin.
32573         * doc/posix-functions/daylight.texi (daylight): Likewise.
32574         * doc/posix-functions/optarg.texi (optarg): Likewise.
32575         * doc/posix-functions/optarg.texi (opterr): Likewise.
32576         * doc/posix-functions/optarg.texi (optind): Likewise.
32577         * doc/posix-functions/optarg.texi (optopt): Likewise.
32578         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32579         worked in 1.5.x, and was withdrawn in 1.7.
32580         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32581         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32582         cygwin versions.
32583         * doc/posix-functions/perror.texi (perror): Likewise.
32584         * doc/posix-functions/printf.texi (printf): Likewise.
32585         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32586         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32587         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32588         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32589         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32590         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32591         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32592         Likewise.
32593         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32594         Likewise.
32595         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32596         this function.
32597         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32598         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32599         Likewise.
32600         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32601         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32602         * doc/posix-functions/confstr.texi (confstr): Likewise.
32603         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32604         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32605         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32606         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32607         * doc/posix-functions/fputws.texi (fputws): Likewise.
32608         * doc/posix-functions/fwide.texi (fwide): Likewise.
32609         * doc/posix-functions/getwc.texi (getwc): Likewise.
32610         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32611         * doc/posix-functions/putwc.texi (putwc): Likewise.
32612         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32613         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32614         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32615         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32616         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32617         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32618         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32619         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32620         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32621         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32622         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32623
32624 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32625
32626         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32627         * lib/ioctl.c: Include <sys/ioctl.h>.
32628
32629 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32630
32631         * modules/getdate-tests (Depends-on): Add progname.
32632         * tests/test-getdate.c: Use progname module, to avoid link errors
32633         on non-glibc systems.
32634
32635 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32636
32637         * modules/filenamecat-tests (Depends-on): Add progname.
32638         * modules/fstrcmp-tests (Depends-on): Likewise.
32639
32640         * tests/test-filenamecat.c: Use progname module, to avoid link
32641         errors on non-glibc systems.
32642         * tests/test-fstrcmp.c: Likewise.
32643
32644 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32645
32646         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32647         * lib/gettimeofday.c: Move extern declaration out of function.
32648
32649 2009-01-18  Bruno Haible  <bruno@clisp.org>
32650
32651         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32652         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32653         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32654
32655 2009-01-18  Bruno Haible  <bruno@clisp.org>
32656
32657         * lib/strftime.c (MEMPCPY): Remove unused macro.
32658         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32659
32660 2009-01-18  Martin Lambers  <marlam@marlam.de>
32661
32662         New module 'link'.
32663         * lib/unistd.in.h (link): New declaration.
32664         * lib/link.c: New file.
32665         * m4/link.m4: New file.
32666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32667         HAVE_LINK.
32668         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32669         * modules/link: New file.
32670         * doc/posix-functions/link.texi: Mention the new module.
32671
32672 2009-01-18  Bruno Haible  <bruno@clisp.org>
32673
32674         * tests/test-avltree_list.c (main): Call set_program_name.
32675         * tests/test-avltree_oset.c (main): Likewise.
32676         * tests/test-obstack-printf.c: Include progname.h.
32677         (main): Call set_program_name.
32678         * tests/test-quotearg.c: Include progname.h.
32679         (main): Call set_program_name.
32680         * tests/test-xmemdup0.c: Include progname.h.
32681         (main): Call set_program_name.
32682
32683 2009-01-18  Bruno Haible  <bruno@clisp.org>
32684
32685         New module 'alphasort'.
32686         * lib/dirent.in.h (alphasort): New declaration.
32687         * lib/alphasort.c: New file, from glibc with modifications.
32688         * m4/alphasort.m4: New file.
32689         * modules/alphasort: New file.
32690         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32691         HAVE_ALPHASORT.
32692         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32693         HAVE_ALPHASORT.
32694         * doc/posix-functions/alphasort.texi: Mention the new module and the
32695         portability problems.
32696
32697 2009-01-18  Bruno Haible  <bruno@clisp.org>
32698
32699         New module 'scandir'.
32700         * lib/dirent.in.h (scandir): New declaration.
32701         * lib/scandir.c: New file, from glibc with modifications.
32702         * m4/scandir.m4: New file.
32703         * modules/scandir: New file.
32704         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32705         HAVE_SCANDIR.
32706         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32707         HAVE_SCANDIR.
32708         * doc/posix-functions/scandir.texi: Mention the new module and the
32709         portability problems.
32710
32711 2009-01-17  Bruno Haible  <bruno@clisp.org>
32712
32713         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32714         Update documentation.
32715         (func_remove_suffix): Escape all dots in the suffix. Update
32716         documentation.
32717         (func_filter_filelist): Update documentation.
32718         Reported by Ralf Wildenhues.
32719
32720 2009-01-17  Bruno Haible  <bruno@clisp.org>
32721
32722         * modules/dprintf-posix-tests: New file.
32723         * tests/test-dprintf-posix.sh: New file.
32724         * tests/test-dprintf-posix.c: New file.
32725
32726         New modules 'dprintf', 'dprintf-posix'.
32727         * lib/stdio.in.h (dprintf): New declaration.
32728         * lib/dprintf.c: New file.
32729         * m4/dprintf.m4: New file.
32730         * m4/dprintf-posix.m4: New file.
32731         * modules/dprintf: New file.
32732         * modules/dprintf-posix: New file.
32733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32734         HAVE_DPRINTF, REPLACE_DPRINTF.
32735         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32736         HAVE_DPRINTF, REPLACE_DPRINTF.
32737         * doc/posix-functions/dprintf.texi: Mention the new modules.
32738
32739 2009-01-17  Bruno Haible  <bruno@clisp.org>
32740
32741         * modules/vdprintf-posix-tests: New file.
32742         * tests/test-vdprintf-posix.sh: New file.
32743         * tests/test-vdprintf-posix.c: New file.
32744
32745         New modules 'vdprintf', 'vdprintf-posix'.
32746         * lib/stdio.in.h (vdprintf): New declaration.
32747         * lib/vdprintf.c: New file.
32748         * m4/vdprintf.m4: New file.
32749         * m4/vdprintf-posix.m4: New file.
32750         * modules/vdprintf: New file.
32751         * modules/vdprintf-posix: New file.
32752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32753         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32754         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32755         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32756         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32757
32758 2009-01-17  Bruno Haible  <bruno@clisp.org>
32759
32760         Fix replacement of fopen on mingw.
32761         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32762         mingw.
32763
32764 2009-01-17  Bruno Haible  <bruno@clisp.org>
32765
32766         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32767         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32768
32769 2009-01-17  Bruno Haible  <bruno@clisp.org>
32770
32771         Avoid test-fflush2.sh failure on mingw.
32772         * tests/test-fflush2.c: Include binary-io.h.
32773         (main): Put standard input into binary mode.
32774         * modules/fflush-tests (Depends-on): Add binary-io.
32775
32776 2009-01-17  Bruno Haible  <bruno@clisp.org>
32777
32778         * lib/wchar.in.h: In another particular situation, include only the
32779         system's <wchar.h> file.
32780         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32781         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32782         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32783
32784 2009-01-17  Bruno Haible  <bruno@clisp.org>
32785
32786         Support for stripping executables in --enable-relocatable.
32787         * build-aux/install-reloc: Expect one more argument, or an environment
32788         variable RELOC_STRIP_PROG. If set, strip the destination program and
32789         its wrapper.
32790         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32791         RELOC_STRIP_PROG.
32792         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32793         to set RELOCATABLE_STRIP.
32794         * NEWS: Mention the new Makefile requirement.
32795
32796 2009-01-17  Bruno Haible  <bruno@clisp.org>
32797
32798         * build-aux/install-reloc: Remove debugging information left over by
32799         C compiler on MacOS X.
32800
32801 2009-01-17  Bruno Haible  <bruno@clisp.org>
32802
32803         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32804         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32805         _NSGetExecutablePath.
32806
32807 2009-01-16  Jim Meyering  <meyering@redhat.com>
32808
32809         strerror: avoid warnings about discarding "const"
32810         * lib/strerror.c (rpl_strerror): Instead of returning a const
32811         string from each and every "case", use a variable, and add a single
32812         cast after the switch.
32813
32814 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32815
32816         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32817
32818 2009-01-16  Bruno Haible  <bruno@clisp.org>
32819
32820         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32821         array initializer syntax that also works in C++ mode.
32822         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32823
32824 2009-01-16  Jim Meyering  <meyering@redhat.com>
32825
32826         poll: suppress a warning
32827         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32828         to ignore "...unsigned expression < 0 is always false" warnings.
32829
32830 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32831
32832         poll: remove declarations of unused variables
32833         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32834         sockbuf and optlen.
32835
32836 2009-01-15  Bruno Haible  <bruno@clisp.org>
32837
32838         Make fflush-after-ungetc POSIX compliant on BSD systems.
32839         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32840         (clear_ungetc_buffer): Implement also for other systems.
32841         (rpl_fflush): On glibc systems, invoke
32842         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32843         clear_ungetc_buffer after fetching the stream's position, not before.
32844
32845 2009-01-15  Bruno Haible  <bruno@clisp.org>
32846
32847         Make fflush-after-ungetc POSIX compliant on glibc systems.
32848         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32849         after ungetc.
32850         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32851         (rpl_fflush): On glibc systems, simply call the system's fflush
32852         function after clearing the ungetc buffer.
32853         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32854         Instead, lseek only to the end of file, then use the system's fseeko
32855         for the rest. On glibc systems, reset the EOF indicator bit.
32856
32857 2009-01-15  Jim Meyering  <meyering@redhat.com>
32858
32859         openmp.m4: revert quote-adding change, for portability to older autoconf
32860         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32861         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32862         Simon Josefsson noticed the problem when using autoconf-2.61.
32863
32864 2009-01-15  Bruno Haible  <bruno@clisp.org>
32865
32866         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32867         * tests/test-fflush2.c (ASSERT): Always fail.
32868         (main): Add two tests for fflush() after ungetc(), taking into account
32869         the Austin Group's clarification.
32870         Suggested by Eric Blake.
32871
32872 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32873
32874         mktime.m4: remove K&R-style function prototypes
32875         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32876         for the Sun C++ compiler.
32877
32878 2009-01-14  Bruno Haible  <bruno@clisp.org>
32879
32880         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32881         while including <wchar.h>.
32882         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32883         the system's <wchar.h> file.
32884         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32885
32886 2009-01-14  Bruno Haible  <bruno@clisp.org>
32887
32888         * m4/csharp.m4: Don't mention gettext on the serial number line.
32889         * m4/csharpexec.m4: Likewise.
32890         * m4/eaccess.m4: Likewise.
32891         * m4/javaexec.m4: Likewise.
32892         * m4/sig_atomic_t.m4: Likewise.
32893         * m4/tmpdir.m4: Likewise.
32894         * m4/intldir.m4: Bump gettext version.
32895         * m4/lib-ld.m4: Likewise.
32896
32897 2009-01-14  Bruno Haible  <bruno@clisp.org>
32898
32899         * lib/progname.c (set_program_name): Add more comments.
32900         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32901
32902 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32903
32904         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32905         were sys/stat.h does not define it.
32906
32907 2009-01-14  Jim Meyering  <meyering@redhat.com>
32908
32909         many *.m4 files: improve m4 quoting
32910         99% of this change was performed by running the following commands:
32911         git ls-files | grep '\.m4$' | xargs perl -pi \
32912           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32913           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32914           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32915           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32916         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32917         The remainder were to add Copyright dates, increment serial numbers,
32918         undo some changes in comments, exclude m4/intl.m4, and add quotes
32919         around the "1" in ",1" where the unusual spacing prohibited the
32920         above regexps from doing the job.  For more details, see
32921         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32922         * m4/acl.m4: Modified.
32923         * m4/afs.m4: Likewise.
32924         * m4/alloca.m4: Likewise.
32925         * m4/argp.m4: Likewise.
32926         * m4/argz.m4: Likewise.
32927         * m4/atexit.m4: Likewise.
32928         * m4/bison-i18n.m4: Likewise.
32929         * m4/bison.m4: Likewise.
32930         * m4/byteswap.m4: Likewise.
32931         * m4/c-stack.m4: Likewise.
32932         * m4/c-strtod.m4: Likewise.
32933         * m4/calloc.m4: Likewise.
32934         * m4/canonicalize-lgpl.m4: Likewise.
32935         * m4/chown.m4: Likewise.
32936         * m4/clock_time.m4: Likewise.
32937         * m4/codeset.m4: Likewise.
32938         * m4/copy-file.m4: Likewise.
32939         * m4/csharp.m4: Likewise.
32940         * m4/csharpcomp.m4: Likewise.
32941         * m4/csharpexec.m4: Likewise.
32942         * m4/d-ino.m4: Likewise.
32943         * m4/d-type.m4: Likewise.
32944         * m4/dirfd.m4: Likewise.
32945         * m4/double-slash-root.m4: Likewise.
32946         * m4/eaccess.m4: Likewise.
32947         * m4/eealloc.m4: Likewise.
32948         * m4/environ.m4: Likewise.
32949         * m4/errno_h.m4: Likewise.
32950         * m4/euidaccess.m4: Likewise.
32951         * m4/execute.m4: Likewise.
32952         * m4/fatal-signal.m4: Likewise.
32953         * m4/fchdir.m4: Likewise.
32954         * m4/fcntl_h.m4: Likewise.
32955         * m4/fileblocks.m4: Likewise.
32956         * m4/filenamecat.m4: Likewise.
32957         * m4/findprog.m4: Likewise.
32958         * m4/flexmember.m4: Likewise.
32959         * m4/fnmatch.m4: Likewise.
32960         * m4/fopen.m4: Likewise.
32961         * m4/fpending.m4: Likewise.
32962         * m4/fprintf-posix.m4: Likewise.
32963         * m4/free.m4: Likewise.
32964         * m4/frexp.m4: Likewise.
32965         * m4/frexpl.m4: Likewise.
32966         * m4/fsusage.m4: Likewise.
32967         * m4/ftruncate.m4: Likewise.
32968         * m4/gc-camellia.m4: Likewise.
32969         * m4/gc-random.m4: Likewise.
32970         * m4/gc.m4: Likewise.
32971         * m4/getaddrinfo.m4: Likewise.
32972         * m4/getcwd-abort-bug.m4: Likewise.
32973         * m4/getcwd-path-max.m4: Likewise.
32974         * m4/getdate.m4: Likewise.
32975         * m4/getdomainname.m4: Likewise.
32976         * m4/getgroups.m4: Likewise.
32977         * m4/gethostname.m4: Likewise.
32978         * m4/gethrxtime.m4: Likewise.
32979         * m4/getline.m4: Likewise.
32980         * m4/getloadavg.m4: Likewise.
32981         * m4/getndelim2.m4: Likewise.
32982         * m4/getpass.m4: Likewise.
32983         * m4/gettext.m4: Likewise.
32984         * m4/gettime.m4: Likewise.
32985         * m4/gettimeofday.m4: Likewise.
32986         * m4/gnulib-common.m4: Likewise.
32987         * m4/group-member.m4: Likewise.
32988         * m4/host-os.m4: Likewise.
32989         * m4/iconv.m4: Likewise.
32990         * m4/iconv_open.m4: Likewise.
32991         * m4/inet_ntop.m4: Likewise.
32992         * m4/inet_pton.m4: Likewise.
32993         * m4/inline.m4: Likewise.
32994         * m4/intldir.m4: Likewise.
32995         * m4/intlmacosx.m4: Likewise.
32996         * m4/intmax.m4: Likewise.
32997         * m4/intmax_t.m4: Likewise.
32998         * m4/inttypes.m4: Likewise.
32999         * m4/inttypes_h.m4: Likewise.
33000         * m4/inttypes-pri.m4: Likewise.
33001         * m4/isapipe.m4: Likewise.
33002         * m4/isnand.m4: Likewise.
33003         * m4/isnanf.m4: Likewise.
33004         * m4/isnanl.m4: Likewise.
33005         * m4/javacomp.m4: Likewise.
33006         * m4/javaexec.m4: Likewise.
33007         * m4/jm-winsz1.m4: Likewise.
33008         * m4/jm-winsz2.m4: Likewise.
33009         * m4/lchown.m4: Likewise.
33010         * m4/lcmessage.m4: Likewise.
33011         * m4/ldexpl.m4: Likewise.
33012         * m4/lib-ld.m4: Likewise.
33013         * m4/lib-link.m4: Likewise.
33014         * m4/libsigsegv.m4: Likewise.
33015         * m4/link-follow.m4: Likewise.
33016         * m4/localcharset.m4: Likewise.
33017         * m4/locale-fr.m4: Likewise.
33018         * m4/locale-ja.m4: Likewise.
33019         * m4/locale-tr.m4: Likewise.
33020         * m4/locale-zh.m4: Likewise.
33021         * m4/lock.m4: Likewise.
33022         * m4/longlong.m4: Likewise.
33023         * m4/ls-mntd-fs.m4: Likewise.
33024         * m4/lstat.m4: Likewise.
33025         * m4/malloc.m4: Likewise.
33026         * m4/mathl.m4: Likewise.
33027         * m4/mbrtowc.m4: Likewise.
33028         * m4/mbstate_t.m4: Likewise.
33029         * m4/mbswidth.m4: Likewise.
33030         * m4/memchr.m4: Likewise.
33031         * m4/memcmp.m4: Likewise.
33032         * m4/memcpy.m4: Likewise.
33033         * m4/memmem.m4: Likewise.
33034         * m4/memmove.m4: Likewise.
33035         * m4/mempcpy.m4: Likewise.
33036         * m4/memrchr.m4: Likewise.
33037         * m4/memset.m4: Likewise.
33038         * m4/minmax.m4: Likewise.
33039         * m4/mkdir-slash.m4: Likewise.
33040         * m4/mkdtemp.m4: Likewise.
33041         * m4/mktime.m4: Likewise.
33042         * m4/mmap-anon.m4: Likewise.
33043         * m4/mountlist.m4: Likewise.
33044         * m4/nanosleep.m4: Likewise.
33045         * m4/nls.m4: Likewise.
33046         * m4/nocrash.m4: Likewise.
33047         * m4/open.m4: Likewise.
33048         * m4/openat.m4: Likewise.
33049         * m4/openmp.m4: Likewise.
33050         * m4/pathmax.m4: Likewise.
33051         * m4/perl.m4: Likewise.
33052         * m4/physmem.m4: Likewise.
33053         * m4/pipe.m4: Likewise.
33054         * m4/po.m4: Likewise.
33055         * m4/poll.m4: Likewise.
33056         * m4/posixtm.m4: Likewise.
33057         * m4/posixver.m4: Likewise.
33058         * m4/printf-frexp.m4: Likewise.
33059         * m4/printf-frexpl.m4: Likewise.
33060         * m4/printf-posix.m4: Likewise.
33061         * m4/printf-posix-rpl.m4: Likewise.
33062         * m4/printf.m4: Likewise.
33063         * m4/progtest.m4: Likewise.
33064         * m4/putenv.m4: Likewise.
33065         * m4/readline.m4: Likewise.
33066         * m4/readlink.m4: Likewise.
33067         * m4/readutmp.m4: Likewise.
33068         * m4/realloc.m4: Likewise.
33069         * m4/regex.m4: Likewise.
33070         * m4/relocatable.m4: Likewise.
33071         * m4/relocatable-lib.m4: Likewise.
33072         * m4/rename-dest-slash.m4: Likewise.
33073         * m4/rename.m4: Likewise.
33074         * m4/rmdir-errno.m4: Likewise.
33075         * m4/rmdir.m4: Likewise.
33076         * m4/roundf.m4: Likewise.
33077         * m4/roundl.m4: Likewise.
33078         * m4/rpmatch.m4: Likewise.
33079         * m4/save-cwd.m4: Likewise.
33080         * m4/selinux-selinux-h.m4: Likewise.
33081         * m4/setenv.m4: Likewise.
33082         * m4/settime.m4: Likewise.
33083         * m4/sig2str.m4: Likewise.
33084         * m4/sig_atomic_t.m4: Likewise.
33085         * m4/signalblocking.m4: Likewise.
33086         * m4/signbit.m4: Likewise.
33087         * m4/sigpipe.m4: Likewise.
33088         * m4/sockets.m4: Likewise.
33089         * m4/sockpfaf.m4: Likewise.
33090         * m4/st_dm_mode.m4: Likewise.
33091         * m4/stat-time.m4: Likewise.
33092         * m4/stdbool.m4: Likewise.
33093         * m4/stdint.m4: Likewise.
33094         * m4/stdint_h.m4: Likewise.
33095         * m4/stpcpy.m4: Likewise.
33096         * m4/stpncpy.m4: Likewise.
33097         * m4/strcase.m4: Likewise.
33098         * m4/strchrnul.m4: Likewise.
33099         * m4/strcspn.m4: Likewise.
33100         * m4/strdup.m4: Likewise.
33101         * m4/strftime.m4: Likewise.
33102         * m4/strndup.m4: Likewise.
33103         * m4/strnlen.m4: Likewise.
33104         * m4/strpbrk.m4: Likewise.
33105         * m4/strptime.m4: Likewise.
33106         * m4/strsep.m4: Likewise.
33107         * m4/strtod.m4: Likewise.
33108         * m4/strtoimax.m4: Likewise.
33109         * m4/strtok_r.m4: Likewise.
33110         * m4/strtol.m4: Likewise.
33111         * m4/strtoll.m4: Likewise.
33112         * m4/strtoul.m4: Likewise.
33113         * m4/strtoull.m4: Likewise.
33114         * m4/strtoumax.m4: Likewise.
33115         * m4/strverscmp.m4: Likewise.
33116         * m4/threadlib.m4: Likewise.
33117         * m4/timegm.m4: Likewise.
33118         * m4/tm_gmtoff.m4: Likewise.
33119         * m4/tmpdir.m4: Likewise.
33120         * m4/tmpfile.m4: Likewise.
33121         * m4/tzset.m4: Likewise.
33122         * m4/uintmax_t.m4: Likewise.
33123         * m4/unlinkdir.m4: Likewise.
33124         * m4/unlocked-io.m4: Likewise.
33125         * m4/uptime.m4: Likewise.
33126         * m4/userspec.m4: Likewise.
33127         * m4/utimbuf.m4: Likewise.
33128         * m4/utime.m4: Likewise.
33129         * m4/utimes-null.m4: Likewise.
33130         * m4/utimes.m4: Likewise.
33131         * m4/vararrays.m4: Likewise.
33132         * m4/vasnprintf.m4: Likewise.
33133         * m4/vfprintf-posix.m4: Likewise.
33134         * m4/vprintf-posix.m4: Likewise.
33135         * m4/wait-process.m4: Likewise.
33136         * m4/wchar_t.m4: Likewise.
33137         * m4/wint_t.m4: Likewise.
33138         * m4/write-any-file.m4: Likewise.
33139         * m4/yield.m4: Likewise.
33140
33141 2009-01-13  Bruno Haible  <bruno@clisp.org>
33142
33143         Avoid test-copy-file.sh failures when ACL support insufficient.
33144         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33145         TESTS_ENVIRONMENT.
33146         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33147         Reported by Jim Meyering.
33148
33149 2009-01-13  Bruno Haible  <bruno@clisp.org>
33150
33151         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33152         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33153         * modules/unistdio/u8-printf-parse (Files): Likewise.
33154         * modules/unistdio/u32-printf-parse (Files): Likewise.
33155         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33156
33157 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33158
33159         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33160         and m4/inttypes_h.m4 too.
33161
33162 2009-01-12  Eric Blake  <ebb9@byu.net>
33163
33164         tests: IRIX 6.2 cc can't compile -0.0 into .data
33165         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33166         rather than at compile-time.
33167         * tests/test-floorl.c (minus_zero): Likewise.
33168         * tests/test-frexpl.c (minus_zero): Likewise.
33169         * tests/test-isnan.c (minus_zerol): Likewise.
33170         * tests/test-isnanl.h (minus_zero): Likewise.
33171         * tests/test-ldexpl.c (minus_zero): Likewise.
33172         * tests/test-roundl.c (minus_zero): Likewise.
33173         * tests/test-signbit.c (minus_zerol): Likewise.
33174         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33175         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33176         * tests/test-truncl.c (minus_zero): Likewise.
33177         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33178         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33179         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33180
33181 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33182
33183         regex: fix glibc bug 9697
33184         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33185         handling.
33186
33187 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33188
33189         regex: fix glibc bug 697
33190         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33191         being NULL also if there are no backreferences.
33192
33193 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33194
33195         regex: merge glibc changes
33196         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33197         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33198         re_string_skip_chars, re_string_reconstruct): Likewise.
33199         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33200
33201 2009-01-07  Jim Meyering  <meyering@redhat.com>
33202
33203         poll: filter through cppi
33204         * lib/poll.c: Indent cpp directives to reflect nesting.
33205
33206 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33207
33208         poll: don't return uninitialized
33209         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33210
33211 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33212
33213         avoid compile failure on AIX 6.1
33214         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33215         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33216
33217 2009-01-04  Jim Meyering  <meyering@redhat.com>
33218
33219         remove duplicate inclusion of <stdio.h>
33220         * tests/test-fprintf-posix.c: Likewise.
33221         * tests/test-printf-posix.c: Likewise.
33222         * tests/test-snprintf-posix.c: Likewise.
33223         * tests/test-sprintf-posix.c: Likewise.
33224         * tests/test-vasprintf-posix.c: Likewise.
33225         * tests/test-vfprintf-posix.c: Likewise.
33226         * tests/test-vprintf-posix.c: Likewise.
33227         * tests/test-vsnprintf-posix.c: Likewise.
33228         * tests/test-vsprintf-posix.c: Likewise.
33229
33230 2009-01-03  Jim Meyering  <meyering@redhat.com>
33231
33232         gnulib-tool: fix sed-based filtering
33233         * gnulib-tool (func_filter_filelist): Remove extra backslash
33234         in sed_fff_filter definition.
33235
33236 2009-01-02  Jim Meyering  <meyering@redhat.com>
33237
33238         strftime: avoid compilation failure on Solaris 2.6
33239         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33240         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33241         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33242         be available.  Reported by Tom G. Christensen.  Details in
33243         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33244
33245 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33246             Bruno Haible  <bruno@clisp.org>
33247
33248         Speed up gnulib-tool by doing more string processing through shell
33249         built-ins.
33250         * gnulib-tool (fast_func_append): New variable.
33251         (func_remove_prefix, func_remove_suffix): New functions.
33252         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33253         (func_filter_filelist): New function.
33254         (func_get_dependencies): Use func_remove_suffix instead of sed.
33255         (func_get_automake_snippet): Use func_filter_filelist instead of a
33256         subshell and sed invocation.
33257
33258 2009-01-01  Bruno Haible  <bruno@clisp.org>
33259
33260         Fix a security bug.
33261         * gnulib-tool (func_import, import, update): Don't allow the characters
33262         '"', '$', '`', '\' in macro arguments that become part of commands that
33263         are evaluated.
33264
33265 2009-01-01  Bruno Haible  <bruno@clisp.org>
33266
33267         * gnulib-tool (func_reset_sigpipe): Add more comments.
33268
33269 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33270
33271         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33272         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33273         already know the answer.
33274
33275 2009-01-01  Jim Meyering  <meyering@redhat.com>
33276
33277         * lib/version-etc.c (version_etc_va): Update copyright year.
33278
33279 2008-12-30  Bruno Haible  <bruno@clisp.org>
33280
33281         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33282         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33283         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33284
33285 2008-12-29  Eric Blake  <ebb9@byu.net>
33286
33287         multiarch: avoid autoconf AC_REQUIRE bug
33288         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33289         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33290         2.63 and older.
33291         Reported by Bruno Haible, and analyzed in
33292         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33293
33294 2008-12-29  Bruno Haible  <bruno@clisp.org>
33295
33296         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33297         files in subdirectories correctly.
33298         Reported by Ralf Wildenhues.
33299
33300 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33301
33302         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33303         rather than 'join FILE -', for Solaris join.
33304
33305 2008-12-29  Bruno Haible  <bruno@clisp.org>
33306
33307         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33308         quoting.
33309         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33310         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33311         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33312         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33313         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33314         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33315         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33316         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33317         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33318         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33319         * m4/nls.m4 (AM_NLS): Likewise.
33320         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33321         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33322         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33323         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33324         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33325         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33326         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33327         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33328         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33329         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33330         * m4/xsize.m4 (gl_XSIZE): Likewise.
33331         Suggested by Jim Meyering.
33332
33333 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33334
33335         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33336         * lib/parse-duration.c: use a switch instead of cascading if's.
33337
33338 2008-12-29  Eric Blake  <ebb9@byu.net>
33339
33340         wchar.h: supply WEOF on Irix 5.3
33341         * lib/wchar.in.h (wint_t): Also supply WEOF.
33342         * lib/wctype.in.h (wint_t): Likewise.
33343         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33344         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33345         Reported by Tom G. Christensen.
33346
33347 2008-12-26  Bruno Haible  <bruno@clisp.org>
33348
33349         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33350         i486, i586, i686.
33351
33352 2008-12-26  Bruno Haible  <bruno@clisp.org>
33353
33354         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33355
33356 2008-12-26  Bruno Haible  <bruno@clisp.org>
33357
33358         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33359         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33360         not __STDC_CONSTANT_MACROS.
33361         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33362
33363 2008-12-25  Bruno Haible  <bruno@clisp.org>
33364
33365         Add support for universal builds to vasnprintf.
33366         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33367         universal builds, guess no.
33368         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33369         * modules/vasprintf-posix (Depends-on): Likewise.
33370         * modules/fprintf-posix (Depends-on): Likewise.
33371         * modules/vfprintf-posix (Depends-on): Likewise.
33372         * modules/snprintf-posix (Depends-on): Likewise.
33373         * modules/vsnprintf-posix (Depends-on): Likewise.
33374         * modules/sprintf-posix (Depends-on): Likewise.
33375         * modules/vsprintf-posix (Depends-on): Likewise.
33376         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33377         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33378         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33379         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33380         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33381         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33382         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33383
33384         Add support for universal builds to <inttypes.h>.
33385         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33386         _SCNu64_PREFIX): In Apple
33387         universal builds, define directly, using _LP64.
33388         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33389         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33390         * modules/inttypes (Depends-on): Add multiarch.
33391         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33392
33393         Add support for universal builds to <stdint.h>.
33394         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33395         universal builds, define directly, using _LP64.
33396         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33397         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33398         and size_t.
33399         * modules/stdint (Depends-on): Add multiarch.
33400         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33401
33402         New module 'multiarch'.
33403         * modules/multiarch: New file.
33404         * m4/multiarch.m4: New file.
33405
33406 2008-12-25  Bruno Haible  <bruno@clisp.org>
33407
33408         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33409
33410 2008-12-25  Bruno Haible  <bruno@clisp.org>
33411
33412         * modules/btowc (License): Relicense under LGPLv2+.
33413         * modules/mbsinit (License): Likewise.
33414         * modules/mbrtowc (License): Likewise.
33415         * modules/wcrtomb (License): Likewise.
33416         * modules/streq (License): Likewise.
33417         Reported by David Lutterkort <lutter@redhat.com>.
33418
33419 2008-12-23  Bruno Haible  <bruno@clisp.org>
33420
33421         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33422
33423 2008-12-23  Bruno Haible  <bruno@clisp.org>
33424
33425         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33426         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33427         GETADDRINFO_LIB, not in LIBS.
33428         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33429         * modules/canon-host (Link): Likewise.
33430         * NEWS: Mention the change.
33431         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33432         GETADDRINFO_LIB.
33433
33434 2008-12-22  Bruno Haible  <bruno@clisp.org>
33435
33436         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33437         * doc/posix-functions/iswalpha_l.texi: Likewise.
33438         * doc/posix-functions/iswblank_l.texi: Likewise.
33439         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33440         * doc/posix-functions/iswctype_l.texi: Likewise.
33441         * doc/posix-functions/iswdigit_l.texi: Likewise.
33442         * doc/posix-functions/iswgraph_l.texi: Likewise.
33443         * doc/posix-functions/iswlower_l.texi: Likewise.
33444         * doc/posix-functions/iswprint_l.texi: Likewise.
33445         * doc/posix-functions/iswpunct_l.texi: Likewise.
33446         * doc/posix-functions/iswspace_l.texi: Likewise.
33447         * doc/posix-functions/iswupper_l.texi: Likewise.
33448         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33449         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33450         * doc/posix-functions/open_wmemstream.texi: Likewise.
33451         * doc/posix-functions/swscanf.texi: Likewise.
33452         * doc/posix-functions/towctrans_l.texi: Likewise.
33453         * doc/posix-functions/towlower.texi: Likewise.
33454         * doc/posix-functions/towlower_l.texi: Likewise.
33455         * doc/posix-functions/towupper.texi: Likewise.
33456         * doc/posix-functions/towupper_l.texi: Likewise.
33457         * doc/posix-functions/vfwprintf.texi: Likewise.
33458         * doc/posix-functions/vfwscanf.texi: Likewise.
33459         * doc/posix-functions/vswscanf.texi: Likewise.
33460         * doc/posix-functions/vwprintf.texi: Likewise.
33461         * doc/posix-functions/vwscanf.texi: Likewise.
33462         * doc/posix-functions/wcpcpy.texi: Likewise.
33463         * doc/posix-functions/wcpncpy.texi: Likewise.
33464         * doc/posix-functions/wcscasecmp.texi: Likewise.
33465         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33466         * doc/posix-functions/wcscoll_l.texi: Likewise.
33467         * doc/posix-functions/wcsdup.texi: Likewise.
33468         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33469         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33470         * doc/posix-functions/wcsnlen.texi: Likewise.
33471         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33472         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33473         * doc/posix-functions/wctrans_l.texi: Likewise.
33474         * doc/posix-functions/wctype_l.texi: Likewise.
33475         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33476         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33477         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33478         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33479         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33480         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33481         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33482         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33483         * doc/glibc-functions/wcschrnul.texi: Likewise.
33484         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33485         * doc/glibc-functions/wcstod_l.texi: Likewise.
33486         * doc/glibc-functions/wcstof_l.texi: Likewise.
33487         * doc/glibc-functions/wcstol_l.texi: Likewise.
33488         * doc/glibc-functions/wcstold_l.texi: Likewise.
33489         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33490         * doc/glibc-functions/wcstoq.texi: Likewise.
33491         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33492         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33493         * doc/glibc-functions/wcstouq.texi: Likewise.
33494         * doc/glibc-functions/wmempcpy.texi: Likewise.
33495
33496 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33497             Eric Blake  <ebb9@byu.net>
33498             Paolo Bonzini  <bonzini@gnu.org>
33499             Bruno Haible  <bruno@clisp.org>
33500
33501         Make c-stack work on Haiku.
33502         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33503         (c_stack_action): Use SA_ONSTACK flag.
33504
33505 2008-12-22  Bruno Haible  <bruno@clisp.org>
33506
33507         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33508
33509 2008-12-22  Bruno Haible  <bruno@clisp.org>
33510
33511         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33512         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33513         being overridden.
33514         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33515         New macros.
33516         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33518         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33519         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33520
33521 2008-12-22  Bruno Haible  <bruno@clisp.org>
33522
33523         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33524         from test code.
33525
33526 2008-12-22  Eric Blake  <ebb9@byu.net>
33527
33528         Avoid gcc warnings on cygwin.
33529         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33530         Avoid unused variable.
33531         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33532         Likewise.
33533
33534 2008-12-22  Bruno Haible  <bruno@clisp.org>
33535
33536         Remove HAVE_MBRTOWC conditionals.
33537         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33538         (mbscasecmp): Assume mbrtowc function.
33539         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33540         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33541         * lib/mbschr.c: Include mbuiter.h unconditionally.
33542         (mbschr): Assume mbrtowc function.
33543         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33544         (mbscspn): Assume mbrtowc function.
33545         * lib/mbslen.c: Include mbuiter.h unconditionally.
33546         (mbslen): Assume mbrtowc function.
33547         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33548         (mbsncasecmp): Assume mbrtowc function.
33549         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33550         (mbsnlen): Assume mbrtowc function.
33551         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33552         (mbspbrk): Assume mbrtowc function.
33553         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33554         (mbspcasecmp): Assume mbrtowc function.
33555         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33556         (mbsrchr): Assume mbrtowc function.
33557         * lib/mbssep.c: Include mbuiter.h unconditionally.
33558         (mbssep): Assume mbrtowc function.
33559         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33560         (mbsspn): Assume mbrtowc function.
33561         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33562         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33563         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33564         (mbstok_r): Assume mbrtowc function.
33565         * lib/propername.c: Include mbuiter.h unconditionally.
33566         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33567         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33568         (trim2): Assume mbrtowc function.
33569         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33570         (mbsnwidth): Assume mbrtowc function.
33571         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33572         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33573         fallback definitions.
33574         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33575
33576 2008-12-22  Bruno Haible  <bruno@clisp.org>
33577
33578         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33579
33580 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33581
33582         * modules/regex: Request emulations for the mb*/wc* functions we need.
33583         * m4/regex.m4: Don't look for those functions here.
33584         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33585
33586 2008-12-22  Bruno Haible  <bruno@clisp.org>
33587
33588         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33589
33590 2008-12-21  Bruno Haible  <bruno@clisp.org>
33591
33592         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33593         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33594         (Include): Remove conditionalization.
33595         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33596         (Include): Remove conditionalization.
33597         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33598         (Include): Remove conditionalization.
33599         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33600         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33601         * NEWS: Mention the change.
33602         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33603         via Sergey Poznyakoff <gray@gnu.org.ua>.
33604
33605 2008-12-21  Bruno Haible  <bruno@clisp.org>
33606
33607         * MODULES.html.sh (Extended multibyte and wide character utilities
33608         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33609         wcrtomb, wcsrtombs.
33610         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33611         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33612         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33613         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33614
33615 2008-12-21  Bruno Haible  <bruno@clisp.org>
33616
33617         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33618
33619 2008-12-21  Bruno Haible  <bruno@clisp.org>
33620
33621         * modules/wcsnrtombs-tests: New file.
33622         * tests/test-wcsnrtombs1.sh: New file.
33623         * tests/test-wcsnrtombs2.sh: New file.
33624         * tests/test-wcsnrtombs3.sh: New file.
33625         * tests/test-wcsnrtombs4.sh: New file.
33626         * tests/test-wcsnrtombs.c: New file.
33627
33628         New module 'wcsnrtombs'.
33629         * lib/wchar.in.h (wcsnrtombs): New declaration.
33630         * lib/wcsnrtombs.c: New file.
33631         * lib/wcsrtombs-state.c: New file.
33632         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33633         (internal_state): Remove variable.
33634         * m4/wcsnrtombs.m4: New file.
33635         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33636         compilation units.
33637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33638         HAVE_WCSNRTOMBS.
33639         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33640         HAVE_WCSNRTOMBS.
33641         * modules/wcsnrtombs: New file.
33642         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33643         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33644
33645 2008-12-21  Bruno Haible  <bruno@clisp.org>
33646
33647         * modules/wcsrtombs-tests: New file.
33648         * tests/test-wcsrtombs1.sh: New file.
33649         * tests/test-wcsrtombs2.sh: New file.
33650         * tests/test-wcsrtombs3.sh: New file.
33651         * tests/test-wcsrtombs4.sh: New file.
33652         * tests/test-wcsrtombs.c: New file.
33653
33654         New module 'wcsrtombs'.
33655         * lib/wchar.in.h (wcsrtombs): New declaration.
33656         * lib/wcsrtombs.c: New file.
33657         * m4/wcsrtombs.m4: New file.
33658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33659         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33661         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33662         * modules/wcsrtombs: New file.
33663         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33664         bugs.
33665
33666 2008-12-21  Bruno Haible  <bruno@clisp.org>
33667
33668         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33669         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33670         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33671         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33672         if not correct.
33673         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33674         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33675         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33676         m4/locale-zh.m4, m4/codeset.m4.
33677         * doc/posix-functions/wcrtomb.texi: Document the bug.
33678
33679 2008-12-21  Bruno Haible  <bruno@clisp.org>
33680
33681         Work around a btowc() bug on IRIX 6.5.
33682         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33683         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33684         REPLACE_WTOBC if not.
33685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33686         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33687         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33688
33689 2008-12-21  Bruno Haible  <bruno@clisp.org>
33690
33691         * modules/wcrtomb-tests: New file.
33692         * tests/test-wcrtomb.sh: New file.
33693         * tests/test-wcrtomb.c: New file.
33694
33695         New module 'wcrtomb'.
33696         * lib/wchar.in.h (wcrtomb): New declaration.
33697         * lib/wcrtomb.c: New file.
33698         * m4/wcrtomb.m4: New file.
33699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33700         HAVE_WCRTOMB.
33701         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33702         HAVE_WCRTOMB.
33703         * modules/wcrtomb: New file.
33704         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33705
33706 2008-12-21  Bruno Haible  <bruno@clisp.org>
33707
33708         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33709         * modules/mbsrtowcs (Files): Likewise.
33710         * modules/wctob (Files): Likewise.
33711         * modules/c-strcase-tests (Files): Likewise.
33712         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33713         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33714         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33715         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33716         * modules/vasnprintf-posix-tests (Files): Likewise.
33717
33718 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33719
33720         gitlog-to-changelog: pass all command-line arguments to git-log
33721         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33722         it is sometimes convenient to filter the commits in various ways.
33723         gitlog-to-changelog only allows --since to specify a start date,
33724         but git-log itself supports many other filtering mechanisms.
33725         At the moment, I want to filter by branch name.  Rather than
33726         adding a --branch option to gitlog-to-changelog, it seems more
33727         flexible to simply pass all options directly to git-log and let
33728         git do the work.  Notice that this effectively makes --since a
33729         redundant option for gitlog-to-changelog, but removing it would
33730         require current usage to change since calls would then require
33731         an additional '--'.
33732
33733 2008-12-21  Bruno Haible  <bruno@clisp.org>
33734
33735         * modules/mbsnrtowcs-tests: New file.
33736         * tests/test-mbsnrtowcs1.sh: New file.
33737         * tests/test-mbsnrtowcs2.sh: New file.
33738         * tests/test-mbsnrtowcs3.sh: New file.
33739         * tests/test-mbsnrtowcs4.sh: New file.
33740         * tests/test-mbsnrtowcs.c: New file.
33741
33742         New module 'mbsnrtowcs'.
33743         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33744         * lib/mbsnrtowcs.c: New file.
33745         * lib/mbsrtowcs-state.c: New file.
33746         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33747         (internal_state): Remove variable.
33748         * m4/mbsnrtowcs.m4: New file.
33749         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33750         compilation units.
33751         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33752         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33753         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33754         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33755         * modules/mbsnrtowcs: New file.
33756         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33757         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33758         portability problem.
33759
33760 2008-12-21  Bruno Haible  <bruno@clisp.org>
33761
33762         Work around mbsrtowcs bug.
33763         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33764         (gl_FUNC_MBSRTOWCS): Invoke it.
33765         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33766         m4/locale-zh.m4.
33767         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33768
33769 2008-12-21  Bruno Haible  <bruno@clisp.org>
33770
33771         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33772
33773 2008-12-21  Bruno Haible  <bruno@clisp.org>
33774
33775         Update doc for AIX.
33776         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33777         16-bit wchar_t type.
33778         * doc/posix-functions/btowc.texi: Likewise.
33779         * doc/posix-functions/fgetwc.texi: Likewise.
33780         * doc/posix-functions/fgetws.texi: Likewise.
33781         * doc/posix-functions/fputwc.texi: Likewise.
33782         * doc/posix-functions/fputws.texi: Likewise.
33783         * doc/posix-functions/fwide.texi: Likewise.
33784         * doc/posix-functions/fwprintf.texi: Likewise.
33785         * doc/posix-functions/fwscanf.texi: Likewise.
33786         * doc/posix-functions/getwchar.texi: Likewise.
33787         * doc/posix-functions/getwc.texi: Likewise.
33788         * doc/posix-functions/iswalnum.texi: Likewise.
33789         * doc/posix-functions/iswalpha.texi: Likewise.
33790         * doc/posix-functions/iswblank.texi: Likewise.
33791         * doc/posix-functions/iswcntrl.texi: Likewise.
33792         * doc/posix-functions/iswctype.texi: Likewise.
33793         * doc/posix-functions/iswdigit.texi: Likewise.
33794         * doc/posix-functions/iswgraph.texi: Likewise.
33795         * doc/posix-functions/iswlower.texi: Likewise.
33796         * doc/posix-functions/iswprint.texi: Likewise.
33797         * doc/posix-functions/iswpunct.texi: Likewise.
33798         * doc/posix-functions/iswspace.texi: Likewise.
33799         * doc/posix-functions/iswupper.texi: Likewise.
33800         * doc/posix-functions/iswxdigit.texi: Likewise.
33801         * doc/posix-functions/mbrtowc.texi: Likewise.
33802         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33803         * doc/posix-functions/mbstowcs.texi: Likewise.
33804         * doc/posix-functions/mbtowc.texi: Likewise.
33805         * doc/posix-functions/putwchar.texi: Likewise.
33806         * doc/posix-functions/putwc.texi: Likewise.
33807         * doc/posix-functions/swprintf.texi: Likewise.
33808         * doc/posix-functions/tolower.texi: Likewise.
33809         * doc/posix-functions/toupper.texi: Likewise.
33810         * doc/posix-functions/towctrans.texi: Likewise.
33811         * doc/posix-functions/ungetwc.texi: Likewise.
33812         * doc/posix-functions/vswprintf.texi: Likewise.
33813         * doc/posix-functions/wcrtomb.texi: Likewise.
33814         * doc/posix-functions/wcscat.texi: Likewise.
33815         * doc/posix-functions/wcschr.texi: Likewise.
33816         * doc/posix-functions/wcscmp.texi: Likewise.
33817         * doc/posix-functions/wcscoll.texi: Likewise.
33818         * doc/posix-functions/wcscpy.texi: Likewise.
33819         * doc/posix-functions/wcscspn.texi: Likewise.
33820         * doc/posix-functions/wcsftime.texi: Likewise.
33821         * doc/posix-functions/wcslen.texi: Likewise.
33822         * doc/posix-functions/wcsncat.texi: Likewise.
33823         * doc/posix-functions/wcsncmp.texi: Likewise.
33824         * doc/posix-functions/wcsncpy.texi: Likewise.
33825         * doc/posix-functions/wcspbrk.texi: Likewise.
33826         * doc/posix-functions/wcsrchr.texi: Likewise.
33827         * doc/posix-functions/wcsrtombs.texi: Likewise.
33828         * doc/posix-functions/wcsspn.texi: Likewise.
33829         * doc/posix-functions/wcsstr.texi: Likewise.
33830         * doc/posix-functions/wcstod.texi: Likewise.
33831         * doc/posix-functions/wcstof.texi: Likewise.
33832         * doc/posix-functions/wcstoimax.texi: Likewise.
33833         * doc/posix-functions/wcstok.texi: Likewise.
33834         * doc/posix-functions/wcstold.texi: Likewise.
33835         * doc/posix-functions/wcstoll.texi: Likewise.
33836         * doc/posix-functions/wcstol.texi: Likewise.
33837         * doc/posix-functions/wcstombs.texi: Likewise.
33838         * doc/posix-functions/wcstoull.texi: Likewise.
33839         * doc/posix-functions/wcstoul.texi: Likewise.
33840         * doc/posix-functions/wcstoumax.texi: Likewise.
33841         * doc/posix-functions/wcswidth.texi: Likewise.
33842         * doc/posix-functions/wcsxfrm.texi: Likewise.
33843         * doc/posix-functions/wctob.texi: Likewise.
33844         * doc/posix-functions/wctomb.texi: Likewise.
33845         * doc/posix-functions/wctrans.texi: Likewise.
33846         * doc/posix-functions/wctype.texi: Likewise.
33847         * doc/posix-functions/wcwidth.texi: Likewise.
33848         * doc/posix-functions/wmemchr.texi: Likewise.
33849         * doc/posix-functions/wmemcmp.texi: Likewise.
33850         * doc/posix-functions/wmemcpy.texi: Likewise.
33851         * doc/posix-functions/wmemmove.texi: Likewise.
33852         * doc/posix-functions/wmemset.texi: Likewise.
33853         * doc/posix-functions/wprintf.texi: Likewise.
33854         * doc/posix-functions/wscanf.texi: Likewise.
33855
33856 2008-12-21  Bruno Haible  <bruno@clisp.org>
33857
33858         Update doc for HP-UX 11.11.
33859         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33860         in HP-UX version 11.00, not in all versions of HP-UX 11.
33861         * doc/posix-functions/fwide.texi: Likewise.
33862         * doc/posix-functions/fwprintf.texi: Likewise.
33863         * doc/posix-functions/fwscanf.texi: Likewise.
33864         * doc/posix-functions/inet_ntop.texi: Likewise.
33865         * doc/posix-functions/inet_pton.texi: Likewise.
33866         * doc/posix-functions/mbrlen.texi: Likewise.
33867         * doc/posix-functions/mbrtowc.texi: Likewise.
33868         * doc/posix-functions/mbsinit.texi: Likewise.
33869         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33870         * doc/posix-functions/swprintf.texi: Likewise.
33871         * doc/posix-functions/swscanf.texi: Likewise.
33872         * doc/posix-functions/towctrans.texi: Likewise.
33873         * doc/posix-functions/vfwprintf.texi: Likewise.
33874         * doc/posix-functions/vswprintf.texi: Likewise.
33875         * doc/posix-functions/vwprintf.texi: Likewise.
33876         * doc/posix-functions/wcrtomb.texi: Likewise.
33877         * doc/posix-functions/wcsrtombs.texi: Likewise.
33878         * doc/posix-functions/wcsstr.texi: Likewise.
33879         * doc/posix-functions/wctob.texi: Likewise.
33880         * doc/posix-functions/wctrans.texi: Likewise.
33881         * doc/posix-functions/wmemchr.texi: Likewise.
33882         * doc/posix-functions/wmemcmp.texi: Likewise.
33883         * doc/posix-functions/wmemcpy.texi: Likewise.
33884         * doc/posix-functions/wmemmove.texi: Likewise.
33885         * doc/posix-functions/wmemset.texi: Likewise.
33886         * doc/posix-functions/wprintf.texi: Likewise.
33887         * doc/posix-functions/wscanf.texi: Likewise.
33888
33889 2008-12-21  Bruno Haible  <bruno@clisp.org>
33890
33891         Work around a portability problem.
33892         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33893         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33894
33895 2008-12-20  Bruno Haible  <bruno@clisp.org>
33896
33897         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33898         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33899         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33900         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33901         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33902
33903         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33904         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33905         set.
33906         (GNULIB_defined_mbstate_t): New macro.
33907         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33908         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33909         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33910         reuses the system's mbrtowc function but works around the bugs.
33911         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33912         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33913         macros.
33914         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33915         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33916         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33917         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33918         REPLACE_MBSINIT if mbsinit needs to be overridden.
33919         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33920         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33921         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33922         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33923         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33924         m4/locale-zh.m4.
33925         (Depends): Add mbsinit.
33926         * modules/mbsinit (Depends): Add mbrtowc.
33927         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33928
33929 2008-12-20  Bruno Haible  <bruno@clisp.org>
33930
33931         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33932         so that there are no conversion errors on AIX.
33933         * tests/test-mbsrtowcs.c (main): LIkewise.
33934
33935 2008-12-20  Bruno Haible  <bruno@clisp.org>
33936
33937         Work around wctob bug on Solaris <= 9.
33938         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33939         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33941         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33942         * modules/wctob (Files): Add m4/locale-fr.m4.
33943         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33944
33945 2008-12-20  Bruno Haible  <bruno@clisp.org>
33946
33947         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33948         /dev/null.
33949         * tests/test-select-in.sh: Likewise.
33950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33951
33952 2008-12-20  Bruno Haible  <bruno@clisp.org>
33953
33954         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33955         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33956         Cygwin 1.5.x.
33957
33958 2008-12-20  Bruno Haible  <bruno@clisp.org>
33959
33960         Ensure mbstate_t is defined on HP-UX 11.11.
33961         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33962         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33963         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33964         AC_USE_SYSTEM_EXTENSIONS.
33965         * modules/fnmatch (Depends-on): Add extensions.
33966         * modules/mbrlen (Depends-on): Likewise.
33967         * modules/mbrtowc (Depends-on): Likewise.
33968         * modules/mbsinit (Depends-on): Likewise.
33969         * modules/mbsrtowcs (Depends-on): Likewise.
33970         * modules/mbswidth (Depends-on): Likewise.
33971         * modules/quotearg (Depends-on): Likewise.
33972         * modules/strftime (Depends-on): Likewise.
33973
33974 2008-12-20  Bruno Haible  <bruno@clisp.org>
33975
33976         Ensure wctob is declared on IRIX 6.5.
33977         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33978         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33979         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33981         of HAVE_WCTOB.
33982         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33983         HAVE_WCTOB.
33984         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33985
33986 2008-12-19  Bruno Haible  <bruno@clisp.org>
33987
33988         * modules/mbsrtowcs-tests: New file.
33989         * tests/test-mbsrtowcs1.sh: New file.
33990         * tests/test-mbsrtowcs2.sh: New file.
33991         * tests/test-mbsrtowcs3.sh: New file.
33992         * tests/test-mbsrtowcs4.sh: New file.
33993         * tests/test-mbsrtowcs.c: New file.
33994
33995         New module 'mbsrtowcs'.
33996         * lib/wchar.in.h (mbsrtowcs): New declaration.
33997         * lib/mbsrtowcs.c: New file.
33998         * m4/mbsrtowcs.m4: New file.
33999         * modules/mbsrtowcs: New file.
34000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34001         HAVE_MBSRTOWCS.
34002         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34003         HAVE_MBSRTOWCS.
34004         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34005
34006 2008-12-19  Bruno Haible  <bruno@clisp.org>
34007
34008         New module 'mbrlen'.
34009         * lib/wchar.in.h (mbrlen): New declaration.
34010         * lib/mbrlen.c: New file.
34011         * m4/mbrlen.m4: New file.
34012         * modules/mbrlen: New file.
34013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34014         HAVE_MBRLEN.
34015         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34016         HAVE_MBRLEN.
34017         * doc/posix-functions/mbrlen.texi: Document the new module.
34018
34019 2008-12-19  Bruno Haible  <bruno@clisp.org>
34020
34021         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34022         * modules/mbrtowc (Depends-on): Add verify.
34023         Suggested by Paul Eggert.
34024
34025 2008-12-18  Bruno Haible  <bruno@clisp.org>
34026
34027         * modules/mbsinit-tests: New file.
34028         * tests/test-mbsinit.sh: New file.
34029         * tests/test-mbsinit.c: New file.
34030
34031 2008-12-18  Bruno Haible  <bruno@clisp.org>
34032
34033         * modules/mbrtowc-tests: New file.
34034         * tests/test-mbrtowc1.sh: New file.
34035         * tests/test-mbrtowc2.sh: New file.
34036         * tests/test-mbrtowc3.sh: New file.
34037         * tests/test-mbrtowc4.sh: New file.
34038         * tests/test-mbrtowc.c: New file.
34039
34040         New module 'mbrtowc'.
34041         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34042         mbsinit and mbrtowc.
34043         (mbrtowc): New declaration.
34044         * lib/mbrtowc.c: New file.
34045         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34046         * modules/mbrtowc: New file.
34047         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34048         HAVE_MBRTOWC.
34049         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34050         HAVE_MBRTOWC.
34051         * doc/posix-functions/mbrtowc.texi: Document the new module.
34052
34053 2008-12-18  Bruno Haible  <bruno@clisp.org>
34054
34055         New module 'wctob'.
34056         * lib/wchar.in.h (wctob): New declaration.
34057         * lib/wctob.c: New file.
34058         * m4/wctob.m4: New file.
34059         * modules/wctob: New file.
34060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34061         HAVE_WCTOB.
34062         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34063         * doc/posix-functions/wctob.texi: Document the new module.
34064
34065 2008-12-18  Bruno Haible  <bruno@clisp.org>
34066
34067         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34068         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34069
34070 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34071
34072         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34073         G. Christensen" <tgc@jupiterrise.com>.
34074
34075         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34076         G. Christensen" <tgc@jupiterrise.com>.
34077
34078         * lib/flock.c: Need to include string.h.  Reported by "Tom
34079         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34080         <ebb9@byu.net>.
34081
34082 2008-12-18  Bruno Haible  <bruno@clisp.org>
34083
34084         * m4/locale-ja.m4: New file, from GNU gettext.
34085
34086 2008-12-17  Bruno Haible  <bruno@clisp.org>
34087
34088         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34089         Suggested by Eric Blake.
34090
34091 2008-12-17  Bruno Haible  <bruno@clisp.org>
34092
34093         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34094
34095 2008-12-17  Bruno Haible  <bruno@clisp.org>
34096
34097         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34098         * modules/mbsinit (Depends-on): Add verify.
34099         Suggested by Paul Eggert.
34100
34101 2008-12-17  Bruno Haible  <bruno@clisp.org>
34102
34103         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34104         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34105         gl_FUNC_MBRTOWC.
34106         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34107         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34108         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34109         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34110         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34111         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34112         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34113         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34114         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34115         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34116         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34117         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34118         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34119         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34120         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34121         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34122         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34123         * modules/trim (configure.ac): Likewise.
34124
34125 2008-12-17  Bruno Haible  <bruno@clisp.org>
34126
34127         * modules/btowc-tests: New file.
34128         * tests/test-btowc1.sh: New file.
34129         * tests/test-btowc2.sh: New file.
34130         * tests/test-btowc.c: New file.
34131
34132         New module 'btowc'.
34133         * lib/wchar.in.h (btowc): New declaration.
34134         * lib/btowc.c: New file.
34135         * m4/btowc.m4: New file.
34136         * modules/btowc: New file.
34137         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34138         HAVE_BTOWC.
34139         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34140         * doc/posix-functions/btowc.texi: Document the new module.
34141
34142 2008-12-17  Bruno Haible  <bruno@clisp.org>
34143
34144         New module 'mbsinit'.
34145         * lib/wchar.in.h (mbsinit): New declaration.
34146         * lib/mbsinit.c: New file.
34147         * m4/mbsinit.m4: New file.
34148         * modules/mbsinit: New file.
34149         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34150         HAVE_MBSINIT.
34151         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34152         HAVE_MBSINIT.
34153         * doc/posix-functions/mbsinit.texi: Document the new module.
34154
34155 2008-12-16  Bruno Haible  <bruno@clisp.org>
34156
34157         * lib/unistd.in.h: Add comment.
34158         * tests/test-environ.c: Don't include <stdlib.h>.
34159
34160 2008-12-16  Bruno Haible  <bruno@clisp.org>
34161
34162         * lib/parse-duration.h (parse_duration): Document return value
34163         convention.
34164         * lib/parse-duration.c: Include specification header first. Add
34165         comments.
34166         (_): Remove macro.
34167         (parse_year_month_day, parse_hour_minute_second): Move side effects
34168         outside of strchr call.
34169         (parse_non_iso8601): Move side effects outside of isspace call.
34170         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34171         call.
34172
34173 2008-12-16  Bruno Haible  <bruno@clisp.org>
34174
34175         * tests/test-parse-duration.sh: Produce no output when the test
34176         succeeds.
34177
34178 2008-12-16  Bruno Haible  <bruno@clisp.org>
34179
34180         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34181         expressions.
34182
34183 2008-12-15  Bruno Haible  <bruno@clisp.org>
34184
34185         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34186         * doc/glibc-functions/flistxattr.texi: Likewise.
34187         * doc/glibc-functions/fopencookie.texi: Likewise.
34188         * doc/glibc-functions/fremovexattr.texi: Likewise.
34189         * doc/glibc-functions/fsetxattr.texi: Likewise.
34190         * doc/glibc-functions/getxattr.texi: Likewise.
34191         * doc/glibc-functions/lgetxattr.texi: Likewise.
34192         * doc/glibc-functions/listxattr.texi: Likewise.
34193         * doc/glibc-functions/llistxattr.texi: Likewise.
34194         * doc/glibc-functions/lremovexattr.texi: Likewise.
34195         * doc/glibc-functions/lsetxattr.texi: Likewise.
34196         * doc/glibc-functions/removexattr.texi: Likewise.
34197         * doc/glibc-functions/setxattr.texi: Likewise.
34198         * doc/posix-functions/open_memstream.texi: Likewise.
34199
34200 2008-12-15  Eric Blake  <ebb9@byu.net>
34201
34202         Update doc for cygwin 1.7.
34203         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34204         functions.
34205         * doc/posix-functions/fchmodat.texi: Likewise.
34206         * doc/posix-functions/fchownat.texi: Likewise.
34207         * doc/posix-functions/fdopendir.texi: Likewise.
34208         * doc/posix-functions/fmemopen.texi: Likewise.
34209         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34210         * doc/posix-functions/fstatat.texi: Likewise.
34211         * doc/posix-functions/futimens.texi: Likewise.
34212         * doc/posix-functions/gai_strerror.texi: Likewise.
34213         * doc/posix-functions/getaddrinfo.texi: Likewise.
34214         * doc/posix-functions/getnameinfo.texi: Likewise.
34215         * doc/posix-functions/if_freenameindex.texi: Likewise.
34216         * doc/posix-functions/if_indextoname.texi: Likewise.
34217         * doc/posix-functions/if_nameindex.texi: Likewise.
34218         * doc/posix-functions/if_nametoindex.texi: Likewise.
34219         * doc/posix-functions/insque.texi: Likewise.
34220         * doc/posix-functions/linkat.texi: Likewise.
34221         * doc/posix-functions/llrint.texi: Likewise.
34222         * doc/posix-functions/llrintf.texi: Likewise.
34223         * doc/posix-functions/llrintl.texi: Likewise.
34224         * doc/posix-functions/lockf.texi: Likewise.
34225         * doc/posix-functions/lrintl.texi: Likewise.
34226         * doc/posix-functions/mkdirat.texi: Likewise.
34227         * doc/posix-functions/mkfifoat.texi: Likewise.
34228         * doc/posix-functions/mknodat.texi: Likewise.
34229         * doc/posix-functions/mq_close.texi: Likewise.
34230         * doc/posix-functions/mq_getattr.texi: Likewise.
34231         * doc/posix-functions/mq_notify.texi: Likewise.
34232         * doc/posix-functions/mq_open.texi: Likewise.
34233         * doc/posix-functions/mq_receive.texi: Likewise.
34234         * doc/posix-functions/mq_send.texi: Likewise.
34235         * doc/posix-functions/mq_setattr.texi: Likewise.
34236         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34237         * doc/posix-functions/mq_timedsend.texi: Likewise.
34238         * doc/posix-functions/mq_unlink.texi: Likewise.
34239         * doc/posix-functions/open_memstream.texi: Likewise.
34240         * doc/posix-functions/openat.texi: Likewise.
34241         * doc/posix-functions/posix_fadvise.texi: Likewise.
34242         * doc/posix-functions/posix_fallocate.texi: Likewise.
34243         * doc/posix-functions/posix_madvise.texi: Likewise.
34244         * doc/posix-functions/posix_memalign.texi: Likewise.
34245         * doc/posix-functions/posix_openpt.texi: Likewise.
34246         * doc/posix-functions/readlinkat.texi: Likewise.
34247         * doc/posix-functions/remque.texi: Likewise.
34248         * doc/posix-functions/renameat.texi: Likewise.
34249         * doc/posix-functions/rintl.texi: Likewise.
34250         * doc/posix-functions/sem_unlink.texi: Likewise.
34251         * doc/posix-functions/shm_open.texi: Likewise.
34252         * doc/posix-functions/shm_unlink.texi: Likewise.
34253         * doc/posix-functions/signgam.texi: Likewise.
34254         * doc/posix-functions/sigset.texi: Likewise.
34255         * doc/posix-functions/stpcpy.texi: Likewise.
34256         * doc/posix-functions/stpncpy.texi: Likewise.
34257         * doc/posix-functions/strerror.texi: Likewise.
34258         * doc/posix-functions/strtod.texi: Likewise.
34259         * doc/posix-functions/symlinkat.texi: Likewise.
34260         * doc/posix-functions/unlinkat.texi: Likewise.
34261         * doc/posix-functions/utimensat.texi: Likewise.
34262         * doc/glibc-functions/bindresvport.texi: Likewise.
34263         * doc/glibc-functions/dn_expand.texi: Likewise.
34264         * doc/glibc-functions/exp10.texi: Likewise.
34265         * doc/glibc-functions/exp10f.texi: Likewise.
34266         * doc/glibc-functions/fgetxattr.texi: Likewise.
34267         * doc/glibc-functions/flistxattr.texi: Likewise.
34268         * doc/glibc-functions/fopencookie.texi: Likewise.
34269         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34270         * doc/glibc-functions/fremovexattr.texi: Likewise.
34271         * doc/glibc-functions/fsetxattr.texi: Likewise.
34272         * doc/glibc-functions/getifaddrs.texi: Likewise.
34273         * doc/glibc-functions/getxattr.texi: Likewise.
34274         * doc/glibc-functions/lgetxattr.texi: Likewise.
34275         * doc/glibc-functions/listxattr.texi: Likewise.
34276         * doc/glibc-functions/llistxattr.texi: Likewise.
34277         * doc/glibc-functions/lremovexattr.texi: Likewise.
34278         * doc/glibc-functions/lsetxattr.texi: Likewise.
34279         * doc/glibc-functions/pow10.texi: Likewise.
34280         * doc/glibc-functions/pow10f.texi: Likewise.
34281         * doc/glibc-functions/rcmd_af.texi: Likewise.
34282         * doc/glibc-functions/removexattr.texi: Likewise.
34283         * doc/glibc-functions/res_init.texi: Likewise.
34284         * doc/glibc-functions/res_mkquery.texi: Likewise.
34285         * doc/glibc-functions/res_query.texi: Likewise.
34286         * doc/glibc-functions/res_querydomain.texi: Likewise.
34287         * doc/glibc-functions/res_send.texi: Likewise.
34288         * doc/glibc-functions/rresvport_af.texi: Likewise.
34289         * doc/glibc-functions/setxattr.texi: Likewise.
34290         * doc/glibc-functions/strcasestr.texi: Likewise.
34291
34292 2008-12-15  Bruno Haible  <bruno@clisp.org>
34293
34294         Fix compilation error on OSF/1 4.0.
34295         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34296         <sys/time.h>, simply delegate to the system header.
34297         Reported by Daniel Richard G. <oss@teragram.com>.
34298
34299 2008-12-15  Bruno Haible  <bruno@clisp.org>
34300
34301         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34302         * doc/posix-functions/fchmodat.texi: Likewise.
34303         * doc/posix-functions/fchownat.texi: Likewise.
34304         * doc/posix-functions/fdopendir.texi: Likewise.
34305         * doc/posix-functions/fstatat.texi: Likewise.
34306         * doc/posix-functions/mkdirat.texi: Likewise.
34307         * doc/posix-functions/unlinkat.texi: Likewise.
34308
34309 2008-12-14  Bruno Haible  <bruno@clisp.org>
34310
34311         Update doc for POSIX:2008.
34312         * doc/posix-functions/faccessat.texi: New file.
34313         * doc/posix-functions/fchmodat.texi: New file.
34314         * doc/posix-functions/fchownat.texi: New file.
34315         * doc/posix-functions/fdopendir.texi: New file.
34316         * doc/posix-functions/fstatat.texi: New file.
34317         * doc/posix-functions/futimens.texi: New file.
34318         * doc/posix-functions/linkat.texi: New file.
34319         * doc/posix-functions/mkdirat.texi: New file.
34320         * doc/posix-functions/mkfifoat.texi: New file.
34321         * doc/posix-functions/mknodat.texi: New file.
34322         * doc/posix-functions/open_wmemstream.texi: New file.
34323         * doc/posix-functions/openat.texi: New file.
34324         * doc/posix-functions/psiginfo.texi: New file.
34325         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34326         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34327         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34328         * doc/posix-functions/readlinkat.texi: New file.
34329         * doc/posix-functions/renameat.texi: New file.
34330         * doc/posix-functions/strerror_l.texi: New file.
34331         * doc/posix-functions/symlinkat.texi: New file.
34332         * doc/posix-functions/unlinkat.texi: New file.
34333         * doc/posix-functions/utimensat.texi: New file.
34334         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34335
34336 2008-12-14  Bruno Haible  <bruno@clisp.org>
34337
34338         Update doc for POSIX:2008.
34339         * doc/posix-functions/alphasort.texi: Renamed from
34340         doc/glibc-functions/alphasort.texi.
34341         * doc/posix-functions/dirfd.texi: Renamed from
34342         doc/glibc-functions/dirfd.texi.
34343         * doc/posix-functions/dprintf.texi: Renamed from
34344         doc/glibc-functions/dprintf.texi.
34345         * doc/posix-functions/duplocale.texi: Renamed from
34346         doc/glibc-functions/duplocale.texi.
34347         * doc/posix-functions/fexecve.texi: Renamed from
34348         doc/glibc-functions/fexecve.texi.
34349         * doc/posix-functions/fmemopen.texi: Renamed from
34350         doc/glibc-functions/fmemopen.texi.
34351         * doc/posix-functions/freelocale.texi: Renamed from
34352         doc/glibc-functions/freelocale.texi.
34353         * doc/posix-functions/getdate_err.texi: Renamed from
34354         doc/glibc-functions/getdate_err.texi.
34355         * doc/posix-functions/isalnum_l.texi: Renamed from
34356         doc/glibc-functions/isalnum_l.texi.
34357         * doc/posix-functions/isalpha_l.texi: Renamed from
34358         doc/glibc-functions/isalpha_l.texi.
34359         * doc/posix-functions/isblank_l.texi: Renamed from
34360         doc/glibc-functions/isblank_l.texi.
34361         * doc/posix-functions/iscntrl_l.texi: Renamed from
34362         doc/glibc-functions/iscntrl_l.texi.
34363         * doc/posix-functions/isdigit_l.texi: Renamed from
34364         doc/glibc-functions/isdigit_l.texi.
34365         * doc/posix-functions/isgraph_l.texi: Renamed from
34366         doc/glibc-functions/isgraph_l.texi.
34367         * doc/posix-functions/islower_l.texi: Renamed from
34368         doc/glibc-functions/islower_l.texi.
34369         * doc/posix-functions/isprint_l.texi: Renamed from
34370         doc/glibc-functions/isprint_l.texi.
34371         * doc/posix-functions/ispunct_l.texi: Renamed from
34372         doc/glibc-functions/ispunct_l.texi.
34373         * doc/posix-functions/isspace_l.texi: Renamed from
34374         doc/glibc-functions/isspace_l.texi.
34375         * doc/posix-functions/isupper_l.texi: Renamed from
34376         doc/glibc-functions/isupper_l.texi.
34377         * doc/posix-functions/iswalnum_l.texi: Renamed from
34378         doc/glibc-functions/iswalnum_l.texi.
34379         * doc/posix-functions/iswalpha_l.texi: Renamed from
34380         doc/glibc-functions/iswalpha_l.texi.
34381         * doc/posix-functions/iswblank_l.texi: Renamed from
34382         doc/glibc-functions/iswblank_l.texi.
34383         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34384         doc/glibc-functions/iswcntrl_l.texi.
34385         * doc/posix-functions/iswctype_l.texi: Renamed from
34386         doc/glibc-functions/iswctype_l.texi.
34387         * doc/posix-functions/iswdigit_l.texi: Renamed from
34388         doc/glibc-functions/iswdigit_l.texi.
34389         * doc/posix-functions/iswgraph_l.texi: Renamed from
34390         doc/glibc-functions/iswgraph_l.texi.
34391         * doc/posix-functions/iswlower_l.texi: Renamed from
34392         doc/glibc-functions/iswlower_l.texi.
34393         * doc/posix-functions/iswprint_l.texi: Renamed from
34394         doc/glibc-functions/iswprint_l.texi.
34395         * doc/posix-functions/iswpunct_l.texi: Renamed from
34396         doc/glibc-functions/iswpunct_l.texi.
34397         * doc/posix-functions/iswspace_l.texi: Renamed from
34398         doc/glibc-functions/iswspace_l.texi.
34399         * doc/posix-functions/iswupper_l.texi: Renamed from
34400         doc/glibc-functions/iswupper_l.texi.
34401         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34402         doc/glibc-functions/iswxdigit_l.texi.
34403         * doc/posix-functions/isxdigit_l.texi: Renamed from
34404         doc/glibc-functions/isxdigit_l.texi.
34405         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34406         doc/glibc-functions/mbsnrtowcs.texi.
34407         * doc/posix-functions/mkdtemp.texi: Renamed from
34408         doc/glibc-functions/mkdtemp.texi.
34409         * doc/posix-functions/newlocale.texi: Renamed from
34410         doc/glibc-functions/newlocale.texi.
34411         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34412         doc/glibc-functions/nl_langinfo_l.texi.
34413         * doc/posix-functions/open_memstream.texi: Renamed from
34414         doc/glibc-functions/open_memstream.texi.
34415         * doc/posix-functions/opterr.texi: Renamed from
34416         doc/glibc-functions/opterr.texi.
34417         * doc/posix-functions/optind.texi: Renamed from
34418         doc/glibc-functions/optind.texi.
34419         * doc/posix-functions/optopt.texi: Renamed from
34420         doc/glibc-functions/optopt.texi.
34421         * doc/posix-functions/psignal.texi: Renamed from
34422         doc/glibc-functions/psignal.texi.
34423         * doc/posix-functions/scandir.texi: Renamed from
34424         doc/glibc-functions/scandir.texi.
34425         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34426         doc/glibc-functions/sched_get_priority_min.texi.
34427         * doc/posix-functions/signgam.texi: Renamed from
34428         doc/glibc-functions/signgam.texi.
34429         * doc/posix-functions/stpcpy.texi: Renamed from
34430         doc/glibc-functions/stpcpy.texi.
34431         * doc/posix-functions/stpncpy.texi: Renamed from
34432         doc/glibc-functions/stpncpy.texi.
34433         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34434         doc/glibc-functions/strcasecmp_l.texi.
34435         * doc/posix-functions/strcoll_l.texi: Renamed from
34436         doc/glibc-functions/strcoll_l.texi.
34437         * doc/posix-functions/strfmon_l.texi: Renamed from
34438         doc/glibc-functions/strfmon_l.texi.
34439         * doc/posix-functions/strftime_l.texi: Renamed from
34440         doc/glibc-functions/strftime_l.texi.
34441         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34442         doc/glibc-functions/strncasecmp_l.texi.
34443         * doc/posix-functions/strndup.texi: Renamed from
34444         doc/glibc-functions/strndup.texi.
34445         * doc/posix-functions/strnlen.texi: Renamed from
34446         doc/glibc-functions/strnlen.texi.
34447         * doc/posix-functions/strsignal.texi: Renamed from
34448         doc/glibc-functions/strsignal.texi.
34449         * doc/posix-functions/strxfrm_l.texi: Renamed from
34450         doc/glibc-functions/strxfrm_l.texi.
34451         * doc/posix-functions/timer_gettime.texi: Renamed from
34452         doc/glibc-functions/timer_gettime.texi.
34453         * doc/posix-functions/tolower_l.texi: Renamed from
34454         doc/glibc-functions/tolower_l.texi.
34455         * doc/posix-functions/toupper_l.texi: Renamed from
34456         doc/glibc-functions/toupper_l.texi.
34457         * doc/posix-functions/towctrans_l.texi: Renamed from
34458         doc/glibc-functions/towctrans_l.texi.
34459         * doc/posix-functions/towlower_l.texi: Renamed from
34460         doc/glibc-functions/towlower_l.texi.
34461         * doc/posix-functions/towupper_l.texi: Renamed from
34462         doc/glibc-functions/towupper_l.texi.
34463         * doc/posix-functions/uselocale.texi: Renamed from
34464         doc/glibc-functions/uselocale.texi.
34465         * doc/posix-functions/vdprintf.texi: Renamed from
34466         doc/glibc-functions/vdprintf.texi.
34467         * doc/posix-functions/wcpcpy.texi:
34468         Renamed from doc/glibc-functions/wcpcpy.texi.
34469         * doc/posix-functions/wcpncpy.texi: Renamed from
34470         doc/glibc-functions/wcpncpy.texi.
34471         * doc/posix-functions/wcscasecmp.texi: Renamed from
34472         doc/glibc-functions/wcscasecmp.texi.
34473         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34474         doc/glibc-functions/wcscasecmp_l.texi.
34475         * doc/posix-functions/wcscoll_l.texi: Renamed from
34476         doc/glibc-functions/wcscoll_l.texi.
34477         * doc/posix-functions/wcsdup.texi: Renamed from
34478         doc/glibc-functions/wcsdup.texi.
34479         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34480         doc/glibc-functions/wcsncasecmp.texi.
34481         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34482         doc/glibc-functions/wcsncasecmp_l.texi.
34483         * doc/posix-functions/wcsnlen.texi: Renamed from
34484         doc/glibc-functions/wcsnlen.texi.
34485         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34486         doc/glibc-functions/wcsnrtombs.texi.
34487         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34488         doc/glibc-functions/wcsxfrm_l.texi.
34489         * doc/posix-functions/wctrans_l.texi: Renamed from
34490         doc/glibc-functions/wctrans_l.texi.
34491         * doc/posix-functions/wctype_l.texi: Renamed from
34492         doc/glibc-functions/wctype_l.texi.
34493         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34494         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34495         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34496         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34497         these subsections.
34498         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34499         Remove sections.
34500
34501 2008-12-14  Bruno Haible  <bruno@clisp.org>
34502
34503         Update doc for POSIX:2008.
34504         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34505
34506 2008-12-14  Bruno Haible  <bruno@clisp.org>
34507
34508         Update doc for POSIX:2008.
34509         * doc/pastposix-functions/bcmp.texi: Renamed from
34510         doc/posix-functions/bcmp.texi.
34511         * doc/pastposix-functions/bcopy.texi: Renamed from
34512         doc/posix-functions/bcopy.texi.
34513         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34514         doc/posix-functions/bsd_signal.texi.
34515         * doc/pastposix-functions/bzero.texi: Renamed from
34516         doc/posix-functions/bzero.texi.
34517         * doc/pastposix-functions/ecvt.texi: Renamed from
34518         doc/posix-functions/ecvt.texi.
34519         * doc/pastposix-functions/fcvt.texi: Renamed from
34520         doc/posix-functions/fcvt.texi.
34521         * doc/pastposix-functions/ftime.texi: Renamed from
34522         doc/posix-functions/ftime.texi.
34523         * doc/pastposix-functions/gcvt.texi: Renamed from
34524         doc/posix-functions/gcvt.texi.
34525         * doc/pastposix-functions/getcontext.texi: Renamed from
34526         doc/posix-functions/getcontext.texi.
34527         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34528         doc/posix-functions/gethostbyaddr.texi.
34529         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34530         doc/posix-functions/gethostbyname.texi.
34531         * doc/pastposix-functions/getwd.texi: Renamed from
34532         doc/posix-functions/getwd.texi.
34533         * doc/pastposix-functions/h_errno.texi: Renamed from
34534         doc/posix-functions/h_errno.texi.
34535         * doc/pastposix-functions/index.texi: Renamed from
34536         doc/posix-functions/index.texi.
34537         * doc/pastposix-functions/makecontext.texi: Renamed from
34538         doc/posix-functions/makecontext.texi.
34539         * doc/pastposix-functions/mktemp.texi: Renamed from
34540         doc/posix-functions/mktemp.texi.
34541         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34542         doc/posix-functions/pthread_attr_getstackaddr.texi.
34543         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34544         doc/posix-functions/pthread_attr_setstackaddr.texi.
34545         * doc/pastposix-functions/rindex.texi: Renamed from
34546         doc/posix-functions/rindex.texi.
34547         * doc/pastposix-functions/scalb.texi: Renamed from
34548         doc/posix-functions/scalb.texi.
34549         * doc/pastposix-functions/setcontext.texi: Renamed from
34550         doc/posix-functions/setcontext.texi.
34551         * doc/pastposix-functions/swapcontext.texi: Renamed from
34552         doc/posix-functions/swapcontext.texi.
34553         * doc/pastposix-functions/ualarm.texi: Renamed from
34554         doc/posix-functions/ualarm.texi.
34555         * doc/pastposix-functions/usleep.texi: Renamed from
34556         doc/posix-functions/usleep.texi.
34557         * doc/pastposix-functions/vfork.texi: Renamed from
34558         doc/posix-functions/vfork.texi.
34559         * doc/pastposix-functions/wcswcs.texi: Renamed from
34560         doc/posix-functions/wcswcs.texi.
34561         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34562         (Function Substitutes): Update.
34563
34564 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34565
34566         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34567         m4/strerror.m4.
34568
34569 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34570             Bruno Haible  <bruno@clisp.org>
34571
34572         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34573
34574 2008-12-13  Bruno Haible  <bruno@clisp.org>
34575
34576         * modules/strtoull (Depends-on): Remove unistd.
34577
34578 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34579
34580         * modules/strtoull (Depends-on): Add stdlib.
34581
34582 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34583
34584         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34585
34586 2008-12-10  Jim Meyering  <meyering@redhat.com>
34587
34588         gl_ASSERT: don't say assertions are disabled when they're not
34589         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34590         "checking whether to enable assertions... no", when they are in
34591         fact enabled.  This is solely a bug in the output of configure.
34592         In spite of saying "no", NDEBUG was not defined in that case.
34593         Also, as noted by Eric Blake, leave assertions enabled upon
34594         --enable-assert=INVALID.
34595
34596 2008-12-10  Bruno Haible  <bruno@clisp.org>
34597
34598         Change MODULES.html to refer to POSIX:2008 where possible.
34599         * MODULES.html.sh (POSIX2008_URL): New variable.
34600         (posix_headers): Remove sys/timeb, ucontext.
34601         (posix2001_headers): New variable.
34602         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34603         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34604         index, makecontext, mktemp, pthread_attr_getstackaddr,
34605         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34606         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34607         (posix2001_functions): New variable.
34608         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34609         otherwise.
34610
34611 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34612
34613         add missing include to parse-duration.c
34614         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34615         * modules/parse-duration (Depends-on): Add xalloc.
34616
34617         fix sed script reading maint.mk
34618         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34619         (syntax-check-rules): Use it.
34620
34621 2008-12-09  Bruno Haible  <bruno@clisp.org>
34622
34623         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34624         MacOS X 10.4/PowerPC.
34625         Reported by Simon Josefsson.
34626
34627 2008-12-08  Jim Meyering  <meyering@redhat.com>
34628
34629         work around mingw's lack of some S_IF definitions
34630         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34631         Reported by Simon Josefsson.
34632
34633 2008-12-08  Bruno Haible  <bruno@clisp.org>
34634
34635         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34636         applied to variables. Needed on MacOS X 10.4/PowerPC.
34637         Reported by Simon Josefsson.
34638
34639 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34640         and Eric Blake  <ebb9@byu.net>
34641
34642         assert: honor --enable-assert
34643         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34644         order to honor --enable-assert, rather than treating it as a
34645         synonym for --disable-assert.
34646
34647 2008-12-08  Jim Meyering  <meyering@redhat.com>
34648
34649         * lib/posixtm.c: Remove now-useless declaration of mktime.
34650
34651         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34652
34653 2008-12-07  Bruno Haible  <bruno@clisp.org>
34654
34655         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34656         test_once): Mark functions as static.
34657         * tests/test-tls.c (test_tls): Likewise.
34658
34659 2008-12-07  Bruno Haible  <bruno@clisp.org>
34660
34661         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34662         iconv_register_autodetect.
34663
34664 2008-12-07  Jim Meyering  <meyering@redhat.com>
34665
34666         posixtm.c: avoid a warning
34667         * lib/posixtm.c (posixtime): Don't initialize tm0.
34668         It's no longer needed to placate gcc4's -Wuninitialized,
34669         and the attempt to placate would elicit a new warning.
34670
34671         unicodeio.c: mark unused parameters
34672         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34673         (fallback_failure_callback): Likewise.
34674
34675 2008-12-07  Bruno Haible  <bruno@clisp.org>
34676
34677         * gnulib-tool (func_create_testdir): When building the tests
34678         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34679         Reported by Simon Josefsson.
34680
34681 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34682
34683         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34684
34685 2008-12-06  Bruno Haible  <bruno@clisp.org>
34686
34687         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34688         Suggested by Eric Blake.
34689
34690 2008-12-06  Bruno Haible  <bruno@clisp.org>
34691
34692         Fix a c-stack test failure on MacOS X.
34693         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34694         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34695         handler for SIGBUS as well.
34696         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34697         install a signal handler for SIGBUS as well.
34698         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34699
34700 2008-12-06  Bruno Haible  <bruno@clisp.org>
34701
34702         Advocacy documentation.
34703         * doc/gnulib-intro.texi (Benefits): New section.
34704         * doc/gnulib.texi: Update.
34705
34706 2008-12-06  Bruno Haible  <bruno@clisp.org>
34707
34708         Document the 'manywarnings' module.
34709         * doc/manywarnings.texi: New file.
34710         * doc/gnulib.texi: Include it.
34711
34712 2008-12-05  Eric Blake  <ebb9@byu.net>
34713
34714         tests: silence some gcc warnings
34715         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34716         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34717         type mismatches.
34718
34719 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34720             Bruno Haible  <bruno@clisp.org>
34721
34722         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34723
34724 2008-11-29  Jim Meyering  <meyering@redhat.com>
34725
34726         unicodeio.c: mark unused parameters
34727         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34728         (fallback_failure_callback): Likewise.
34729
34730         fts: fix a thinko
34731         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34732         (set_stat_type): Return S_IF*-valued "type" directly.
34733         Prompted by James Youngman's spotting a related bug.
34734         Confirmed by further testing through find.
34735
34736         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34737         * lib/fts.c (D_TYPE): Define.
34738         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34739         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34740         (s_ifmt_shift_bits): New function.
34741         (set_stat_type): New function.
34742         (fts_build): When not calling fts_stat, call set_stat_type
34743         to propagate dirent.d_type info to fts_read caller.
34744         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34745         fts_statp->st_mode type information may be valid.
34746
34747 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34748
34749         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34750         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34751         <sds@gnu.org>.
34752
34753 2008-11-20  Bruno Haible  <bruno@clisp.org>
34754
34755         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34756         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34757         INCLUDE_NEXT.
34758         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34759         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34760         * modules/math (Makefile.am): Substitute
34761         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34762         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34763
34764 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34765             Bruno Haible  <bruno@clisp.org>
34766
34767         * lib/stdint.in.h: Define all type macros so that their expansion is
34768         a single typedef'ed token. Fixes a compilation failure in Boost which
34769         does "using ::int8_t;".
34770
34771 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34772
34773         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34774         gl_MANYWARN_ALL_GCC.
34775         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34776         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34777         * modules/manywarnings: New file.
34778         * MODULES.html.sh: Mention manywarnings module.
34779
34780 2008-11-18  Bruno Haible  <bruno@clisp.org>
34781
34782         * doc/gnulib-tool.texi (Unit tests): New section.
34783
34784 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34785
34786         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34787         paths like 'lib/po/foo.po'.
34788
34789 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34790
34791         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34792         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34793
34794 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34795
34796         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34797         parameter works.
34798
34799 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34800
34801         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34802
34803 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34804
34805         * modules/parse-duration-tests: New file.
34806         * tests/test-parse-duration.sh: New file.
34807         * tests/test-parse-duration.c: New file.
34808
34809         New module 'parse-duration'.
34810         * lib/parse-duration.h: New file.
34811         * lib/parse-duration.c: New file.
34812         * modules/parse-duration: New file.
34813
34814 2008-11-17  Bruno Haible  <bruno@clisp.org>
34815
34816         * tests/test-select-out.sh: Comment out the first pipe test.
34817         Reported by Simon Josefsson.
34818
34819 2008-11-17  Bruno Haible  <bruno@clisp.org>
34820
34821         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34822         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34823         gl_HOSTENT.
34824
34825 2008-11-17  Bruno Haible  <bruno@clisp.org>
34826
34827         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34828         -lnetwork and -lnet. Needed for Haiku and BeOS.
34829
34830 2008-11-16  Bruno Haible  <bruno@clisp.org>
34831
34832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34833
34834 2008-11-16  Bruno Haible  <bruno@clisp.org>
34835
34836         Avoid test failure on Haiku.
34837         * tests/test-fsync.c: Include <errno.h>.
34838         (main): Don't require that fsync (0) fails.
34839
34840 2008-11-15  Bruno Haible  <bruno@clisp.org>
34841
34842         New module 'hostent'.
34843         * modules/hostent: New file.
34844         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34845
34846 2008-11-15  Bruno Haible  <bruno@clisp.org>
34847
34848         New module 'servent'.
34849         * modules/servent: New file.
34850         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34851
34852 2008-11-15  Bruno Haible  <bruno@clisp.org>
34853
34854         Avoid generating same test program with two different rules.
34855         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34856         test-frexp to test-frexp-nolibm.
34857         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34858         test-frexpl to test-frexpl-nolibm.
34859
34860 2008-11-15  Bruno Haible  <bruno@clisp.org>
34861
34862         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34863         $(FREXPL_LIBM).
34864
34865 2008-11-15  Bruno Haible  <bruno@clisp.org>
34866
34867         * lib/netdb.in.h: Activate the definitions also when the system's
34868         <netdb.h> has 'struct addrinfo'.
34869         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34870         EAI_OVERFLOW or AI_NUMERICSERV.
34871         * doc/posix-headers/netdb.texi: Document the problem.
34872
34873 2008-11-15  Bruno Haible  <bruno@clisp.org>
34874
34875         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34876
34877         Make the 'sched' module work on platforms where <sched.h> exists but
34878         is incomplete (such as Haiku).
34879         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34880         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34881         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34882         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34883         HAVE_STRUCT_SCHED_PARAM.
34884         * modules/sched (Depends-on): Add include_next.
34885         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34886         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34887         * doc/posix-headers/sched.texi: Document the issue.
34888
34889 2008-11-13  Jim Meyering  <meyering@redhat.com>
34890
34891         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34892         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34893         test would fail due to the difference in the Report bugs to ...
34894         line.  The expected address is empty, "<>", while the actual
34895         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34896
34897 2008-11-12  Bruno Haible  <bruno@clisp.org>
34898
34899         lstat: don't compile lstat.c on systems lacking lstat
34900         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34901         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34902         Reported by Daniel P. Berrange via Jim Meyering.
34903
34904 2008-11-12  Jim Meyering  <meyering@redhat.com>
34905
34906         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34907
34908 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34909
34910         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34911         instead.
34912
34913 2008-11-12  Bruno Haible  <bruno@clisp.org>
34914
34915         * lib/unicodeio.c: Include unistr.h.
34916         (utf8_wctomb): Remove function.
34917         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34918
34919 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34920
34921         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34922         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34923         <bruno@clisp.org>.
34924         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34925
34926 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34927
34928         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34929         * doc/gnulib.texi: Add section for warnings.
34930
34931 2008-11-11  Bruno Haible  <bruno@clisp.org>
34932
34933         * lib/sockets.h: Add a comment.
34934
34935 2008-11-11  Karl Berry  <karl@gnu.org>
34936
34937         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34938
34939 2008-11-11  Eric Blake  <ebb9@byu.net>
34940
34941         fdl.texi: avoid git symlinks
34942         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34943
34944 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34945
34946         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34947
34948 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34949
34950         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34951         (gl_WARN_ADD): Substitute $2 if literal.
34952
34953 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34954
34955         * m4/warning.m4: Remove.
34956
34957 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34958
34959         * m4/warnings.m4: Almost complete rewrite. :-)
34960
34961 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34962
34963         * modules/warnings: New module.
34964         * m4/warnings.m4: New file.
34965         * MODULES.html.sh: Mention warnings module.
34966         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34967         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34968
34969 2008-11-10  Eric Blake  <ebb9@byu.net>
34970
34971         fdl.texi: make a symlink to the latest version
34972         * doc/standards.texi: Revert today's earlier change.
34973         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34974         * doc/fdl.texi: ...and replace this with a symlink to the newer
34975         fdl-1.3.texi.
34976
34977 2008-11-10  Bruno Haible  <bruno@clisp.org>
34978
34979         * tests/test-select-fd.c (main): Accept the result file name as fourth
34980         argument.
34981         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34982         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34983
34984 2008-11-10  Bruno Haible  <bruno@clisp.org>
34985
34986         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34987         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34988         as autoconf-substituted macros.
34989         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34990         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34991         gl_NETDB_H_DEFAULTS. Set these variables.
34992         * modules/netdb (Makefile.am): Substitute these variables.
34993
34994 2008-11-10  Eric Blake  <ebb9@byu.net>
34995
34996         standards.texi: include correct file for FDL 1.3
34997         * doc/standards.texi (GNU Free Documentation License): Change
34998         include file to pull in FDL 1.3, not 1.2.
34999
35000         fdl.texi: revert accidental change to license
35001         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35002
35003 2008-11-10  Bruno Haible  <bruno@clisp.org>
35004
35005         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35006         cross-compiling guesses also when the native compile gives no result.
35007
35008 2008-11-10  Bruno Haible  <bruno@clisp.org>
35009
35010         * lib/spawni.c (__spawni): Force variable into the stack.
35011
35012 2008-11-10  Bruno Haible  <bruno@clisp.org>
35013
35014         Add support for Haiku.
35015         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35016         glibc and BeOS, but also on Haiku.
35017         * lib/fpurge.c (fpurge): Likewise.
35018         * lib/freadable.c (freadable): Likewise.
35019         * lib/freadahead.c (freadahead): Likewise.
35020         * lib/freading.c (freading): Likewise.
35021         * lib/freadptr.c (freadptr): Likewise.
35022         * lib/freadseek.c (freadptrinc): Likewise.
35023         * lib/fseeko.c (rpl_fseeko): Likewise.
35024         * lib/fseterr.c (fseterr): Likewise.
35025         * lib/fwritable.c (fwritable): Likewise.
35026         * lib/fwriting.c (fwriting): Likewise.
35027         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35028
35029 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35030
35031         * lib/config.charset: Treat Haiku like BeOS.
35032
35033 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35034
35035         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35036         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35037
35038 2008-11-08  Bruno Haible  <bruno@clisp.org>
35039
35040         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35041         AC_CACHE_CHECK.
35042
35043 2008-11-08  Bruno Haible  <bruno@clisp.org>
35044
35045         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35046
35047 2008-11-08  Bruno Haible  <bruno@clisp.org>
35048
35049         * tests/test-select-fd.c: New file.
35050         * tests/test-select-in.sh: New file.
35051         * tests/test-select-out.sh: New file.
35052         * tests/test-select-stdin.c: New file.
35053         * modules/select-tests (Files): Add the new files.
35054         (Depends-on): Add gettimeofday.
35055         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35056         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35057         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35058
35059 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35060             Bruno Haible  <bruno@clisp.org>
35061
35062         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35063
35064 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35065
35066         * build-aux/pmccabe2html: Added support for C++ source files.
35067
35068 2008-11-05  Ben Pfaff  <blp@gnu.org>
35069
35070         Fix lib/close.c build on Windows.
35071         * modules/close (Files): Add lib/w32sock.h.
35072
35073 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35074
35075         Accept Bison's NEWS format.
35076         * build-aux/announce-gen (print_news_deltas): Tweak
35077         $re_prefix.
35078
35079 2008-11-04  Bruno Haible  <bruno@clisp.org>
35080
35081         * modules/random_r (Maintainer): Add glibc.
35082
35083 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35084
35085         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35086         by karl@freefriends.org (Karl Berry).
35087         * doc/alloca.texi: Likewise.
35088         * doc/c-ctype.texi: Likewise.
35089         * doc/c-strcase.texi: Likewise.
35090         * doc/c-strcaseeq.texi: Likewise.
35091         * doc/c-strcasestr.texi: Likewise.
35092         * doc/c-strstr.texi: Likewise.
35093         * doc/c-strtod.texi: Likewise.
35094         * doc/c-strtold.texi: Likewise.
35095         * doc/ctime.texi: Likewise.
35096         * doc/error.texi: Likewise.
35097         * doc/fdl.texi: Likewise.
35098         * doc/gcd.texi: Likewise.
35099         * doc/getdate.texi: Likewise.
35100         * doc/gnulib-intro.texi: Likewise.
35101         * doc/gnulib-tool.texi: Likewise.
35102         * doc/gnulib.texi: Likewise.
35103         * doc/inet_ntoa.texi: Likewise.
35104         * doc/maintain.texi: Likewise.
35105         * doc/make-stds.texi: Likewise.
35106         * doc/quote.texi: Likewise.
35107         * doc/regexprops-generic.texi: Likewise.
35108         * doc/standards.texi: Likewise.
35109         * doc/verify.texi: Likewise.
35110         * doc/visibility.texi: Likewise.
35111         * doc/gnulib.texi (GNU Free Documentation License): Include
35112         fdl-1.3.texi instead of fdl.texi.
35113
35114 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35115
35116         * doc/fdl-1.3.texi: New file, from
35117         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35118         * modules/fdl-1.3: Add.
35119         * MODULES.html.sh: Add fdl-1.3.
35120
35121 2008-11-03  Bruno Haible  <bruno@clisp.org>
35122
35123         Make determination of absolute name of header file work with AIX xlc.
35124         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35125         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35126         preprocessing.
35127         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35128         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35129
35130 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35131
35132         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35133         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35134         <ludo@gnu.org>.
35135
35136 2008-11-02  Bruno Haible  <bruno@clisp.org>
35137
35138         Mark 'strpbrk' obsolete.
35139         * modules/strpbrk (Status, Notice): New sections.
35140         * modules/strtok_r (Depends-on): Add strpbrk.
35141
35142 2008-11-02  Bruno Haible  <bruno@clisp.org>
35143
35144         Mark 'strdup' obsolete.
35145         * modules/strdup (Status, Notice): New sections.
35146         * modules/findprog (Depends-on): Add strdup.
35147         * modules/getaddrinfo (Depends-on): Likewise.
35148         * modules/localename (Depends-on): Likewise.
35149         * modules/relocatable-lib (Depends-on): Likewise.
35150         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35151         * modules/relocatable-prog (Depends-on): Likewise.
35152         * modules/trim (Depends-on): Likewise.
35153         * modules/unictype/gen-ctype (Depends-on): Likewise.
35154         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35155
35156 2008-11-02  Bruno Haible  <bruno@clisp.org>
35157
35158         Mark 'strcspn' obsolete.
35159         * modules/strcspn (Status, Notice): New sections.
35160
35161 2008-11-02  Bruno Haible  <bruno@clisp.org>
35162
35163         Mark 'rmdir' obsolete.
35164         * modules/rmdir (Status, Notice): New sections.
35165         * modules/clean-temp (Depends-on): Add rmdir.
35166         * modules/openat (Depends-on): Likewise.
35167
35168 2008-11-02  Bruno Haible  <bruno@clisp.org>
35169
35170         Mark 'raise' obsolete.
35171         * modules/raise (Status, Notice): New sections.
35172         (Include): Specify <signal.h>.
35173         * modules/stdio (Depends-on): Add raise.
35174         * modules/write (Depends-on): Likewise.
35175
35176 2008-11-02  Bruno Haible  <bruno@clisp.org>
35177
35178         Mark 'memset' obsolete.
35179         * modules/memset (Status, Notice): New sections.
35180
35181 2008-11-02  Bruno Haible  <bruno@clisp.org>
35182
35183         Mark 'memmove' obsolete.
35184         * modules/memmove (Status, Notice): New sections.
35185         * modules/argp (Depends-on): Add memmove.
35186         * modules/argz (Depends-on): Likewise.
35187         * modules/canonicalize (Depends-on): Likewise.
35188         * modules/canonicalize-lgpl (Depends-on): Likewise.
35189         * modules/fts (Depends-on): Likewise.
35190         * modules/getcwd (Depends-on): Likewise.
35191         * modules/human (Depends-on): Likewise.
35192         * modules/regex (Depends-on): Likewise.
35193         * modules/striconveh (Depends-on): Likewise.
35194         * modules/trim (Depends-on): Likewise.
35195         * modules/unistr/u8-move (Depends-on): Likewise.
35196         * modules/unistr/u16-move (Depends-on): Likewise.
35197         * modules/unistr/u32-move (Depends-on): Likewise.
35198
35199 2008-11-02  Bruno Haible  <bruno@clisp.org>
35200
35201         Mark 'memcpy' obsolete.
35202         * modules/memcpy (Status, Notice): New sections.
35203
35204 2008-11-02  Bruno Haible  <bruno@clisp.org>
35205
35206         Mark 'memcmp' obsolete.
35207         * modules/memcmp (Status, Notice): New sections.
35208         * modules/argmatch (Depends-on): Add memchr.
35209         * modules/backupfile (Depends-on): Likewise.
35210         * modules/c-strcasestr (Depends-on): Likewise.
35211         * modules/crypto/des (Depends-on): Likewise.
35212         * modules/csharpcomp (Depends-on): Likewise.
35213         * modules/fnmatch (Depends-on): Likewise.
35214         * modules/git-merge-changelog (Depends-on): Likewise.
35215         * modules/isnand (Depends-on): Likewise.
35216         * modules/isnand-nolibm (Depends-on): Likewise.
35217         * modules/isnanf (Depends-on): Likewise.
35218         * modules/isnanf-nolibm (Depends-on): Likewise.
35219         * modules/isnanl (Depends-on): Likewise.
35220         * modules/isnanl-nolibm (Depends-on): Likewise.
35221         * modules/mbchar (Depends-on): Likewise.
35222         * modules/memcoll (Depends-on): Likewise.
35223         * modules/quotearg (Depends-on): Likewise.
35224         * modules/regex (Depends-on): Likewise.
35225         * modules/relocatable-prog (Depends-on): Likewise.
35226         * modules/same (Depends-on): Likewise.
35227         * modules/signbit (Depends-on): Likewise.
35228         * modules/strcasestr-simple (Depends-on): Likewise.
35229         * modules/unictype/gen-ctype (Depends-on): Likewise.
35230         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35231         * modules/uniname/uniname (Depends-on): Likewise.
35232         * modules/unistr/u8-cmp (Depends-on): Likewise.
35233
35234 2008-11-02  Bruno Haible  <bruno@clisp.org>
35235
35236         Mark 'memchr' obsolete.
35237         * modules/memchr (Status, Notice): New sections.
35238         * modules/argp (Depends-on): Add memchr.
35239         * modules/base64 (Depends-on): Likewise.
35240         * modules/c-strcasestr (Depends-on): Likewise.
35241         * modules/chdir-long (Depends-on): Likewise.
35242         * modules/fnmatch (Depends-on): Likewise.
35243         * modules/getsubopt (Depends-on): Likewise.
35244         * modules/git-merge-changelog (Depends-on): Likewise.
35245         * modules/glob (Depends-on): Likewise.
35246         * modules/strcasestr-simple (Depends-on): Likewise.
35247         * modules/strnlen (Depends-on): Likewise.
35248
35249 2008-11-02  Bruno Haible  <bruno@clisp.org>
35250
35251         Mark 'atexit' obsolete.
35252         * modules/atexit (Status, Notice): New sections.
35253         * modules/chdir-long (Depends-on): Add atexit.
35254         * modules/wait-process (Depends-on): Likewise.
35255
35256 2008-11-02  Bruno Haible  <bruno@clisp.org>
35257
35258         * gnulib-tool: New option --with-obsolete.
35259         (func_usage): Document it.
35260         (func_modules_transitive_closure): Drop obsolete dependencies if
35261         incobsolete is not true.
35262         (func_import): Read and save the incobsolete variable to the cache.
35263
35264 2008-11-02  Bruno Haible  <bruno@clisp.org>
35265
35266         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35267         * gnulib-tool: New option --extract-status.
35268         (func_usage): Document it.
35269         (sed_extract_prog): Recognize it.
35270         (func_get_status): New function.
35271
35272 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35273
35274         * modules/sockets (License): Change from LGPL to LGPLv2+.
35275
35276 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35277
35278         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35279
35280 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35281
35282         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35283         Mention times and sys_times.
35284         * modules/sys_times, modules/sys_times-tests: New modules.
35285         * modules/times, modules/times-tests: Likewise
35286         * m4/sys_times_h.m4: New file.
35287         * lib/sys_times.in.h: Likewise
35288         * lib/times.c: Likewise.
35289         * tests/test-sys_times.c: Likewise.
35290         * tests/test-times.c: Likewise.
35291         * doc/posix-headers/sys_times.texi: Update.
35292         * doc/posix-functions/times.texi: Update.
35293
35294 2008-10-28  Jim Meyering  <meyering@redhat.com>
35295
35296         * modules/tempname (Depends-on): Add lstat.
35297
35298         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35299
35300 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35301
35302         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35303         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35304         using idiom used elsewhere in gnulib.
35305
35306 2008-10-27  Jim Meyering  <meyering@redhat.com>
35307
35308         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35309
35310 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35311
35312         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35313         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35314         programs.
35315         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35316
35317 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35318
35319         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35320
35321 2008-10-27  Bruno Haible  <bruno@clisp.org>
35322
35323         * tests/test-lstat.c: Include <stdio.h>.
35324
35325 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35326
35327         * modules/lstat-tests: New module.
35328         * tests/test-lstat.c: New file.
35329
35330 2008-10-26  Jim Meyering  <meyering@redhat.com>
35331
35332         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35333
35334 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35335             Bruno Haible  <bruno@clisp.org>
35336
35337         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35338         * modules/configmake (Include): Add a note that the include must come
35339         after all system headers.
35340         * lib/javaversion.c: Include configmake.h after all other includes.
35341
35342 2008-10-26  Bruno Haible  <bruno@clisp.org>
35343
35344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35345         HAVE_STRUCT_RANDOM_DATA to 1.
35346         (gl_STDLIB_H): Simplify.
35347
35348 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35349
35350         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35351         substitute HAVE_STRUCT_RANDOM_DATA.
35352         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35353         random_data.
35354         * modules/stdlib (Makefile.am): Substitute
35355         HAVE_STRUCT_RANDOM_DATA.
35356
35357 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35358
35359         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35360         * doc/gnulib-intro.texi (Copyright): Likewise.
35361
35362 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35363
35364         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35365         findings.
35366
35367 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35368             Bruno Haible  <bruno@clisp.org>
35369
35370         * lib/unistd.in.h: Include <winsock2.h>.
35371         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35372         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35373         Provide dummy declarations.
35374         (gethostname): Override.
35375         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35376         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35377         gl_PREREQ_SYS_H_WINSOCK2.
35378         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35379         * doc/posix-functions/gethostname.texi: More details.
35380
35381 2008-10-25  Bruno Haible  <bruno@clisp.org>
35382
35383         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35384         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35385         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35386
35387         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35388         here ...
35389         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35390         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35391         gl_UNISTD_H_DEFAULTS.
35392
35393 2008-10-25  Eric Blake  <ebb9@byu.net>
35394
35395         signbit: avoid spurious compiler failure
35396         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35397         declarations inside function.
35398
35399 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35400             Bruno Haible  <bruno@clisp.org>
35401
35402         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35403         * modules/random_r (Depends-on): Add stdint.
35404
35405 2008-10-24  Bruno Haible  <bruno@clisp.org>
35406
35407         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35408         Eggert.
35409         * modules/strerror (License): Likewise.
35410
35411 2008-10-24  Jim Meyering  <meyering@redhat.com>
35412
35413         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35414         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35415
35416 2008-10-24  Eric Blake  <ebb9@byu.net>
35417
35418         getgroups: fix compilation when getgroups is available
35419         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35420         but with <config.h> override of getgroups disabled.
35421
35422 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35423
35424         * doc/gnulib.texi (Header files): Add note about C++ problems.
35425         Explained by Bruno Haible <bruno@clisp.org>.
35426
35427 2008-10-23  Bruno Haible  <bruno@clisp.org>
35428
35429         Define a dummy SA_NODEFER macro on Interix.
35430         * lib/signal.in.h (SA_NODEFER): Define fallback.
35431         Reported by Aleksey Cheusov <cheusov@tut.by> via
35432         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35433
35434 2008-10-23  Bruno Haible  <bruno@clisp.org>
35435
35436         * modules/freadahead (License): Change to LGPLv2+.
35437         Suggested by Simon Josefsson.
35438
35439 2008-10-23  Jim Meyering  <meyering@redhat.com>
35440
35441         random_r: new module
35442         * modules/random_r: New file.
35443         * m4/random_r.m4: New file.
35444         * lib/random_r.c: New file, from glibc.
35445         * modules/random_r-tests: New file.
35446         * tests/test-random_r.c: New file.
35447         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35448          Declare.
35449         (RAND_MAX): Define.
35450         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35451         * modules/stdlib: Substitute them, too.
35452         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35453         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35454         * doc/glibc-functions/random_r.texi: Likewise.
35455         * doc/glibc-functions/setstate_r.texi: Likewise.
35456         * doc/glibc-functions/srandom_r.texi: Likewise.
35457         * config/srclist.txt: Mention it.
35458
35459 2008-10-23  David Lutterkort  <lutter@redhat.com>
35460
35461         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35462         link requirement
35463
35464 2008-10-23  Jim Meyering  <meyering@redhat.com>
35465
35466         selinux-h: mark parameters of stub functions as intentionally unused
35467         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35468         * lib/se-context.in.h: Likewise.
35469
35470 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35471
35472         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35473
35474 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35475
35476         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35477
35478 2008-10-22  Eric Blake  <ebb9@byu.net>
35479
35480         glthread/thread: avoid compiler warning
35481         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35482         Add unreachable abort to silence compiler.
35483
35484 2008-10-22  Eric Blake  <ebb9@byu.net>
35485
35486         netdb: also supply struct addrinfo for cygwin 1.5.x
35487         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35488         older cygwin.
35489         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35490         cygwin.
35491         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35492
35493 2008-10-22  Bruno Haible  <bruno@clisp.org>
35494
35495         * users.txt: Update entry about pspp.
35496
35497 2008-10-21  Bruno Haible  <bruno@clisp.org>
35498
35499         Simplification.
35500         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35501         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35502
35503         Simplification.
35504         * lib/ioctl.c (ioctl): Don't undefine.
35505         * lib/socket.c (socket): Don't undefine.
35506
35507         Remove unused module indicator macros.
35508         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35509         GNULIB_$1 as a C macro.
35510
35511         * doc/posix-functions/close.texi: Undo last change.
35512         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35513         Windows platforms.
35514
35515 2008-10-21  Bruno Haible  <bruno@clisp.org>
35516
35517         Add gethostname() declaration to <unistd.h>.
35518         * lib/unistd.in.h (gethostname): New declaration.
35519         * lib/gethostname.c: Include <unistd.h>.
35520         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35521         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35523         and HAVE_GETHOSTNAME.
35524         * modules/gethostname (Depends-on): Add unistd.
35525         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35526         (Include): Specify <unistd.h>.
35527         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35528         HAVE_GETHOSTNAME.
35529         * tests/test-gethostname.c: Include <unistd.h> first.
35530
35531 2008-10-21  Bruno Haible  <bruno@clisp.org>
35532
35533         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35534         * modules/select-tests (Depends-on): Likewise.
35535         Reported by Simon Josefsson.
35536
35537 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35538
35539         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35540         * lib/accept.c: New file, based on winsock.c.
35541         * lib/bind.c: New file, based on winsock.c.
35542         * lib/connect.c: New file, based on winsock.c.
35543         * lib/getpeername.c: New file, based on winsock.c.
35544         * lib/getsockname.c: New file, based on winsock.c.
35545         * lib/getsockopt.c: New file, based on winsock.c.
35546         * lib/ioctl.c: New file, based on winsock.c.
35547         * lib/listen.c: New file, based on winsock.c.
35548         * lib/recv.c: New file, based on winsock.c.
35549         * lib/recvfrom.c: New file, based on winsock.c.
35550         * lib/send.c: New file, based on winsock.c.
35551         * lib/sendto.c: New file, based on winsock.c.
35552         * lib/setsockopt.c: New file, based on winsock.c.
35553         * lib/shutdown.c: New file, based on winsock.c.
35554         * lib/socket.c: New file, based on winsock.c.
35555         * lib/w32sock.h: New file, based on winsock.c.
35556         * lib/winsock.c: Remove file.
35557         * modules/accept: Likewise.
35558         * modules/bind: Likewise.
35559         * modules/connect: Likewise.
35560         * modules/getpeername: Likewise.
35561         * modules/getsockname: Likewise.
35562         * modules/getsockopt: Likewise.
35563         * modules/ioctl: Likewise.
35564         * modules/listen: Likewise.
35565         * modules/recv: Likewise.
35566         * modules/recvfrom: Likewise.
35567         * modules/send: Likewise.
35568         * modules/sendto: Likewise.
35569         * modules/setsockopt: Likewise.
35570         * modules/shutdown: Likewise.
35571         * modules/socket: Use socket.c instead of winsock.c.
35572         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35573         * doc/posix-functions/accept.texi: Doc fix.
35574         * doc/posix-functions/bind.texi: Doc fix.
35575         * doc/posix-functions/close.texi: Doc fix.
35576         * doc/posix-functions/connect.texi: Doc fix.
35577         * doc/posix-functions/getpeername.texi: Doc fix.
35578         * doc/posix-functions/getsockname.texi: Doc fix.
35579         * doc/posix-functions/getsockopt.texi: Doc fix.
35580         * doc/posix-functions/ioctl.texi: Doc fix.
35581         * doc/posix-functions/listen.texi: Doc fix.
35582         * doc/posix-functions/recv.texi: Doc fix.
35583         * doc/posix-functions/recvfrom.texi: Doc fix.
35584         * doc/posix-functions/send.texi: Doc fix.
35585         * doc/posix-functions/sendto.texi: Doc fix.
35586         * doc/posix-functions/setsockopt.texi: Doc fix.
35587         * doc/posix-functions/shutdown.texi: Doc fix.
35588         * doc/posix-functions/socket.texi: Doc fix.
35589
35590 2008-10-20  Bruno Haible  <bruno@clisp.org>
35591
35592         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35593         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35594         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35595         as an alias for SIGABRT.
35596         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35597         (sigaction): Map it to SIGABRT.
35598         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35599
35600 2008-10-20  Bruno Haible  <bruno@clisp.org>
35601
35602         * lib/fts.c: Don't include lstat.h.
35603         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35604
35605         Move the lstat() declaration to <sys/stat.h>.
35606         * lib/lstat.h: Remove file.
35607         * lib/sys_stat.in.h: Add special invocation convention.
35608         (lstat): New declaration.
35609         * lib/lstat.c (orig_lstat): New function.
35610         (rpl_lstat): Use orig_lstat instead of lstat.
35611         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35612         AC_C_INLINE. Set REPLACE_LSTAT.
35613         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35614         and REPLACE_LSTAT.
35615         * modules/lstat (Files): Remove lib/lstat.h.
35616         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35617         (Include): Specify <sys/stat.h> instead of lstat.h.
35618         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35619         REPLACE_LSTAT.
35620         * NEWS: Mention the change.
35621
35622 2008-10-20  Bruno Haible  <bruno@clisp.org>
35623
35624         * modules/posix_spawn-tests: New file.
35625         * tests/test-posix_spawn3.c: New file.
35626
35627 2008-10-20  Bruno Haible  <bruno@clisp.org>
35628
35629         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35630         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35631         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35632         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35633         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35634
35635 2008-10-20  Bruno Haible  <bruno@clisp.org>
35636
35637         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35638         of posix_spawn on AIX 5.3.
35639
35640 2008-10-20  Bruno Haible  <bruno@clisp.org>
35641
35642         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35643
35644 2008-10-20  Bruno Haible  <bruno@clisp.org>
35645
35646         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35647         of AC_LANG_PROGRAM.
35648
35649 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35650
35651         * lib/netdb.in.h: Don't define GNU specific constants until they
35652         are supported or needed.  Reported by Bruno Haible
35653         <bruno@clisp.org>.
35654
35655 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35656
35657         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35658
35659 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35660
35661         * lib/getaddrinfo.h: Remove file.
35662         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35663         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35664         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35665         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35666         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35667         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35668         * tests/test-getaddrinfo.c: Likewise.
35669         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35670         * NEWS: Mention change.
35671
35672 2008-10-19  Bruno Haible  <bruno@clisp.org>
35673
35674         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35675
35676 2008-10-19  Bruno Haible  <bruno@clisp.org>
35677
35678         * lib/wait-process.c: Include simply <sys/wait.h>.
35679         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35680         WIFSTOPPED): Remove fallback definitions.
35681         * modules/wait-process (Depends-on): Add sys_wait.
35682
35683         New module 'sys_wait'.
35684         * modules/sys_wait: New file.
35685         * lib/sys_wait.in.h: New file, partially copied from
35686         lib/wait-process.c.
35687         * m4/sys_wait_h.m4: New file.
35688         * doc/posix-headers/sys_wait.texi: Mention the new module.
35689
35690 2008-10-19  Bruno Haible  <bruno@clisp.org>
35691
35692         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35693
35694 2008-10-19  Bruno Haible  <bruno@clisp.org>
35695
35696         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35697         * lib/wait-process.c (WAIT_T): Remove type.
35698         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35699         (wait_subprocess): Update.
35700
35701 2008-10-19  Bruno Haible  <bruno@clisp.org>
35702
35703         New module 'atoll'.
35704         * modules/atoll: New file.
35705         * lib/stdlib.in.h (atoll): New declaration.
35706         * lib/atoll.c: New file, from glibc with modifications.
35707         * m4/atoll.m4: New file.
35708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35709         HAVE_ATOLL.
35710         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35711         * doc/posix-functions/atoll.texi: Mention the new module.
35712
35713 2008-10-19  Bruno Haible  <bruno@clisp.org>
35714
35715         Add strtoull() declaration to <stdlib.h>.
35716         * lib/stdlib.in.h (strtoull): New declaration.
35717         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35718         Set HAVE_STRTOULL.
35719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35720         HAVE_STRTOULL.
35721         * modules/strtoull (Depends-on): Add stdlib.
35722         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35723         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35724         HAVE_STRTOULL.
35725
35726 2008-10-19  Bruno Haible  <bruno@clisp.org>
35727
35728         Add strtoll() declaration to <stdlib.h>.
35729         * lib/stdlib.in.h (strtoll): New declaration.
35730         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35731         Set HAVE_STRTOLL.
35732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35733         HAVE_STRTOLL.
35734         * modules/strtoll (Depends-on): Add stdlib.
35735         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35736         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35737
35738 2008-10-19  Bruno Haible  <bruno@clisp.org>
35739
35740         * modules/bcopy (Depends-on): Add strings.
35741         (Include): Specify <strings.h>.
35742
35743 2008-10-19  Bruno Haible  <bruno@clisp.org>
35744
35745         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35746
35747 2008-10-19  Bruno Haible  <bruno@clisp.org>
35748
35749         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35750         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35751         mingw.
35752
35753 2008-10-19  Bruno Haible  <bruno@clisp.org>
35754
35755         * lib/atanl.c: Don't include isnanl.h.
35756         * lib/cosl.c: Likewise.
35757         * lib/ldexpl.c: Likewise.
35758         * lib/logl.c: Likewise.
35759         * lib/sinl.c: Likewise.
35760         * lib/sqrtl.c: Likewise.
35761         * lib/tanl.c: Likewise.
35762
35763         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35764         * lib/isnanf.h: Remove file.
35765         * lib/isnand.h: Remove file.
35766         * lib/isnanl.h: Remove file.
35767         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35768         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35769         macros.
35770         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35771         HAVE_ISNANF, don't define it as a C macro.
35772         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35773         HAVE_ISNAND, don't define it as a C macro.
35774         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35775         HAVE_ISNANL, don't define it as a C macro.
35776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35777         HAVE_ISNAN[FDL].
35778         * modules/isnanf (Files): Remove lib/isnanf.h.
35779         (Depends-on): Add math.
35780         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35781         (Include): Specify <math.h> instead of isnanf.h.
35782         * modules/isnand (Files): Remove lib/isnand.h.
35783         (Depends-on): Add math.
35784         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35785         (Include): Specify <math.h> instead of isnand.h.
35786         * modules/isnanl (Files): Remove lib/isnanl.h.
35787         (Depends-on): Add math.
35788         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35789         (Include): Specify <math.h> instead of isnanl.h.
35790         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35791         HAVE_ISNAN[FDL].
35792         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35793         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35794         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35795         * NEWS: Mention the change.
35796
35797 2008-10-18  Bruno Haible  <bruno@clisp.org>
35798
35799         Add getusershell(), setusershell(), endusershell() declarations to
35800         <unistd.h>.
35801         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35802         declarations.
35803         * lib/getusershell.c: Include unistd.h.
35804         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35805         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35806         HAVE_GETUSERSHELL.
35807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35808         and HAVE_GETUSERSHELL.
35809         * modules/getusershell (Depends-on): Add unistd, extensions.
35810         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35811         (Include): Specify <unistd.h>.
35812         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35813         HAVE_GETUSERSHELL.
35814
35815 2008-10-18  Bruno Haible  <bruno@clisp.org>
35816
35817         Add a getloadavg() declaration to <stdlib.h>.
35818         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35819         getloadavg declaration.
35820         (getloadavg): New declaration.
35821         * lib/getloadavg.c: Include <stdlib.h> first.
35822         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35823         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35824         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35826         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35827         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35828         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35829         (Include): Specify <stdlib.h>.
35830         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35831         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35832
35833 2008-10-18  Bruno Haible  <bruno@clisp.org>
35834
35835         * lib/dirchownmod.c: Don't include lchmod.h.
35836
35837         Move the lchmod() declaration to <sys/stat.h>.
35838         * lib/lchmod.h: Remove file.
35839         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35840         (lchmod): New declaration, moved here from lib/lchown.h.
35841         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35842         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35843         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35844         and HAVE_LCHMOD.
35845         * modules/lchmod (Files): Remove lib/lchmod.h.
35846         (Depends-on): Add sys_stat, extensions.
35847         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35848         (Include): Specify <sys/stat.h> instead of lchmod.h.
35849         * modules/sys_stat (Depends-on): Add link-warning.
35850         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35851         definition of GL_LINK_WARNING.
35852         * NEWS: Mention the change.
35853
35854 2008-10-18  Bruno Haible  <bruno@clisp.org>
35855
35856         * lib/fchdir.c: Don't include dirfd.h.
35857         * lib/fts.c: Likewise.
35858         * lib/getcwd.c: Likewise.
35859         * lib/glob.c: Likewise.
35860
35861         Move the dirfd() declaration to <dirent.h>.
35862         * lib/dirfd.h: Remove file.
35863         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35864         (dirfd): New declaration.
35865         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35866         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35867         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35868         HAVE_DECL_DIRFD.
35869         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35870         HAVE_DECL_DIRFD.
35871         * modules/dirfd (Files): Remove lib/dirfd.h.
35872         (Depends-on): Add dirent, extensions.
35873         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35874         (Include): Specify <dirent.h> instead of dirfd.h.
35875         * modules/dirent (Depends-on): Add link-warning.
35876         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35877         definition of GL_LINK_WARNING.
35878         * NEWS: Mention the change.
35879
35880 2008-10-18  Bruno Haible  <bruno@clisp.org>
35881
35882         Move the euidaccess() declaration to <unistd.h>.
35883         * lib/euidaccess.h: Remove file.
35884         * lib/unistd.in.h (euidaccess): New declaration.
35885         * lib/euidaccess.c: Don't include euidaccess.h.
35886         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35887         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35889         and HAVE_EUIDACCESS.
35890         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35891         (Depends-on): Add unistd.
35892         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35893         (Include): Specify <unistd.h> instead of euidaccess.h.
35894         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35895         HAVE_EUIDACCESS.
35896         * NEWS: Mention the change.
35897
35898 2008-10-18  Bruno Haible  <bruno@clisp.org>
35899
35900         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35901
35902         Move the getdomainname() declaration to <unistd.h>.
35903         * lib/getdomainname.h: Remove file.
35904         * lib/unistd.in.h (getdomainname): New declaration.
35905         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35906         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35907         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35908         HAVE_GETDOMAINNAME.
35909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35910         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35911         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35912         (Depends-on): Add unistd, extensions.
35913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35914         (Includes): Specify <unistd.h> instead of getdomainname.h.
35915         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35916         HAVE_GETDOMAINNAME.
35917         * NEWS: Mention the change.
35918
35919 2008-10-18  Bruno Haible  <bruno@clisp.org>
35920
35921         * modules/dirent: New file.
35922         * m4/dirent_h.m4: New file.
35923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35924         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35925         * modules/fchdir (Files): Remove lib/dirent.in.h.
35926         (Depends-on): Add dirent.
35927         (Makefile.am): Move rules to modules/dirent.
35928         * doc/posix-headers/dirent.texi: Mention the new module.
35929
35930 2008-10-18  Bruno Haible  <bruno@clisp.org>
35931
35932         Avoid -Wunused-parameter warnings in public gnulib header files.
35933         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35934         macro.
35935         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35936
35937 2008-10-18  Bruno Haible  <bruno@clisp.org>
35938
35939         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35940         * doc/glibc-functions/error.texi: Mention the module 'error'.
35941         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35942         * doc/glibc-functions/getdomainname.texi: Mention the module
35943         'getdomainname'.
35944         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35945         * doc/glibc-functions/getpagesize.texi: Mention the module
35946         'getpagesize'.
35947         * doc/glibc-functions/getusershell.texi: Mention the module
35948         'getusershell'.
35949         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35950         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35951         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35952         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35953         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35954         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35955         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35956         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35957         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35958         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35959         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35960         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35961         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35962         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35963
35964 2008-10-17  Bruno Haible  <bruno@clisp.org>
35965
35966         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35967         HP-UX and IRIX, use -0.0L.
35968         * tests/test-ceill.c (minus_zero): Likewise.
35969         * tests/test-floorl.c (minus_zero): Likewise.
35970         * tests/test-frexpl.c (minus_zero): Likewise.
35971         * tests/test-isnan.c (minus_zerol): Likewise.
35972         * tests/test-isnanl.h (minus_zero): Likewise.
35973         * tests/test-ldexpl.c (minus_zero): Likewise.
35974         * tests/test-roundl.c (minus_zero): Likewise.
35975         * tests/test-signbit.c (minus_zerol): Likewise.
35976         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35977         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35978         * tests/test-truncl.c (minus_zero): Likewise.
35979         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35980         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35981         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35982         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35983
35984 2008-10-17  Bruno Haible  <bruno@clisp.org>
35985
35986         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35987         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35988         that it gets activated only for gcc >= 3.0.
35989         * lib/dirent.in.h: Likewise.
35990         * lib/errno.in.h: Likewise.
35991         * lib/fcntl.in.h: Likewise.
35992         * lib/float.in.h: Likewise.
35993         * lib/iconv.in.h: Likewise.
35994         * lib/inttypes.in.h: Likewise.
35995         * lib/locale.in.h: Likewise.
35996         * lib/math.in.h: Likewise.
35997         * lib/netdb.in.h: Likewise.
35998         * lib/netinet_in.in.h: Likewise.
35999         * lib/search.in.h: Likewise.
36000         * lib/signal.in.h: Likewise.
36001         * lib/spawn.in.h: Likewise.
36002         * lib/stdarg.in.h: Likewise.
36003         * lib/stdint.in.h: Likewise.
36004         * lib/stdio.in.h: Likewise.
36005         * lib/stdlib.in.h: Likewise.
36006         * lib/string.in.h: Likewise.
36007         * lib/strings.in.h: Likewise.
36008         * lib/sys_file.in.h: Likewise.
36009         * lib/sys_ioctl.in.h: Likewise.
36010         * lib/sys_select.in.h: Likewise.
36011         * lib/sys_socket.in.h: Likewise.
36012         * lib/sys_stat.in.h: Likewise.
36013         * lib/sys_time.in.h: Likewise.
36014         * lib/sysexits.in.h: Likewise.
36015         * lib/time.in.h: Likewise.
36016         * lib/unistd.in.h: Likewise.
36017         * lib/wchar.in.h: Likewise.
36018         * lib/wctype.in.h: Likewise.
36019         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36020
36021 2008-10-17  Jim Meyering  <meyering@redhat.com>
36022
36023         ignore-value: don't depend on inline module
36024         * modules/ignore-value (Depends-on): Remove 'inline'.
36025         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36026         Suggestion from Bruno Haible.
36027
36028 2008-10-17  Bruno Haible  <bruno@clisp.org>
36029
36030         New implementation of condition variables for Win32.
36031         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36032         (gl_linked_waitqueue_t): New type.
36033         (gl_cond_t): Use it.
36034         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36035         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36036         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36037         (glthread_cond_init_func, glthread_cond_wait_func,
36038         glthread_cond_timedwait_func, glthread_cond_signal_func,
36039         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36040         Reimplemented on the basis of gl_linked_waitqueue_t.
36041         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36042         gl_waitqueue_t.
36043         (gl_rwlock_t): Update.
36044         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36045
36046 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36047
36048         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36049         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36050
36051 2008-10-17  Jim Meyering  <meyering@redhat.com>
36052
36053         ignore-value: new module
36054         * modules/ignore-value: New file.
36055         * lib/ignore-value.h: New file.
36056         * MODULES.html.sh (Compiler warning management): New section,
36057         just for this module.  More to come.
36058
36059 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36060
36061         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36062         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36063         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36064
36065 2008-10-16  Jim Meyering  <meyering@redhat.com>
36066
36067         openat-die.c: avoid 'no previous prototype' warning
36068         * lib/openat-die.c: Include "openat.h".
36069         Reported by Reuben Thomas <rrt@sc3d.org>.
36070
36071 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36072
36073         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36074         * lib/netdb.in.h: Fix typo.
36075         Reported by Bruno Haible  <bruno@clisp.org>
36076
36077         * lib/netdb.in.h: Include sys/socket.h for platforms without
36078         netdb.h, to get structures like hostent on MinGW.
36079         * modules/netdb (Depends-on): Add sys_socket.
36080
36081 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36082
36083         * modules/netdb, modules/netdb-tests: New file.
36084         * m4/netdb_h.m4: New file.
36085         * lib/netdb.in.h: Add, currently just an empty file pending
36086         definitions.
36087         * tests/test-netdb.c: New file.
36088         * doc/posix-headers/netdb.texi: Mention that we replace it if
36089         needed.
36090         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36091         netdb.
36092
36093 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36094
36095         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36096         with code.
36097
36098 2008-10-13  Bruno Haible  <bruno@clisp.org>
36099
36100         * lib/glthread/cond.c (glthread_cond_wait_func,
36101         glthread_cond_timedwait_func): Add a comment.
36102
36103 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36104
36105         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36106         * tests/test-select.c: Likewise,
36107
36108 2008-10-13  Bruno Haible  <bruno@clisp.org>
36109
36110         * lib/glthread/cond.c (glthread_cond_wait_func,
36111         glthread_cond_timedwait_func): Fix variable name.
36112         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36113
36114 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36115
36116         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36117         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36118         struct sockaddr.sa_len.
36119         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36120
36121 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36122
36123         * build-aux/pmccabe2html: Add css and css_url parameters.
36124
36125 2008-10-12  Bruno Haible  <bruno@clisp.org>
36126
36127         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36128         calling aclx_get.
36129         Reported by Rainer Tammer <tammer@tammer.net>.
36130
36131 2008-10-12  Bruno Haible  <bruno@clisp.org>
36132
36133         Use msvcrt aware primitives for creation/termination of Win32 threads.
36134         * lib/glthread/thread.c: Include <process.h>.
36135         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36136         (wrapper_func): Update signature.
36137         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36138
36139 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36140             Bruno Haible  <bruno@clisp.org>
36141
36142         Provide a Win32 implementation of the 'cond' module.
36143         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36144         * lib/glthread/cond.c (glthread_cond_init_func,
36145         glthread_cond_wait_func, glthread_cond_timedwait_func,
36146         glthread_cond_signal_func, glthread_cond_broadcast_func,
36147         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36148         * modules/cond (Dependencies): Add gettimeofday.
36149
36150 2008-10-11  Bruno Haible  <bruno@clisp.org>
36151
36152         Make sleep work on older versions of mingw.
36153         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36154         only whether it exists.
36155         * doc/posix-functions/sleep.texi: Mention the problem with older
36156         versions of mingw.
36157
36158 2008-10-11  Bruno Haible  <bruno@clisp.org>
36159
36160         New module 'shutdown'.
36161         * modules/shutdown: New file.
36162         * lib/sys_socket.in.h (shutdown): New declaration.
36163         * lib/winsock.c (shutdown): New function.
36164         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36165         GNULIB_SHUTDOWN.
36166         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36167         * doc/posix-functions/shutdown.texi: Document the new module.
36168
36169 2008-10-11  Jim Meyering  <meyering@redhat.com>
36170
36171         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36172
36173 2008-10-11  Bruno Haible  <bruno@clisp.org>
36174
36175         New module 'fclose'.
36176         * modules/fclose: New file.
36177         * lib/stdio.in.h (fclose): New declaration.
36178         * lib/fclose.c: New file.
36179         * m4/fclose.m4: New file.
36180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36181         REPLACE_FCLOSE.
36182         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36183         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36184         REPLACE_FCLOSE.
36185         * modules/close (Depends-on): fclose.
36186         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36187
36188 2008-10-11  Bruno Haible  <bruno@clisp.org>
36189
36190         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36191         set errno and don't call _close.
36192
36193 2008-10-10  Bruno Haible  <bruno@clisp.org>
36194
36195         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36196         ACL, not afterwards. Fixes test failure on Cygwin.
36197
36198 2008-10-09  Ben Pfaff  <blp@gnu.org>
36199
36200         * build-aux/announce-gen: Fix gnulib version related part of usage
36201         message.  Die with a useful error message if no tarballs are
36202         found.
36203
36204 2008-10-10  Jim Meyering  <meyering@redhat.com>
36205
36206         bootstrap: use git's --depth=N option only if it's supported
36207         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36208         recognize the --depth option.  Reported by Pádraig Brady.
36209
36210 2008-10-09  Bruno Haible  <bruno@clisp.org>
36211
36212         New module 'ioctl'.
36213         * modules/ioctl: New file.
36214         * lib/sys_socket.in.h (ioctl): Remove declaration.
36215         * lib/winsock.c: Include <sys/ioctl.h>.
36216         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36217         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36218         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36219         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36220         * doc/posix-functions/ioctl.texi: Mention the new module.
36221
36222 2008-10-09  Bruno Haible  <bruno@clisp.org>
36223
36224         New module 'sys_ioctl'.
36225         * lib/sys_ioctl.in.h: New file.
36226         * m4/sys_ioctl_h.m4: New file.
36227         * modules/sys_ioctl: New file.
36228         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36229
36230 2008-10-09  Bruno Haible  <bruno@clisp.org>
36231
36232         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36233         * lib/winsock.c: Include <stdarg.h>.
36234         (rpl_ioctl): Change to second argument 'int' and then varargs.
36235
36236 2008-10-09  Bruno Haible  <bruno@clisp.org>
36237
36238         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36239         when the sys_socket module is present and the system has <winsock2.h>.
36240
36241 2008-10-09  Bruno Haible  <bruno@clisp.org>
36242
36243         * doc/posix-functions/close.texi: Mention module 'close' instead of
36244         module 'sys_socket'.
36245
36246 2008-10-09  Bruno Haible  <bruno@clisp.org>
36247
36248         * doc/glibc-headers/sys_ioctl.texi: New file.
36249         * doc/gnulib.texi: Include it.
36250
36251 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36252             Bruno Haible  <bruno@clisp.org>
36253
36254         Combine the two replacements of 'close'.
36255         * lib/sys_socket.in.h (close): Define to a reminder to include
36256         <unistd.h>.
36257         (_gl_close_fd_maybe_socket): New declaration.
36258         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36259         * lib/winsock.c (close): Remove undefinition.
36260         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36261         needed for the gnulib module 'close'.
36262         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36263         define to an error symbol or to a warning, if suitable.
36264         * lib/close.c: Include <sys/socket.h>.
36265         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36266         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36267         UNISTD_H_HAVE_WINSOCK2_H.
36268         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36270         UNISTD_H_HAVE_WINSOCK2_H.
36271         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36272         (configure.ac): Set a module indicator.
36273         (Makefile.am): Substitute GNULIB_CLOSE.
36274         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36275         * modules/poll-tests (Depends-on): Add close.
36276         * modules/select-tests (Depends-on): Likewise.
36277
36278 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36279             Bruno Haible  <bruno@clisp.org>
36280
36281         New module 'close'.
36282         * modules/close: New file.
36283         * lib/unistd.in.h (close): Move declaration out of the
36284         FCHDIR_REPLACEMENT scope.
36285         (_gl_unregister_fd): New declaration.
36286         * lib/close.c: New file.
36287         * lib/fchdir.c (rpl_close): Remove function.
36288         * m4/close.m4: New file.
36289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36290         close.
36291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36292         REPLACE_CLOSE.
36293         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36294         REPLACE_CLOSE.
36295         * modules/fchdir (Depends-on): Add close.
36296
36297 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36298             Bruno Haible  <bruno@clisp.org>
36299
36300         * lib/fcntl.in.h (open): Simplify conditionals.
36301         (_gl_register_fd): New declaration.
36302         * lib/fchdir.c (rpl_open): Remove function.
36303         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36304         also.
36305         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36307         open.
36308
36309 2008-10-09  Jim Meyering  <meyering@redhat.com>
36310
36311         GNUmakefile: use the more name-space-friendly "_version"
36312         * top/GNUmakefile (_dummy): Update.
36313         (_version): Rename from "version".
36314
36315 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36316             Bruno Haible  <bruno@clisp.org>
36317
36318         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36319         rpl_close.
36320         (_gl_register_fd): New function, extracted from rpl_open.
36321         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36322         (rpl_open, rpl_opendir): Use _gl_register_fd.
36323
36324 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36325
36326         Fix organization of 'open' replacement.
36327         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36328         (gl_FUNC_OPEN): Use it.
36329         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36330
36331 2008-10-08  Bruno Haible  <bruno@clisp.org>
36332
36333         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36334
36335 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36336
36337         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36338         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36339         listen).
36340
36341 2008-10-08  Eric Blake  <ebb9@byu.net>
36342
36343         GNUmakefile: add 'make version' target
36344         * top/GNUmakefile (_curr-ver): Split version update rules...
36345         (version): ...into a target.
36346
36347 2008-10-07  Bruno Haible  <bruno@clisp.org>
36348
36349         Use a more portable replacement expression for -0.0L.
36350         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36351         instead of -0.0L. Fix m4 quotation.
36352
36353         * tests/test-signbit.c: Include <float.h>.
36354         (minus_zero): New variable.
36355         (test_signbitl): Use minus_zero instead of -zero.
36356         * modules/signbit-tests (Depends-on): Add float.
36357
36358         * tests/test-ceill.c: Include <float.h>.
36359         (zero): Remove variable.
36360         (minus_zero): New variable.
36361         (main): Use minus_zero instead of -zero.
36362         * modules/ceill-tests (Depends-on): Add float.
36363
36364         * tests/test-floorl.c: Include <float.h>.
36365         (zero): Remove variable.
36366         (minus_zero): New variable.
36367         (main): Use minus_zero instead of -zero.
36368         * modules/floorl-tests (Depends-on): Add float.
36369
36370         * tests/test-roundl.c: Include <float.h>.
36371         (zero): Remove variable.
36372         (minus_zero): New variable.
36373         (main): Use minus_zero instead of -zero.
36374         * modules/roundl-tests (Depends-on): Add float.
36375
36376         * tests/test-truncl.c: Include <float.h>.
36377         (zero): Remove variable.
36378         (minus_zero): New variable.
36379         (main): Use minus_zero instead of -zero.
36380         * modules/truncl-tests (Depends-on): Add float.
36381
36382         * tests/test-frexpl.c (zero): Remove variable.
36383         (minus_zero): New variable.
36384         (main): Use minus_zero instead of -zero.
36385         * modules/frexpl-tests (Depends-on): Add float.
36386
36387         * tests/test-isnan.c (zerol): Remove variable.
36388         (minus_zerol): New variable.
36389         (test_long_double): Use minus_zerol instead of -zerol.
36390         * modules/isnan-tests (Depends-on): Add float.
36391
36392         * tests/test-isnanl.h (zero): Remove variable.
36393         (minus_zero): New variable.
36394         (main): Use minus_zero instead of -zero.
36395         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36396         * modules/isnanl-tests (Depends-on): Add float.
36397
36398         * tests/test-ldexpl.c (zero): Remove variable.
36399         (minus_zero): New variable.
36400         (main): Use minus_zero instead of -zero.
36401         * modules/ldexpl-tests (Depends-on): Add float.
36402
36403         * tests/test-snprintf-posix.h (zerol): Remove variable.
36404         (minus_zerol): New variable.
36405         (test_function): Use minus_zerol instead of -zerol.
36406         * modules/snprintf-posix-tests (Depends-on): Add float.
36407         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36408
36409         * tests/test-sprintf-posix.h (zerol): Remove variable.
36410         (minus_zerol): New variable.
36411         (test_function): Use minus_zerol instead of -zerol.
36412         * modules/sprintf-posix-tests (Depends-on): Add float.
36413         * modules/vsprintf-posix-tests (Depends-on): Add float.
36414
36415         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36416         (minus_zerol): New variable.
36417         (test_function): Use minus_zerol instead of -zerol.
36418         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36419
36420         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36421         (minus_zerol): New variable.
36422         (test_function): Use minus_zerol instead of -zerol.
36423         * modules/vasprintf-posix-tests (Depends-on): Add float.
36424
36425 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36426
36427         * MODULES.html.sh (Support for building documentation): Mention
36428         pmccabe2html.  Sort entries.
36429
36430         Add pmccabe2html module, from gnupdf.
36431         * build-aux/pmccabe.css: New file.
36432         * build-aux/pmccabe2html: New file.
36433         * m4/pmccabe2html.m4: New file.
36434         * modules/pmccabe2html: New file.
36435
36436 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36437
36438         flock: new module
36439         * MODULES.html.sh: Add to list of modules.
36440         * lib/flock.c: flock implementation for Windows and Unix systems
36441         which have fcntl.
36442         * doc/glibc-functions/flock.texi: Update documentation.
36443         * lib/sys_file.in.h: <sys/file.h> header file.
36444         * m4/flock.m4: M4 macros.
36445         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36446         * modules/flock: flock module.
36447         * modules/flock-tests: flock tests module.
36448         * modules/sys_file: sys/file.h module.
36449         * tests/test-flock.c: test suite for flock.
36450
36451 2008-10-06  Jim Meyering  <meyering@redhat.com>
36452
36453         bootstrap: check for LT_INIT more portably still ;-)
36454         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36455         Spotted by Bruno Haible.
36456
36457 2008-10-06  Eric Blake  <ebb9@byu.net>
36458
36459         test-signbit: avoid tripping Irix cc bug on -0.0L
36460         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36461         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36462         entire testsuite consistent and avoids an Irix 6.2 bug.
36463
36464 2008-10-05  Bruno Haible  <bruno@clisp.org>
36465             Jim Meyering  <jim@meyering.net>
36466
36467         Add an option for ignoring EPIPE during close_stdout.
36468         * lib/closeout.h: Include <stdbool.h>.
36469         (close_stdout_set_ignore_EPIPE): New declaration.
36470         * lib/closeout.c: Include <stdbool.h>.
36471         (ignore_EPIPE): New variable.
36472         (close_stdout_set_ignore_EPIPE): New function.
36473         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36474         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36475         failure.
36476         * modules/closeout (Depends-on): Add stdbool.
36477
36478 2008-10-05  Bruno Haible  <bruno@clisp.org>
36479
36480         * modules/accept: New file.
36481         * modules/bind: New file.
36482         * modules/connect: New file.
36483         * modules/getpeername: New file.
36484         * modules/getsockname: New file.
36485         * modules/getsockopt: New file.
36486         * modules/listen: New file.
36487         * modules/recv: New file.
36488         * modules/recvfrom: New file.
36489         * modules/send: New file.
36490         * modules/sendto: New file.
36491         * modules/setsockopt: New file.
36492         * modules/socket: New file.
36493         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36494         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36495         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36496         the particular module is requested. Add a link warning when the
36497         particular module is not requested.
36498         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36499         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36500         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36501         the particular module is requested.
36502         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36503         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36504         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36505         * modules/sys_socket (Depends-on): Add link-warning.
36506         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36507         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36508         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36509         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36510         GL_LINK_WARNING.
36511         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36512         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36513         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36514         * doc/posix-functions/getpeername.texi: Mention the new module
36515         'getpeername'.
36516         * doc/posix-functions/getsockname.texi: Mention the new module
36517         'getsockname'.
36518         * doc/posix-functions/getsockopt.texi: Mention the new module
36519         'getsockopt'.
36520         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36521         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36522         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36523         * doc/posix-functions/send.texi: Mention the new module 'send'.
36524         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36525         * doc/posix-functions/setsockopt.texi: Mention the new module
36526         'setsockopt'.
36527         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36528         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36529         listen, connect, accept.
36530         * modules/select-tests (Depends-on): Likewise.
36531
36532 2008-10-05  Bruno Haible  <bruno@clisp.org>
36533
36534         * lib/winsock.c (strerror): Remove unused #undef.
36535         (rpl_close): Remove unused local variable.
36536
36537         * modules/sys_socket (Depends-on); Add errno.
36538
36539 2008-10-05  Bruno Haible  <bruno@clisp.org>
36540
36541         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36542         (select): Add a link warning when the 'select' module is not used.
36543         * modules/sys_select (Depends-on): Add link-warning.
36544         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36545         Suggested by Paolo Bonzini.
36546
36547 2008-10-05  Jim Meyering  <meyering@redhat.com>
36548
36549         bootstrap: check for LT_INIT more portably
36550         * build-aux/bootstrap: Avoid using grep -E, since it's not
36551         portable enough.  Suggestion from Bruno Haible.
36552
36553 2008-10-05  Bruno Haible  <bruno@clisp.org>
36554
36555         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36556         as being fixed by gnulib.
36557
36558 2008-10-05  Bruno Haible  <bruno@clisp.org>
36559
36560         * modules/select-tests: New file, mostly copied from
36561         modules/sys_select-tests.
36562         * tests/test-select.c: New file, mostly copied from
36563         tests/test-sys_select.c.
36564         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36565         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36566         (Makefile.am): Remove test_sys_select_LDADD.
36567
36568         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36569         to an undefined symbol, for an error message.
36570         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36571         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36572         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36573         winsock-select.c here.
36574         * modules/sys_select (Files): Remove lib/winsock-select.c.
36575         (Depends-on): Remove alloca.
36576         (Makefile.am): Substitute GNULIB_SELECT.
36577         * modules/select: New file.
36578         * doc/posix-functions/select.texi: Update.
36579
36580 2008-10-05  Bruno Haible  <bruno@clisp.org>
36581
36582         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36583         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36584         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36585         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36586         getdtablesize.
36587         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36588         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36589
36590 2008-10-05  Bruno Haible  <bruno@clisp.org>
36591
36592         * modules/getdtablesize-tests: New file.
36593         * tests/test-getdtablesize.c: New file.
36594
36595         New module 'getdtablesize'.
36596         * lib/unistd.in.h (getdtablesize): New declaration.
36597         * lib/getdtablesize.c: New file.
36598         * m4/getdtablesize.m4: New file.
36599         * modules/getdtablesize: New file.
36600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36601         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36602         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36603         HAVE_GETDTABLESIZE.
36604         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36605
36606 2008-10-05  Bruno Haible  <bruno@clisp.org>
36607
36608         * modules/sched (Makefile.am): Fix typo.
36609         Reported by Simon Josefsson.
36610
36611 2008-10-05  Jim Meyering  <meyering@redhat.com>
36612
36613         bootstrap: check for LT_INIT, too
36614         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36615         are deprecated.  Suggestion from Ralf Wildenhues.
36616
36617 2008-10-05  Bruno Haible  <bruno@clisp.org>
36618
36619         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36620         overriding them by ours.
36621         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36622
36623 2008-10-05  Jim Meyering  <meyering@redhat.com>
36624
36625         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36626         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36627         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36628
36629 2008-10-04  Bruno Haible  <bruno@clisp.org>
36630
36631         * modules/dup2 (License): Change to LGPLv2+.
36632         * modules/sleep (License): Likewise.
36633         * modules/perror (License): Likewise.
36634         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36635         Blake.
36636         * modules/signal (License): Likewise.
36637         * modules/sigprocmask (License): Likewise.
36638         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36639         Meyering.
36640
36641 2008-10-04  Bruno Haible  <bruno@clisp.org>
36642
36643         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36644         Reported by Rainer Tammer <tammer@tammer.net>.
36645
36646 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36647             Bruno Haible  <bruno@clisp.org>
36648
36649         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36650         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36651         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36652
36653 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36654
36655         filevercmp: new module
36656         * lib/filevercmp.h: New function filevercmp comparing version strings.
36657         * lib/filevercmp.c: Implementation of filevercmp function.
36658         * modules/filevercmp: Module metadata.
36659         * tests/test-filevercmp.c: Unit test for new module.
36660         * modules/filevercmp-tests: Unit test metadata.
36661         * MODULES.html.sh: Add filevercmp module.
36662
36663 2008-10-03  Bruno Haible  <bruno@clisp.org>
36664
36665         * lib/c-ctype.h: Add comment.
36666         Reported by Jim Meyering.
36667
36668 2008-10-02  Bruno Haible  <bruno@clisp.org>
36669
36670         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36671
36672 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36673
36674         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36675         name of bootstrap.conf accordingly.
36676
36677 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36678
36679         * build-aux/bootstrap: Install git-merge-changelog configuration
36680         items into .gitconfig if needed.
36681
36682 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36683
36684         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36685         git repository, and initialize/update it accordingly.
36686
36687 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36688
36689         * modules/fsync-tests: New file.
36690         * tests/test-fsync.c: New file.
36691
36692         New module 'fsync'.
36693         * lib/fsync.c: New file.
36694         * m4/fsync.m4: New file.
36695         * modules/fsync: New file.
36696         * lib/unistd.in.h (fsync): New declaration.
36697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36698         GNULIB_FSYNC and HAVE_FSYNC.
36699         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36700         * MODULES.html.sh (posix_functions): Add fsync.
36701         * doc/posix-functions/fsync.texi: Mention the new module.
36702
36703 2008-10-02  Jim Meyering  <meyering@redhat.com>
36704
36705         fts.c: sync with similar code from coreutils' remove.c
36706         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36707         Guard also with "#if defined __linux__", since for now at least,
36708         this code is Linux-kernel-specific.
36709
36710 2008-10-02  Jim Meyering  <meyering@redhat.com>
36711
36712         fts: bug fixes
36713         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36714         Include <sys/vfs.h>, not <sys/statfs.h>.
36715
36716         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36717         Include <sys/vfs.h>, not <sys/statfs.h>.
36718
36719 2008-10-01  Bruno Haible  <bruno@clisp.org>
36720
36721         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36722         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36723         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36724         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36725         * doc/posix-functions/posix_spawnp.texi: Likewise.
36726         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36727         whether posix_spawn actually works.
36728         * m4/pipe.m4 (gl_PIPE): Likewise.
36729         * modules/execute (Files): Add m4/posix_spawn.m4.
36730         * modules/pipe (Files): Add m4/posix_spawn.m4.
36731         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36732
36733 2008-10-01  Jim Meyering  <meyering@redhat.com>
36734
36735         remove trailing spaces
36736         * NEWS: Likewise.
36737         * lib/poll.c (poll): Likewise.
36738         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36739         * lib/winsock.c (rpl_close): Likewise.
36740         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36741         * modules/yield: Likewise.
36742         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36743         * tests/test-sys_select.c (connect_to_socket): Likewise.
36744
36745         fts.c: adjust a new interface to be more generally useful
36746         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36747         (fts_build): Adjust caller.
36748
36749 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36750
36751         * modules/cond-tests: New file.
36752         * tests/test-cond.c: New file.
36753
36754 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36755             Bruno Haible  <bruno@clisp.org>
36756
36757         * modules/cond (Dependencies): Add errno, time.
36758         * lib/glthread/cond.h: Include <time.h>.
36759         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36760         across platforms.
36761
36762 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36763             Bruno Haible  <bruno@clisp.org>
36764
36765         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36766
36767 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36768             Bruno Haible  <bruno@clisp.org>
36769
36770         * modules/tls-tests (Depends-on): Add thread, yield.
36771         (configure.ac): Remove all checks.
36772         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36773         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36774         gl_thread_self): Remove definitions. Include glthread/thread.h and
36775         glthread/yield.h instead.
36776         (test_tls): Pass an additional NULL argument to gl_thread_join.
36777
36778 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36779             Bruno Haible  <bruno@clisp.org>
36780
36781         * modules/lock-tests (Depends-on): Add thread, yield.
36782         (configure.ac): Remove all checks.
36783         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36784         * tests/test-lock.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_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36788         additional NULL argument to gl_thread_join.
36789
36790 2008-09-30  Bruno Haible  <bruno@clisp.org>
36791
36792         Fix the Win32 implementation of the 'thread' module.
36793         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36794         pointer type.
36795         (gl_thread_self): Invoke gl_thread_self_func.
36796         (gl_thread_self_func): New declaration.
36797         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36798         (do_init_self_key, init_self_key): New functions.
36799         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36800         Remove some fields.
36801         (running_threads, running_lock): Remove variables.
36802         (get_current_thread_handle): New function.
36803         (gl_thread_self_func, wrapper_func, glthread_create_func,
36804         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36805         simplified.
36806
36807 2008-09-30  Bruno Haible  <bruno@clisp.org>
36808
36809         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36810         files.
36811
36812 2008-09-30  Jim Meyering  <meyering@redhat.com>
36813
36814         fts.m4: correct the test for statfs.f_type
36815         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36816         when checking for statfs.f_type.
36817
36818 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36819
36820         tests: avoid some compiler warnings
36821         * tests/test-memchr.c (main): Pass NULL indirectly.
36822         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36823
36824 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36825
36826         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36827         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36828         exactly specified dayshifts.
36829         (dayshift): New rule.
36830         (rel): Add dayshift.
36831         (relative_time_table) [tomorrow, yesterday, today, now]:
36832         Use tDAY_SHIFT in place of tDAY_UNIT.
36833         * tests/test-getdate.c: Add tests for now-disallowed countable
36834         dayshifts, e.g., "4 yesterday ago".
36835
36836 2008-09-29  Bruno Haible  <bruno@clisp.org>
36837
36838         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36839         * tests/test-posix_spawn1.in.sh: Renamed from
36840         tests/test-posix_spawn.in.sh.
36841         * tests/test-posix_spawn2.c: New file.
36842         * tests/test-posix_spawn2.in.sh: New file.
36843         * modules/posix_spawnp-tests (Files): Update.
36844         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36845
36846 2008-09-29  Bruno Haible  <bruno@clisp.org>
36847
36848         Propagate effects of putenv/setenv/unsetenv to child processes.
36849         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36850         * lib/pipe.c (create_pipe): Likewise.
36851
36852 2008-09-29  Bruno Haible  <bruno@clisp.org>
36853
36854         Enable use of shell scripts as executables in mingw.
36855         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36856         run the program as a shell script.
36857         * lib/pipe.c (create_pipe): Likewise.
36858         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36859         resulting array.
36860
36861 2008-09-29  Eric Blake  <ebb9@byu.net>
36862
36863         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36864
36865 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36866
36867         * doc/posix-functions/accept.texi: Update mingw problems.
36868         * doc/posix-functions/bind.texi: Update mingw problems.
36869         * doc/posix-functions/close.texi: Update mingw problems.
36870         * doc/posix-functions/connect.texi: Update mingw problems.
36871         * doc/posix-functions/getpeername.texi: Update mingw problems.
36872         * doc/posix-functions/getsockname.texi: Update mingw problems.
36873         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36874         * doc/posix-functions/ioctl.texi: Update mingw problems.
36875         * doc/posix-functions/listen.texi: Update mingw problems.
36876         * doc/posix-functions/recv.texi: Update mingw problems.
36877         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36878         * doc/posix-functions/select.texi: Update mingw problems.
36879         * doc/posix-functions/send.texi: Update mingw problems.
36880         * doc/posix-functions/sendto.texi: Update mingw problems.
36881         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36882         * doc/posix-functions/socket.texi: Update mingw problems.
36883
36884 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36885             Bruno Haible  <bruno@clisp.org>
36886
36887         * lib/sys_select.in.h: Include sys/time.h.
36888         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36889         * modules/sys_select: Depend on sys_time.
36890         * tests/test-sys_select.c: Test that sys/select.h defines struct
36891         timeval fully.
36892
36893 2008-09-29  Bruno Haible  <bruno@clisp.org>
36894
36895         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36896         * lib/sys_select.in.h: Likewise.
36897
36898 2008-09-29  Bruno Haible  <bruno@clisp.org>
36899
36900         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36901
36902 2008-09-29  Bruno Haible  <bruno@clisp.org>
36903
36904         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36905         Set LIBSOCKET instead of augmenting LIBS.
36906         * modules/sockets (Link): New section.
36907         * modules/sockets-tests (test_sockets_LDADD): New variable.
36908         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36909         * modules/poll-tests (test_poll_LDADD): New variable.
36910         * NEWS: Document the change.
36911
36912 2008-09-29  Bruno Haible  <bruno@clisp.org>
36913
36914         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36915         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36916         ARPA_INET_H directly.
36917         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36918
36919 2008-09-28  Bruno Haible  <bruno@clisp.org>
36920
36921         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36922         from gl_HEADER_SYS_SOCKET.
36923         (gl_HEADER_SYS_SOCKET): Invoke it.
36924         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36925
36926 2008-09-28  Bruno Haible  <bruno@clisp.org>
36927
36928         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36929         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36930         Needed on OSF/1 4.0.
36931
36932 2008-09-28  Bruno Haible  <bruno@clisp.org>
36933
36934         Override open more carefully.
36935         * lib/open.c (orig_open): New function.
36936         (rpl_open): Use orig_open instead of open.
36937         * lib/fcntl.in.h: Add special invocation convention.
36938         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36939         (gl_FUNC_OPEN): Invoke it.
36940
36941         Override freopen more carefully.
36942         * lib/freopen.c (orig_freopen): New function.
36943         (rpl_freopen): Use orig_freopen instead of freopen.
36944         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36945         (gl_FUNC_FREOPEN): Invoke it.
36946
36947         Override fopen more carefully.
36948         * lib/fopen.c (orig_fopen): New function.
36949         (rpl_fopen): Use orig_fopen instead of fopen.
36950         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36951         (gl_FUNC_FOPEN): Invoke it.
36952         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36953
36954 2008-09-28  Bruno Haible  <bruno@clisp.org>
36955
36956         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36957         SIGPIPE.
36958
36959 2008-09-28  Bruno Haible  <bruno@clisp.org>
36960
36961         * tests/test-sigaction.c (handler, main): Disable the check whether
36962         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36963         glibc systems with LinuxThreads.
36964
36965 2008-09-28  Bruno Haible  <bruno@clisp.org>
36966
36967         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36968
36969         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36970         with AIX xlc.
36971         * lib/fcntl.in.h (open): Likewise.
36972         Reported by Rainer Tammer <tammer@tammer.net>.
36973
36974 2008-09-28  Bruno Haible  <bruno@clisp.org>
36975
36976         * modules/posix_spawnp-tests: New file.
36977         * tests/test-posix_spawn.c: New file.
36978         * tests/test-posix_spawn.in.sh: New file.
36979
36980         New module 'posix_spawnp'.
36981         * modules/posix_spawnp: New file.
36982         * lib/spawnp.c: New file, from GNU libc with modifications.
36983         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36984
36985         New module 'posix_spawn'.
36986         * modules/posix_spawn: New file.
36987         * lib/spawn.c: New file, from GNU libc with modifications.
36988         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36989
36990         New module 'posix_spawnattr_destroy'.
36991         * modules/posix_spawnattr_destroy: New file.
36992         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36993         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36994         module.
36995
36996         New module 'posix_spawnattr_setsigmask'.
36997         * modules/posix_spawnattr_setsigmask: New file.
36998         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36999         modifications.
37000         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37001         new module.
37002
37003         New module 'posix_spawnattr_getsigmask'.
37004         * modules/posix_spawnattr_getsigmask: New file.
37005         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37006         modifications.
37007         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37008         new module.
37009
37010         New module 'posix_spawnattr_setsigdefault'.
37011         * modules/posix_spawnattr_setsigdefault: New file.
37012         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37013         modifications.
37014         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37015         new module.
37016
37017         New module 'posix_spawnattr_getsigdefault'.
37018         * modules/posix_spawnattr_getsigdefault: New file.
37019         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37020         modifications.
37021         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37022         new module.
37023
37024         New module 'posix_spawnattr_setschedpolicy'.
37025         * modules/posix_spawnattr_setschedpolicy: New file.
37026         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37027         modifications.
37028         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37029         new module.
37030
37031         New module 'posix_spawnattr_getschedpolicy'.
37032         * modules/posix_spawnattr_getschedpolicy: New file.
37033         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37034         modifications.
37035         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37036         new module.
37037
37038         New module 'posix_spawnattr_setschedparam'.
37039         * modules/posix_spawnattr_setschedparam: New file.
37040         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37041         modifications.
37042         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37043         new module.
37044
37045         New module 'posix_spawnattr_getschedparam'.
37046         * modules/posix_spawnattr_getschedparam: New file.
37047         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37048         modifications.
37049         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37050         new module.
37051
37052         New module 'posix_spawnattr_setpgroup'.
37053         * modules/posix_spawnattr_setpgroup: New file.
37054         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37055         modifications.
37056         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37057         module.
37058
37059         New module 'posix_spawnattr_getpgroup'.
37060         * modules/posix_spawnattr_getpgroup: New file.
37061         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37062         modifications.
37063         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37064         module.
37065
37066         New module 'posix_spawnattr_setflags'.
37067         * modules/posix_spawnattr_setflags: New file.
37068         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37069         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37070         module.
37071
37072         New module 'posix_spawnattr_getflags'.
37073         * modules/posix_spawnattr_getflags: New file.
37074         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37075         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37076         module.
37077
37078         New module 'posix_spawnattr_init'.
37079         * modules/posix_spawnattr_init: New file.
37080         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37081         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37082         module.
37083
37084         New module 'posix_spawn_file_actions_destroy'.
37085         * modules/posix_spawn_file_actions_destroy: New file.
37086         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37087         modifications.
37088         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37089         the new module.
37090
37091         New module 'posix_spawn_file_actions_addopen'.
37092         * modules/posix_spawn_file_actions_addopen: New file.
37093         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37094         modifications.
37095         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37096         the new module.
37097
37098         New module 'posix_spawn_file_actions_adddup2'.
37099         * modules/posix_spawn_file_actions_adddup2: New file.
37100         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37101         modifications.
37102         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37103         the new module.
37104
37105         New module 'posix_spawn_file_actions_addclose'.
37106         * modules/posix_spawn_file_actions_addclose: New file.
37107         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37108         modifications.
37109         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37110         the new module.
37111
37112         New module 'posix_spawn_file_actions_init'.
37113         * modules/posix_spawn_file_actions_init: New file.
37114         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37115         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37116         new module.
37117
37118         New module 'posix_spawn-internal'.
37119         * modules/posix_spawn-internal: New file.
37120         * lib/spawn_int.h: New file, from GNU libc with modifications.
37121         * lib/spawni.c: New file, from GNU libc with modifications.
37122         * m4/posix_spawn.m4: New file.
37123
37124         New module 'spawn'.
37125         * modules/spawn: New file.
37126         * lib/spawn.in.h: New file, from GNU libc with modifications.
37127         * m4/spawn_h.m4: New file.
37128         * doc/posix-headers/spawn.texi: Mention the new module.
37129
37130 2008-09-28  Bruno Haible  <bruno@clisp.org>
37131
37132         * modules/sched-tests: New file.
37133         * tests/test-sched.c: New file.
37134
37135         New module 'sched'.
37136         * modules/sched: New file.
37137         * lib/sched.in.h: New file.
37138         * m4/sched_h.m4: New file.
37139         * doc/posix-headers/sched.texi: Mention the new module.
37140
37141 2008-09-27  Eric Blake  <ebb9@byu.net>
37142
37143         Fix previous patch, and tweak references to $0.
37144         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37145         (func_version, func_gnulib_dir): Don't call this program
37146         gnulib-tool.
37147         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37148         with using $0 in function.
37149         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37150         (func_fatal_error): Reuse the name the user invoked us with.
37151
37152 2008-09-27  Bruno Haible  <bruno@clisp.org>
37153
37154         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37155         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37156         (gl_ICONV_H): Not here.
37157         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37158         instead of assigning ICONV_H directly.
37159
37160         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37161         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37162         WCHAR_H directly.
37163
37164 2008-09-27  Bruno Haible  <bruno@clisp.org>
37165
37166         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37167         * modules/arpa_inet (Depends-on): Add link-warning.
37168         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37169         * modules/unistd (Makefile.am): Likewise.
37170
37171 2008-09-26  Bruno Haible  <bruno@clisp.org>
37172
37173         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37174         variables.
37175         (func_version): Essentially copied from gnulib-tool.
37176         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37177         func_readlink): Copied from gnulib-tool.
37178
37179 2008-09-26  Bruno Haible  <bruno@clisp.org>
37180
37181         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37182         invoking git-version-gen.
37183
37184 2008-09-26  Bruno Haible  <bruno@clisp.org>
37185
37186         * posix-modules: Update to directory names changed on 2008-01-19.
37187         Remove commas in output before splitting into words. No more need to
37188         avoid 'ftruncate' since 2007-02-19.
37189
37190 2008-09-26  Bruno Haible  <bruno@clisp.org>
37191
37192         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37193
37194 2008-09-26  Bruno Haible  <bruno@clisp.org>
37195
37196         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37197         * modules/fwriteerror (Depends-on): Add errno.
37198
37199 2008-09-26  Bruno Haible  <bruno@clisp.org>
37200
37201         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37202         * tests/test-vc-list-files-cvs.sh: Likewise.
37203
37204 2008-09-26  Bruno Haible  <bruno@clisp.org>
37205
37206         * doc/posix-headers/sys_resource.texi: Reorder items.
37207
37208 2008-09-26  Jim Meyering  <meyering@redhat.com>
37209
37210         fts: tweak inode comparison function
37211         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37212         inode numbers, as documented.
37213
37214         fts: sort dirent entries on inode number before traversing
37215         This avoids a quadratic, seek-related performance penalty when
37216         operating on a directory containing many entries (measurable at 10k;
37217         3.5 hours at 2 million entries with a cold cache) on certain types
37218         of file systems, including ext3 and ext4, but not tmpfs.
37219         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37220         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37221         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37222         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37223         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37224         (fts_build): Set the stat.st_ino member from D_INO.
37225         If it is likely to be useful, sort dirent entries on inode number.
37226
37227         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37228         and the struct statfs.f_type member.
37229         * modules/fts (Depends-on): Add d-ino.
37230
37231 2008-09-26  Bruno Haible  <bruno@clisp.org>
37232
37233         * modules/sigpipe-die (Depends-on): Add sigpipe.
37234
37235         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37236         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37237         and GNULIB_STDIO_H_SIGPIPE are set.
37238         * lib/stdio-write.c: New file.
37239         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37240         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37241         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37242         REPLACE_STDIO_WRITE_FUNCS.
37243         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37244         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37245         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37246         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37247         * modules/stdio (Files): Add lib/stdio-write.c.
37248         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37249         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37250         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37251         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37252         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37253         REPLACE_FPRINTF_POSIX.
37254         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37255         REPLACE_PRINTF_POSIX.
37256         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37257         REPLACE_VFPRINTF_POSIX.
37258         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37259         REPLACE_VPRINTF_POSIX.
37260         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37261         SIGPIPE issue.
37262         * doc/posix-functions/fputc.texi: Likewise.
37263         * doc/posix-functions/fputs.texi: Likewise.
37264         * doc/posix-functions/fwrite.texi: Likewise.
37265         * doc/posix-functions/printf.texi: Likewise.
37266         * doc/posix-functions/putc.texi: Likewise.
37267         * doc/posix-functions/putchar.texi: Likewise.
37268         * doc/posix-functions/puts.texi: Likewise.
37269         * doc/posix-functions/vfprintf.texi: Likewise.
37270         * doc/posix-functions/vprintf.texi: Likewise.
37271
37272         * modules/safe-write (Depends-on): Add write.
37273
37274         * modules/sigpipe-tests: New file.
37275         * tests/test-sigpipe.c: New file.
37276         * tests/test-sigpipe.sh: New file.
37277
37278         * modules/write: New file.
37279         * lib/unistd.in.h: Include <sys/types.h>.
37280         (write): New declaration.
37281         * lib/write.c: New file.
37282         * m4/write.m4: New file.
37283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37284         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37285         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37286         GNULIB_WRITE, REPLACE_WRITE.
37287         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37288         and the SIGPIPE issue.
37289
37290         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37291         (raise): New declaration.
37292         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37293         (ext_signal): New function.
37294         (rpl_raise): New function.
37295         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37296         GNULIB_SIGNAL_H_SIGPIPE.
37297         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37298         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37299
37300         * modules/sigpipe: New file.
37301         * m4/sigpipe.m4: New file.
37302
37303 2008-09-25  Derek Price  <derek@ximbiot.com>
37304             Bruno Haible  <bruno@clisp.org>
37305
37306         * gnulib-tool (func_import): Report all license incompatibilities, not
37307         just the first one.
37308
37309 2008-09-25  Bruno Haible  <bruno@clisp.org>
37310
37311         * gnulib-tool (func_import): When computing the edits, consider not
37312         only the Makefile.ams that exist but also those that will be generated.
37313
37314 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37315
37316         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37317         fixes gnulib-tool --test warning about duplicate dependency.
37318
37319 2008-09-25  Bruno Haible  <bruno@clisp.org>
37320
37321         * gnulib-tool: Don't ask the user to perform edits in the generated
37322         Makefile.ams.
37323         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37324         apply to the Makefile.am being generated.
37325         (func_emit_tests_Makefile_am): Execute edits that apply to the
37326         Makefile.am being generated.
37327         (func_import): Setup list of Makefile.am edits before emitting the
37328         Makefile.ams, not at the end.
37329         (func_create_testdir): Update.
37330         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37331
37332 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37333
37334         * gnulib-tool (func_import): Store the --tests-base option in the
37335         comment in gnulib-cache.m4.
37336
37337 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37338
37339         * NEWS: Document increased portability that sys_select now provides.
37340
37341         * lib/sys_select.in.h: Install select wrapper.
37342         * lib/sys_socket.in.h: Use more descriptive name when there is no
37343         select wrapper.
37344         * lib/winsock-select.c: New.
37345         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37346         Require gl_HEADER_SYS_SOCKET.
37347         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37348         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37349         * tests/test-sys_select.c: Add functional tests.
37350
37351 2008-09-24  Eric Blake  <ebb9@byu.net>
37352
37353         open, fopen: close fd leak in last patch
37354         * lib/open.c (rpl_open): Close fd before returning error.
37355         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37356         * doc/posix-functions/open.texi (open): Document that Irix also
37357         has the bug.
37358         * doc/posix-functions/fopen.texi (fopen): Likewise.
37359         Reported by Paolo Bonzini.
37360
37361 2008-09-24  Bruno Haible  <bruno@clisp.org>
37362
37363         Ensure that a filename ending in a slash cannot be used to access a
37364         non-directory.
37365         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37366         to check whether it's really a directory.
37367         * lib/fopen.c: Include fcntl.h, unistd.h.
37368         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37369         and fdopen().
37370         * modules/fopen (Depends-on): Add unistd.
37371         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37372         * tests/test-fopen.c (main): Likewise.
37373         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37374         * doc/posix-functions/fopen.texi: Likewise.
37375         Reported by Eric Blake.
37376
37377 2008-09-23  Eric Blake  <ebb9@byu.net>
37378
37379         c-stack: avoid compiler optimizations when provoking overflow
37380         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37381         recursion harder to optimize, to ensure a stack overflow occurs.
37382         * tests/test-c-stack.c (recurse): Likewise.
37383         Borrowed from libsigsegv.
37384
37385         c-stack: work around Irix sigaltstack bug
37386         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37387         whether sigaltstack uses wrong end of stack_t (copied in part from
37388         libsigsegv).
37389         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37390         Irix bug, without requiring an over-allocation.
37391         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37392         bug.
37393
37394         fopen: document mingw bug on directories
37395         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37396         not allowing a stream visiting a directory, even though reading
37397         from such a stream is not portable.
37398
37399 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37400
37401         * lib/poll.c: Rewrite.
37402         * modules/poll: Depend on alloca.
37403
37404 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37405
37406         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37407         instead define prototypes for a full set of wrappers.  Ensure
37408         that Cygwin does not use the compatibility code, which is only
37409         for MinGW.
37410         * lib/winsock.c: New.
37411         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37412         * modules/sys_socket: Add lib/winsock.c.
37413
37414         * modules/poll-tests: Add errno and perror.
37415         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37416
37417 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37418
37419         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37420
37421 2008-09-23  Bruno Haible  <bruno@clisp.org>
37422
37423         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37424         * doc/glibc-functions/*: Likewise.
37425
37426 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37427
37428         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37429         success.
37430
37431 2008-09-22  Eric Blake  <ebb9@byu.net>
37432             Bruno Haible  <bruno@clisp.org>
37433
37434         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37435         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37436         supply %A but mishandle pseudo-NaN.
37437         Reported by Simon Josefsson.
37438
37439 2008-09-21  Bruno Haible  <bruno@clisp.org>
37440
37441         * tests/test-lock.c (main): Tweak skip message.
37442         * tests/test-tls.c (main): Likewise.
37443
37444 2008-09-21  Bruno Haible  <bruno@clisp.org>
37445
37446         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37447         whether 'struct sigaction' has sa_sigaction here...
37448         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37449         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37450
37451 2008-09-21  Bruno Haible  <bruno@clisp.org>
37452
37453         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37454         section.
37455         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37456         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37457         the new section.
37458         (Support for obsolete systems lacking POSIX:2001): New section.
37459         (String handling <string.h>): Move strdup to the new section.
37460         Suggested by Simon Josefsson and Paolo Bonzini.
37461
37462 2008-09-21  Bruno Haible  <bruno@clisp.org>
37463
37464         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37465         exponents in %e and %g results on 'long double'. Needed for mingw's
37466         improved *printf functions.
37467         * tests/test-vasprintf-posix.c (test_function): Likewise.
37468         * tests/test-snprintf-posix.h (test_function): Likewise.
37469         * tests/test-sprintf-posix.h (test_function): Likewise.
37470         Reported by Eric Blake.
37471
37472 2008-09-21  Bruno Haible  <bruno@clisp.org>
37473
37474         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37475         * tests/test-sprintf-posix.h (test_function): Likewise.
37476
37477 2008-09-21  Bruno Haible  <bruno@clisp.org>
37478
37479         * modules/getpass (Depends-on): Add strdup-posix.
37480
37481         New module 'strdup-posix'.
37482         * modules/strdup-posix: New file.
37483         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37484         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37486         REPLACE_STRDUP.
37487         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37488         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37489         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37490         strdup-posix.
37491
37492         * modules/strdup (Depends-on): Remove malloc-posix.
37493
37494 2008-09-20  Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37497         Wildenhues.
37498
37499 2008-09-20  Bruno Haible  <bruno@clisp.org>
37500
37501         Ensure that wint_t gets defined on IRIX 5.3.
37502         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37503         * lib/wctype.in.h (wint_t): Likewise.
37504         (__wctype_wint_t): Remove type.
37505         (isw*): Use wint_t instead of __wctype_wint_t.
37506         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37507         * modules/wchar (Files): Add m4/wint_t.m4.
37508         (Makefile.am): Substitute HAVE_WINT_T.
37509         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37510         * tests/test-wctype.c: Check that wint_t is defined.
37511         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37512         * doc/posix-headers/wctype.texi: Likewise.
37513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37514
37515 2008-09-18  Bruno Haible  <bruno@clisp.org>
37516
37517         * gnulib-tool (func_exit): Update comment.
37518
37519 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37520
37521         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37522         assumes strdup exists and does not depend on strdup to return
37523         ENOMEM on out of memory conditions.
37524
37525 2008-09-18  Bruno Haible  <bruno@clisp.org>
37526
37527         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37528         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37529         digits for the exponent.
37530
37531 2008-09-18  Jim Meyering  <meyering@redhat.com>
37532             Bruno Haible  <bruno@clisp.org>
37533
37534         * lib/vasnprintf.c (decimal_point_char): Define also if
37535         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37536
37537 2008-09-16  Bruno Haible  <bruno@clisp.org>
37538         and Eric Blake  <ebb9@byu.net>
37539
37540         vasnprintf: support Irix 5.3
37541         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37542         that mishandle long double infinity.
37543         Reported by Tom G. Christensen.
37544
37545 2008-09-16  Bruno Haible  <bruno@clisp.org>
37546
37547         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37548         Solaris 9.
37549         * doc/glibc-functions/alphasort.texi: Likewise.
37550         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37551
37552 2008-09-16  Jim Meyering  <meyering@redhat.com>
37553
37554         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37555         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37556         a umask modification leak out of a subshell.  Otherwise, the
37557         opensolaris /bin/sh would be accepted and thus cause unwarranted
37558         failures in the coreutils test suite.
37559
37560 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37561
37562         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37563         to succeed.
37564
37565 2008-09-16  Jim Meyering  <meyering@redhat.com>
37566
37567         avoid spurious test failure when library is built without ACL support
37568         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37569         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37570         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37571         * tests/test-copy-acl.sh: Likewise.
37572
37573 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37574
37575         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37576         based on character occurrence counts.
37577
37578 2008-09-15  Eric Blake  <ebb9@byu.net>
37579
37580         tests: avoid some compiler warnings
37581         * tests/test-memchr.c (main): Pass NULL indirectly.
37582         * tests/test-closein.c (main): Avoid unused variable.
37583
37584 2008-09-15  Bruno Haible  <bruno@clisp.org>
37585
37586         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37587         are missing on OpenBSD 4.0 individually.
37588         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37589
37590 2008-09-15  Bruno Haible  <bruno@clisp.org>
37591
37592         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37593         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37594         * doc/posix-functions/perror.texi: Likewise.
37595         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37596         is missing.
37597         Reported by Eric Blake.
37598
37599         * lib/errno.in.h: Use replacement values >= 2000.
37600         Reported by Eric Blake.
37601
37602 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37603
37604         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37605         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37606         limit.
37607         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37608         compareseq was aborted.
37609
37610 2008-09-14  Bruno Haible  <bruno@clisp.org>
37611
37612         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37613         yvec_edit_count.
37614         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37615         (fstrcmp_bounded): Simplify result computation accordingly.
37616
37617 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37618
37619         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37620         (fstrcmp): Define in terms of fstrcmp_bounded.
37621         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37622         lower_bound argument.
37623         Return quickly if the result is certainly < lower_bound.
37624         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37625
37626 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37627
37628         * lib/diffseq.h (EARLY_ABORT): New macro.
37629         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37630         evaluates to true.
37631
37632 2008-09-14  Bruno Haible  <bruno@clisp.org>
37633
37634         * modules/perror-tests: New file.
37635         * tests/test-perror.sh: New file.
37636         * tests/test-perror.c: New file.
37637
37638         New module 'perror'.
37639         * lib/stdio.in.h (perror): New declaration.
37640         * lib/perror.c: New file.
37641         * m4/perror.m4: New file.
37642         * modules/perror: New file.
37643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37644         * doc/posix-functions/perror.texi: Mention the perror module.
37645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37646         REPLACE_PERROR.
37647         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37648         REPLACE_PERROR.
37649
37650 2008-09-14  Bruno Haible  <bruno@clisp.org>
37651
37652         * modules/stdio (Makefile.am): Reorder to match the order in
37653         lib/stdio.in.h.
37654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37655
37656 2008-09-13  Bruno Haible  <bruno@clisp.org>
37657
37658         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37659
37660 2008-09-13  Bruno Haible  <bruno@clisp.org>
37661
37662         Extend strerror to cover the added errno values.
37663         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37664         (rpl_strerror): Provide error messages for the added errno values and
37665         for the WSA* values.
37666         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37667         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37668         strerror.
37669         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37670         * modules/strerror (Depends-on): Add errno.
37671         * doc/posix-functions/strerror.texi: Document the change.
37672         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37673         and EOVERFLOW.
37674
37675 2008-09-13  Bruno Haible  <bruno@clisp.org>
37676
37677         * modules/EOVERFLOW: Remove file.
37678         * m4/eoverflow.m4: Remove file.
37679         * modules/EOVERFLOW-tests: Remove file.
37680         * tests/test-EOVERFLOW.c: Remove file.
37681         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37682         * modules/ftell (Depends-on): Likewise.
37683         * modules/getdelim (Depends-on): Likewise.
37684         * modules/getugroups (Depends-on): Likewise.
37685         * modules/poll (Depends-on): Likewise.
37686         * modules/snprintf (Depends-on): Likewise.
37687         * modules/sprintf-posix (Depends-on): Likewise.
37688         * modules/vasnprintf (Depends-on): Likewise.
37689         * modules/vasprintf (Depends-on): Likewise.
37690         * modules/vfprintf-posix (Depends-on): Likewise.
37691         * modules/vsnprintf (Depends-on): Likewise.
37692         * modules/vsprintf-posix (Depends-on): Likewise.
37693         * modules/xvasprintf (Depends-on): Likewise.
37694         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37695         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37696         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37697         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37698         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37699         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37700         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37701         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37702         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37703         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37704         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37705         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37706         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37707         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37708         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37709         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37710         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37711         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37712         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37713         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37714         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37715         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37716         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37717         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37718         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37719         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37720         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37721         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37722         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37723         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37724         * MODULES.html.sh: Remove EOVERFLOW.
37725         * NEWS: Mention the change.
37726
37727 2008-09-13  Bruno Haible  <bruno@clisp.org>
37728
37729         * modules/errno-tests: New file.
37730         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37731
37732         * lib/errno.in.h: New file.
37733         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37734         * modules/errno: New file.
37735         * doc/posix-headers/errno.texi: Update documentation.
37736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37737
37738 2008-09-13  Bruno Haible  <bruno@clisp.org>
37739
37740         * tests/test-poll.c: Use #if for native Windows, rather than testing
37741         __MSVCRT__.
37742
37743 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37744             Bruno Haible  <bruno@clisp.org>
37745
37746         * lib/glob.c: Don't include <pwd.h> on native Windows.
37747         (WINDOWS32): New macro.
37748         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37749
37750 2008-09-13  Bruno Haible  <bruno@clisp.org>
37751
37752         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37753         (ETIMEDOUT): Remove macro.
37754         (glthread_cond_timedwait_multithreaded): New declaration.
37755         (glthread_cond_timedwait): Use it.
37756         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37757         (glthread_cond_timedwait_multithreaded): New function.
37758
37759 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37760
37761         * modules/poll-tests: Do not check for io.h.
37762         * tests/test-poll.c: Check for __MSVCRT__ instead.
37763
37764 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37765
37766         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37767         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37768         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37769
37770 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37771
37772         * modules/poll-tests: New.
37773         * tests/test-poll.c: New.
37774
37775 2008-09-12  Eric Blake  <ebb9@byu.net>
37776
37777         frexp: test for NetBSD failure on -0.0
37778         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37779         not all, bugs from NetBSD 3.0 have been fixed.
37780         * doc/posix-functions/frexp.texi (frexp): Document bug.
37781         Reported by Thomas Klausner.
37782
37783         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37784         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37785         literal -0.0.
37786         Reported by Jonathan C. Patschke <jp@centtech.com>.
37787
37788 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37789
37790         * lib/glthread/cond.h: Use dummy implementation also if
37791         USE_WIN32_THREADS.
37792
37793 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37794
37795         * modules/fnmatch-posix (License): Change to LGPLv2+.
37796         * modules/fnmatch-gnu (License): Likewise.
37797
37798 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37799
37800         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37801
37802 2008-09-11  Jim Meyering  <meyering@redhat.com>
37803
37804         * users.txt: Add gtk-vnc.
37805
37806 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37807
37808         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37809         rotate amounts.
37810
37811         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37812         required for 16-bit and 8-bit rotates.
37813         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37814         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37815         UINT8_MAX instead of hard-coded constants.
37816         Suggested by Paul Eggert.
37817
37818 2008-09-07  Bruno Haible  <bruno@clisp.org>
37819
37820         * tests/test-striconveh.c (main): Check behaviour when converting from
37821         UTF-7.
37822
37823         Make striconveh work better with stateful encodings.
37824         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37825         that iconv does not increment the inptr when returning -1/EINVAL.
37826
37827 2008-09-07  Bruno Haible  <bruno@clisp.org>
37828
37829         * build-aux/config.rpath: Update according to libtool-2.2.6.
37830         * build-aux/config.libpath: Likewise.
37831
37832 2008-09-06  Bruno Haible  <bruno@clisp.org>
37833
37834         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37835         * lib/freadptr.c (freadptr): Likewise.
37836         * lib/freadseek.c (freadptrinc): Likewise.
37837         Reported by Simon Josefsson.
37838
37839 2008-09-06  Bruno Haible  <bruno@clisp.org>
37840
37841         * modules/freadptr (License): Change to LGPLv2+.
37842         * modules/freadseek (License): Likewise.
37843         Suggested by Eric Blake.
37844
37845         * modules/memchr2 (License): Change to LGPLv2+.
37846         Approved by Eric Blake.
37847
37848 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37849             Bruno Haible  <bruno@clisp.org>
37850
37851         Make gnulib-tool work with native 'sed' on AIX.
37852         * gnulib-tool (sed_noop): New variable.
37853         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37854         func_add_or_update, func_create_testdir): Use it to initialize sed
37855         script variables.
37856         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37857
37858 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37859             Bruno Haible  <bruno@clisp.org>
37860
37861         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37862         also works after #include directives.
37863
37864 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37865
37866         getdate.y: reject an out-of-range timezone value
37867         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37868         the range [-24...+24].  When specified with only one or two digits,
37869         * tests/test-getdate.c: Tests for the fix.
37870         * doc/getdate.texi: Document this change.
37871
37872 2008-09-03  Bruno Haible  <bruno@clisp.org>
37873
37874         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37875
37876 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37877
37878         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37879         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37880         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37881         Blake <ebb9@byu.net>.
37882
37883         * tests/test-bitrotate.c: Add more test vectors.
37884
37885 2008-09-02  Eric Blake  <ebb9@byu.net>
37886
37887         vasnprintf-posix: handle large precision via %.*d
37888         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37889         when handling it ourselves.
37890         * tests/test-vasnprintf-posix.c (test_function): Add test.
37891         * tests/test-snprintf-posix.h (test_function): Likewise.
37892         * tests/test-sprintf-posix.h (test_function): Likewise.
37893         * tests/test-vasprintf-posix.c (test_function): Likewise.
37894         Reported by Alain Guibert.
37895
37896 2008-09-01  Eric Blake  <ebb9@byu.net>
37897
37898         c-stack: make configure-time check more robust
37899         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37900         successful sigaction call.
37901         Reported by Tom G. Christensen.
37902
37903 2008-09-01  Bruno Haible  <bruno@clisp.org>
37904
37905         New module 'findprog-lgpl'.
37906         * modules/findprog-lgpl: New file.
37907         * lib/findprog-lgpl.c: New file.
37908         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37909         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37910         to decide whether to use strdup or xstrdup, concatenated_filename or
37911         xconcatenated_filename.
37912
37913 2008-09-01  Bruno Haible  <bruno@clisp.org>
37914
37915         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37916         'xconcat-filename' (GPL).
37917         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37918         (License): Change to LGPLv2+.
37919         * modules/xconcat-filename: New file.
37920         * lib/concat-filename.h (concatenated_filename): Change specification.
37921         (xconcatenated_filename): New declaration.
37922         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37923         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37924         memory situations.
37925         * lib/xconcat-filename.c: New file.
37926         * NEWS: Mention the change.
37927         * lib/findprog.c: Include concat-filename.h, not filename.h.
37928         (find_in_path): Use xconcatenated_filename instead of
37929         concatenated_filename.
37930         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37931         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37932         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37933         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37934         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37935         instead of concatenated_filename.
37936         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37937         (execute_java_class): Use xconcatenated_filename instead of
37938         concatenated_filename.
37939         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37940         * modules/javacomp (Depends-on): Likewise.
37941         * modules/javaexec (Depends-on): Likewise.
37942
37943 2008-09-01  Bruno Haible  <bruno@clisp.org>
37944
37945         Split module 'filename' into 'filename' and 'concat-filename'.
37946         * modules/filename: Keep only lib/filename.h.
37947         (License): Change to LGPLv2+.
37948         * modules/concat-filename: New file, extracted from modules/filename.
37949         * lib/filename.h (concatenated_filename): Remove declaration.
37950         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37951         * lib/concat-filename.c: Include concat-filename.h.
37952         * NEWS: Mention the change.
37953
37954 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37955
37956         * lib/bitrotate.h (rotl8, rotr8): Add.
37957
37958         * modules/bitrotate (configure.ac): Need
37959         AC_REQUIRE([AC_C_INLINE]).
37960         (Description): Mention stdint.h.  Reported by Bruno Haible
37961         <bruno@clisp.org>.
37962
37963         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37964         Paolo Bonzini <bonzini@gnu.org>.
37965
37966 2008-08-31  Bruno Haible  <bruno@clisp.org>
37967
37968         Assume Solaris specific bi-arch conventions on Solaris systems.
37969         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37970         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37971         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37972         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37973         like acl_libdirstem.
37974         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37975         acl_libdirstem.
37976         * NEWS: Mention the change.
37977         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37978
37979 2008-08-31  Jim Meyering  <meyering@redhat.com>
37980
37981         * lib/strftime.h: Add comments describing the two added arguments.
37982
37983         remove duplicate #include directives
37984         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37985         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37986
37987 2008-08-31  Bruno Haible  <bruno@clisp.org>
37988
37989         New module 'sigpipe-die'.
37990         * modules/sigpipe-die: New file.
37991         * lib/sigpipe-die.h: New file.
37992         * lib/sigpipe-die.c: New file.
37993         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37994
37995 2008-08-31  Bruno Haible  <bruno@clisp.org>
37996
37997         Don't override previously installed signal handlers.
37998         * lib/fatal-signal.c (saved_sigactions): New variable.
37999         (uninstall_handlers): Reset the signal to the saved handler, not
38000         to SIG_DFL (except when ignored).
38001         (install_handlers): Save the previous handlers.
38002
38003 2008-08-30  Bruno Haible  <bruno@clisp.org>
38004
38005         * gnulib-tool (func_reset_sigpipe): New function.
38006         (func_get_automake_snippet, func_modules_transitive_closure,
38007         func_import): Invoke it before a join command that reads from stdin,
38008         to avoid "echo: write error: Broken pipe" error messages on stderr.
38009         Reported by Sam Steingold <sds@gnu.org>.
38010
38011 2008-08-30  Bruno Haible  <bruno@clisp.org>
38012
38013         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38014         Code copied from m4/open.m4.
38015         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38016         access and the filename ends in a slash. Code copied from lib/open.c.
38017         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38018         * tests/test-fopen.c (main): Check against bug with trailing slash.
38019
38020 2008-08-29  Bruno Haible  <bruno@clisp.org>
38021
38022         Avoid some "gcc -pedantic" warnings.
38023         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38024         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38025         * lib/dirent.in.h: Likewise.
38026         * lib/fcntl.in.h: Likewise.
38027         * lib/float.in.h: Likewise.
38028         * lib/iconv.in.h: Likewise.
38029         * lib/inttypes.in.h: Likewise.
38030         * lib/locale.in.h: Likewise.
38031         * lib/math.in.h: Likewise.
38032         * lib/netinet_in.in.h: Likewise.
38033         * lib/search.in.h: Likewise.
38034         * lib/signal.in.h: Likewise.
38035         * lib/stdarg.in.h: Likewise.
38036         * lib/stdint.in.h: Likewise.
38037         * lib/stdio.in.h: Likewise.
38038         * lib/stdlib.in.h: Likewise.
38039         * lib/string.in.h: Likewise.
38040         * lib/strings.in.h: Likewise.
38041         * lib/sys_select.in.h: Likewise.
38042         * lib/sys_socket.in.h: Likewise.
38043         * lib/sys_stat.in.h: Likewise.
38044         * lib/sys_time.in.h: Likewise.
38045         * lib/sysexits.in.h: Likewise.
38046         * lib/time.in.h: Likewise.
38047         * lib/unistd.in.h: Likewise.
38048         * lib/wchar.in.h: Likewise.
38049         * lib/wctype.in.h: Likewise.
38050         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38051         * modules/fchdir (Makefile.am): Likewise.
38052         * modules/fcntl (Makefile.am): Likewise.
38053         * modules/float (Makefile.am): Likewise.
38054         * modules/iconv_open (Makefile.am): Likewise.
38055         * modules/inttypes (Makefile.am): Likewise.
38056         * modules/locale (Makefile.am): Likewise.
38057         * modules/math (Makefile.am): Likewise.
38058         * modules/netinet_in (Makefile.am): Likewise.
38059         * modules/search (Makefile.am): Likewise.
38060         * modules/signal (Makefile.am): Likewise.
38061         * modules/stdarg (Makefile.am): Likewise.
38062         * modules/stdint (Makefile.am): Likewise.
38063         * modules/stdio (Makefile.am): Likewise.
38064         * modules/stdlib (Makefile.am): Likewise.
38065         * modules/string (Makefile.am): Likewise.
38066         * modules/strings (Makefile.am): Likewise.
38067         * modules/sys_select (Makefile.am): Likewise.
38068         * modules/sys_socket (Makefile.am): Likewise.
38069         * modules/sys_stat (Makefile.am): Likewise.
38070         * modules/sys_time (Makefile.am): Likewise.
38071         * modules/sysexits (Makefile.am): Likewise.
38072         * modules/time (Makefile.am): Likewise.
38073         * modules/unistd (Makefile.am): Likewise.
38074         * modules/wchar (Makefile.am): Likewise.
38075         * modules/wctype (Makefile.am): Likewise.
38076         Reported by Reuben Thomas <rrt@sc3d.org>.
38077
38078 2008-08-29  Bruno Haible  <bruno@clisp.org>
38079
38080         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38081         any more.
38082
38083 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38084
38085         * MODULES.html.sh (Misc): Add bitrotate.
38086
38087         * modules/bitrotate: New file.
38088
38089         * lib/bitrotate.h: New file.
38090
38091         * modules/bitrotate-tests: New file.
38092
38093         * tests/test-bitrotate.c: New file.
38094
38095         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38096         on the bitrotate module.
38097
38098         * lib/arctwo.c: Use new bitrotate module.
38099
38100 2008-08-29  Jim Meyering  <meyering@redhat.com>
38101
38102         bootstrap: merge changes from coreutils
38103         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38104         of copied files.  Remove a kludge, now that this is fixed.
38105         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38106         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38107         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38108
38109 2008-08-29  Bruno Haible  <bruno@clisp.org>
38110
38111         * MODULES.html.sh: Remove --cvs-urls option.
38112
38113 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38114
38115         maint.mk: adjust to file name change
38116         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38117
38118 2008-08-28  Jim Meyering  <meyering@redhat.com>
38119
38120         * modules/getndelim2 (License): Relicense to LGPLv2+.
38121         Approved by Richard Stallman for the version of 1995, and by
38122         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38123
38124 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38125
38126         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38127         dummy if one is not available.  Do not touch them if
38128         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38129         (getc_maybe_unlocked): New.
38130         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38131
38132 2008-08-26  Eric Blake  <ebb9@byu.net>
38133
38134         doc/INSTALL: resync from autoconf
38135         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38136         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38137         moving...
38138         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38139         * INSTALL: Regenerate.
38140         * INSTALL.ISO: New file.
38141         * INSTALL.UTF-8: Likewise.
38142
38143 2008-08-26  Jim Meyering  <meyering@redhat.com>
38144
38145         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38146         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38147         these definitions conditional, so that they may be overridden, too.
38148
38149 2008-08-26  Bruno Haible  <bruno@clisp.org>
38150
38151         Generate INSTALL file variants with prettier quotes.
38152         * doc/Makefile (INSTALL_PRELUDE): New macro.
38153         (INSTALL): Use it.
38154         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38155
38156 2008-08-26  Bruno Haible  <bruno@clisp.org>
38157
38158         Run makeinfo in an English locale.
38159         * doc/Makefile (MAKEINFO): New variable.
38160
38161 2008-08-26  Bruno Haible  <bruno@clisp.org>
38162
38163         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38164         Suggested by Eric Blake.
38165
38166 2008-08-25  Bruno Haible  <bruno@clisp.org>
38167
38168         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38169
38170 2008-08-25  Eric Blake  <ebb9@byu.net>
38171
38172         c-stack: test that stack overflow can be caught
38173         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38174         that platform allows handling stack overflow; at least OS/2 EMX
38175         has sigaltstack, but crashes before transferring control to
38176         handler on stack overflow.
38177         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38178         check for HAVE_STACK_OVERFLOW_HANDLING.
38179         Reported by Elbert Pol.
38180
38181 2008-08-25  Bruno Haible  <bruno@clisp.org>
38182
38183         * doc/posix-functions/strftime.texi: Fix description of strftime
38184         module.
38185
38186 2008-08-24  Bruno Haible  <bruno@clisp.org>
38187
38188         * tests/uniwidth/test-uc_width2.c: New file.
38189         * tests/uniwidth/test-uc_width2.sh: New file.
38190         * modules/uniwidth/width-tests (Files): Add the new files.
38191         (TESTS): Add uniwidth/test-uc_width2.sh.
38192         (TESTS_ENVIRONMENT): New variable.
38193         (check_PROGRAMS): Add test-uc_width2.
38194         (test_uc_width2_SOURCES): New variable.
38195
38196         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38197         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38198         not 0x00AB.
38199         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38200
38201 2008-08-22  Eric Blake  <ebb9@byu.net>
38202
38203         test-lock, test-tls: mention why a test is skipped
38204         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38205         skipped.
38206         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38207
38208         count-one-bits: relax license
38209         * modules/count-one-bits (License): Relicense to LGPLv2+.
38210         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38211
38212 2008-08-22  Andreas Schwab  <schwab@suse.de>
38213
38214         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38215         Remove spurious space in assignment.
38216
38217 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38218
38219         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38220         Paul Eggert <eggert@CS.UCLA.EDU>.
38221
38222 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38223
38224         * modules/gettext: Add m4/threadlib.m4.
38225
38226 2008-08-19  Eric Blake  <ebb9@byu.net>
38227
38228         test-c-stack: fix compilation failure on FreeBSD 5.0
38229         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38230         headers before <sys/resource.h>.
38231         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38232         the bug.
38233         Reported by Nelson H. F. Beebe.
38234
38235         strverscmp: migrate from "strverscmp.h" to <string.h>
38236         * modules/string (Makefile.am): Add new hooks.
38237         * modules/strverscmp (Files): Remove strverscmp.h.
38238         (Depends-on): Add string.
38239         (configure.ac): Add indicator.
38240         (Include): Mention new header.
38241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38242         defaults.
38243         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38244         results.
38245         * lib/strverscmp.h: Delete.
38246         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38247         * tests/test-strverscmp.c (includes): Adjust client.
38248         * lib/check-version.c (includes): Likewise.
38249         * NEWS: Document the change.
38250
38251         strverscmp: add unit test
38252         * modules/strverscmp-tests: New file.
38253         * tests/test-strverscmp.c: Likewise.
38254
38255 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38256
38257         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38258         regarding Windows crypto stuff, from Mono.
38259
38260 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38261
38262         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38263         if present, for intel RND.  Return error on failures.
38264
38265 2008-08-18  Ben Pfaff  <blp@gnu.org>
38266
38267         gitlog-to-changelog: give better diagnostic for failed pipe-open
38268         * build-aux/gitlog-to-changelog: Improve error message: suggest
38269         that the version of Git may be too old.
38270
38271 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38272
38273         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38274         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38275
38276 2008-08-18  Bruno Haible  <bruno@clisp.org>
38277
38278         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38279         pthread_in_use().
38280
38281 2008-08-18  Bruno Haible  <bruno@clisp.org>
38282
38283         * lib/glthread/threadlib.c: Include <pthread.h>.
38284
38285 2008-08-18  Bruno Haible  <bruno@clisp.org>
38286
38287         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38288         glthread_recursive_lock_* macros.
38289         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38290         Fix syntax error.
38291
38292 2008-08-18  Bruno Haible  <bruno@clisp.org>
38293
38294         * lib/glthread/thread.c: Avoid forcing a context switch right after
38295         thread creation.
38296
38297 2008-08-17  Bruno Haible  <bruno@clisp.org>
38298
38299         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38300         * lib/glthread/thread.h: Provide Win32 specific implementation.
38301         * modules/thread (Files): Add lib/glthread/thread.c.
38302         (Depends-on): Add lock.
38303         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38304
38305 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38306
38307         New module 'yield'.
38308         * modules/yield: New file.
38309         * lib/glthread/yield.h: New file.
38310         * m4/yield.m4: New file.
38311         * MODULES.html.sh (Multithreading): Add yield.
38312
38313 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38314
38315         New module 'thread'.
38316         * modules/thread: New file.
38317         * lib/glthread/thread.h: New file.
38318         * m4/thread.m4: New file.
38319         * MODULES.html.sh (Multithreading): Add thread.
38320
38321 2008-08-17  Bruno Haible  <bruno@clisp.org>
38322
38323         * lib/glthread/lock.h: Include <stdlib.h> always.
38324         * lib/glthread/tls.h: Likewise.
38325         * lib/glthread/cond.h: Likewise.
38326
38327 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38328
38329         New module 'cond'.
38330         * modules/cond: New file.
38331         * lib/glthread/cond.h: New file.
38332         * lib/glthread/cond.c: New file.
38333         * m4/cond.m4: New file.
38334         * MODULES.html.sh (Multithreading): Add cond.
38335
38336 2008-08-16  Eric Blake  <ebb9@byu.net>
38337
38338         c-stack: fix regression on Irix 5.3 from 2008-06-21
38339         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38340         sa_sigaction...
38341         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38342         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38343         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38344         * modules/signal (Makefile.am): Use the value.
38345         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38346         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38347         * doc/posix-headers/signal.texi (signal.h): Document this
38348         portability issue.
38349         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38350         Reported by Tom G. Christensen.
38351
38352 2008-08-17  Bruno Haible  <bruno@clisp.org>
38353
38354         New module 'threadlib'.
38355         * modules/threadlib: New file.
38356         * lib/glthread/threadlib.c: New file, extracted from
38357         lib/glthread/lock.c.
38358         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38359         functions.
38360         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38361         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38362         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38363         macros.
38364         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38365         (gl_DISABLE_THREADS): Remove macro.
38366         * modules/lock (Files): Remove build-aux/config.rpath.
38367         (Depends-on): Remove havelib. Add threadlib.
38368         (configure.ac-early): Remove section.
38369         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38370         * modules/tls (Depends-on): Remove lock. Add threadlib.
38371         (Link): New section, copied from threadlib.
38372         * MODULES.html.sh (Multithreading): Add threadlib.
38373
38374 2008-08-14  Bruno Haible  <bruno@clisp.org>
38375
38376         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38377         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38378         glthread_rwlock_unlock, glthread_rwlock_destroy,
38379         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38380         glthread_recursive_lock_destroy): Define as macros always.
38381         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38382         glthread_lock_lock.
38383         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38384         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38385         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38386         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38387         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38388         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38389         (glthread_recursive_lock_lock_func): Renamed from
38390         glthread_recursive_lock_lock.
38391         (glthread_recursive_lock_unlock_func): Renamed from
38392         glthread_recursive_lock_unlock.
38393         (glthread_recursive_lock_destroy_func): Renamed from
38394         glthread_recursive_lock_destroy.
38395
38396 2008-08-14  Bruno Haible  <bruno@clisp.org>
38397
38398         * lib/glthread/lock.h: Renamed from lib/lock.h.
38399         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38400         * lib/glthread/tls.h: Renamed from lib/tls.h.
38401         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38402         * lib/fstrcmp.c: Update includes.
38403         * lib/strsignal.c: Update includes.
38404         * modules/lock (Files, Makefile.am): Update.
38405         (Include): Change to "glthread/lock.h".
38406         * modules/tls (Files, Makefile.am): Update.
38407         (Include): Change to "glthread/tls.h".
38408         * tests/test-lock.c: Update includes.
38409         * tests/test-tls.c: Update includes.
38410         * NEWS: Mention the renamed header files.
38411
38412 2008-08-11  Jim Meyering  <meyering@redhat.com>
38413
38414         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38415
38416 2008-08-11  Eric Blake  <ebb9@byu.net>
38417
38418         test-c-stack: avoid C99-ism
38419         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38420         before statement.
38421         Reported by Alain Guibert.
38422
38423 2008-08-10  Jim Meyering  <meyering@redhat.com>
38424
38425         ensure that return value of uinttostr et al are not ignored
38426         * lib/inttostr.h (__GNUC_PREREQ): Define.
38427         (__attribute_warn_unused_result__): Define.
38428         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38429
38430 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38431
38432         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38433         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38434
38435 2008-08-07  Jim Meyering  <meyering@redhat.com>
38436
38437         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38438
38439         * modules/mkstemp (License): Relicense under LGPLv2+.
38440         * modules/tempname (License): Likewise.
38441
38442 2008-08-06  Bruno Haible  <bruno@clisp.org>
38443
38444         * lib/poll.c (poll): Further micro-optimization.
38445
38446 2008-08-06  Jim Meyering  <meyering@redhat.com>
38447
38448         inet_pton.c: use locale-independent tolower
38449         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38450         (inet_pton6): Use c_tolower rather than tolower.
38451         * modules/inet_pton (Depends-on): Add c-ctype.
38452
38453 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38454
38455         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38456         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38457
38458 2008-08-06  Jim Meyering  <meyering@redhat.com>
38459
38460         * modules/inet_pton (License): Relicense under LGPLv2+.
38461
38462 2008-08-03  Bruno Haible  <bruno@clisp.org>
38463
38464         Additional non-aborting API for lock and tls.
38465         * lib/lock.h: Include <errno.h>.
38466         (glthread_lock_init): New macro/function.
38467         (gl_lock_init): Define as wrapper around glthread_lock_init.
38468         (glthread_lock_lock): New macro/function.
38469         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38470         (glthread_lock_unlock): New macro/function.
38471         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38472         (glthread_lock_destroy): New macro/function.
38473         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38474         (glthread_rwlock_init): New macro/function.
38475         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38476         (glthread_rwlock_rdlock): New macro/function.
38477         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38478         (glthread_rwlock_wrlock): New macro/function.
38479         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38480         (glthread_rwlock_unlock): New macro/function.
38481         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38482         (glthread_rwlock_destroy): New macro/function.
38483         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38484         (glthread_recursive_lock_init): New macro/function.
38485         (gl_recursive_lock_init): Define as wrapper around
38486         glthread_recursive_lock_init.
38487         (glthread_recursive_lock_lock): New macro/function.
38488         (gl_recursive_lock_lock): Define as wrapper around
38489         glthread_recursive_lock_lock.
38490         (glthread_recursive_lock_unlock): New macro/function.
38491         (gl_recursive_lock_unlock): Define as wrapper around
38492         glthread_recursive_lock_unlock.
38493         (glthread_recursive_lock_destroy): New macro/function.
38494         (gl_recursive_lock_destroy): Define as wrapper around
38495         glthread_recursive_lock_destroy.
38496         (glthread_once): New macro/function.
38497         (gl_once): Define as wrapper around glthread_once.
38498         Update function declarations.
38499         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38500         glthread_rwlock_init. Return error code.
38501         (glthread_rwlock_rdlock_multithreaded): Renamed from
38502         glthread_rwlock_rdlock. Return error code.
38503         (glthread_rwlock_wrlock_multithreaded): Renamed from
38504         glthread_rwlock_wrlock. Return error code.
38505         (glthread_rwlock_unlock_multithreaded): Renamed from
38506         glthread_rwlock_unlock. Return error code.
38507         (glthread_rwlock_destroy_multithreaded): Renamed from
38508         glthread_rwlock_destroy. Return error code.
38509         (glthread_recursive_lock_init_multithreaded): Renamed from
38510         glthread_recursive_lock_init. Return error code.
38511         (glthread_recursive_lock_lock_multithreaded): Renamed from
38512         glthread_recursive_lock_lock. Return error code.
38513         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38514         glthread_recursive_lock_unlock. Return error code.
38515         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38516         glthread_recursive_lock_destroy. Return error code.
38517         (glthread_once_call): Make static.
38518         (glthread_once_multithreaded): Renamed from glthread_once.
38519         * lib/tls.h: Include <errno.h>.
38520         (glthread_tls_key_init): New macro/function.
38521         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38522         (glthread_tls_set): New macro/function.
38523         (gl_tls_set): Define as wrapper around glthread_tls_set.
38524         (glthread_tls_key_destroy): New macro/function.
38525         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38526         Update function declarations.
38527         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38528         glthread_tls_get.
38529         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38530
38531 2008-08-04  Eric Blake  <ebb9@byu.net>
38532
38533         gnumakefile: use space, not TAB, outside of targets
38534         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38535
38536 2008-08-02  Jim Meyering  <meyering@redhat.com>
38537
38538         getdate.y: avoid locale-dependent date parsing failure
38539         In Turkish locales, getdate would fail to recognize keywords
38540         containing a lowercase "i".  The solution is not to rely on
38541         locale-sensitive case-conversion.
38542         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38543         (lookup_word): Use c_toupper in place of toupper.
38544         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38545         Reported by Vefa Bicakci <bicave@superonline.com> in
38546         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38547         * modules/getdate (Depends-on): Add c-ctype.
38548
38549 2008-08-02  Bruno Haible  <bruno@clisp.org>
38550
38551         * gnulib-tool (func_import): When updating or creating a .gitignore
38552         file, prepend each added line with a slash, and ignore leading slashes
38553         from the existing lines.
38554         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38555
38556 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38557
38558         Portability fix for GNU make 3.79.1.
38559         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38560         versions do not understand.
38561
38562 2008-08-01  Bruno Haible  <bruno@clisp.org>
38563
38564         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38565         * tests/test-isnanf.h (zero): New variable.
38566         (main): Avoid literal -0.0f.
38567         * tests/test-isnand.h (zero): New variable.
38568         (main): Avoid literal -0.0.
38569         * tests/test-isnanl.h (zero): New variable.
38570         (main): Avoid literal -0.0L.
38571         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38572         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38573         -0.0, -0.0L.
38574         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38575         (test_signbitd): Avoid literal -0.0.
38576         (test_signbitl): Avoid literal -0.0L.
38577         * tests/test-ceilf1.c (zero): New variable.
38578         (main): Avoid literal -0.0f.
38579         * tests/test-ceill.c (zero): New variable.
38580         (main): Avoid literal -0.0L.
38581         * tests/test-floorf1.c (zero): New variable.
38582         (main): Avoid literal -0.0f.
38583         * tests/test-floorl.c (zero): New variable.
38584         (main): Avoid literal -0.0L.
38585         * tests/test-roundf1.c (zero): New variable.
38586         (main): Avoid literal -0.0f.
38587         * tests/test-round1.c (zero): New variable.
38588         (main): Avoid literal -0.0.
38589         * tests/test-roundl.c (zero): New variable.
38590         (main): Avoid literal -0.0L.
38591         * tests/test-truncf1.c (zero): New variable.
38592         (main): Avoid literal -0.0f.
38593         * tests/test-trunc1.c (zero): New variable.
38594         (main): Avoid literal -0.0.
38595         * tests/test-truncl.c (zero): New variable.
38596         (main): Avoid literal -0.0L.
38597         * tests/test-frexp.c (zero): New variable.
38598         (main): Avoid literal -0.0.
38599         * tests/test-frexpl.c (zero): New variable.
38600         (main): Avoid literal -0.0L.
38601         * tests/test-ldexpl.c (zero): New variable.
38602         (main): Avoid literal -0.0L.
38603         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38604         (zerod, zerol): New variables.
38605         (test_function): Avoid literals -0.0, -0.0L.
38606         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38607         (zerod, zerol): New variables.
38608         (test_function): Avoid literals -0.0, -0.0L.
38609         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38610         (zerod, zerol): New variables.
38611         (test_function): Avoid literals -0.0, -0.0L.
38612         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38613         (zerod, zerol): New variables.
38614         (test_function): Avoid literals -0.0, -0.0L.
38615         * tests/test-strtod.c (zero): New variable.
38616         (main): Avoid literal -0.0.
38617         Reported by Jonathan C. Patschke <jp@centtech.com>.
38618
38619 2008-07-31  Jim Meyering  <meyering@redhat.com>
38620
38621         sha256.h: correct definition of SHA224_DIGEST_SIZE
38622         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38623         Reported by Paulie Pena IV <paulie4@gmail.com>.
38624         Define as 224 / 8, rather than as a literal.
38625         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38626         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38627         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38628
38629 2008-07-31  Bruno Haible  <bruno@clisp.org>
38630
38631         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38632         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38633         Reported by Jonathan Patschke <jp@centtech.com>.
38634
38635 2008-07-31  Bruno Haible  <bruno@clisp.org>
38636
38637         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38638         Reported by Paolo Bonzini <bonzini@gnu.org>.
38639
38640 2008-07-30  Eric Blake  <ebb9@byu.net>
38641
38642         test-strtod: allow compilation without -lm
38643         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38644         Reported by Dennis Clarke <blastwave@gmail.com>.
38645
38646 2008-07-28  Jim Meyering  <meyering@redhat.com>
38647
38648         bootstrap: work also when there are no .po files in po/
38649         * build-aux/bootstrap (update_po_files): Complete the change
38650         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38651
38652 2008-07-27  Jim Meyering  <meyering@redhat.com>
38653
38654         * users.txt: Add zile.
38655
38656 2008-07-26  Ben Pfaff  <blp@gnu.org>
38657
38658         Add missing dependencies on new m4/exponent[fdl].m4 files.
38659         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38660         * modules/isnand-nolibm: Add m4/exponentd.m4.
38661         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38662         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38663         m4/isnan[fdl].m4, because the macros actually used moved.
38664         Reported by Jim Meyering.
38665
38666 2008-07-14  Ben Pfaff  <blp@gnu.org>
38667
38668         Add isinf module.
38669         * lib/isinf.c: New file.
38670         * lib/math.in.h: Define isinf macro if we have decided to replace
38671         it.
38672         * m4/isinf.m4: New file.
38673         * m4/math_h.m4: Initialize and substitute variables for isinf
38674         module.
38675         * modules/isinf: New file.
38676         * modules/isinf-tests: New file.
38677         * modules/math: Add substitutions for new module.
38678         * tests/test-isinf.c: New file.
38679         * doc/posix-functions/isinf.texi: Mention new module.
38680         * MODULES.html.sh: Mention new module.
38681
38682 2008-07-14  Ben Pfaff  <blp@gnu.org>
38683
38684         Factor out some macros for use by additional modules.
38685         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38686         exponentf.m4.
38687         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38688         exponentd.m4.
38689         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38690         file exponentl.m4.
38691         * m4/exponentf.m4: New file.
38692         * m4/exponentd.m4: New file.
38693         * m4/exponentl.m4: New file.
38694         * modules/isnanf: Use new file m4/exponentf.m4.
38695         * modules/isnand: Use new file m4/exponentd.m4.
38696         * modules/isnanl: Use new file m4/exponentl.m4.
38697
38698 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38699
38700         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38701         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38702         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38703         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38704
38705         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38706         readlink on platforms without PATH_MAX.
38707
38708 2008-07-21  Eric Blake  <ebb9@byu.net>
38709
38710         Warn, not fail, on stale version.
38711         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38712
38713         Don't allow installation with stale devel version number.
38714         * top/GNUmakefile (_is-install-target): New macro.
38715         (_curr-ver): Forbid installation with stale version number.
38716
38717 2008-07-20  Bruno Haible  <bruno@clisp.org>
38718
38719         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38720         TESTS_ENVIRONMENT.
38721         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38722
38723 2008-07-20  Bruno Haible  <bruno@clisp.org>
38724
38725         * lib/c-stack.h (c_stack_action): Add documentation.
38726         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38727
38728 2008-07-20  Bruno Haible  <bruno@clisp.org>
38729
38730         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38731         * modules/readlink (License): Likewise.
38732
38733 2008-07-17  Eric Blake  <ebb9@byu.net>
38734
38735         * modules/c-stack (Link): Fix typo.
38736
38737         Make c-stack use libsigsegv, when available.
38738         * modules/c-stack (Depends-on): Add libsigsegv.
38739         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38740         needed.
38741         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38742         (segv_handler, overflow_handler, c_stack_action)
38743         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38744         implementation when libsigsegv is available, but only when using
38745         the library is necessary.
38746         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38747         comment, explaining why XSI check fails on Linux.
38748         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38749         * tests/test-c-stack2.sh: Tweak skip message.
38750         * NEWS: Document new link-time requirements.
38751
38752 2008-07-16  Eric Blake  <ebb9@byu.net>
38753
38754         c-stack: Expose false positives when not using libsigsegv.
38755         * modules/c-stack-tests (Files): Expand test.
38756         * tests/test-c-stack.c (main): Add means to conditionally trigger
38757         non-overflow SIGSEGV.
38758         * tests/test-c-stack2.sh: New file.
38759
38760 2008-07-14  Bruno Haible  <bruno@clisp.org>
38761
38762         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38763         Reported by Eric Blake.
38764
38765 2008-07-14  Sam Steingold  <sds@gnu.org>
38766             Bruno Haible  <bruno@clisp.org>
38767
38768         New module libsigsegv.
38769         * modules/libsigsegv: New file.
38770         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38771         modifications.
38772         * MODULES.html.sh (Signal handling): New section.
38773
38774 2008-07-14  Bruno Haible  <bruno@clisp.org>
38775
38776         * modules/unictype/ctype-* (Description): Add the word "function".
38777         Improves the resulting doc in MODULES.html.
38778
38779 2008-07-12  Ben Pfaff  <blp@gnu.org>
38780
38781         Add longlong module.
38782         * modules/longlong: New file.
38783
38784 2008-07-12  Bruno Haible  <bruno@clisp.org>
38785
38786         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38787         to empty.
38788
38789 2008-07-10  Ben Pfaff  <blp@gnu.org>
38790
38791         Add isnan module.
38792         * doc/posix-functions/isnan.texi: Mention new module.
38793         * lib/math.in.h: Define isnan macro if we have decided to replace
38794         it.
38795         * m4/isnan.m4: New file.
38796         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38797         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38798         also.
38799         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38800         redundancy.
38801         * m4/math_h.m4: Initialize and substitute variables for isnan
38802         module.
38803         * modules/isnan: New file.
38804         * modules/isnan-tests: New file.
38805         * modules/math: Add substitutions for new module.
38806         * tests/test-isnan.c: New file.
38807         * MODULES.html.sh: Mention new module.
38808
38809 2008-07-10  Ben Pfaff  <blp@gnu.org>
38810
38811         Add isnanf module.
38812         * lib/isnanf.m4: New file.
38813         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38814         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38815         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38816         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38817         * modules/isnanf: New file.
38818         * modules/isnanf-tests: New file.
38819         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38820         files.
38821         * tests/test-isnanf-nolibm.c: factored most of its contents into
38822         new file tests/test-isnanf.h.
38823         * tests/test-isnanf.h: New file.
38824         * tests/test-isnanf.c: New file.
38825         * MODULES.html.sh: Mention new module.
38826         * doc/glibc-functions/isnanf.texi: Mention new module.
38827
38828 2008-07-10  Ben Pfaff  <blp@gnu.org>
38829
38830         Add isnand module.
38831         * lib/isnand.h: New file.
38832         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38833         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38834         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38835         functionality also.
38836         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38837         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38838         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38839         * modules/isnand: New file.
38840         * modules/isnand-tests: New file.
38841         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38842         files.
38843         * tests/test-isnand-nolibm.c: factored most of its contents into
38844         new file tests/test-isnand.h.
38845         * tests/test-isnand.h: New file.
38846         * tests/test-isnand.c: New file.
38847         * MODULES.html.sh: Mention new module.
38848
38849 2008-07-10  Ben Pfaff  <blp@gnu.org>
38850
38851         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38852         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38853         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38854         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38855         * modules/isnanf-nolibm: Update references to renamed files.
38856         * modules/isnand-nolibm: Likewise.
38857         * modules/isnanf-nolibm-tests: Likewise.
38858         * modules/isnand-nolibm-tests: Likewise.
38859         * lib/frexp.c: Likewise.
38860         * lib/isfinite.c: Likewise.
38861         * lib/signbitd.c: Likewise.
38862         * lib/signbitf.c: Likewise.
38863         * lib/vasnprintf.c: Likewise.
38864         * tests/test-ceilf1.c: Likewise.
38865         * tests/test-ceilf2.c: Likewise.
38866         * tests/test-floorf1.c: Likewise.
38867         * tests/test-floorf2.c: Likewise.
38868         * tests/test-frexp.c: Likewise.
38869         * tests/test-round1.c: Likewise.
38870         * tests/test-round2.c: Likewise.
38871         * tests/test-roundf1.c: Likewise.
38872         * tests/test-strtod.c: Likewise.
38873         * tests/test-trunc1.c: Likewise.
38874         * tests/test-trunc2.c: Likewise.
38875         * tests/test-truncf1.c: Likewise.
38876         * tests/test-truncf2.c: Likewise.
38877         * NEWS: Mention the renamed header files.
38878
38879 2008-07-11  Jim Meyering  <meyering@redhat.com>
38880
38881         vc-list-files: make the last-resort awk code more portable
38882         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38883         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38884         does not support it.
38885
38886 2008-07-10  Eric Blake  <ebb9@byu.net>
38887
38888         Work with tar's bootstrap.
38889         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38890         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38891         an m4 comment.
38892
38893 2008-07-09  Jim Meyering  <meyering@redhat.com>
38894
38895         posix-shell.m4: fix typo that made this test malfunction
38896         * m4/posix-shell.m4: Remove capitalization in variable name.
38897
38898 2008-07-08  Bruno Haible  <bruno@clisp.org>
38899
38900         * m4/onceonly.m4: Update comments.
38901         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38902
38903 2008-07-04  Jim Meyering  <meyering@redhat.com>
38904
38905         * users.txt: Add vc-dwim.
38906         (bison, coreutils): Use the gitweb URL.
38907
38908 2008-07-03  Jim Meyering  <meyering@redhat.com>
38909
38910         * users.txt: Add libffcall.  From Sam Steingold.
38911
38912 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38913
38914         getdate.y: do not ignore TZ with relative day, month or year offset
38915         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38916         relative-date-handling, since otherwise, the latter would clobber the
38917         sole output (an updated Start value) of the tz-handling block.
38918         * tests/test-getdate.c: Tests for the fix
38919
38920 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38921
38922         Recognize 'foo_LIBRARIES += libgnu.a'.
38923         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38924         makefile snippet has already specified an installation location,
38925         also using '+='.
38926
38927 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38928
38929         getdate.y: factor out common actions
38930         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38931         Use them in place of open-coded actions.
38932
38933 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38934
38935         Add self-test for getdate module.
38936         * modules/getdate-tests: New file.
38937         * tests/test-getdate.c: New file.
38938
38939 2008-06-29  Bruno Haible  <bruno@clisp.org>
38940
38941         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38942         .gitignore.
38943         Reported by Sylvain Beucler <beuc@beuc.net>.
38944
38945 2008-06-29  Bruno Haible  <bruno@clisp.org>
38946
38947         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38948         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38949
38950 2008-06-29  Bruno Haible  <bruno@clisp.org>
38951
38952         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38953         EXTRA_DIST.
38954         Reported by Sylvain Beucler <beuc@beuc.net>.
38955
38956 2008-06-26  Jim Meyering  <meyering@redhat.com>
38957
38958         make several modules depend on the "open" module
38959         This provides slightly increased consistency when opening-for-write
38960         the name of a non-directory spelled with a trailing slash.
38961         * modules/chdir-safer: Likewise.
38962         * modules/chown: Likewise.
38963         * modules/clean-temp: Likewise.
38964         * modules/copy-file: Likewise.
38965         * modules/fchdir: Likewise.
38966         * modules/fcntl-safer: Likewise.
38967         * modules/pipe: Likewise.
38968         * modules/utime: Likewise.
38969         Prompted by Eric Blake and Bruno Haible.
38970
38971 2008-06-24  Andreas Schwab  <schwab@suse.de>
38972
38973         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38974         literals can be used as initializers for global variables.
38975
38976 2008-06-23  Eric Blake  <ebb9@byu.net>
38977
38978         Make gnulib-cache.m4 easier to diff.
38979         * gnulib-tool (func_import): Allow newlines when reading cached
38980         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38981
38982 2008-06-23  Bruno Haible  <bruno@clisp.org>
38983
38984         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38985         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38986         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38987         m4/signalblocking.m4.
38988         (gl_PREREQ_SIGACTION): Don't invoke it.
38989         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38990         gl_PREREQ_SIG_HANDLER_H.
38991         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38992         Don't check for sigaction here.
38993
38994 2008-06-23  Bruno Haible  <bruno@clisp.org>
38995
38996         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38997         (install_handlers): Don't set the SA_RESETHAND flag.
38998
38999 2008-06-23  Bruno Haible  <bruno@clisp.org>
39000
39001         * m4/sigaction.m4: Comment fixes.
39002         * lib/signal.in.h: Likewise.
39003
39004 2008-06-23  Eric Blake  <ebb9@byu.net>
39005
39006         Fix typo.
39007         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39008
39009         Avoid SA_ namespace.
39010         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39011         Reported by Ralf Wildenhues.
39012
39013         Avoid test failure due to SA_RESTORER.
39014         * tests/test-sigaction.c (SA_MASK): New macro.
39015         (main): Avoid failing due to extension flags being set.
39016         Reported by Jim Meyering.
39017
39018         Revert use of sig-handler.h in sigprocmask.c.
39019         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39020         it requires the existence of struct sigaction.
39021         * lib/sigprocmask.c (handler_t): Restore typedef.
39022         (rpl_signal, old_handlers): Use local type.
39023
39024 2008-06-22  Bruno Haible  <bruno@clisp.org>
39025
39026         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39027         conditionally.
39028         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39029
39030 2008-06-22  Bruno Haible  <bruno@clisp.org>
39031
39032         * doc/posix-functions/siginterrupt.texi: Move note.
39033
39034         * lib/signal.in.h (SA_RESTART): New macro.
39035         * lib/sigaction.c: Update comment.
39036
39037         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39038
39039         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39040         (gl_PREREQ_SIGPROCMASK): Invoke it.
39041         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39042
39043         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39044
39045         * lib/sigprocmask.c: Update a comment.
39046
39047 2008-06-21  Eric Blake  <ebb9@byu.net>
39048
39049         Use sigaction module rather than signal().
39050         * modules/c-stack (Depends-on): Add sigaction.
39051         * modules/fatal-signal (Depends-on): Likewise.
39052         * modules/nanosleep (Depends-on): Likewise.
39053         * modules/sigprocmask (Files): Add sig-handler.h.
39054         * modules/sigaction (Files): Likewise.
39055         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39056         Eggert.
39057         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39058         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39059         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39060         (init_fatal_signals): Likewise.
39061         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39062         (siginterrupt): Delete fallback.
39063         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39064         instead.
39065         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39066         siginterrupt.
39067
39068         New module sigaction, for mingw.
39069         * modules/sigaction: New module...
39070         * modules/sigaction-tests: ...and its test.
39071         * m4/sigaction.m4: New file.
39072         * lib/sigaction.c: Likewise.
39073         * tests/test-sigaction.c: Likewise.
39074         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39075         * modules/signal (Makefile.am): Likewise.
39076         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39077         needed.
39078         * doc/posix-headers/signal.texi (signal.h): Mention provided
39079         types.
39080         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39081         that sigaction is preferable.
39082         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39083         module.
39084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39085         sigaction.
39086
39087         Improve robustness of sigprocmask by overriding signal.
39088         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39089         is in use.
39090         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39091         (SIGKILL, SIGSTOP): Provide fallbacks.
39092         (rpl_signal): Implement.
39093         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39094         signal can be called inside handlers.
39095
39096         Fix nanosleep module on mingw.
39097         * modules/nanosleep (Depends-on): Add sys_select.
39098         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39099
39100         Fix licensing of sigprocmask.
39101         * modules/raise (License): Relicense as LGPL.
39102
39103 2008-06-21  Bruno Haible  <bruno@clisp.org>
39104
39105         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39106         result if it contains question marks.
39107         Reported by Michael Geng <linux@michaelgeng.de>.
39108
39109 2008-06-19  Bruno Haible  <bruno@clisp.org>
39110
39111         Fix CVS-ism.
39112         * doc/gnulib.texi: Include updated-stamp.texi.
39113         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39114         (updated-stamp.texi): New rule.
39115         (gnulib.info): Depend on it.
39116         * doc/.gitignore: Add updated-stamp.texi.
39117         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39118
39119 2008-06-19  Bruno Haible  <bruno@clisp.org>
39120
39121         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39122         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39123
39124 2008-06-19  Eric Blake  <ebb9@byu.net>
39125
39126         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39127         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39128         Reported by Stepan Kasal.
39129
39130 2008-06-18  Bruno Haible  <bruno@clisp.org>
39131
39132         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39133         Reported by Eric Blake.
39134
39135 2008-06-18  Eric Blake  <ebb9@byu.net>
39136
39137         Work around cygwin 1.5.25 strsignal bug.
39138         * tests/test-strsignal.c: Allow for const char *.
39139         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39140
39141 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39142
39143         * users.txt: Update URL to article and add author/date
39144         information.
39145
39146 2008-06-17  Bruno Haible  <bruno@clisp.org>
39147
39148         New macro gl_DISABLE_THREADS.
39149         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39150         if the user did not pass --enable-threads or --disable-threads option.
39151         (gl_DISABLE_THREADS): New macro.
39152         Reported by Eric Blake <ebb9@byu.net>.
39153
39154 2008-06-17  Bruno Haible  <bruno@clisp.org>
39155
39156         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39157         when the macro ignores it.
39158         Based on a patch by Eric Blake <ebb9@byu.net>.
39159
39160 2008-06-17  Bruno Haible  <bruno@clisp.org>
39161
39162         * modules/tls (License): Change to LGPLv2+.
39163         Reported by Eric Blake.
39164
39165 2008-06-17  Eric Blake  <ebb9@byu.net>
39166
39167         Simplify c-stack prerequisites.
39168         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39169         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39170         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39171         check.
39172         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39173         <sys/resource.h>.
39174
39175         Move c-stack test into testsuite.
39176         * modules/c-stack-tests: New file.
39177         * lib/c-stack.c [DEBUG]: Move test program...
39178         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39179         fail test if sigaltstack is lacking.
39180         * tests/test-c-stack.sh: New driver file.
39181
39182 2008-06-16  Eric Blake  <ebb9@byu.net>
39183
39184         Use raise module consistently.
39185         * modules/fatal-signal (Depends-on): Add raise.
39186         * modules/sigprocmask (Depends-on): Likewise.
39187         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39188         * lib/sigprocmask.c (sigprocmask): Likewise.
39189         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39190         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39191
39192         Fix compliance bug in sigpending.
39193         * lib/sigprocmask.c (sigpending): Return pending array via
39194         parameter, not return value.
39195
39196 2008-06-14  Eric Blake  <ebb9@byu.net>
39197
39198         Improve obstack-printf test code.
39199         * tests/test-obstack-printf.c (test_function): Fix comment, and
39200         simplify usage of obstack_* in macros.  Add a test for coverage.
39201         Reported by Bruno Haible.
39202
39203 2008-06-14  Bruno Haible  <bruno@clisp.org>
39204
39205         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39206         array size as a constant, not as a const variable.
39207         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39208         AC_USE_SYSTEM_EXTENSIONS.
39209         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39210         Test whether the obstack_printf function actually exists.
39211         * modules/obstack-printf (Depends-on): Add extensions.
39212         (Include): Remove obstack.h.
39213         * modules/obstack-printf-posix (Depends-on): Add extensions.
39214         (Include): Remove obstack.h.
39215
39216 2008-06-13  Eric Blake  <ebb9@byu.net>
39217
39218         Add obstack-printf and obstack-printf-posix modules.
39219         * modules/obstack-printf: New file.
39220         * modules/obstack-printf-posix: Likewise.
39221         * MODULES.html.sh (Misc): Mention them.
39222         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39223         Likewise.
39224         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39225         Likewise.
39226         * modules/stdio (Makefile.am): Accomodate new modules.
39227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39228         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39229         Declare.
39230         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39231         functions.
39232         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39233         (gl_REPLACE_OBSTACK_PRINTF): New macros
39234         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39235         * tests/test-obstack-printf.c: New file.
39236         * modules/obstack-printf-tests: Likewise.
39237         * modules/obstack-printf-posix-tests: Likewise.
39238
39239 2008-06-11  Bruno Haible  <bruno@clisp.org>
39240
39241         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39242         * lib/open.c: Include errno.h.
39243         (open): Fail when attempting to write to a file that has a trailing
39244         slash.
39245         * tests/test-open.c (main): Test against trailing slash bug.
39246         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39247
39248 2008-06-10  Bruno Haible  <bruno@clisp.org>
39249
39250         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39251         for $? to work inside the trap command, with various /bin/sh-s.
39252         * tests/test-vc-list-files-cvs.sh: Likewise.
39253
39254 2008-06-10  Bruno Haible  <bruno@clisp.org>
39255
39256         * lib/acl-internal.h: Don't include gettext.h here.
39257         * lib/set-mode-acl.c: Include gettext.h here.
39258         * lib/copy-acl.c: Likewise.
39259
39260 2008-06-10  Bruno Haible  <bruno@clisp.org>
39261
39262         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39263         * lib/wait-process.c (wait_subprocess): Likewise.
39264         * lib/execute.h (execute): Add termsigp argument.
39265         * lib/execute.c (execute): Likewise.
39266         * lib/csharpcomp.c (compile_csharp_using_pnet,
39267         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39268         * lib/csharpexec.c (execute_csharp_using_pnet,
39269         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39270         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39271         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39272         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39273         is_jikes_present): Update.
39274         * lib/javaexec.c (execute_java_class): Update.
39275         * lib/javaversion.c (execute_and_read_line): Update.
39276         * NEWS: Document the changes.
39277         Reported by Eric Blake.
39278
39279 2008-06-10  Eric Blake  <ebb9@byu.net>
39280
39281         Add missing include.
39282         * tests/test-strstr.c (includes): Add <signal.h>.
39283         * tests/test-strcasestr.c (includes): Likewise.
39284         * tests/test-memmem.c (includes): Likewise.
39285
39286 2008-06-10  Bruno Haible  <bruno@clisp.org>
39287
39288         * lib/wait-process.c (wait_subprocess): Add an assertion.
39289
39290 2008-06-10  Bruno Haible  <bruno@clisp.org>
39291
39292         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39293
39294 2008-06-10  Bruno Haible  <bruno@clisp.org>
39295
39296         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39297         using alarm().
39298         * tests/test-strcasestr.c (main): Likewise.
39299         * tests/test-strstr.c (main): Likewise.
39300
39301 2008-06-09  Bruno Haible  <bruno@clisp.org>
39302
39303         Work around the Solaris 10 ACE ACLs ABI change.
39304         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39305         declare if ACL_NO_TRIVIAL is present.
39306         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39307         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39308         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39309         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39310         define if ACL_NO_TRIVIAL is present.
39311         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39312         and use the current ABI.
39313         (file_has_acl): Use same #if condition as elsewhere.
39314         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39315         in use, and use the current ABI.
39316         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39317         Reported by Jim Meyering.
39318
39319 2008-06-09  Eric Blake  <ebb9@byu.net>
39320
39321         Work around environments that (stupidly) ignore SIGALRM.
39322         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39323         before using alarm().
39324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39326         Reported by Ian Beckwith <ianb@erislabs.net>.
39327
39328         Produce autobuild blurb earlier in log.
39329         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39330
39331 2008-06-09  Jim Meyering  <meyering@redhat.com>
39332         and OndÅ™ej Vašík  <ovasik@redhat.com>
39333
39334         utimens.c: correct kernel bug work-around
39335         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39336         failure, not success, and the kernel bug we're trying to work
39337         around affects not just the utimensat call, but also the fallback
39338         futimens call.
39339         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39340         not success.
39341         [HAVE_FUTIMENS]: Use the same work-around, here.
39342
39343 2008-06-09  Jim Meyering  <meyering@redhat.com>
39344
39345         add more guards around definition of ACE_-related code
39346         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39347         ALLOW and ACE_OWNER are also defined.
39348
39349 2008-06-08  Bruno Haible  <bruno@clisp.org>
39350
39351         * lib/acl-internal.h: Add me as co-author.
39352         * lib/file-has-acl.c: Likewise.
39353         * lib/set-mode-acl.c: Likewise.
39354         * lib/copy-acl.c: Likewise.
39355
39356 2008-06-08  Bruno Haible  <bruno@clisp.org>
39357
39358         Add support for AIX ACLs.
39359         * lib/acl-internal.h (acl_nontrivial): New declaration.
39360         * lib/file-has-acl.c (acl_nontrivial): New function.
39361         (file_has_acl): Add implementation using AIX 4 ACL API.
39362         * lib/set-mode-acl.c (qset_acl): Likewise.
39363         * lib/copy-acl.c (qcopy_acl): Likewise.
39364
39365 2008-06-08  Bruno Haible  <bruno@clisp.org>
39366
39367         Add support for HP-UX ACLs.
39368         * lib/acl-internal.h (acl_nontrivial): New declaration.
39369         * lib/file-has-acl.c (acl_nontrivial): New function.
39370         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39371         * lib/set-mode-acl.c (qset_acl): Likewise.
39372         * lib/copy-acl.c (qcopy_acl): Likewise.
39373
39374 2008-06-08  Bruno Haible  <bruno@clisp.org>
39375
39376         Add support for Cygwin ACLs.
39377         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39378         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39379         the chmod_or_fchmod call.
39380         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39381
39382 2008-06-08  Bruno Haible  <bruno@clisp.org>
39383
39384         Fix bug with setuid modes in Solaris 10+ code.
39385         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39386         succeeded, when the mode contains some special bits.
39387
39388 2008-06-08  Bruno Haible  <bruno@clisp.org>
39389
39390         Add support for Solaris 7..10 ACLs.
39391         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39392         declarations.
39393         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39394         functions.
39395         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39396         * lib/set-mode-acl.c (qset_acl): Likewise.
39397         * lib/copy-acl.c (qcopy_acl): Likewise.
39398
39399 2008-06-08  Bruno Haible  <bruno@clisp.org>
39400
39401         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39402         declaration.
39403         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39404         (acl_access_nontrivial): Remove MacOS X case.
39405         (file_has_acl): Use acl_extended_nontrivial.
39406         * lib/copy-acl.c (qcopy_acl): Likewise.
39407
39408 2008-06-08  Bruno Haible  <bruno@clisp.org>
39409
39410         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39411
39412 2008-06-08  Jim Meyering  <meyering@redhat.com>
39413
39414         * modules/acl (Maintainer): Add Bruno Haible.
39415
39416 2008-06-07  Bruno Haible  <bruno@clisp.org>
39417
39418         Improve support for Tru64 ACLs.
39419         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39420         ACL on OSF/1.
39421
39422 2008-06-07  Bruno Haible  <bruno@clisp.org>
39423
39424         Add support for MacOS X ACLs.
39425         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39426         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39427         * lib/set-mode-acl.c (qset_acl): Likewise.
39428         * lib/copy-acl.c (qcopy_acl): Likewise.
39429
39430 2008-06-07  Bruno Haible  <bruno@clisp.org>
39431
39432         Fix memory leak introduced on 2008-05-22.
39433         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39434         use.
39435
39436 2008-06-07  Bruno Haible  <bruno@clisp.org>
39437
39438         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39439         to construct an empty ACL.
39440
39441 2008-06-07  Bruno Haible  <bruno@clisp.org>
39442
39443         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39444         precisely.
39445         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39446
39447 2008-06-07  Bruno Haible  <bruno@clisp.org>
39448
39449         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39450         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39451
39452 2008-06-07  Bruno Haible  <bruno@clisp.org>
39453
39454         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39455         regardless of POSIX.
39456         * doc/posix-functions/_longjmp.texi: Likewise.
39457         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39458         SystemV platform in this case.
39459
39460 2008-06-06  Eric Blake  <ebb9@byu.net>
39461
39462         Document abort() bugs.
39463         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39464
39465         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39466         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39467         sigsetjmp.
39468         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39469         siglongjmp, but only as a macro.
39470         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39471         is obsolete.
39472         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39473
39474         Tweak documentation to cover cygwin argz bugs.
39475         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39476         argz bug fix; no code change needed since no cygwin releases
39477         occurred between the last fix and the bug being tested.
39478         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39479         module and recently fixed cygwin bugs.
39480         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39481         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39482         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39483         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39484         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39485         Likewise.
39486         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39487         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39488         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39489         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39490         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39491         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39492         Likewise.
39493
39494         Avoid gcc warning on cygwin.
39495         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39496         !ACL_NO_TRIVIAL]: Avoid unused variable.
39497
39498 2008-06-05  Eric Blake  <ebb9@byu.net>
39499
39500         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39501         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39502         git-version-gen fails to come up with a version.
39503         Reported by Simon Josefsson.
39504
39505 2008-06-05  Jim Meyering  <meyering@redhat.com>
39506             Paul Eggert  <eggert@cs.ucla.edu>
39507
39508         utimens.c: work around a probable Linux kernel bug
39509         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39510         appears to be a kernel bug that causes utimensat to return 280
39511         instead of 0, indicating success.
39512
39513 2008-06-04  Bruno Haible  <bruno@clisp.org>
39514
39515         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39516         2008-06-01 commit.
39517
39518 2008-06-04  Bruno Haible  <bruno@clisp.org>
39519
39520         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39521         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39522         (file_has_acl): Use it. Save errno afterwards.
39523         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39524
39525 2008-06-03  Bruno Haible  <bruno@clisp.org>
39526
39527         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39528         draft code. Simplify #ifs.
39529         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39530         Put Solaris code after POSIX-draft code. Fix comments regarding
39531         Solaris 10, HP-UX. Mention Cygwin.
39532         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39533
39534 2008-06-03  Eric Blake  <ebb9@byu.net>
39535
39536         Provide fallback for older kernels.
39537         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39538         Provide runtime fallback if kernel lacks support.
39539         Reported by Mike Frysinger.
39540
39541 2008-06-02  Bruno Haible  <bruno@clisp.org>
39542
39543         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39544         it exists.
39545
39546 2008-06-02  Bruno Haible  <bruno@clisp.org>
39547
39548         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39549         * lib/copy-acl.c (qcopy_acl): Update comment.
39550
39551 2008-06-02  Bruno Haible  <bruno@clisp.org>
39552
39553         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39554         like ACL APIs.
39555
39556 2008-06-02  Bruno Haible  <bruno@clisp.org>
39557
39558         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39559         * tests/test-set-mode-acl.sh: Likewise.
39560         * tests/test-copy-acl.sh: Likewise.
39561         * tests/test-copy-file.sh: Likewise.
39562
39563 2008-06-02  Bruno Haible  <bruno@clisp.org>
39564
39565         * tests/test-file-has-acl.sh: Remove unused code.
39566
39567 2008-06-01  Bruno Haible  <bruno@clisp.org>
39568
39569         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39570         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39571         messages.
39572         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39573
39574 2008-06-01  Bruno Haible  <bruno@clisp.org>
39575
39576         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39577         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39578         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39579         APIs.
39580         * modules/acl-tests (configure.ac): Remove tests now contained in
39581         m4/acl.m4.
39582
39583 2008-06-02  Jim Meyering  <meyering@redhat.com>
39584
39585         announce-gen: use a better key-server host name
39586         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39587         it may be more consistently reliable.  Suggested by Werner Koch
39588         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39589
39590 2008-06-01  Bruno Haible  <bruno@clisp.org>
39591
39592         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39593         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39594
39595 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39596
39597         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39598
39599 2008-06-01  Bruno Haible  <bruno@clisp.org>
39600
39601         New ACL tests.
39602         * tests/test-file-has-acl.sh: New file.
39603         * tests/test-file-has-acl.c: New file.
39604         * tests/test-set-mode-acl.sh: New file.
39605         * tests/test-set-mode-acl.c: New file.
39606         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39607         * tests/test-copy-acl.c: New file.
39608         * modules/acl-tests: New file, based on modules/copy-file-tests.
39609         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39610         (Depends-on): Add acl-tests.
39611         (configure.ac): Remove checks.
39612         (Makefile.am): Don't create test-sameacls program here any more.
39613
39614 2008-06-01  Bruno Haible  <bruno@clisp.org>
39615
39616         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39617         * tests/test-sameacls.c: Include progname.h.
39618         (main): Invoke set_program_name. Portability fixes for MacOS X,
39619         Solaris, HP-UX.
39620
39621 2008-06-01  Bruno Haible  <bruno@clisp.org>
39622
39623         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39624         function.
39625         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39626
39627 2008-06-01  Bruno Haible  <bruno@clisp.org>
39628
39629         * modules/rpmatch (Depends-on): Add strdup.
39630
39631 2008-06-01  Bruno Haible  <bruno@clisp.org>
39632
39633         * lib/pipe.c: Include unistd-safer.h.
39634         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39635         * modules/pipe (Depends-on): Add unistd-safer.
39636
39637 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39638
39639         * modules/autobuild (configure.ac): Call AB_INIT.
39640
39641 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39642
39643         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39644         Suggested by Bruno Haible <bruno@clisp.org>.
39645
39646 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39647
39648         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39649         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39650         <bruno@clisp.org>.
39651
39652 2008-05-29  Eric Blake  <ebb9@byu.net>
39653
39654         Prefer new POSIX 200x interfaces over futimesat.
39655         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39656         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39657         when available.
39658         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39659
39660 2008-05-28  Bruno Haible  <bruno@clisp.org>
39661
39662         * modules/stpcpy (License): Change to LGPLv2+.
39663         Requested by David Lutterkort <dlutter@redhat.com>.
39664
39665 2008-05-27  Bruno Haible  <bruno@clisp.org>
39666
39667         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39668         current mingw.
39669         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39670
39671 2008-05-27  Bruno Haible  <bruno@clisp.org>
39672
39673         * modules/iconv_open (Link): New section, from module 'iconv'.
39674         * modules/striconv (Link): Likewise.
39675         * modules/striconveh (Link): Likewise.
39676         * modules/xstriconv (Link): Likewise.
39677         * modules/unicodeio (Link): Likewise.
39678         * modules/propername (Link): Likewise.
39679         Reported by Jim Meyering.
39680
39681 2008-05-26  Jim Meyering  <meyering@redhat.com>
39682
39683         sha256: do not artificially restrict buffer length to be < 2^32
39684         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39685         uint32_t to size_t.
39686         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39687         to match.
39688
39689         avoid unaligned access errors, e.g., on sparc
39690         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39691         direct access through a possibly-unaligned uint64* pointer.
39692         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39693         direct access through a possibly-unaligned uint32* pointer.
39694         Prompted by this patch from Tom "spot" Callaway:
39695         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39696
39697         sha512.c: fix typo in comment
39698         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39699
39700 2008-05-25  Bruno Haible  <bruno@clisp.org>
39701
39702         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39703         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39704         (Makefile.am): Update lib_SOURCES.
39705
39706 2008-05-25  Bruno Haible  <bruno@clisp.org>
39707
39708         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39709
39710 2008-05-25  Jim Meyering  <meyering@redhat.com>
39711
39712         useless-if-before-free: freed expr may have white-space differences
39713         * build-aux/useless-if-before-free: Recognize cases in which the
39714         freed expression differs from the tested one in embedded white
39715         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39716         $1 was used, so we can't make any regexp shy.  Improved tests now
39717         detect this.
39718
39719         useless-if-before-free: accept white space in the expression.
39720         * build-aux/useless-if-before-free: For now, any white space
39721         in the expression must be identical in the free argument.
39722
39723         useless-if-before-free: efficiency tweak
39724         * build-aux/useless-if-before-free: Make the expression-matching
39725         regexp "shy".
39726         Make the *outer* regexp shy, not the expr-matching one.
39727
39728         update code-in-comment to accept cast of free arg
39729         * build-aux/useless-if-before-free: Update regexp.
39730
39731 2008-05-25  Bruno Haible  <bruno@clisp.org>
39732
39733         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39734         * modules/copy-file-tests (Files, Makefile.am): Update.
39735         * tests/test-copy-file.c (func_test_copy): Update.
39736
39737 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39738
39739         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39740
39741 2008-05-23  Bruno Haible  <bruno@clisp.org>
39742
39743         Improve support for ACLs on OSF/1.
39744         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39745         Remove fallback for unknown flavors of ACLs.
39746
39747 2008-05-22  Bruno Haible  <bruno@clisp.org>
39748
39749         Add support for ACLs on OSF/1.
39750         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39751         replacements.
39752         (acl_free_text): New macro fallback.
39753         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39754         acl_free.
39755         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39756         acl_free_text function. Require AC_C_INLINE.
39757
39758 2008-05-22  Bruno Haible  <bruno@clisp.org>
39759
39760         Make copy_acl work on MacOS X 10.5.
39761         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39762         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39763         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39764         If MODE_INSIDE_ACL, don't assume that every system has the same text
39765         representation for ACLs as FreeBSD.
39766         * lib/copy-acl.c (copy_acl): Add support for platforms with
39767         !MODE_INSIDE_ACL.
39768         * lib/file-has-acl.c (file_has_acl): Likewise.
39769         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39770         FreeBSD, MacOS X, or IRIX, respectively.
39771
39772 2008-05-22  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/acl.h: Don't include <sys/acl.h>.
39775         (GETACLCNT): Move fallback to lib/acl-internal.h.
39776         * lib/acl-internal.h: Include <sys/acl.h> here.
39777         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39778
39779 2008-05-22  Bruno Haible  <bruno@clisp.org>
39780
39781         Split off copy_acl function to separate file.
39782         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39783         * lib/acl.c (copy_acl): Moved function to separate file.
39784         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39785         * modules/acl (Files): Add lib/copy-acl.c.
39786         (Makefiles.am): Augment lib_SOURCES.
39787
39788 2008-05-22  Bruno Haible  <bruno@clisp.org>
39789
39790         * modules/copy-file-tests: New file.
39791         * tests/test-copy-file.sh: New file.
39792         * tests/test-copy-file.c: New file.
39793         * tests/test-copy-file-sameacls.c: New file.
39794
39795 2008-05-22  Eric Blake  <ebb9@byu.net>
39796
39797         Avoid gcc warning.
39798         * tests/test-memcmp.c (main): Pass NULL indirectly.
39799
39800 2008-05-21  Bruno Haible  <bruno@clisp.org>
39801
39802         Add reference doc about ACLs.
39803         * doc/acl-resources.txt: New file.
39804         * doc/acl-cygwin.txt: New file.
39805
39806 2008-05-21  Bruno Haible  <bruno@clisp.org>
39807
39808         Avoid one more warning from gcc.
39809         * lib/vasnprintf.c (IF_LINT): Update comments.
39810         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39811
39812 2008-05-21  Jim Meyering  <meyering@redhat.com>
39813
39814         avoid a warning from gcc
39815         * lib/vasnprintf.c (IF_LINT): Define.
39816         (scale10_round_decimal_long_double):
39817         Use it to avoid a "may be used uninitialized" warning.
39818         (scale10_round_decimal_double): Likewise.
39819
39820 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39821
39822         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39823         declared.
39824
39825 2008-05-20  Bruno Haible  <bruno@clisp.org>
39826
39827         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39828         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39829
39830 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39831
39832         * modules/memcmp-tests: New file.
39833         * tests/test-memcmp.c: New file.
39834
39835 2008-05-19  Bruno Haible  <bruno@clisp.org>
39836
39837         * modules/propername (Notice, configure.ac): Put quoted "..." into
39838         --keyword option.
39839         * lib/propername.h: Update comments accordingly.
39840         Reported by Eric Blake.
39841
39842 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39843
39844         * modules/getpass-gnu (Depends-on): Add fseeko.
39845
39846 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39847
39848         * modules/base64-tests: New file.
39849
39850 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39851
39852         * lib/base64.c (base64_decode_ctx): If a decode context structure
39853         was passed in use it to ignore newlines.  If a context structure
39854         was _not_ passed in, continue to treat newlines as garbage (this
39855         is the historical behavior).  Formerly base64_decode.
39856         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39857         takes a decode context structure.
39858         * lib/base64.h (base64_decode): Macro for four-argument calls.
39859         (base64_decode_alloc): Likewise.
39860         * lib/base64.c (base64_decode_ctx): If a decode context structure
39861         was passed in use it to ignore newlines.  If a context structure
39862         was _not_ passed in, continue to treat newlines as garbage (this
39863         is the historical behavior).  Formerly base64_decode.
39864         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39865         takes a decode context structure.
39866         * lib/base64.h (base64_decode): Macro for four-argument calls.
39867         (base64_decode_alloc): Likewise.
39868
39869 2008-05-19  Jim Meyering  <meyering@redhat.com>
39870
39871         avoid a warning from gcc
39872         * lib/trim.c (IF_LINT): Define.
39873         (trim2): Use it to avoid a "may be used uninitialized" warning.
39874
39875         Fix doc typo.
39876         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39877
39878 2008-05-19  Bruno Haible  <bruno@clisp.org>
39879
39880         * doc/glibc-functions/getpass.texi: Document limits of other
39881         implementations.
39882
39883 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39884             Bruno Haible <bruno@clisp.org>
39885
39886         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39887
39888 2008-05-18  Bruno Haible  <bruno@clisp.org>
39889
39890         * modules/propername: New file, from GNU gettext.
39891         * lib/propername.h: New file, from GNU gettext.
39892         * lib/propername.c: New file, from GNU gettext.
39893         * MODULES.html.sh (Internationalization functions): Add propername.
39894
39895 2008-05-16  Jim Meyering  <meyering@redhat.com>
39896             Bruno Haible  <bruno@clisp.org>
39897
39898         Avoid some warnings from "gcc -Wshadow".
39899         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39900
39901 2008-05-15  Eric Blake  <ebb9@byu.net>
39902
39903         Extend previous patch to cygwin 1.7.0.
39904         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39905         fast implementation in cygwin >= 1.7.0.
39906         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39908
39909 2008-05-15  Bruno Haible  <bruno@clisp.org>
39910
39911         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39912         implementation in glibc >= 2.9.
39913         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39915
39916 2008-05-15  Bruno Haible  <bruno@clisp.org>
39917
39918         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39919         (Unicode string functions): Add unilbrk/*.
39920         Reported by Karl Berry.
39921
39922 2008-05-15  Eric Blake  <ebb9@byu.net>
39923
39924         Fix violation of <stdbool.h> replacement in regex.
39925         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39926         * lib/regexec.c (re_search_internal): Likewise.
39927         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39928
39929 2008-05-15  Jim Meyering  <meyering@redhat.com>
39930
39931         avoid distracting test output when git or cvs is not found
39932         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39933         * tests/test-vc-list-files-git.sh: Likewise.
39934
39935 2008-05-15  Eric Blake  <ebb9@byu.net>
39936
39937         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39938         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39939         glibc version.
39940         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39941         * doc/posix-functions/strstr.texi (strstr): Likewise.
39942         * lib/str-two-way.h (MAX): Sychronize with glibc.
39943
39944 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39945
39946         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39947         opr.ctx_type.
39948         (calc_first): Initialize constraint field.
39949         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39950         Fix grammar.
39951         (duplicate_node): Merge constraint field for all node types.
39952         (calc_eclosure_iter): Look at constraint field for all node types.
39953         * lib/regex_internal.c (create_cd_newstate): Don't look at
39954         opr.ctx_type.
39955
39956 2008-05-14  Bruno Haible  <bruno@clisp.org>
39957
39958         Help GCC to do better code generation.
39959         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39960         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39961         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39962         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39963         Declare with attribute 'malloc' if supported.
39964
39965 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39966
39967         use "echo STR|wc -c" rather than unportable "expr length STR"
39968         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39969         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39970
39971 2008-05-14  Jim Meyering  <meyering@redhat.com>
39972
39973         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39974         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39975         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39976         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39977         via Collin Lasse.
39978
39979 2008-05-14  Eric Blake  <ebb9@byu.net>
39980
39981         Avoid quadratic growth in gl_LIBSOURCES.
39982         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39983         Suggested by Bruno Haible.
39984
39985         Test xmemdup0.
39986         * modules/xmemdup0-tests: New file.
39987         * tests/test-xmemdup0.c: Likewise.
39988
39989 2008-05-13  Eric Blake  <ebb9@byu.net>
39990
39991         Split xmemdup0 into its own module.
39992         * modules/xmemdup0: New file.
39993         * lib/xmemdup0.h: Likewise.
39994         * lib/xmemdup0.c: Likewise.
39995         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39996         * lib/xalloc.h (xmemdup0): Remove.
39997         * lib/xmalloc.c (xmemdup0): Likewise.
39998
39999 2008-05-13  Eric Blake  <ebb9@byu.net>
40000             Bruno Haible  <bruno@clisp.org>
40001
40002         Reduce number of forks required during autoconf.
40003         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40004         and gl_LIBSOURCES_DIR.
40005         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40006         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40007         m4_syscmd per file.
40008         <m4_foreach_w>: Move...
40009         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40010
40011 2008-05-13  Eric Blake  <ebb9@byu.net>
40012
40013         * gnulib-tool: Fix various comment typos.
40014
40015 2008-05-12  Bruno Haible  <bruno@clisp.org>
40016
40017         Tailor the linebreaking algorithm.
40018         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40019
40020 2008-05-12  Bruno Haible  <bruno@clisp.org>
40021
40022         Update to Unicode 5.0.0.
40023         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40024         LBP_JV, LBP_JT. Redistribute values.
40025         (unilbrk_table): Change size.
40026         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40027         Unicode TR#14 rev. 22.
40028         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40029         LBP_JV, LBP_JT. Redistribute values.
40030         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40031         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40032         Update.
40033         * lib/unilbrk/lbrkprop1.h: Regenerated.
40034         * lib/unilbrk/lbrkprop2.h: Regenerated.
40035         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40036         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40037         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40038         Likewise.
40039         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40040         Likewise.
40041         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40042         result.
40043         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40044         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40045         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40046         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40047         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40048         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40049
40050 2008-05-11  Bruno Haible  <bruno@clisp.org>
40051
40052         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40053
40054 2008-05-11  Bruno Haible  <bruno@clisp.org>
40055
40056         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40057         * modules/unilbrk/gen-lbrk: New file.
40058
40059 2008-05-11  Bruno Haible  <bruno@clisp.org>
40060
40061         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40062         * m4/sha512.m4 (gl_SHA512): Likewise.
40063
40064 2008-05-11  Jim Meyering  <meyering@redhat.com>
40065
40066         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40067         * modules/crypto/sha256: New file.
40068         * modules/crypto/sha512: Likewise.
40069         * lib/sha256.c: Likewise.
40070         * lib/sha256.h: Likewise.
40071         * lib/sha512.c: Likewise.
40072         * lib/sha512.h: Likewise.
40073         * lib/u64.h: Likewise.
40074         * m4/sha256.m4: Likewise.
40075         * m4/sha512.m4: Likewise.
40076         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40077
40078 2008-05-10  Bruno Haible  <bruno@clisp.org>
40079
40080         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40081         (Input/Output <stdio.h>): Add xprintf.
40082         (Signal handling <signal.h>): Add strsignal.
40083         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40084         (Core language properties): Add func.
40085         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40086         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40087         strings.
40088         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40089         (Input/output): New section.
40090         (File system functions): Add openat-die, stat-macros.
40091         (Networking functions): Add sockets.
40092         (Unicode string functions): Add unictype/*.
40093         (Support for building libraries and executables): Add gperf.
40094         (Support for building documentation): Add agpl-3.0.
40095         (Misc): Add nocrash.
40096
40097 2008-05-10  Bruno Haible  <bruno@clisp.org>
40098
40099         * modules/unictype/gen-ctype: New file.
40100
40101 2008-05-10  Jim Meyering  <meyering@redhat.com>
40102
40103         Make chdir-safer.c more efficient on a system with no symlinks.
40104         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40105         also if ELOOP is zero.  Suggested by Bruno Haible.
40106
40107         Make chdir-safer.c slightly safer.
40108         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40109         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40110
40111         Avoid compile failure on systems without ELOOP (like mingw).
40112         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40113         Reported by Bruno Haible.
40114
40115 2008-05-10  Bruno Haible  <bruno@clisp.org>
40116
40117         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40118         (is_utf8_encoding): Use a case-insensitive comparison.
40119         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40120         streq.
40121
40122 2008-05-10  Bruno Haible  <bruno@clisp.org>
40123
40124         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40125         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40126         * lib/unilbrk/ulc-common.h (iconv_string_length,
40127         iconv_string_keeping_offsets): Remove declarations.
40128         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40129         Don't include <iconv.h>, streq.h, xsize.h.
40130         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40131         conversion.
40132         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40133         <iconv.h>, streq.h, xsize.h.
40134         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40135         conversion.
40136         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40137         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40138         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40139         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40140
40141 2008-05-10  Bruno Haible  <bruno@clisp.org>
40142
40143         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40144         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40145
40146         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40147         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40148
40149         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40150         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40151
40152         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40153         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40154
40155         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40156         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40157
40158         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40159         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40160
40161         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40162         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40163
40164         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40165         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40166
40167 2008-05-10  Bruno Haible  <bruno@clisp.org>
40168
40169         Split up 'linebreak' module.
40170         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40171         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40172         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40173         modifications.
40174         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40175         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40176         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40177         lib/linebreak.c.
40178         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40179         lib/linebreak.c.
40180         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40181         lib/linebreak.c.
40182         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40183         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40184         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40185         lib/linebreak.c.
40186         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40187         lib/linebreak.c.
40188         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40189         lib/linebreak.c.
40190         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40191         lib/linebreak.c.
40192         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40193         lib/linebreak.c.
40194         * modules/unilbrk/base: New file.
40195         * modules/unilbrk/tables: New file.
40196         * modules/unilbrk/u8-possible-linebreaks: New file.
40197         * modules/unilbrk/u16-possible-linebreaks: New file.
40198         * modules/unilbrk/u32-possible-linebreaks: New file.
40199         * modules/unilbrk/ulc-common: New file.
40200         * modules/unilbrk/ulc-possible-linebreaks: New file.
40201         * modules/unilbrk/u8-width-linebreaks: New file.
40202         * modules/unilbrk/u16-width-linebreaks: New file.
40203         * modules/unilbrk/u32-width-linebreaks: New file.
40204         * modules/unilbrk/ulc-width-linebreaks: New file.
40205         * lib/linebreak.h: Remove file.
40206         * lib/linebreak.c: Remove file.
40207         * m4/linebreak.m4: Remove file.
40208         * modules/linebreak: Remove file.
40209         * NEWS: Mention the changes.
40210
40211 2008-05-09  Eric Blake  <ebb9@byu.net>
40212
40213         Add xmemdup0.
40214         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40215         implementation.
40216         * lib/xmalloc.c (xmemdup0): New C implementation.
40217
40218 2008-05-08  Bruno Haible  <bruno@clisp.org>
40219
40220         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40221
40222 2008-05-07  Eric Blake  <ebb9@byu.net>
40223
40224         Support cross-compilation of <wctype.h>.
40225         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40226         AC_CACHE_CHECK.
40227
40228 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40229
40230         * build-aux/vc-list-files: Add support for bzr.
40231
40232 2008-05-03  Jim Meyering  <meyering@redhat.com>
40233
40234         avoid failed assertion with tight malloc
40235         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40236
40237 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40238
40239         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40240         are needed from arpa/inet.h.
40241         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40242         Reported by Bruno Haible.
40243
40244 2008-05-02  Jim Meyering  <meyering@redhat.com>
40245
40246         avoid compilation error on FreeBSD 6
40247         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40248
40249 2008-05-01  Jim Meyering  <meyering@redhat.com>
40250
40251         useless-if-before-free: correct --help's exit status description
40252         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40253         for one or more matches, etc.  Reported by Bruno Haible.
40254
40255         vc-list-files: make the stand-alone gnulib test work
40256         * modules/vc-list-files-tests (configure.ac):
40257         Define and AC_SUBST abs_aux_dir.
40258         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40259         $(abs_top_srcdir) to each script and having each of them
40260         duplicate the work of setting PATH, set PATH here, using
40261         the new variable, abs_aux_dir instead.
40262         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40263         * tests/test-vc-list-files-git.sh: Likewise.
40264         Reported by Bruno Haible.
40265
40266 2008-05-01  Bruno Haible  <bruno@clisp.org>
40267
40268         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40269         reallocation. Rename 'done' to 'found_delimiter'.
40270
40271 2008-05-01  Jim Meyering  <meyering@redhat.com>
40272
40273         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40274         * build-aux/vc-list-files: Use `...`, not $(...).
40275
40276 2008-04-30  Jim Meyering  <meyering@redhat.com>
40277
40278         add tests for vc-list-files
40279         * modules/vc-list-files-tests: New module.
40280         * tests/test-vc-list-files-cvs.sh: New file.
40281         * tests/test-vc-list-files-git.sh: New file.
40282
40283         avoid a warning from gcc
40284         * lib/getndelim2.c (IF_LINT): Define.
40285         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40286
40287         vc-list-files: work properly with build-aux/cvsu, too
40288         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40289         to all cvs-based clauses.
40290
40291         vc-list-files: work properly in the CVS+awk case, too
40292         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40293
40294         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40295         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40296         take more than one file argument, so .  Add quotes, just in case $dir
40297         ever contains a shell meta-character.  Prompted by Soren Hansen in
40298         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40299
40300 2008-04-29  Eric Blake  <ebb9@byu.net>
40301
40302         Optimize getndelim2 to use block operations when possible.
40303         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40304         freadseek, and memchr2.
40305         * lib/getndelim2.c (getndelim2): Use them for block reads.
40306
40307 2008-04-29  Bruno Haible  <bruno@clisp.org>
40308
40309         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40310         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40311         * modules/inet_ntop (Depends-on): Add extensions.
40312         * modules/inet_pton (Depends-on): Likewise.
40313         Reported by Simon Josefsson.
40314
40315 2008-04-29  Jim Meyering  <meyering@redhat.com>
40316
40317         When the is more than one match in a block, match all of them.
40318         * build-aux/useless-if-before-free: Iterate through each block
40319         until there are no more matches.
40320
40321         Fix broken useless-if-before-free script.
40322         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40323         the expression to match cast of argument to free-like function.
40324
40325 2008-04-29  Eric Blake  <ebb9@byu.net>
40326
40327         Use new header.
40328         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40329
40330 2008-04-29  Jim Meyering  <meyering@redhat.com>
40331
40332         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40333         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40334         by gnulib to exist and to declare e.g., inet_ntop.
40335         Don't include "inet_ntop.h", now removed.
40336
40337         * m4/arpa_inet_h.m4: Remove trailing blanks.
40338
40339 2008-04-29  Eric Blake  <ebb9@byu.net>
40340
40341         Silence valgrind on safe reads beyond potential array bounds.
40342         * lib/rawmemchr.valgrind: New file.
40343         * lib/strchrnul.valgrind: Likewise.
40344         * modules/rawmemchr (Files): Distribute new file.
40345         * modules/strchrnul (Files): Likewise.
40346         Suggested by Bruno Haible.
40347
40348 2008-04-29  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40351         (inet_ntop, inet_pton): Change portability warning's wording.
40352         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40353         Invoke gl_CHECK_NEXT_HEADERS.
40354         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40355         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40356         set ARPA_INET_H.
40357         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40358         * modules/arpa_inet (Description): No longer only for systems that
40359         lack it.
40360         (Depends-on): Add include_next.
40361         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40362         HAVE_ARPA_INET_H.
40363
40364 2008-04-29  Jim Meyering  <meyering@redhat.com>
40365
40366         * modules/mkdir (License): Re-license as LGPLv2+.
40367
40368 2008-04-29  Bruno Haible  <bruno@clisp.org>
40369
40370         * modules/rawmemchr (Maintainer): Set to Eric.
40371         * modules/strchrnul (Maintainer): Likewise.
40372
40373 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40374
40375         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40376         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40377
40378         * modules/arpa_inet (arpa/inet.h): Use them.
40379
40380 2008-04-28  Eric Blake  <ebb9@byu.net>
40381
40382         Test getndelim2.
40383         * modules/getndelim2-tests: New file.
40384         * tests/test-getndelim2.c: Likewise.
40385         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40386         stream.
40387         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40388
40389         * MODULES.html.sh: Document new module.
40390
40391 2008-04-20  Bruno Haible  <bruno@clisp.org>
40392
40393         * lib/c-stack.c (die): Use raise.
40394         * modules/c-stack (Depends-on): Add raise.
40395
40396 2008-04-28  Bruno Haible  <bruno@clisp.org>
40397
40398         Expect rpmatch to be declared.
40399         * lib/yesno.c (rpmatch): Remove declaration.
40400
40401         Declare rpmatch.
40402         * lib/stdlib.in.h (rpmatch): New declaration.
40403         * lib/rpmatch.c: Include <stdlib.h> first.
40404         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40405         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40407         HAVE_RPMATCH.
40408         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40409         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40410         (Include): Set to <stdlib.h>.
40411         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40412         HAVE_RPMATCH.
40413         * NEWS: Document the change.
40414
40415 2008-04-28  Bruno Haible  <bruno@clisp.org>
40416
40417         Change rpmatch to use nl_langinfo when appropriate.
40418         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40419         (N_): New macro.
40420         (localized_pattern): New function/macro.
40421         (try): Remove match, nomatch arguments. Copy the pattern into safe
40422         memory before caching it.
40423         (rpmatch): Use localized_pattern. Add translator comments.
40424         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40425         Suggested by Eric Blake.
40426         * modules/rpmatch (Depends-on): Add stdbool.
40427
40428 2008-04-28  Eric Blake  <ebb9@byu.net>
40429
40430         Add rawmemchr module, matching glibc.
40431         * modules/string (Makefile.am): New indicator.
40432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40433         * lib/string.in.h (rawmemchr): Declare when appropriate.
40434         * modules/rawmemchr: New file.
40435         * m4/rawmemchr.m4: Likewise.
40436         * lib/rawmemchr.c: Likewise.
40437         * modules/rawmemchr-tests: Likewise.
40438         * tests/test-rawmemchr.c: Likewise.
40439         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40440         module.
40441         * modules/strchrnul (Depends-on): Add rawmemchr.
40442         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40443
40444         Whitespace cleanup.
40445         * tests/test-strchrnul.c: Reindent.
40446         * lib/strchrnul.c: Likewise.
40447
40448         Optimize and test strchrnul.
40449         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40450         * modules/strchrnul-tests: New file.
40451         * tests/test-strchrnul.c: Likewise.
40452
40453         Remove intprops dependency.
40454         * modules/memchr (Depends-on): Remove intprops.
40455         * modules/memrchr (Depends-on): Likewise.
40456         * modules/memchr2 (Depends-on): Likewise.
40457         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40458         * lib/memrchr.c (__memrchr): Likewise.
40459         * lib/memrchr2.c (memchr2): Likewise.
40460         Reported by Simon Josefsson.
40461
40462 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40463
40464         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40465         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40466
40467 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40468
40469         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40470
40471         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40472
40473         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40474
40475         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40476         declarations.
40477         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40478
40479         * m4/inet_pton.m4: Don't check for header files.
40480
40481         * m4/inet_ntop.m4: Don't check for header files.
40482
40483 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40484
40485         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40486         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40487         trigger for cygwin).
40488         Reported by Bruno Haible  <bruno@clisp.org>.
40489
40490 2008-04-28  Bruno Haible  <bruno@clisp.org>
40491
40492         * doc/posix-functions/strdup.texi: Mention mingw problem.
40493
40494 2008-04-27  Bruno Haible  <bruno@clisp.org>
40495
40496         * modules/stat-time-tests (Depends-on): Add sleep.
40497         * tests/test-stat-time.c (force_unlink): New function.
40498         (cleanup): Use it.
40499         (test_mtime): Remove the ctime related tests.
40500         (test_ctime): New function, containing the ctime related tests.
40501         (main): Call test_ctime, except on native Windows platforms.
40502
40503 2008-04-27  Bruno Haible  <bruno@clisp.org>
40504
40505         * lib/rpmatch.c (rpmatch): Add some comments.
40506         Reported by James Youngman <jay@gnu.org>.
40507
40508 2008-04-27  Bruno Haible  <bruno@clisp.org>
40509
40510         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40511         quiet NaNs.
40512
40513 2008-04-27  Bruno Haible  <bruno@clisp.org>
40514
40515         Make test-yesno.sh work on mingw.
40516         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40517         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40518         (main): Set stdin to binary mode.
40519         * modules/yesno-tests (Depends-on): Add binary-io.
40520
40521 2008-04-27  Bruno Haible  <bruno@clisp.org>
40522
40523         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40524         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40525         argument that lie outside the IEEE 854 domain.
40526         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40527         (gl_ISFINITE): Use it.
40528         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40529
40530 2008-04-27  Bruno Haible  <bruno@clisp.org>
40531
40532         Allow local renaming in config.h.
40533         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40534
40535 2008-04-27  Bruno Haible  <bruno@clisp.org>
40536
40537         * lib/memchr.c (__memchr): Change type of 'i'.
40538         * lib/memchr2.c (memchr2): Likewise.
40539
40540 2008-04-26  Eric Blake  <ebb9@byu.net>
40541         and Bruno Haible  <bruno@clisp.org>
40542
40543         Optimize and test memrchr.
40544         * modules/memrchr (Depends-on): Add intprops.
40545         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40546         * modules/memrchr-tests: New file.
40547         * tests/test-memrchr.c: New file.
40548
40549 2008-04-26  Bruno Haible  <bruno@clisp.org>
40550
40551         Add tentative support for DragonFly BSD.
40552         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40553         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40554         fp.
40555         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40556         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40557         * lib/fpurge.c (fpurge): Likewise.
40558         * lib/freadable.c (freaadable): Likewise.
40559         * lib/freadahead.c (freadahead): Likewise.
40560         * lib/freading.c (freading): Likewise.
40561         * lib/freadptr.c (freadptr): Likewise.
40562         * lib/freadseek.c (freadptrinc): Likewise.
40563         * lib/fseeko.c (fseeko): Likewise.
40564         * lib/fseterr.c (fseterr): Likewise.
40565         * lib/fwritable.c (fwritable): Likewise.
40566         * lib/fwriting.c (fwriting): Likewise.
40567
40568 2008-04-26  Bruno Haible  <bruno@clisp.org>
40569
40570         * lib/stdio-impl.h: New file.
40571         * lib/fbufmode.c: Include stdio-impl.h.
40572         (fbufmode): Use fp_, remove redundant #defines.
40573         * lib/fflush.c: Include stdio-impl.h.
40574         (clear_ungetc_buffer): Remove redundant #defines.
40575         * lib/fpurge.c: Include stdio-impl.h.
40576         (fpurge): Remove redundant #defines.
40577         * lib/freadable.c: Include stdio-impl.h.
40578         (freadable): Remove redundant #defines.
40579         * lib/freadahead.c: Include stdio-impl.h.
40580         (freadahead): Remove redundant #defines.
40581         * lib/freading.c: Include stdio-impl.h.
40582         (freading): Remove redundant #defines.
40583         * lib/freadptr.c: Include stdio-impl.h.
40584         (freadptr): Remove redundant #defines.
40585         * lib/freadseek.c: Include stdio-impl.h.
40586         (freadptrinc): Remove redundant #defines.
40587         * lib/fseeko.c: Include stdio-impl.h.
40588         (rpl_fseeko): Remove redundant #defines.
40589         * lib/fseterr.c: Include stdio-impl.h.
40590         (fseterr): Remove redundant #defines.
40591         * lib/fwritable.c: Include stdio-impl.h.
40592         (fwritable: Remove redundant #defines.
40593         * lib/fwriting.c: Include stdio-impl.h.
40594         (fwriting): Remove redundant #defines.
40595         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40596         * modules/fflush (Files): Likewise.
40597         * modules/fpurge (Files): Likewise.
40598         * modules/freadable (Files): Likewise.
40599         * modules/freadahead (Files): Likewise.
40600         * modules/freading (Files): Likewise.
40601         * modules/freadptr (Files): Likewise.
40602         * modules/freadseek (Files): Likewise.
40603         * modules/fseeko (Files): Likewise.
40604         * modules/fseterr (Files): Likewise.
40605         * modules/fwritable (Files): Likewise.
40606         * modules/fwriting (Files): Likewise.
40607
40608 2008-04-26  Bruno Haible  <bruno@clisp.org>
40609
40610         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40611         restore_seek_optimization, update_fpos_cache): New functions, extracted
40612         from rpl_fflush.
40613         (rpl_fflush): Use them.
40614         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40615         (gl_REPLACE_FFLUSH): Use it.
40616
40617 2008-04-26  Bruno Haible  <bruno@clisp.org>
40618
40619         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40620         on Solaris.
40621         * tests/test-xstrtoimax.sh: Likewise.
40622         * tests/test-xstrtoumax.sh: Likewise.
40623         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40624
40625 2008-04-26  Bruno Haible  <bruno@clisp.org>
40626
40627         * modules/memchr-tests: New file.
40628         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40629
40630 2008-04-26  Eric Blake  <ebb9@byu.net>
40631             Bruno Haible  <bruno@clisp.org>
40632
40633         * lib/memchr.c: Include intprops.h.
40634         (__memchr): Optimize parallel detection of matching bytes. Rename local
40635         variables. Add explanatory comments.
40636
40637 2008-04-26  Bruno Haible  <bruno@clisp.org>
40638
40639         Fix module 'memchr', broken since 2000-10-28.
40640         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40641
40642 2008-04-26  Bruno Haible  <bruno@clisp.org>
40643
40644         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40645         comments.
40646
40647 2008-04-25  Eric Blake  <ebb9@byu.net>
40648
40649         Use native fstatat on cygwin 1.7.0.
40650         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40651         first.
40652
40653 2008-04-23  Eric Blake  <ebb9@byu.net>
40654
40655         Improve memchr2 performance.
40656         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40657         NUL bytes.
40658         * modules/memchr2 (Depends-on): Use intprops.h.
40659
40660 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40661
40662         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40663         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40664         <blp@cs.stanford.edu>.
40665
40666 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40667
40668         * lib/arpa_inet.in.h: New file.
40669
40670         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40671         (Makefile.am): Sed in substitute header file.
40672
40673         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40674         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40675
40676         * modules/inet_ntop (configure.ac): Use
40677         gl_ARPA_INET_MODULE_INDICATOR.
40678
40679         * modules/inet_pton (configure.ac): Use
40680         gl_ARPA_INET_MODULE_INDICATOR.
40681
40682 2008-04-22  Jim Meyering  <meyering@redhat.com>
40683
40684         * modules/verify (License): Re-license as LGPLv2+.
40685
40686 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40687
40688         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40689         parameter to void* as per POSIX standard (MinGW uses char*).
40690
40691 2008-04-21  Bruno Haible  <bruno@clisp.org>
40692
40693         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40694         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40695         Define to replacements if REPLACE_ISWCNTRL is 1.
40696         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40697         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40698         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40699         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40700         what it fixes.
40701         * doc/posix-functions/iswalpha.texi: Likewise.
40702         * doc/posix-functions/iswblank.texi: Likewise.
40703         * doc/posix-functions/iswcntrl.texi: Likewise.
40704         * doc/posix-functions/iswdigit.texi: Likewise.
40705         * doc/posix-functions/iswgraph.texi: Likewise.
40706         * doc/posix-functions/iswlower.texi: Likewise.
40707         * doc/posix-functions/iswprint.texi: Likewise.
40708         * doc/posix-functions/iswpunct.texi: Likewise.
40709         * doc/posix-functions/iswspace.texi: Likewise.
40710         * doc/posix-functions/iswupper.texi: Likewise.
40711         * doc/posix-functions/iswxdigit.texi: Likewise.
40712         Reported by Alain Guibert.
40713
40714 2008-04-21  Bruno Haible  <bruno@clisp.org>
40715
40716         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40717         Patch by Alain Guibert.
40718
40719 2008-04-21  Bruno Haible  <bruno@clisp.org>
40720
40721         Fix test failures on mingw.
40722         * tests/test-xstrtol.c (print_no_progname): New function.
40723         (main): Install it in error_print_progname hook.
40724         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40725         * tests/test-xstrtoimax.sh: Likewise.
40726         * tests/test-xstrtoumax.sh: Likewise.
40727
40728 2008-04-21  Bruno Haible  <bruno@clisp.org>
40729
40730         Fix test failure on mingw.
40731         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40732
40733 2008-04-21  Bruno Haible  <bruno@clisp.org>
40734
40735         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40736         Actually assign a value.
40737
40738 2008-04-20  Bruno Haible  <bruno@clisp.org>
40739
40740         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40741         take 2.
40742         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40743         'canonicalize-lgpl' module is also used.
40744         * lib/canonicalize-lgpl.c: Undo last change.
40745         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40746
40747 2008-04-20  Bruno Haible  <bruno@clisp.org>
40748
40749         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40750         config.h. Provide _mkdir based fallback for mingw.
40751         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40752         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40753         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40754         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40755         rather than defining mkdir in config.h.
40756         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40757         (gl_SYS_STAT_H_DEFAULTS): New macro.
40758         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40759         HAVE_IO_H any more.
40760         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40761         HAVE_DECL_MKDIR and HAVE_IO_H.
40762
40763 2008-04-20  Bruno Haible  <bruno@clisp.org>
40764
40765         * lib/isapipe.c: Port to native Windows platforms.
40766
40767 2008-04-20  Bruno Haible  <bruno@clisp.org>
40768
40769         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40770
40771 2008-04-21  Eric Blake  <ebb9@byu.net>
40772
40773         Work around preprocessors that don't handle UINTMAX_MAX.
40774         * lib/memchr2.c (memchr2): Avoid embedded #if.
40775         Reported by Alain Guibert, fix suggested by Bruno Haible.
40776
40777 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40778
40779         * doc/posix-functions/strftime.texi (strftime): Explain better
40780         Windows incompatibility.  Suggested by Micah Cowan
40781         <micah@cowan.name>.
40782
40783 2008-04-20  Bruno Haible  <bruno@clisp.org>
40784
40785         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40786         unistr/u8-mblen.
40787
40788 2008-04-20  Bruno Haible  <bruno@clisp.org>
40789
40790         Fix test failure on platforms with non-GNU iconv.
40791         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40792         (U_TO_U8): Use it, rather than u16_to_u8.
40793         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40794         units at the end of the input string.
40795         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40796
40797 2008-04-20  Bruno Haible  <bruno@clisp.org>
40798
40799         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40800         when the resulting length is 0.
40801         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40802
40803 2008-04-20  Bruno Haible  <bruno@clisp.org>
40804
40805         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40806         works.
40807         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40808
40809 2008-04-20  Bruno Haible  <bruno@clisp.org>
40810
40811         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40812         * modules/tsearch-tests (configure.ac): Test for initstate function.
40813
40814 2008-04-20  Bruno Haible  <bruno@clisp.org>
40815
40816         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40817         for nlink_t if missing.
40818         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40819
40820 2008-04-19  Bruno Haible  <bruno@clisp.org>
40821
40822         Work around snprintf bug on Linux libc5.
40823         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40825         gl_SNPRINTF_SIZE1.
40826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40827         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40828         that test failed.
40829         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40830         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40831         * modules/snprintf (Files): Add m4/printf.m4.
40832         * modules/vsnprintf (Files): Likewise.
40833         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40834         * doc/posix-functions/vsnprintf.texi: Likewise.
40835
40836 2008-04-19  Bruno Haible  <bruno@clisp.org>
40837
40838         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40839         from 0.0058 to less than 10^-7.
40840
40841 2008-04-19  Bruno Haible  <bruno@clisp.org>
40842
40843         Fix rounding when a precision is given.
40844         * lib/vasnprintf.c (is_borderline): New function.
40845         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40846         9...9x.
40847         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40848         %e, %g.
40849         * tests/test-vasprintf-posix.c (test_function): Likewise.
40850         * tests/test-snprintf-posix.h (test_function): Likewise.
40851         * tests/test-sprintf-posix.h (test_function): Likewise.
40852         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40853         * tests/test-printf-posix.h (test_function): Likewise.
40854         * tests/test-printf-posix.output: Update.
40855         Reported by John Darrington <john@darrington.wattle.id.au> via
40856         Ben Pfaff <blp@cs.stanford.edu>.
40857
40858 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40859
40860         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40861         Suggested by Bruno Haible <bruno@clisp.org>.
40862
40863 2008-04-17  Bruno Haible  <bruno@clisp.org>
40864
40865         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40866         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40867         implementation.
40868         Patch by Bruce Merry <bmerry@gmail.com>.
40869
40870 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40871
40872         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40873         doesn't work under Windows.
40874
40875 2008-04-16  Bruno Haible  <bruno@clisp.org>
40876
40877         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40878         New macros.
40879         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40880         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40881         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40882         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40883         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40884         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40885         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40886         macros.
40887         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40888         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40889         Northern Sotho, Uighur.
40890
40891 2008-04-16  Bruno Haible  <bruno@clisp.org>
40892
40893         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40894         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40895         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40896         Reported by Daniel Bergström <daniel@octocode.com>.
40897
40898 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40899             Bruno Haible  <bruno@clisp.org>
40900
40901         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40902         function.
40903         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40904         New functions, mostly extracted from gl_locale_name_default.
40905         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40906
40907 2008-04-16  Eric Blake  <ebb9@byu.net>
40908
40909         Adjust strtod detection to catch glibc 2.7 bug.
40910         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40911         Reported by John Gatewood Ham.
40912
40913 2008-04-16  Bruno Haible  <bruno@clisp.org>
40914
40915         Add tentative support for Linux libc5.
40916         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40917         * lib/fpurge.c (fpurge): Likewise.
40918         * lib/freadable.c (freadable): Likewise.
40919         * lib/freadahead.c (freadahead): Likewise.
40920         * lib/freading.c (freading): Likewise.
40921         * lib/freadptr.c (freadptr): Likewise.
40922         * lib/freadseek.c (freadptrinc): Likewise.
40923         * lib/fseeko.c (rpl_fseeko): Likewise.
40924         * lib/fseterr.c (fseterr): Likewise.
40925         * lib/fwritable.c (fwritable): Likewise.
40926         * lib/fwriting.c (fwriting): Likewise.
40927         Reported by Alain Guibert <alguibert+bts@free.fr>.
40928
40929 2008-04-15  Bruno Haible  <bruno@clisp.org>
40930
40931         * modules/mathl (configure.ac): Define module indicator.
40932
40933 2008-04-15  Bruno Haible  <bruno@clisp.org>
40934
40935         * lib/logl.c (logl): Remove unused variables.
40936
40937 2008-04-15  Bruno Haible  <bruno@clisp.org>
40938
40939         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40940         fails.
40941
40942 2008-04-15  Bruno Haible  <bruno@clisp.org>
40943
40944         * lib/trim.c (trim2): Fix argument of isspace() macro.
40945
40946 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40947
40948         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40949         to 0.
40950         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40951
40952 2008-04-14  Bruno Haible  <bruno@clisp.org>
40953
40954         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40955         AC_LANG_PROGRAM argument.
40956         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40957         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40959         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40960         * m4/math_h.m4 (gl_MATH_H): Likewise.
40961         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40962         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40963         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40964         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40965         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40966         * m4/regex.m4 (gl_REGEX): Likewise.
40967         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40968         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40970         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40971         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40972         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40973         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40974         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40975
40976 2008-04-14  Jim Meyering  <meyering@redhat.com>
40977
40978         test-strtod: fix typos: s/abs/fabs/
40979         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40980
40981 2008-04-13  Bruno Haible  <bruno@clisp.org>
40982
40983         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40984         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40985         module is also used and while not building the reloc-wrapper.
40986
40987 2008-04-13  Bruno Haible  <bruno@clisp.org>
40988
40989         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40990
40991 2008-04-13  Bruno Haible  <bruno@clisp.org>
40992
40993         Fix AIX compilation failure introduced on 2008-04-02.
40994         * tests/test-frexp.c (exp): Undefine before redefining.
40995         * tests/test-frexpl.c (exp): Likewise.
40996
40997 2008-04-13  Bruno Haible  <bruno@clisp.org>
40998
40999         Work around a HP-UX stdio bug.
41000         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41001         * tests/test-ftello.c (main): Likewise.
41002         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41003         * doc/posix-functions/ftello.texi: Likewise.
41004
41005 2008-04-13  Bruno Haible  <bruno@clisp.org>
41006
41007         Make test-signbit pass on HP-UX/hppa.
41008         * tests/test-signbit.c (minus_zerol): New variable.
41009         (test_signbitl): Use it.
41010
41011 2008-04-13  Bruno Haible  <bruno@clisp.org>
41012
41013         Make truncl work on OSF/1 4.0.
41014         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41015         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41016         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41018         HAVE_DECL_TRUNCL.
41019         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41020         HAVE_DECL_TRUNCL.
41021         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41022
41023 2008-04-13  Bruno Haible  <bruno@clisp.org>
41024
41025         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41026
41027 2008-04-13  Bruno Haible  <bruno@clisp.org>
41028
41029         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41030         expression, so as to avoid HP-UX 11 cc compiler bug.
41031
41032 2008-04-13  Bruno Haible  <bruno@clisp.org>
41033
41034         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41035
41036 2008-04-13  Bruno Haible  <bruno@clisp.org>
41037
41038         * lib/git-merge-changelog.c: Remove empty declaration outside of
41039         functions.
41040
41041 2008-04-13  Bruno Haible  <bruno@clisp.org>
41042
41043         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41044
41045 2008-04-13  Bruno Haible  <bruno@clisp.org>
41046
41047         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41048         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41049         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41050         also if it exists but lacks definitions of the SHUT_* macros.
41051         * modules/sys_socket (Description): Update.
41052         Reported by Elbert Pol <e.pol@chello.nl>.
41053
41054 2008-04-13  Bruno Haible  <bruno@clisp.org>
41055
41056         * lib/localcharset.c (OS2): Don't redefine if already defined.
41057         Reported by Elbert Pol <e.pol@chello.nl>.
41058
41059 2008-04-13  Bruno Haible  <bruno@clisp.org>
41060
41061         * lib/binary-io.h [__EMX__]: Include <io.h>.
41062         Reported by Elbert Pol <e.pol@chello.nl>.
41063
41064 2008-04-12  Bruno Haible  <bruno@clisp.org>
41065
41066         * lib/fpucw.h: Enable the definitions also for x86_64.
41067         Needed for NetBSD/x86_64.
41068         Reported by Thomas Klausner <tk@giga.or.at>.
41069
41070 2008-04-12  Bruno Haible  <bruno@clisp.org>
41071
41072         * tests/test-strtod.c: Include isnand.h.
41073         (main): Use isnand instead of isnan.
41074         Reported by Jim Meyering.
41075
41076 2008-04-12  Bruno Haible  <bruno@clisp.org>
41077
41078         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41079         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41080
41081 2008-04-12  Jim Meyering  <meyering@redhat.com>
41082
41083         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41084
41085 2008-04-12  Bruno Haible  <bruno@clisp.org>
41086
41087         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41088         Reported by Elbert Pol <e.pol@chello.nl>.
41089
41090 2008-04-12  Eric Blake  <ebb9@byu.net>
41091
41092         Work around Solaris 10 math.h bug.
41093         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41094         (gl_MATH_H_DEFAULTS): Set up default.
41095         * modules/math (Makefile.am): Replace new indicators.
41096         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41097         * tests/test-math.c (main): Test this.
41098         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41099         * doc/posix-headers/math.texi (math.h): Mention bug.
41100         Reported by Nelson H. F. Beebe and Jim Meyering.
41101
41102 2008-04-11  Bruno Haible  <bruno@clisp.org>
41103
41104         Adapt to future versions of Apple GCC.
41105         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41106         Reported by Peter O'Gorman <peter@pogma.com>.
41107
41108 2008-04-11  Bruno Haible  <bruno@clisp.org>
41109
41110         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41111
41112 2008-04-11  Bruno Haible  <bruno@clisp.org>
41113
41114         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41115
41116         * modules/getaddrinfo-tests (Makefile.am): Define
41117         test_getaddrinfo_LDADD.
41118
41119 2008-04-11  Bruno Haible  <bruno@clisp.org>
41120
41121         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41122         (init): Fix syntax error.
41123         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41124         is declared.
41125
41126 2008-04-11  Bruno Haible  <bruno@clisp.org>
41127
41128         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41129         * modules/glob (Depends-on): Add stdbool.
41130
41131 2008-04-11  Bruno Haible  <bruno@clisp.org>
41132
41133         * lib/trim.c: Include <string.h>.
41134
41135 2008-04-11  Eric Blake  <ebb9@byu.net>
41136
41137         Avoid compile failure on OS/2.
41138         * lib/regex_internal.h (internal_function): Disable optimization
41139         on OS/2 (__EMX__), where it caused compiler error.
41140         Reported by Elbert Pol.
41141
41142 2008-04-11  Bruno Haible  <bruno@clisp.org>
41143
41144         Flush the standard error stream before aborting. Needed on mingw.
41145         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41146         * tests/test-array_list.c (ASSERT): Likewise.
41147         * tests/test-array_oset.c (ASSERT): Likewise.
41148         * tests/test-avltree_list.c (ASSERT): Likewise.
41149         * tests/test-avltree_oset.c (ASSERT): Likewise.
41150         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41151         * tests/test-binary-io.c (ASSERT): Likewise.
41152         * tests/test-byteswap.c (ASSERT): Likewise.
41153         * tests/test-c-ctype.c (ASSERT): Likewise.
41154         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41155         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41156         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41157         * tests/test-c-strstr.c (ASSERT): Likewise.
41158         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41159         * tests/test-canonicalize.c (ASSERT): Likewise.
41160         * tests/test-carray_list.c (ASSERT): Likewise.
41161         * tests/test-ceilf1.c (ASSERT): Likewise.
41162         * tests/test-ceilf2.c (ASSERT): Likewise.
41163         * tests/test-ceill.c (ASSERT): Likewise.
41164         * tests/test-count-one-bits.c (ASSERT): Likewise.
41165         * tests/test-fbufmode.c (ASSERT): Likewise.
41166         * tests/test-fflush2.c (ASSERT): Likewise.
41167         * tests/test-floorf1.c (ASSERT): Likewise.
41168         * tests/test-floorf2.c (ASSERT): Likewise.
41169         * tests/test-floorl.c (ASSERT): Likewise.
41170         * tests/test-fopen.c (ASSERT): Likewise.
41171         * tests/test-fpending.c (ASSERT): Likewise.
41172         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41173         * tests/test-fpurge.c (ASSERT): Likewise.
41174         * tests/test-freadable.c (ASSERT): Likewise.
41175         * tests/test-freadahead.c (ASSERT): Likewise.
41176         * tests/test-freading.c (ASSERT): Likewise.
41177         * tests/test-freadptr.c (ASSERT): Likewise.
41178         * tests/test-freadptr2.c (ASSERT): Likewise.
41179         * tests/test-freadseek.c (ASSERT): Likewise.
41180         * tests/test-freopen.c (ASSERT): Likewise.
41181         * tests/test-frexp.c (ASSERT): Likewise.
41182         * tests/test-frexpl.c (ASSERT): Likewise.
41183         * tests/test-fseek.c (ASSERT): Likewise.
41184         * tests/test-fseeko.c (ASSERT): Likewise.
41185         * tests/test-fstrcmp.c (ASSERT): Likewise.
41186         * tests/test-ftell.c (ASSERT): Likewise.
41187         * tests/test-ftello.c (ASSERT): Likewise.
41188         * tests/test-func.c (ASSERT): Likewise.
41189         * tests/test-fwritable.c (ASSERT): Likewise.
41190         * tests/test-fwriting.c (ASSERT): Likewise.
41191         * tests/test-getdelim.c (ASSERT): Likewise.
41192         * tests/test-getline.c (ASSERT): Likewise.
41193         * tests/test-i-ring.c (ASSERT): Likewise.
41194         * tests/test-iconv-utf.c (ASSERT): Likewise.
41195         * tests/test-iconv.c (ASSERT): Likewise.
41196         * tests/test-isfinite.c (ASSERT): Likewise.
41197         * tests/test-isnand.c (ASSERT): Likewise.
41198         * tests/test-isnanf.c (ASSERT): Likewise.
41199         * tests/test-isnanl.h (ASSERT): Likewise.
41200         * tests/test-ldexpl.c (ASSERT): Likewise.
41201         * tests/test-linked_list.c (ASSERT): Likewise.
41202         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41203         * tests/test-localename.c (ASSERT): Likewise.
41204         * tests/test-lseek.c (ASSERT): Likewise.
41205         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41206         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41207         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41208         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41209         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41210         * tests/test-mbschr.c (ASSERT): Likewise.
41211         * tests/test-mbscspn.c (ASSERT): Likewise.
41212         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41213         * tests/test-mbspbrk.c (ASSERT): Likewise.
41214         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41215         * tests/test-mbsrchr.c (ASSERT): Likewise.
41216         * tests/test-mbsspn.c (ASSERT): Likewise.
41217         * tests/test-mbsstr1.c (ASSERT): Likewise.
41218         * tests/test-mbsstr2.c (ASSERT): Likewise.
41219         * tests/test-mbsstr3.c (ASSERT): Likewise.
41220         * tests/test-memchr2.c (ASSERT): Likewise.
41221         * tests/test-memmem.c (ASSERT): Likewise.
41222         * tests/test-open.c (ASSERT): Likewise.
41223         * tests/test-printf-frexp.c (ASSERT): Likewise.
41224         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41225         * tests/test-printf-posix.c (ASSERT): Likewise.
41226         * tests/test-quotearg.c (ASSERT): Likewise.
41227         * tests/test-rbtree_list.c (ASSERT): Likewise.
41228         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41229         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41230         * tests/test-round1.c (ASSERT): Likewise.
41231         * tests/test-roundf1.c (ASSERT): Likewise.
41232         * tests/test-roundl.c (ASSERT): Likewise.
41233         * tests/test-signbit.c (ASSERT): Likewise.
41234         * tests/test-sleep.c (ASSERT): Likewise.
41235         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41236         * tests/test-snprintf.c (ASSERT): Likewise.
41237         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41238         * tests/test-stat-time.c (ASSERT): Likewise.
41239         * tests/test-strcasestr.c (ASSERT): Likewise.
41240         * tests/test-strerror.c (ASSERT): Likewise.
41241         * tests/test-striconv.c (ASSERT): Likewise.
41242         * tests/test-striconveh.c (ASSERT): Likewise.
41243         * tests/test-striconveha.c (ASSERT): Likewise.
41244         * tests/test-strsignal.c (ASSERT): Likewise.
41245         * tests/test-strstr.c (ASSERT): Likewise.
41246         * tests/test-strtod.c (ASSERT): Likewise.
41247         * tests/test-trunc1.c (ASSERT): Likewise.
41248         * tests/test-trunc2.c (ASSERT): Likewise.
41249         * tests/test-truncf1.c (ASSERT): Likewise.
41250         * tests/test-truncf2.c (ASSERT): Likewise.
41251         * tests/test-truncl.c (ASSERT): Likewise.
41252         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41253         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41254         * tests/test-vasnprintf.c (ASSERT): Likewise.
41255         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41256         * tests/test-vasprintf.c (ASSERT): Likewise.
41257         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41258         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41259         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41260         * tests/test-vsnprintf.c (ASSERT): Likewise.
41261         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41262         * tests/test-wcwidth.c (ASSERT): Likewise.
41263         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41264         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41265         * tests/test-xvasprintf.c (ASSERT): Likewise.
41266         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41267         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41268         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41269         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41270         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41271         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41272         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41273         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41274         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41275         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41276         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41277         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41278         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41279         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41280         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41281         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41282         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41283         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41284         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41285         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41286         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41287         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41288         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41289         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41290         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41291         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41292         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41293         * tests/unictype/test-combining.c (ASSERT): Likewise.
41294         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41295         * tests/unictype/test-digit.c (ASSERT): Likewise.
41296         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41297         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41298         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41299         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41300         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41301         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41302         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41303         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41304         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41305         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41306         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41307         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41308         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41309         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41310         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41311         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41312         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41313         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41314         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41315         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41316         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41317         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41318         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41319         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41320         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41321         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41322         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41323         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41324         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41325         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41326         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41327         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41328         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41329         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41330         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41331         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41332         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41333         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41334         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41335         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41336         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41337         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41338         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41339         Reported by Eric Blake.
41340
41341 2008-04-11  Bruno Haible  <bruno@clisp.org>
41342
41343         * lib/wchar.in.h: Tweak comment.
41344
41345 2008-04-11  Bruno Haible  <bruno@clisp.org>
41346
41347         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41348         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41349         gl_COMMON.
41350         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41351
41352 2008-04-11  Bruno Haible  <bruno@clisp.org>
41353
41354         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41355
41356 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41357
41358         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41359         of attempting to use non-existing /dev/*random.  Based on patch
41360         from Adam Strzelecki <ono@java.pl> in
41361         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41362
41363 2008-04-08  Bruno Haible  <bruno@clisp.org>
41364
41365         Add tentative support for emx+gcc.
41366         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41367         * lib/fpurge.c (fpurge): Likewise.
41368         * lib/freadable.c (freadable): Likewise.
41369         * lib/freadahead.c (freadahead): Likewise.
41370         * lib/freading.c (freading): Likewise.
41371         * lib/freadptr.c (freadptr): Likewise.
41372         * lib/freadseek.c (freadptrinc): Likewise.
41373         * lib/fseeko.c (rpl_fseeko): Likewise.
41374         * lib/fseterr.c (fseterr): Likewise.
41375         * lib/fwritable.c (fwritable): Likewise.
41376         * lib/fwriting.c (fwriting): Likewise.
41377         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41378
41379 2008-04-09  Eric Blake  <ebb9@byu.net>
41380
41381         Avoid some autoconf warnings.
41382         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41383         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41384         * m4/afs.m4 (gl_AFS): Likewise.
41385         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41386         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41387         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41388         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41389         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41390         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41391         (AC_CHECK_DECLS_ONCE): Likewise.
41392         Rename file...
41393         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41394         gnulib-tool requires autoconf 2.59 or better.
41395         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41396
41397 2008-04-08  Eric Blake  <ebb9@byu.net>
41398
41399         Use 'git describe --match' if present (added in git 1.5.5).
41400         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41401         if possible.
41402
41403 2008-04-08  Bruno Haible  <bruno@clisp.org>
41404
41405         Add tentative support for OpenServer.
41406         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41407         _ptr, _cnt.
41408         * lib/fpurge.c (fpurge): Likewise.
41409         * lib/freadable.c (freadable): Likewise.
41410         * lib/freadahead.c (freadahead): Likewise.
41411         * lib/freading.c (freading): Likewise.
41412         * lib/freadptr.c (freadptr): Likewise.
41413         * lib/freadseek.c (freadptrinc): Likewise.
41414         * lib/fseeko.c (rpl_fseeko): Likewise.
41415         * lib/fseterr.c (fseterr): Likewise.
41416         * lib/fwritable.c (fwritable): Likewise.
41417         * lib/fwriting.c (fwriting): Likewise.
41418         Reported by Roger Cornelius <rac@tenzing.org> and
41419         Brian K. White <brian@aljex.com>.
41420
41421 2008-04-06  Jim Meyering  <meyering@redhat.com>
41422
41423         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41424
41425 2008-04-06  Bruno Haible  <bruno@clisp.org>
41426
41427         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41428         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41429         * tests/test-printf-posix.sh: Likewise.
41430         * tests/test-vfprintf-posix.sh: Likewise.
41431         * tests/test-vprintf-posix.sh: Likewise.
41432         * tests/test-xprintf-posix.sh: Likewise.
41433
41434 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41435
41436         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41437         hide error from 'ls', needed on OS/2.
41438         Report by Elbert Pol <elbert.pol@gmail.com>.
41439
41440 2008-04-04  Eric Blake  <ebb9@byu.net>
41441
41442         Make test-fseeko.c failures meaningful.
41443         * tests/test-fseeko.c: Print line number on failure.
41444         * tests/test-fseek.c: Likewise.
41445         Reported by Nelson H. F. Beebe.
41446
41447         Improve strtod bug detection check.
41448         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41449         required for Solaris 10.
41450         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41451
41452 2008-04-04  Bruno Haible  <bruno@clisp.org>
41453
41454         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41455         by m4/setenv.m4.
41456
41457 2008-04-03  Eric Blake  <ebb9@byu.net>
41458
41459         Ensure sane .version contents.
41460         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41461         version string.
41462         * build-aux/git-version-gen: Improve documentation.
41463
41464         Make GNU make output nicer.
41465         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41466         MAKECMDGOALS to enforce message for all command line targets.  Set
41467         srcdir for use in maint.mk.
41468
41469         Another maintainer tweak.
41470         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41471         a target that regenerates version.
41472
41473 2008-04-03  Jim Meyering  <meyering@redhat.com>
41474
41475         vc-list-files: don't cause coreutils "make po-check" failure
41476         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41477
41478 2008-04-03  Eric Blake  <ebb9@byu.net>
41479
41480         Allow VPATH usage of vc-list-files.
41481         * build-aux/vc-list-files (scriptversion): Add timestamp.
41482         (options): Add --help, --version, -C.
41483         (CVS): Support installed cvsu.
41484
41485 2008-04-02  Bruno Haible  <bruno@clisp.org>
41486
41487         Avoid some "statement with no effect" warnings from gcc.
41488         * tests/test-wctype.c (main): Explicitly ignore unused values.
41489         Reported by Jim Meyering.
41490
41491 2008-04-02  Jim Meyering  <meyering@redhat.com>
41492
41493         Avoid some warnings from "gcc -Wshadow".
41494         * tests/test-frexp.c (exp): Define to a different identifier.
41495         * tests/test-frexpl.c (exp): Likewise.
41496
41497 2008-04-03  Jim Meyering  <meyering@redhat.com>
41498
41499         bootstrap: remove dangling *.[ch] symlinks from lib
41500         * build-aux/bootstrap [dangling symlink removal]: Move find's
41501         -depth option to precede all others, to avoid a warning.
41502         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41503
41504 2008-04-02  Bruno Haible  <bruno@clisp.org>
41505
41506         Avoid some warnings from "gcc -Wshadow".
41507         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41508         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41509         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41510         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41511         Reported by Jim Meyering.
41512
41513 2008-04-01  Bruno Haible  <bruno@clisp.org>
41514
41515         Fix test to work on IRIX 6.5 with cc.
41516         * tests/test-math.c (numeric_equal): New function.
41517         (main): Use it.
41518
41519 2008-04-01  Bruno Haible  <bruno@clisp.org>
41520
41521         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41522
41523 2008-04-01  Bruno Haible  <bruno@clisp.org>
41524
41525         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41526         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41527         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41528         (Depends-on): Remove math.
41529
41530         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41531         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41532         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41533         (Depends-on): Remove math.
41534
41535         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41536         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41537         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41538         (Depends-on): Remove math.
41539         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41540         (Depends-on): Remove math.
41541
41542         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41543         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41544         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41545         (Depends-on): Remove math.
41546         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41547         (Depends-on): Remove math.
41548
41549         * tests/test-round1.c: Include nan.h.
41550         (main): Use NaNd instead of NAN.
41551         * modules/round-tests (Files): Add tests/nan.h.
41552
41553         * tests/test-trunc1.c: Include nan.h.
41554         (main): Use NaNd instead of NAN.
41555         * modules/trunc-tests (Files): Add tests/nan.h.
41556
41557         * tests/test-roundf1.c: Include nan.h.
41558         (main): Use NaNf instead of NAN.
41559         * modules/roundf-tests (Files): Add tests/nan.h.
41560
41561         * tests/test-truncf1.c: Include nan.h.
41562         (main): Use NaNf instead of NAN.
41563         * modules/truncf-tests (Files): Add tests/nan.h.
41564
41565         * tests/test-ceilf1.c: Include nan.h.
41566         (main): Use NaNf instead of NAN.
41567         * modules/ceilf-tests (Files): Add tests/nan.h.
41568
41569         * tests/test-floorf1.c: Include nan.h.
41570         (main): Use NaNf instead of NAN.
41571         * modules/floorf-tests (Files): Add tests/nan.h.
41572
41573         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41574         (main): Use NaNf instead of NAN.
41575         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41576
41577         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41578         (main): Use NaNd instead of NAN.
41579         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41580
41581         * tests/test-frexp.c: Include nan.h.
41582         (main): Use NaNd instead of NAN.
41583         * modules/frexp-tests (Files): Add tests/nan.h.
41584
41585         * lib/isnan.c: Don't include <math.h>.
41586         (FUNC): Don't use NAN macro.
41587         * modules/isnand-nolibm (Depends-on): Remove math.
41588         * modules/isnanf-nolibm (Depends-on): Remove math.
41589         * modules/isnanl (Depends-on): Remove math.
41590         * modules/isnanl-nolibm (Depends-on): Remove math.
41591
41592         * tests/nan.h: New file.
41593
41594 2008-04-01  Eric Blake  <ebb9@byu.net>
41595
41596         Fix typos.
41597         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41598         values to be the right type.
41599
41600         For now, cater to gnulib strtod inaccuracies.
41601         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41602         fractional results.  While not as nice from a QoI perspective, it
41603         is a quicker patch than correctly implementing decimal to binary
41604         rounding.
41605
41606 2008-03-31  Eric Blake  <ebb9@byu.net>
41607
41608         Guarantee a definition of NAN.
41609         * lib/math.in.h (NAN): Define if missing.
41610         * tests/test-math.c (main): Test it.
41611         * doc/posix-headers/math.texi (math.h): Document this.
41612         * lib/isnan.c (rpl_isnand): Use it.
41613         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41614         * tests/test-floorf1.c (NaN): Likewise.
41615         * tests/test-frexp.c (NaN): Likewise.
41616         * tests/test-isnand.c (NaN): Likewise.
41617         * tests/test-isnanf.c (NaN): Likewise.
41618         * tests/test-round1.c (NaN): Likewise.
41619         * tests/test-roundf1.c (NaN): Likewise.
41620         * tests/test-snprintf-posix.h (NaN): Likewise.
41621         * tests/test-sprintf-posix.h (NaN): Likewise.
41622         * tests/test-trunc1.c (NaN): Likewise.
41623         * tests/test-truncf1.c (NaN): Likewise.
41624         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41625         * tests/test-vasprintf-posix.c (NaN): Likewise.
41626         * modules/isnand-nolibm (Depends-on): Add math.
41627         * modules/isnanf-nolibm (Depends-on): Likewise.
41628         * modules/isnanl (Depends-on): Likewise.
41629         * modules/isnanl-nolibm (Depends-on): Likewise.
41630         * modules/snprintf-posix-tests (Depends-on): Likewise.
41631         * modules/sprintf-posix-tests (Depends-on): Likewise.
41632         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41633         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41634         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41635         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41636
41637 2008-03-31  Bruno Haible  <bruno@clisp.org>
41638
41639         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41640         * doc/posix-functions/strtod.texi: Likewise.
41641
41642 2008-03-31  Bruno Haible  <bruno@clisp.org>
41643
41644         * tests/test-strtod.c (main): Don't use C99 syntax.
41645
41646 2008-03-31  Bruno Haible  <bruno@clisp.org>
41647
41648         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41649         Reported by Eric Blake.
41650
41651 2008-03-31  Jim Meyering  <meyering@redhat.com>
41652
41653         Don't compare actual signbit return values.
41654         * tests/test-strtod.c (main): Rather, compare only their
41655         zero/non-zero nature.
41656
41657 2008-03-31  Eric Blake  <ebb9@byu.net>
41658
41659         More strtod documentation.
41660         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41661         failures as distinct bugs.
41662
41663 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41664
41665         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41666         Problem reported by Erik Benada in
41667         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41668
41669 2008-03-30  Bruno Haible  <bruno@clisp.org>
41670
41671         * tests/test-strtod.c: Add comments about which assertion fails on which
41672         platform.
41673         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41674
41675 2008-03-30  Eric Blake  <ebb9@byu.net>
41676
41677         Test signbit behavior on zeros.
41678         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41679         (test_signbitd, test_signbitl): Likewise.
41680
41681         More strtod touchups.
41682         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41683         sign of negative underflow, for now.  Use .5, not .1.
41684         * doc/posix-functions/strtod.texi (strtod): Mention these
41685         limitations.
41686         Reported by Jim Meyering.
41687
41688 2008-03-30  Bruno Haible  <bruno@clisp.org>
41689
41690         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41691         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41692
41693 2008-03-30  Bruno Haible  <bruno@clisp.org>
41694
41695         Avoid failure when attempting to return empty iconv results on some
41696         platforms.
41697         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41698         allocation, don't report ENOMEM when the resulting string is empty.
41699
41700 2008-03-30  Bruno Haible  <bruno@clisp.org>
41701
41702         Fix buffer overrun.
41703         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41704         Don't consider the width for tmp_length. Check count against tmp_length
41705         before doing the padding. Ensure enough allocation during padding.
41706
41707 2008-03-30  Eric Blake  <ebb9@byu.net>
41708
41709         strtod touchups.
41710         * lib/strtod.c (strtod): Avoid compiler warnings.
41711         Reported by Jim Meyering.
41712
41713 2008-03-30  Bruno Haible  <bruno@clisp.org>
41714
41715         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41716         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41717         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41718         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41719         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41720         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41721         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41722         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41723
41724         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41725         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41726         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41727         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41728         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41729         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41730         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41731         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41732
41733         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41734         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41735         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41736         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41737         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41738         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41739         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41740         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41741
41742         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41743         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41744
41745         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41746         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41747
41748         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41749         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41750
41751         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41753         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41754
41755         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41756         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41757         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41758
41759         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41760         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41761         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41762
41763         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41765         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41766
41767         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41768         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41770         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41771         (Depends-on): Add EOVERFLOW.
41772         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41773         (Depends-on): Add EOVERFLOW.
41774         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41775         (Depends-on): Add EOVERFLOW.
41776         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41777         (Depends-on): Add EOVERFLOW.
41778         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41779         (Depends-on): Add EOVERFLOW.
41780         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41781         (Depends-on): Add EOVERFLOW.
41782         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41783         (Depends-on): Add EOVERFLOW.
41784         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41785         (Depends-on): Add EOVERFLOW.
41786
41787         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41788         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41789         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41790
41791         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41792         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41793         * modules/snprintf (Depends-on): Add EOVERFLOW.
41794
41795         * lib/poll.c (EOVERFLOW): Remove fallback.
41796         * modules/poll (Depends-on): Add EOVERFLOW.
41797
41798         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41799         * modules/getugroups (Depends-on): Add EOVERFLOW.
41800
41801         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41802         * modules/getdelim (Depends-on): Add EOVERFLOW.
41803
41804         * lib/ftell.c (EOVERFLOW): Remove fallback.
41805         * modules/ftell (Depends-on): Add EOVERFLOW.
41806
41807         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41808         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41809         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41810
41811         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41812
41813         * modules/EOVERFLOW-tests: New file.
41814         * tests/test-EOVERFLOW.c: New file.
41815
41816         * modules/EOVERFLOW: New file.
41817         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41818
41819 2008-03-30  Bruno Haible  <bruno@clisp.org>
41820
41821         Fix bug introduced on 2007-06-10.
41822         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41823         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41824
41825 2008-03-30  Bruno Haible  <bruno@clisp.org>
41826
41827         Improve freadseek's efficiency after ungetc.
41828         * lib/freadseek.c: Include freadahead.h.
41829         (freadptrinc): New function, extracted from freadseek.
41830         (freadseek): Use it in a loop. Use freadahead to determine the number
41831         of loop iterations.
41832         * modules/freadseek (Depends-on): Add freadahead.
41833         (configure.ac): Require AC_C_INLINE.
41834
41835 2008-03-30  Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/freadseek.c (freadseek): Don't ignore the return value of
41838         freadptr.
41839
41840 2008-03-29  Eric Blake  <ebb9@byu.net>
41841
41842         Add hex float support.
41843         * modules/strtod (Depends-on): Add c-ctype.
41844         (Link): Mention POW_LIB.
41845         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41846         whitespace between 'e' and exponent.
41847         * tests/test-strtod.c (main): Enable hex float tests.
41848         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41849         now provides.
41850
41851         Document various strtod bugs, with some fixes.
41852         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41853         "-0x", "inf", "nan", and hex constants.
41854         * doc/posix-functions/atof.texi (atof): Likewise.
41855         * modules/stdlib (Makefile.am): Support strtod.
41856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41857         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41858         detect additional strtod bugs.
41859         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41860         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41861         bool where appropriate.  Parse 'inf' and 'nan'.
41862         * tests/test-strtod.c: New file.
41863         * modules/strtod (Depends-on): Add stdbool, stdlib.
41864         (configure.ac): Turn on module indicator.
41865         * modules/strtod-tests: New module.
41866
41867 2008-03-29  Eric Blake  <ebb9@byu.net>
41868
41869         Fix ftell on mingw.
41870         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41871         * modules/ftell-tests (Depends-on): Add binary-io.
41872         * modules/ftello-tests (Depends-on): Likewise.
41873         * tests/test-ftell.c (main): Enhance test to cover behavior after
41874         ungetc.  Enforce binary mode.
41875         * tests/test-ftello.c (main): Likewise.
41876
41877         Pass test-freadseek on cygwin.
41878         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41879         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41880         ungetc buffer.
41881
41882         * tests/test-fflush2.c (main): Fix typo.
41883
41884 2008-03-29  Bruno Haible  <bruno@clisp.org>
41885
41886         * tests/test-fflush2.c (main): Temporarily disable the contents of
41887         this test.
41888         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41889         Reported by Eric Blake.
41890
41891 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41892
41893         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41894         (GC_SHA224_DIGEST_SIZE): Add.
41895
41896         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41897         (gc_hash_digest_length): Likewise.
41898         (gc_hash_buffer): Likewise.
41899
41900 2008-03-25  Bruno Haible  <bruno@clisp.org>
41901
41902         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41903         detail which gettext release to use.
41904         Reported by Simon Josefsson.
41905
41906 2008-03-26  Jim Meyering  <meyering@redhat.com>
41907
41908         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41909         * modules/gnumakefile (clean-GNUmakefile): Also, use
41910         test ... && ... || : syntax rather than if-then ... fi.
41911
41912         gnumakefile: Don't double-quote-expand $(VPATH) value.
41913         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41914
41915 2008-03-24  Eric Blake  <ebb9@byu.net>
41916
41917         Alter GNUmakefile to install into top directory.
41918         * modules/maintainer-makefile: Split, and add dependency...
41919         * modules/gnumakefile: to this new module.
41920         * build-aux/GNUmakefile: Move...
41921         * top/GNUmakefile: ...here.
41922         * build-aux/maint.mk: Move...
41923         * top/maint.mk: ...here.
41924         * MODULES.html.sh (Support for maintaining...): Document new
41925         module.
41926
41927 2008-03-23  Bruno Haible  <bruno@clisp.org>
41928
41929         * gnulib-tool: New options --vc-files, --no-vc-files.
41930         (func_usage): Document them.
41931         (vc_files): New variable.
41932         (func_import): Consider vc_files.
41933         (func_create_testdir): Set vc_files to empty.
41934         Suggested by Jim Meyering and Karl Berry.
41935
41936 2008-03-23  Bruno Haible  <bruno@clisp.org>
41937
41938         Fix regex compilation error on HP-UX 11.
41939         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41940         * modules/regex (Files): Add m4/mbstate_t.m4.
41941         Reported by Ton Voon <ton.voon@altinity.com>.
41942
41943 2008-03-23  Bruno Haible  <bruno@clisp.org>
41944
41945         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41946
41947 2008-03-23  Eric Blake  <ebb9@byu.net>
41948             Bruno Haible  <bruno@clisp.org>
41949
41950         Install files from top/ in the destination directory.
41951         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41952         augmentation also for the files from top/.
41953         (func_import, func_create_testdir): Rewrite file names:
41954         top/filename -> filename.
41955
41956 2008-03-23  Bruno Haible  <bruno@clisp.org>
41957
41958         Tweak "gnulib --version" output.
41959         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41960
41961 2008-03-23  Bruno Haible  <bruno@clisp.org>
41962
41963         Tweak "gnulib --version" output.
41964         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41965         rather than contents of ChangeLog, when possible.
41966
41967 2008-03-21  Eric Blake  <ebb9@byu.net>
41968
41969         More --version tweaks.
41970         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41971         date of last ChangeLog entry.
41972
41973 2008-03-21  Jim Meyering  <meyering@redhat.com>
41974
41975         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41976
41977 2008-03-20  Eric Blake  <ebb9@byu.net>
41978
41979         VPATH fix.
41980         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41981
41982 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41983
41984         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41985         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41986
41987 2008-03-20  Eric Blake  <ebb9@byu.net>
41988
41989         Sync GNUmakefile with coreutils.
41990         * build-aux/GNUmakefile (have-Makefile): Rename...
41991         (_have-Makefile): ...to this, for namespace consideration.
41992         (GNUmakefile.cfg): Include, if present.
41993         (_autoreconf): Define a default.
41994         (_is-dist-target): New rule for rebuilds to pick up intra-release
41995         version.
41996         (maint-cfg.mk): Rename...
41997         (cfg.mk): ...to this.
41998
41999 2008-03-18  Jim Meyering  <meyering@redhat.com>
42000
42001         New script and module: mktempd
42002         * MODULES.html.sh (maint+release support): Add mktempd.
42003         * build-aux/mktempd: New file.
42004         * modules/mktempd: New file.
42005
42006 2008-03-15  Jim Meyering  <meyering@redhat.com>
42007
42008         Undo last change.
42009         * lib/sha1.c, lib/md5.c: 63 != ~63.
42010         Reported by Andreas Schwab.
42011
42012         sha1.c, md5.c: Hoist a redundant expression.
42013         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42014         "ctx->buflen" only once, before calling *_process_block.
42015         * lib/md5.c (md5_process_bytes): Likewise.
42016
42017 2008-03-14  Eric Blake  <ebb9@byu.net>
42018
42019         Bump copyright year in files generated by gnulib-tool.
42020         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42021         gnulib-tool, rather than hard-coding it.
42022
42023         Fix 'gnulib-tool --version' output to work with git.
42024         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42025         (startup): ...here.
42026         (func_version): Use it to invoke git-version-gen, rather than
42027         relying on CVS keyword expansion.  Modernize wording.
42028         (cvsdatestamp, last_checkin_date, version): Kill unused
42029         variables.
42030
42031 2008-03-12  Jim Meyering  <meyering@redhat.com>
42032
42033         Recognize optional cast of the argument to free.
42034         * build-aux/useless-if-before-free: Update regexps.
42035
42036         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42037
42038 2008-03-11  Bruno Haible  <bruno@clisp.org>
42039
42040         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42041         by a single package.
42042         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42043         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42044         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42045         Reported by Sam Steingold <sds@gnu.org>.
42046
42047 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42048
42049         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42050         repositories.
42051
42052 2008-03-11  Bruno Haible  <bruno@clisp.org>
42053
42054         Avoid conflicts between local macro definitions.
42055         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42056         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42057
42058 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42059             Bruno Haible  <bruno@clisp.org>
42060
42061         Make va_copy work with some version of xlc on AIX 5.1.
42062         * lib/stdarg.in.h: New file.
42063         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42064         On AIX, use a <stdarg.h> file substitute.
42065         * modules/stdarg (Files): Add lib/stdarg.in.h.
42066         (Depends-on): Add include_next.
42067         (Makefile.am): Build a stdarg.h substitute if requested.
42068         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42069
42070 2008-03-10  Bruno Haible  <bruno@clisp.org>
42071
42072         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42073         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42074         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42075
42076 2008-03-10  Bruno Haible  <bruno@clisp.org>
42077
42078         * modules/stdlib (Depends-on): Add include_next, remove
42079         absolute-header.
42080
42081 2008-03-09  Bruno Haible  <bruno@clisp.org>
42082
42083         * lib/freadahead.h (freadahead): Document more precisely.
42084         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42085         the sum of both buffer sizes.
42086         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42087         * NEWS: Document the change.
42088
42089 2008-03-09  Bruno Haible  <bruno@clisp.org>
42090
42091         Extend freadptr to return also the buffer size.
42092         * lib/freadptr.h (freadptr): Add sizep argument.
42093         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42094         (freadptr): Add sizep argument. Determine buffer size like freadahead
42095         does.
42096         * tests/test-freadptr.c: Don't include freadahead.h.
42097         (main): Adapt for new calling convention of freadptr.
42098         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42099         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42100         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42101         tests/test-freadptr2.sh.
42102         (Depends): Remove freadahead.
42103         (TESTS): Add test-freadptr2.sh.
42104         (check_PROGRAMS): Add test-freadptr2.
42105
42106 2008-03-09  Bruno Haible  <bruno@clisp.org>
42107
42108         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42109         Report and solution by Simon Josefsson.
42110
42111 2008-03-06  Bruno Haible  <bruno@clisp.org>
42112
42113         Make fflush after ungetc work on BSD platforms.
42114         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42115         * tests/test-fflush2.c: New file.
42116         * tests/test-fflush2.sh: New file.
42117         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42118         tests/test-fflush2.c.
42119         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42120         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42121
42122 2008-03-06  Eric Blake  <ebb9@byu.net>
42123
42124         Likewise for ftello.
42125         * modules/ftello (Dependencies): Add extensions.
42126         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42127
42128 2008-03-06  Bruno Haible  <bruno@clisp.org>
42129
42130         * modules/fseeko (Dependencies): Add extensions.
42131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42132         Needed on glibc systems.
42133
42134 2008-03-06  Bruno Haible  <bruno@clisp.org>
42135
42136         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42137         email address.
42138         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42139
42140 2008-03-06  Bruno Haible  <bruno@clisp.org>
42141
42142         * users.txt: Add libgnupdf.
42143
42144 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42145
42146         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42147         (Header File Substitutes, Function Substitutes,
42148         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42149         (Build robot for gnulib): Fix typo.
42150
42151 2008-03-06  Bruno Haible  <bruno@clisp.org>
42152
42153         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42154         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42155
42156 2008-03-06  Bruno Haible  <bruno@clisp.org>
42157
42158         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42159         * doc/gnulib.texi: Include it.
42160
42161 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42162
42163         * modules/func (License): Change license to unlimited; there was
42164         no LGPL parts in the module anyway.
42165
42166 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42167
42168         * modules/__func__: Renamed to modules/func.
42169         * modules/__func__-tests: Renamed to modules/func-tests.
42170         * tests/test-__func__.c: Renamed to tests/test-func.c.
42171         * m4/__func__.m4: Renamed to m4/func.m4.
42172         * doc/gnulib.texi (__func__): Section renamed to func.
42173         Suggested by Eric Blake <ebb9@byu.net>.
42174
42175 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42176
42177         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42178         about __func__.  Make example self-contained.  Suggested by Eric
42179         Blake <ebb9@byu.net>.
42180
42181         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42182         Suggested by Eric Blake <ebb9@byu.net>.
42183
42184 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42185
42186         * modules/__func__: New file.
42187         * modules/__func__-tests: New file.
42188         * tests/test-__func__.c: New file.
42189         * m4/__func__.m4: New file.
42190         * doc/gnulib.texi (__func__): Document __func__ module.
42191
42192 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42193
42194         * modules/byteswap (License): Re-license as LGPLv2+.
42195
42196 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42197
42198         * doc/Makefile: Add pdf target.
42199
42200 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42201
42202         * modules/inline (License): Use 'unlimited', since there are only
42203         *.m4 files in this module.
42204
42205 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42206             Bruno Haible  <bruno@clisp.org>
42207
42208         Add support for HP C 7.1 on OpenVMS 8.3.
42209         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42210
42211 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42212
42213         Update VMS specifics.
42214         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42215
42216 2008-03-02  Jim Meyering  <meyering@redhat.com>
42217
42218         Remove the last dependency on the "free" module.
42219         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42220         Reported by Bob Proulx.
42221
42222         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42223
42224         Remove useless "if" tests before free.  Deprecate "free" module.
42225         * doc/posix-functions/free.texi: Mention that this
42226         module is no longer useful.
42227         * modules/free (Notice): Say this module is obsolete.
42228         * modules/readutmp (Depends-on): Remove free.
42229         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42230         * lib/putenv.c (putenv): Likewise.
42231         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42232         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42233         * tests/test-c-strcasestr.c (main): Likewise.
42234         * tests/test-c-strstr.c (main): Likewise.
42235         * tests/test-mbscasestr1.c (main): Likewise.
42236         * tests/test-mbscasestr2.c (main): Likewise.
42237         * tests/test-mbsstr1.c (main): Likewise.
42238         * tests/test-mbsstr2.c (main): Likewise.
42239         * tests/test-memmem.c (main): Likewise.
42240         * tests/test-strcasestr.c (main): Likewise.
42241         * tests/test-striconv.c (main): Likewise.
42242         * tests/test-striconveh.c (main): Likewise.
42243         * tests/test-striconveha.c (main): Likewise.
42244         * tests/test-strstr.c (main): Likewise.
42245
42246         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42247
42248         bootstrap: sync from coreutils again
42249         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42250
42251 2008-03-01  Jim Meyering  <meyering@redhat.com>
42252
42253         bootstrap: sync from coreutils
42254         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42255         also when the target doesn't exist.
42256
42257 2008-03-01  Eric Blake  <ebb9@byu.net>
42258
42259         Fix bugs in last patch.
42260         * lib/memchr2.c (memchr2): Fix typo.
42261         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42262         extension.
42263         Reported by Bruce Korb.
42264
42265         New module 'memchr2'.
42266         * modules/memchr2: New file.
42267         * modules/memchr2-tests: Likewise.
42268         * lib/memchr2.h: Likewise.
42269         * lib/memchr2.c: Likewise, based on memchr.c.
42270         * tests/test-memchr2.c: New test.
42271         * MODULES.html.sh (String handling): Add memchr2.
42272
42273 2008-02-29  Bruno Haible  <bruno@clisp.org>
42274
42275         * modules/freadseek-tests: New file.
42276         * tests/test-freadseek.sh: New file.
42277         * tests/test-freadseek.c: New file.
42278
42279         New module 'freadseek'.
42280         * modules/freadseek: New file.
42281         * lib/freadseek.h: New file.
42282         * lib/freadseek.c: New file.
42283         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42284
42285 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42286
42287         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42288         wydawca.
42289
42290         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42291         program_invocation_name and program_invocation_short_name are
42292         present.
42293
42294 2008-02-28  Bruno Haible  <bruno@clisp.org>
42295
42296         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42297         * tests/test-freadptr.sh: Also test non-seekable stdin.
42298
42299 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42300
42301         * build-aux/bootstrap (source_base, m4_base)
42302         (doc_base, tests_base): New variables.
42303         (gnulib_tool_options): Do not hardcode base directories, use
42304         the above variables instead.
42305
42306 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42307
42308         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42309
42310 2008-02-28  Bruno Haible  <bruno@clisp.org>
42311
42312         * modules/freadptr-tests: New file.
42313         * tests/test-freadptr.sh: New file.
42314         * tests/test-freadptr.c: New file.
42315
42316         New module 'freadptr'.
42317         * modules/freadptr: New file.
42318         * lib/freadptr.h: New file.
42319         * lib/freadptr.c: New file.
42320         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42321
42322 2008-02-26  Karl Berry  <karl@freefriends.org>
42323
42324         Sync from Libtool:
42325         * libltdl/argz.c (argz_add, argz_count): New functions.
42326         * libltdl/argz.in.h: Declare them.
42327         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42328
42329 2008-02-22  Bruno Haible  <bruno@clisp.org>
42330
42331         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42332         is a pointer type.  Needed for HP-UX 10.
42333         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42334         * doc/posix-functions/gmtime_r.texi: Likewise.
42335         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42336
42337 2008-02-24  Bruno Haible  <bruno@clisp.org>
42338
42339         * modules/environ-tests: New file.
42340         * tests/test-environ.c: New file.
42341
42342         New module 'environ'.
42343         * modules/environ: New file.
42344         * lib/unistd.in.h (environ): New declaration.
42345         * m4/environ.m4: New file.
42346         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42347         after use.
42348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42349         HAVE_DECL_ENVIRON.
42350         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42351         HAVE_DECL_ENVIRON.
42352         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42353         wrong claim that 'environ' is missing on some systems.
42354         * modules/execute (Depends-on): Add environ.
42355         * lib/execute.c (environ): Remove fallback declaration.
42356         * modules/pipe (Depends-on): Add environ.
42357         * lib/pipe.c (environ): Remove fallback declaration.
42358         * modules/setenv (Depends-on): Add environ.
42359         * lib/setenv.c (environ): Remove fallback declaration.
42360         * modules/unsetenv (Depends-on): Add environ.
42361         * lib/unsetenv.c (environ): Remove fallback declaration.
42362         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42363         m4/environ.m4.
42364         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42365         (gl_PREREQ_UNSETENV): Likewise.
42366
42367 2008-02-24  Bruno Haible  <bruno@clisp.org>
42368
42369         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42370
42371 2008-02-20  Bob Proulx  <bob@proulx.com>
42372
42373         Enable use of older two part flavor 'git describe'.
42374         * build-aux/git-version-gen: If using the older two part flavor of
42375         git version then recreate the third part now present in the
42376         newer three part flavor of git describe.
42377
42378 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42379
42380         * lib/fts.c (fts_build): Typo correction to comment.
42381
42382 2008-02-17  Bruno Haible  <bruno@clisp.org>
42383
42384         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42385         generating no-op conflicts.
42386
42387 2008-02-17  Bruno Haible  <bruno@clisp.org>
42388
42389         Speed up by 10%.
42390         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42391         result_entries, rather than an index-based loop.
42392
42393 2008-02-17  Bruno Haible  <bruno@clisp.org>
42394
42395         Speed up by 25%.
42396         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42397         'hashcode_cached'.
42398         (entry_create): New function.
42399         (entry_hashcode): Use the cached hashcode if possible.
42400         (read_changelog_file, try_split_merged_entry): Use entry_create.
42401
42402 2008-02-17  Bruno Haible  <bruno@clisp.org>
42403
42404         Speed up from O(n^2) to O(n) for long ChangeLog files.
42405         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42406         (read_changelog_file): Change implementation of entries_reversed list
42407         to rbtreehash.
42408         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42409
42410 2008-02-17  Bruno Haible  <bruno@clisp.org>
42411
42412         New option --split-merged-entry.
42413         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42414         (find_paragraph_end, try_split_merged_entry): New functions.
42415         (long_options): Add option --split-merged-entry.
42416         (usage): Document option --split-merged-entry.
42417         (main): Implement option --split-merged-entry.
42418         Reported by Eric Blake.
42419
42420 2008-02-17  Bruno Haible  <bruno@clisp.org>
42421
42422         * lib/git-merge-changelog.c: Include c-strstr.h.
42423         (main): Support the "git pull --rebase" situation.
42424         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42425         Reported by Eric Blake.
42426
42427 2008-02-16  Eric Blake  <ebb9@byu.net>
42428
42429         Avoid doubling \ in common case of "c-maybe" quoting style.
42430         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42431         eliding outer quotes.
42432         * lib/quotearg.h: Document this.
42433         * tests/test-quotearg.c (result_strings, inputs, results_g)
42434         (flag_results, locale_results): Test it by adding a new string to
42435         each test group.
42436         (compare_strings): Test new string.
42437
42438 2008-02-13  Eric Blake  <ebb9@byu.net>
42439
42440         Avoid trigraph quoting in default output.
42441         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42442         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42443         unless explicitly requested.
42444         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42445
42446 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42447
42448         Don't rely on signed integer overflowing to negative value.
42449         * lib/getugroups.c (getugroups): Include <limits.h>.
42450         Instead, compare against INT_MAX, and increment only if the test passes.
42451
42452 2008-02-13  Jim Meyering  <meyering@redhat.com>
42453         and Eric Blake  <ebb9@byu.net>
42454
42455         Avoid shadowing warning and compile errors on Linux.
42456         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42457         forwarding macros on Linux.
42458         (dcgettext): Define a stub, for Linux.
42459         (results_g, main): Avoid warnings.
42460
42461 2008-02-12  Eric Blake  <ebb9@byu.net>
42462
42463         Silence warning in last patch.
42464         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42465
42466         Quotearg part 4: add tests, fix c-maybe colon quoting.
42467         * lib/quotearg.h: Improve documentation.
42468         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42469         escapes when adding outer quotes.  When quoting trigraphs, use
42470         valid C notation.  When quoting NUL, omit extra characters if next
42471         character is not digit.  Alter prototype.
42472         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42473         callers.
42474         * modules/quotearg-tests: New module.
42475         * tests/test-quotearg.c: New test.
42476
42477 2008-02-07  Eric Blake  <ebb9@byu.net>
42478
42479         Quotearg part 3: add flag to control outer quote elision.
42480         * lib/quotearg.h (c_maybe_quoting_style): New style.
42481         (enum quoting_flags): Better documentation of flags.
42482         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42483         c-maybe style.
42484         (quotearg_buffer_restyled): Handle new flag to elide outer
42485         quotes.
42486
42487         Quotearg part 2: add flag that can control NUL elision.
42488         * lib/quotearg.h (set_quoting_flags): New prototype.
42489         * lib/quotearg.c (struct quoting_options): Add flag field.
42490         (set_quoting_flags): New function.
42491         (quotearg_buffer_restyled): Add flags parameter.
42492         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42493         (quotearg_n_options): Set the flag, since length cannot be
42494         returned.
42495         (quoting_options_from_style): Default flags correctly.
42496
42497         Quotearg part 1: more wrappers, restore quotearg_char state.
42498         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42499         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42500         (quotearg_colon_mem): New wrappers.
42501         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42502         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42503         functions.
42504         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42505         (quotearg_colon_mem): New functions.
42506
42507 2008-02-11  Bruno Haible  <bruno@clisp.org>
42508
42509         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42510         library in the current directory: it does not work with parallel make.
42511         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42512
42513 2008-02-11  Bruno Haible  <bruno@clisp.org>
42514
42515         * .gitattributes: New file.
42516
42517 2008-02-11  Jim Meyering  <meyering@redhat.com>
42518
42519         useless-if-before-free: Fix reversed exit values.
42520         * build-aux/useless-if-before-free: Use correct values
42521         for EXIT_MATCH and EXIT_NO_MATCH.
42522
42523         * build-aux/useless-if-before-free: Close stdout carefully.
42524
42525 2008-02-10  Bruno Haible  <bruno@clisp.org>
42526
42527         New module 'git-merge-changelog'.
42528         * modules/git-merge-changelog: New file.
42529         * lib/git-merge-changelog.c: New file.
42530
42531 2008-02-10  Jim Meyering  <meyering@redhat.com>
42532
42533         useless-if-before-free: New option: --list (-l).
42534
42535         useless-if-before-free: Don't exit immediately upon open failure.
42536         * build-aux/useless-if-before-free: Exit 2 for errors.
42537         Upon failure to open a file, don't exit immediately.
42538         Rather, just warn and continue with any remaining files.
42539
42540 2008-02-10  Bruno Haible  <bruno@clisp.org>
42541
42542         New abstract list operation 'node_set_value'.
42543         * lib/gl_list.h (gl_list_node_set_value): New function.
42544         (struct gl_list_implementation): New field node_set_value.
42545         * lib/gl_list.c (gl_list_node_set_value): New function.
42546         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42547         (gl_array_list_implementation): Update.
42548         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42549         (gl_carray_list_implementation): Update.
42550         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42551         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42552         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42553         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42554         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42555         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42556         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42557         Update.
42558         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42559         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42560         (gl_sublist_list_implementation): Update.
42561
42562 2008-02-10  Bruno Haible  <bruno@clisp.org>
42563
42564         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42565         Needed when ELEMENT is #defined to 'some_type *'.
42566
42567 2008-02-10  Jim Meyering  <meyering@redhat.com>
42568
42569         New script and module: useless-if-before-free
42570         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42571         * build-aux/useless-if-before-free: New file.
42572         * modules/useless-if-before-free: New file.
42573
42574         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42575
42576         xstrtol_error: Fix typo.
42577         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42578         s/exit_failure/exit_status/.
42579
42580 2008-02-09  Jim Meyering  <meyering@redhat.com>
42581
42582         New script and module: gitlog-to-changelog
42583         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42584         * modules/gitlog-to-changelog: New file.
42585         * build-aux/gitlog-to-changelog: New file.
42586
42587 2008-02-08  Jim Meyering  <meyering@redhat.com>
42588
42589         Avoid two "parameter unused" warnings.
42590         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42591         Mark "st" as used.
42592
42593         Use "git COMMAND", not "git-COMMAND".
42594         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42595         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42596         * build-aux/git-version-gen: Use "git status", not "git-status".
42597
42598 2008-02-07  Bruno Haible  <bruno@clisp.org>
42599
42600         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42601         Avoids a crash on Windows Vista.
42602         Reported by Adam Strzelecki <ono@java.pl> via
42603         Simon Josefsson <simon@josefsson.org>.
42604
42605 2008-02-06  Bruno Haible  <bruno@clisp.org>
42606
42607         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42608         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42609         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42611         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42612         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42613         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42614         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42622         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42623         left-adjust flag.
42624         * tests/test-snprintf-posix.h (test_function): Likewise.
42625         * tests/test-sprintf-posix.h (test_function): Likewise.
42626         * tests/test-vasprintf-posix.c (test_function): Likewise.
42627         * doc/posix-functions/fprintf.texi: Update.
42628         * doc/posix-functions/printf.texi: Update.
42629         * doc/posix-functions/snprintf.texi: Update.
42630         * doc/posix-functions/sprintf.texi: Update.
42631         * doc/posix-functions/vfprintf.texi: Update.
42632         * doc/posix-functions/vprintf.texi: Update.
42633         * doc/posix-functions/vsnprintf.texi: Update.
42634         * doc/posix-functions/vsprintf.texi: Update.
42635         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42636
42637 2008-02-06  Bruno Haible  <bruno@clisp.org>
42638
42639         Fix bug introduced on 2008-01-26.
42640         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42641
42642 2008-02-06  Bruno Haible  <bruno@clisp.org>
42643
42644         Fix bug introduced on 2007-06-10.
42645         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42646         !NEED_PRINTF_FLAG_ZERO.
42647
42648 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42649
42650         getloadavg: use libperfstat on AIX5
42651         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42652
42653 2008-02-03  Bruno Haible  <bruno@clisp.org>
42654
42655         * lib/diffseq.h: Add comments about required #includes.
42656         Reported by Michael Biggs <gnulib@doubleplum.net>.
42657
42658 2008-02-01  Bruno Haible  <bruno@clisp.org>
42659
42660         * users.txt: Add gnuit.
42661
42662 2008-01-31  Bruno Haible  <bruno@clisp.org>
42663
42664         * lib/md4.c (set_uint32): Mark as inline.
42665         * lib/md5.c (set_uint32): Likewise.
42666         * lib/sha1.c (set_uint32): Likewise.
42667         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42668         * m4/md5.m4 (gl_MD5): Likewise.
42669         * m4/sha1.m4 (gl_SHA1): Likewise.
42670
42671 2008-01-31  Jim Meyering  <meyering@redhat.com>
42672
42673         Use "sizeof VAR", rather than a literal "4".
42674         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42675         * lib/md4.c (md4_read_ctx): Likewise.
42676         * lib/sha1.c (sha1_read_ctx): Likewise.
42677
42678 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42679
42680         * tests/test-sha1.c: New file, based on test-md5.c.
42681
42682         * modules/crypto/sha1-tests: New file.
42683
42684 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42685
42686         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42687
42688 2008-01-31  Jim Meyering  <meyering@redhat.com>
42689
42690         Prefer "sizeof v" over the equivalent "4".
42691         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42692         * lib/md5.c (set_uint32): Likewise.
42693         * lib/sha1.c (set_uint32): Likewise.
42694
42695 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42696
42697         * lib/sha1.c (set_uint32): Mark function as static.
42698
42699 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42700
42701         md2: clarify comments to say that alignment is not required.
42702         * lib/md2.h: Remove warning about alignment in comment.
42703         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42704         never been required.
42705
42706 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42707
42708         md4: adapt alignment constraint fix from sha1.
42709         * lib/md4.c (set_uint32): New function, from sha1.c
42710         (md4_read_ctx): Use it.
42711         (md4_finish_ctx): Doc fix.
42712         * lib/md4.h: Doc fix.
42713
42714 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42715
42716         md5: adapt alignment constraint fix from sha1.
42717         * lib/md5.c (set_uint32): New function, from sha1.c
42718         (md5_read_ctx): Use it.
42719         (md5_finish_ctx): Doc fix.
42720         * lib/md5.h: Doc fix.
42721
42722 2008-01-30  Peter Palfrader  <weasel@debian.org>
42723
42724         sha1: remove the result buffer alignment constraint
42725         * lib/sha1.c (set_uint32): New function.
42726         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42727         constraint.
42728         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42729         * lib/sha1.h: Likewise.
42730
42731 2008-01-30  Andreas Schwab  <schwab@suse.de>
42732             Bruno Haible  <bruno@clisp.org>
42733
42734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42735         correct definition of LDBL_MIN_EXP.
42736
42737 2008-01-30  Karl Berry  <karl@gnu.org>
42738
42739         * config/srclist-update: try to preserve x bit on updates.
42740         * config/srclistvars.sh: update for karl.
42741
42742 2008-01-29  Jim Meyering  <meyering@redhat.com>
42743
42744         vasnprintf.c: Avoid warning about unused label
42745         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42746         "overflow" label definition and associated code with the
42747         same cpp condition that guards the sole use of that label.
42748
42749 2008-01-26  Bruno Haible  <bruno@clisp.org>
42750
42751         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42752         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42753         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42754         * lib/isnanl-nolibm.h (isnanl): Likewise.
42755         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42756
42757 2008-01-26  Bruno Haible  <bruno@clisp.org>
42758
42759         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42760         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42761
42762 2008-01-26  Bruno Haible  <bruno@clisp.org>
42763
42764         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42765         GCC >= 4.0 built-in.
42766         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42767
42768 2008-01-26  Bruno Haible  <bruno@clisp.org>
42769
42770         Rename isnan, applicable to 'double' only, to isnand.
42771         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42772         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42773         (configure.ac): Update.
42774         (Include): Replace "isnan.h" with "isnand.h".
42775         * m4/isnand.m4: Renamed from m4/isnan.m4.
42776         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42777         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42778         instead of isnan.c.
42779         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42780         instead of HAVE_ISNAN_IN_LIBC.
42781         (isnand): Renamed from isnan.
42782         * lib/isnand.c: New file.
42783         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42784         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42785         (Makefile.am): Update.
42786         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42787         Include isnand.h instead of isnan.h.
42788         (main): Test isnand instead of isnan.
42789         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42790         isnan-nolibm.
42791         * modules/frexp (Depends-on): Likewise.
42792         * modules/frexp-tests (Depends-on): Likewise.
42793         * modules/frexp-nolibm (Depends-on): Likewise.
42794         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42795         * modules/isfinite (Depends-on): Likewise.
42796         * modules/round-tests (Depends-on): Likewise.
42797         * modules/signbit (Depends-on): Likewise.
42798         * modules/signbit-tests (Depends-on): Likewise.
42799         * modules/snprintf-posix (Depends-on): Likewise.
42800         * modules/sprintf-posix (Depends-on): Likewise.
42801         * modules/trunc-tests (Depends-on): Likewise.
42802         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42803         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42804         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42805         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42806         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42807         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42808         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42809         * modules/vasnprintf-posix (Depends-on): Likewise.
42810         * modules/vasprintf-posix (Depends-on): Likewise.
42811         * modules/vfprintf-posix (Depends-on): Likewise.
42812         * modules/vsnprintf-posix (Depends-on): Likewise.
42813         * modules/vsprintf-posix (Depends-on): Likewise.
42814         * lib/frexp.c: Include isnand.h instead of isnan.h.
42815         (ISNAN): Set to isnand instead of isnan.
42816         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42817         (gl_isfinited): Use isnand instead of isnan.
42818         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42819         (gl_signbitd): Use isnand instead of isnan.
42820         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42821         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42822         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42823         (main): Use isnand instead of isnan.
42824         * tests/test-round1.c: Include isnand.h.
42825         (main): Use isnand instead of isnan.
42826         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42827         (ISNAN): Set to isnand instead of isnan.
42828         * tests/test-trunc1.c: Include isnand.h.
42829         (main): Use isnand instead of isnan.
42830         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42831         (equal): Use isnand instead of isnan.
42832         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42833         isnand-nolibm.
42834         * NEWS: Mention the change.
42835
42836 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42837             Bruno Haible  <bruno@clisp.org>
42838
42839         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42840         the GCC builtins for signbits are present and set
42841         REPLACE_SIGNBIT_USING_GCC if so.
42842         * lib/math.in.h (signbit): Define using GCC builtins if
42843         REPLACE_SIGNBIT_USING_GCC is set.
42844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42845         REPLACE_SIGNBIT_USING_GCC.
42846         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42847
42848 2008-01-25  Jim Meyering  <meyering@redhat.com>
42849
42850         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42851         * lib/poll.c: Include <config.h>, not "config.h".
42852         * tests/test-getaddrinfo.c: Likewise.
42853
42854 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42855
42856         * modules/sockets-tests: New file.
42857
42858 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42859
42860         * modules/sockets: New module, can be used to call WSA_Startup and
42861         WSA_Cleanup when needed.
42862
42863         * lib/sockets.h, lib/sockets.c: New files.
42864
42865         * m4/sockets.m4: New file.
42866
42867         * tests/test-sockets.c: New file.
42868
42869 2008-01-19  Bruno Haible  <bruno@clisp.org>
42870
42871         * doc/posix-headers: Renamed from doc/headers.
42872         * doc/posix-functions: Renamed from doc/functions.
42873         * doc/gnulib.texi: Update.
42874
42875 2008-01-19  Bruno Haible  <bruno@clisp.org>
42876
42877         * doc/glibc-functions/strcasestr.texi: Include contents of
42878         doc/functions/strcasestr.texi, fixing the list of platforms.
42879         * doc/functions/strcasestr.texi: Remove file.
42880
42881 2008-01-19  Bruno Haible  <bruno@clisp.org>
42882
42883         * doc/glibc-functions/memmem.texi: Include contents of
42884         doc/functions/memmem.texi.
42885         * doc/functions/memmem.texi: Remove file.
42886
42887 2008-01-18  Bruno Haible  <bruno@clisp.org>
42888
42889         * doc/glibc-functions/*.texi: New files.
42890         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42891         to use the new files.
42892
42893 2008-01-17  Bruno Haible  <bruno@clisp.org>
42894
42895         * tests/test-gethostname.c (main): Fix printf statement.
42896
42897 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42898
42899         * modules/gethostname-tests: New file.
42900
42901         * tests/test-gethostname.c: New file.
42902
42903 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42904
42905         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42906         used by the UNAME case.  Reported by Bruno Haible
42907         <bruno@clisp.org>.
42908
42909 2008-01-17  Eric Blake  <ebb9@byu.net>
42910
42911         Convert c-strcasestr to be more efficient.
42912         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42913         (Depends-on): Add c-strcase, remove malloca, strnlen.
42914         * tests/test-c-strcasestr.c (main): Enhance test.
42915         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42916
42917 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42918
42919         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42920         Use it in creating po/Makevars.
42921
42922 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42923
42924         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42925         Applications that requires it should initialize libgcrypt
42926         manually.
42927
42928 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42929
42930         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42931
42932 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42933
42934         Fix problem with getdate on mingw32 reported by Simon Josefsson
42935         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42936         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42937         tzname", when deciding whether to declare tzname.
42938         * lib/strftime.c (tzname): Likewise.
42939
42940 2008-01-15  Bruno Haible  <bruno@clisp.org>
42941
42942         Work around a MacOS X 10.5 bug in frexpl().
42943         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42944         * doc/functions/frexpl.texi: Document the bug.
42945         Reported by Elias Pipping <pipping@gentoo.org>.
42946
42947 2008-01-14  Eric Blake  <ebb9@byu.net>
42948
42949         Touch up previous patch.
42950         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42951         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42952
42953         Convert strcasestr module to use Two-Way algorithm.
42954         * modules/strcasestr-simple: New module, based on the old
42955         strcasestr, but with Two-Way rather than KMP.
42956         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42957         * lib/string.in.h (rpl_strcasestr): Declare.
42958         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42959         performance.
42960         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42961         * modules/string (Makefile.am): Support strcasestr.
42962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42963         * modules/strcasestr-tests (Depends-on): Check for alarm.
42964         * tests/test-strcasestr.c: Augment test.
42965         * lib/str-two-way.h: Clean up stray macro.
42966         * NEWS: Document new module.
42967         * MODULES.html.sh (string handling): Likewise.
42968         * doc/functions/strcasestr.texi: New file.
42969         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42970         here, since it is not a POSIX function.
42971
42972 2008-01-14  Colin Watson  <cjwatson@debian.org>
42973             Bruno Haible  <bruno@clisp.org>
42974
42975         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42976         works fine; if not, set REPLACE_STRSIGNAL.
42977         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42979         REPLACE_STRSIGNAL.
42980         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42981         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42982         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42983
42984 2008-01-14  Bruno Haible  <bruno@clisp.org>
42985
42986         * modules/strsignal (Include): Change to <string.h>.
42987
42988 2008-01-14  Colin Watson  <cjwatson@debian.org>
42989
42990         * modules/argp (Notice): Add a notice recommending to change
42991         XGETTEXT_OPTIONS.
42992         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42993
42994 2008-01-13  Colin Watson  <cjwatson@debian.org>
42995
42996         * modules/strsignal-tests: New file.
42997         * tests/test-strsignal.c: New file.
42998
42999         * lib/strsignal.c: New file, from glibc with modifications.
43000         * lib/siglist.h: New file, from glibc with modifications.
43001         * lib/string.in.h (strsignal): New declaration.
43002         * m4/strsignal.m4: New file.
43003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43004         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43005         * modules/strsignal: New file.
43006         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43007         HAVE_DECL_STRSIGNAL.
43008
43009 2008-01-13  Bruno Haible  <bruno@clisp.org>
43010
43011         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43012         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43013         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43015
43016 2008-01-13  Bruno Haible  <bruno@clisp.org>
43017
43018         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43019         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43020         * lib/argp.h (__attribute__): Likewise.
43021         * lib/c-stack.c (__attribute__): Likewise.
43022         * lib/error.h (__attribute__): Likewise.
43023         * lib/fts.c (__attribute__): Likewise.
43024         * lib/openat.h (__attribute__): Likewise.
43025         * lib/stdio.in.h (__attribute__): Likewise.
43026         * lib/string.in.h (__attribute__): Likewise.
43027         * lib/utimens.c (__attribute__): Likewise.
43028         * lib/vasnprintf.h (__attribute__): Likewise.
43029         * lib/xalloc.h (__attribute__): Likewise.
43030         * lib/xprintf.h (__attribute__): Likewise.
43031         * lib/xstrtol.h (__attribute__): Likewise.
43032         * lib/xvasprintf.h (__attribute__): Likewise.
43033
43034 2008-01-12  Bruno Haible  <bruno@clisp.org>
43035
43036         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43037         * doc/glibc-headers/a.out.texi: New file.
43038         * doc/glibc-headers/aliases.texi: New file.
43039         * doc/glibc-headers/alloca.texi: New file.
43040         * doc/glibc-headers/ar.texi: New file.
43041         * doc/glibc-headers/argp.texi: New file.
43042         * doc/glibc-headers/argz.texi: New file.
43043         * doc/glibc-headers/byteswap.texi: New file.
43044         * doc/glibc-headers/crypt.texi: New file.
43045         * doc/glibc-headers/endian.texi: New file.
43046         * doc/glibc-headers/envz.texi: New file.
43047         * doc/glibc-headers/err.texi: New file.
43048         * doc/glibc-headers/error.texi: New file.
43049         * doc/glibc-headers/execinfo.texi: New file.
43050         * doc/glibc-headers/fpu_control.texi: New file.
43051         * doc/glibc-headers/fstab.texi: New file.
43052         * doc/glibc-headers/fts.texi: New file.
43053         * doc/glibc-headers/getopt.texi: New file.
43054         * doc/glibc-headers/ieee754.texi: New file.
43055         * doc/glibc-headers/ifaddrs.texi: New file.
43056         * doc/glibc-headers/libintl.texi: New file.
43057         * doc/glibc-headers/mcheck.texi: New file.
43058         * doc/glibc-headers/mntent.texi: New file.
43059         * doc/glibc-headers/obstack.texi: New file.
43060         * doc/glibc-headers/paths.texi: New file.
43061         * doc/glibc-headers/printf.texi: New file.
43062         * doc/glibc-headers/pty.texi: New file.
43063         * doc/glibc-headers/resolv.texi: New file.
43064         * doc/glibc-headers/shadow.texi: New file.
43065         * doc/glibc-headers/sysexits.texi: New file.
43066         * doc/glibc-headers/ttyent.texi: New file.
43067
43068 2008-01-12  Jim Meyering  <meyering@redhat.com>
43069
43070         announce-gen: emit Gnulib's git-based version string.
43071         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43072         New option --gnulib-version=V, where V is expected to be
43073         the output of running git describe in the gnulib directory.
43074         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43075         not useful, and plan to stop publishing an xdelta file with each
43076         coreutils release.
43077
43078         * build-aux/announce-gen: Also check for lzma-compressed files.
43079
43080 2008-01-11  Bruno Haible  <bruno@clisp.org>
43081
43082         * tests/test-memmem.c (main): Increase maximum allowed time.
43083         * tests/test-strstr.c (main): Likewise.
43084
43085 2008-01-11  Bruno Haible  <bruno@clisp.org>
43086
43087         * doc/functions/memmem.texi: Add more precisions about platforms.
43088         * doc/functions/strstr.texi: Likewise.
43089
43090 2008-01-10  Eric Blake  <ebb9@byu.net>
43091
43092         * m4/strstr.m4: Delete cruft from copy-n-paste.
43093         Reported by Bruno Haible.
43094
43095 2008-01-10  Bruno Haible  <bruno@clisp.org>
43096
43097         Make c-strstr rely on strstr.
43098         * lib/c-strstr.c: Don't include str-kmp.h.
43099         (c_strstr): Define in terms of strstr.
43100         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43101         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43102
43103 2008-01-10  Bruno Haible  <bruno@clisp.org>
43104
43105         * doc/gnulib.texi (String Functions in C Locale): New section.
43106         * doc/c-ctype.texi: New file.
43107         * doc/c-strcase.texi: New file.
43108         * doc/c-strcaseeq.texi: New file.
43109         * doc/c-strcasestr.texi: New file.
43110         * doc/c-strstr.texi: New file.
43111         * doc/c-strtod.texi: New file.
43112         * doc/c-strtold.texi: New file.
43113
43114 2008-01-10  Eric Blake  <ebb9@byu.net>
43115
43116         * lib/relocatable.h: Fix a comment.
43117
43118 2008-01-10  Eric Blake  <ebb9@byu.net>
43119
43120         Share two-way algorithm.
43121         * lib/str-two-way.h: New file, merged from...
43122         * lib/memmem.c: ...here...
43123         * lib/strstr.c: ...and here.
43124         * modules/memmem (Files): Use it.
43125         * modules/strstr (Files): Likewise.
43126
43127         Avoid quadratic strstr implementations.
43128         * lib/strstr.c: New file.
43129         * m4/strstr.m4: Likewise.
43130         * modules/strstr: Likewise.
43131         * modules/strstr-tests: Likewise.
43132         * tests/test-strstr.c: Likewise.
43133         * lib/string.in.h (rpl_strstr): Declare.
43134         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43136         * modules/string (Makefile.am): Likewise.
43137         * MODULES.html.sh (string handling): Mention new module.
43138         * doc/functions/strstr.texi (strstr): Document the bug.
43139
43140 2008-01-10  Bruno Haible  <bruno@clisp.org>
43141
43142         * lib/relocatable.h (relocate): State whether result is freshly
43143         allocated or not.
43144         * lib/relocatable.c (relocate): Return a freshly allocated string
43145         instead of a pointer to a privately held string.
43146         Reported by Sylvain Beucler <beuc@gnu.org>.
43147
43148 2008-01-10  Colin Watson  <cjwatson@debian.org>
43149
43150         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43151         s/S_ISNLK/S_ISLNK/.
43152
43153 2008-01-09  Bruno Haible  <bruno@clisp.org>
43154
43155         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43156         and other files.
43157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43158         if it's only a guess.
43159         * modules/memmem: Simplify by depending on memmem-simple.
43160
43161 2008-01-09  Bruno Haible  <bruno@clisp.org>
43162
43163         Work around OpenBSD 4.0 tdelete() bug.
43164         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43165         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43166         macros and don't redefine the enum values.
43167         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43168         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43169         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43170
43171 2008-01-09  Bruno Haible  <bruno@clisp.org>
43172
43173         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43174         (main): Don't perform the tests if setlocale did not install a UTF-8
43175         locale. Needed on OpenBSD 4.0.
43176         * modules/wcwidth-tests (Depends-on): Add localcharset.
43177
43178 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43179
43180         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43181         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43182         * NEWS: announce this.
43183         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43184
43185 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43186         and Eric Blake  <ebb9@byu.net>
43187
43188         Add memmem-simple module.
43189         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43190         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43191         * modules/memmem-simple: New file.
43192         * modules/memmem (Description): Tweak.
43193         * MODULES.html.sh (string handling): Mention new module.
43194         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43195         addressed by memmem-simple.
43196         * NEWS: Document the difference.
43197
43198 2008-01-09  Eric Blake  <ebb9@byu.net>
43199
43200         Give gcc some memmem optimization hints.
43201         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43202         (strcasestr): Declare as pure.
43203         * modules/memmem (Maintainer): Claim my implementation.
43204
43205 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43206
43207         Support AIX 6.1 and higher.
43208         * build-aux/config.libpath: Likewise.
43209         * build-aux/config.rpath: Likewise.
43210
43211 2008-01-08  Jim Meyering  <meyering@redhat.com>
43212             Bruno Haible  <bruno@clisp.org>
43213
43214         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43215         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43216         Reported by Peter Fales in
43217         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43218
43219 2008-01-08  Bruno Haible  <bruno@clisp.org>
43220
43221         * modules/unictype/category-of (Depends-on): Add
43222         unictype/category-none.
43223         * modules/unictype/category-and-tests (Depends-on): Add
43224         unictype/category-{L,N,Lu,Nd}.
43225         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43226         * modules/unictype/category-or-tests (Depends-on): Add
43227         unictype/category-{L,N}.
43228         * modules/unictype/category-name-tests (Depends-on): Add
43229         unictype/category-{Z,Nl}.
43230         Reported by Simon Josefsson.
43231
43232 2008-01-08  Bruno Haible  <bruno@clisp.org>
43233
43234         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43235         convention better.
43236         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43237         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43238         Reported by Peter Miller <millerp@canb.auug.org.au>.
43239
43240 2008-01-08  Eric Blake  <ebb9@byu.net>
43241
43242         Rewrite memmem to guarantee linear complexity without malloc.
43243         * lib/memmem.c (memmem): Use Two-Way rather than
43244         Knuth-Morris-Pratt, to allow O(1) space usage.
43245         (critical_factorization, two_way_short_needle)
43246         (two_way_long_needle): New functions.
43247         (knuth_morris_pratt): Delete.
43248         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43249         Add stdint.
43250         * tests/test-memmem.c (main): Add tests for periodic needle and
43251         sublinear performance.
43252         * doc/functions/memmem.texi (memmem): Document other deficiencies
43253         in cygwin and older glibc.
43254
43255 2008-01-08  Bruno Haible  <bruno@clisp.org>
43256
43257         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43258         augmentation.
43259
43260 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43261
43262         Add a configure time option: --disable-acl.
43263         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43264         AC_ARG_ENABLE(acl).
43265
43266 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43267
43268         * tests/test-localename.c: Don't include obsolete "setenv.h".
43269
43270         * modules/localename-tests (Depends-on): Need unsetenv.
43271
43272 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43273
43274         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43275
43276 2008-01-06  Colin Watson  <cjwatson@debian.org>
43277
43278         * users.txt: Add man-db.
43279
43280 2008-01-07  Bruno Haible  <bruno@clisp.org>
43281
43282         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43283         previous section name.
43284
43285 2008-01-07  Bruno Haible  <bruno@clisp.org>
43286
43287         * lib/progname.c (set_program_name): Don't strip off a leading
43288         "lt-" prefix outside a .libs directory.
43289         Suggested by Paul Eggert.
43290
43291 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43292             Bruno Haible  <bruno@clisp.org>
43293
43294         Improve memory cleanup in 'relocatable' module.
43295         * lib/relocatable.h (compute_curr_prefix): Change return type to
43296         'char *'.
43297         * lib/relocatable.c (compute_curr_prefix): Change return type to
43298         'char *'. Free curr_installdir after use.
43299         (relocate): Free curr_prefix_better after use.
43300         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43301
43302 2008-01-01  Bruno Haible  <bruno@clisp.org>
43303
43304         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43305         failure on older glibc systems.
43306         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43307
43308 2008-01-05  Eric Blake  <ebb9@byu.net>
43309
43310         Avoid quadratic system memmem.
43311         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43312         Reported by Ralf Wildenhues.
43313
43314         Fix memmem test for mingw.
43315         * modules/memmem-tests (configure.ac): Check for alarm.
43316         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43317         it.
43318         * doc/functions/memmem.texi: New file.
43319         * doc/gnulib.texi (Function Substitutes): Add memmem.
43320         Reported by Bruno Haible.
43321
43322 2008-01-04  Bruno Haible  <bruno@clisp.org>
43323
43324         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43325         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43326         gl_HEADER_STRING_H_DEFAULTS.
43327
43328 2008-01-04  Eric Blake  <ebb9@byu.net>
43329
43330         Shorten duration of memmem test.
43331         * tests/test-memmem.c (main): Use alarm to declare failure if test
43332         is taking too long.
43333         Reported by Ralf Wildenhues.
43334
43335 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43336
43337         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43338         string, needed by strerror.
43339
43340 2008-01-03  Colin Watson  <cjwatson@debian.org>
43341             Bruno Haible  <bruno@clisp.org>
43342
43343         * doc/gnulib-tool.texi (Localization): New section.
43344
43345 2008-01-02  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43348         variables to 'unsigned char *' type.
43349         Reported by Paul Eggert.
43350
43351 2008-01-02  Jim Meyering  <jim@meyering.net>
43352
43353         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43354
43355 2007-12-31  Jim Meyering  <jim@meyering.net>
43356
43357         Avoid use of private FTS type name.
43358         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43359
43360 2007-12-30  Karl Berry  <karl@gnu.org>
43361
43362         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43363         work around defect in Texinfo and/or the standalone Info browser.
43364
43365 2007-12-30  Bruno Haible  <bruno@clisp.org>
43366
43367         Unify 5 copies of the KMP code.
43368         * lib/str-kmp.h: New file.
43369         * lib/c-strcasestr.c: Include str-kmp.h.
43370         (knuth_morris_pratt): Remove function.
43371         (c_strcasestr): Update.
43372         * lib/c-strstr.c: Include str-kmp.h.
43373         (knuth_morris_pratt): Remove function.
43374         (c_strcasestr): Update.
43375         * lib/mbscasestr.c: Include str-kmp.h.
43376         (knuth_morris_pratt_unibyte): Remove function.
43377         * lib/mbsstr.c: Include str-kmp.h.
43378         (knuth_morris_pratt_unibyte): Remove function.
43379         * lib/strcasestr.c: Include str-kmp.h.
43380         (knuth_morris_pratt): Remove function.
43381         (strcasestr): Update.
43382         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43383         * modules/c-strstr (Files): Likewise.
43384         * modules/mbscasestr (Files): Likewise.
43385         * modules/mbsstr (Files): Likewise.
43386         * modules/strcasestr (Files): Likewise.
43387         Suggested by Paul Eggert.
43388
43389 2007-12-30  Bruno Haible  <bruno@clisp.org>
43390
43391         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43392         defined.
43393
43394 2007-12-30  Bruno Haible  <bruno@clisp.org>
43395
43396         * lib/xmalloca.h: Include xalloc.h.
43397         (xnmalloca): New macro.
43398
43399 2007-12-30  Bruno Haible  <bruno@clisp.org>
43400
43401         * lib/malloca.h (nmalloca): New macro.
43402         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43403         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43404         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43405         knuth_morris_pratt_multibyte): Likewise.
43406         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43407         knuth_morris_pratt_multibyte): Likewise.
43408         * lib/memmem.c (knuth_morris_pratt): Likewise.
43409         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43410
43411 2007-12-25  Bruno Haible  <bruno@clisp.org>
43412
43413         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43414         * lib/glob.c: Don't include openat.h.
43415         (link_exists2_p): Add back the code that deals with the
43416         !GLOB_ALTDIRFUNC case.
43417         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43418         let it do the filename concatenation.
43419         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43420         * modules/glob (Depends-on): Remove openat.
43421
43422 2007-12-31  Bruno Haible  <bruno@clisp.org>
43423
43424         * modules/dirfd (License): Change to LGPLv2+.
43425         Approved by Jim Meyering.
43426
43427 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43428
43429         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43430         when multiplying M by sizeof (size_t).
43431
43432 2007-12-10  Martin Lambers  <marlam@marlam.de>
43433
43434         Override getpagesize on mingw.
43435         * lib/getpagesize.c: New file.
43436         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43437         * modules/getpagesize (Files): Add lib/getpagesize.c.
43438         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43440         REPLACE_GETPAGESIZE.
43441         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43442
43443 2007-12-25  Bruno Haible  <bruno@clisp.org>
43444
43445         * modules/localcharset (Notice): New field.
43446         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43447         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43448
43449 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43450             Bruno Haible  <bruno@clisp.org>
43451
43452         Avoid using the syntax symbol() in formatted documentation.
43453         * MODULES.html.sh (func_module): When replacing symbol() with a
43454         hyperlink, remove the parentheses. Show an error if some remain.
43455         Recognize and render the '...' syntax.
43456         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43457         Rework. Add paragraph about GCC's inlining.
43458         * doc/alloca.texi: Likewise.
43459         * doc/error.texi: Remove parentheses from symbol reference.
43460         * doc/gnulib-intro.texi: Likewise.
43461         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43462         * modules/fnmatch (Description): Reword to say "the ... function".
43463         * modules/full-read (Description): Likewise.
43464         * modules/full-write (Description): Likewise.
43465         * modules/safe-read (Description): Likewise.
43466         * modules/safe-write (Description): Likewise.
43467         * modules/strchrnul (Description): Likewise.
43468         * modules/trim (Description): Likewise.
43469         * modules/error (Description): Remove parentheses from symbol
43470         references.
43471         * modules/verror (Description): Likewise.
43472         Reported by Karl Berry.
43473
43474 2007-12-25  Bruno Haible  <bruno@clisp.org>
43475
43476         Fixup after 2007-10-16 commit.
43477         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43478
43479 2007-12-24  Bruno Haible  <bruno@clisp.org>
43480
43481         Make --enable-relocatable work with DESTDIR.
43482         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43483         to compute installdir from destprog.
43484         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43485         also set the RELOC_DESTDIR variable.
43486         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43487
43488 2007-12-24  Bruno Haible  <bruno@clisp.org>
43489
43490         Fix link error due to xalloc_die().
43491         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43492         of xreadlink.
43493         * lib/relocwrapper.c: Update comments.
43494         * build-aux/install-reloc: Remove xreadlink.c from file list.
43495         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43496         xreadlink.c.
43497         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43498
43499 2007-12-24  Bruno Haible  <bruno@clisp.org>
43500
43501         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43502         * lib/setenv.h: Remove file.
43503         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43504         lib/setenv.h.
43505         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43506         (Depends-on): Add stdlib.
43507         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43508         gl_FUNC_UNSETENV.
43509         (Include): Replace setenv.h with <stdlib.h>.
43510         * modules/unsetenv: New file.
43511         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43512         * lib/unsetenv.c: Include <stdlib.h> first.
43513         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43514         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43515         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43516         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43517         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43518         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43520         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43521         * doc/functions/unsetenv.texi: Update.
43522         * modules/xsetenv (Depends-on): Add unsetenv.
43523         * modules/getdate (Depends-on): Likewise.
43524         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43525         * lib/xsetenv.c: Don't include setenv.h.
43526         * lib/getdate.y: Likewise.
43527         * lib/relocwrapper.c: Likewise.
43528         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43529         (Depends-on): Add stdlib.
43530         * NEWS: Mention the changes.
43531         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43532
43533 2007-12-23  Bruno Haible  <bruno@clisp.org>
43534
43535         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43536         indentation.
43537
43538 2007-12-23  Bruno Haible  <bruno@clisp.org>
43539
43540         * lib/c-strcasestr.c: Add more comments.
43541         * lib/c-strstr.c: Likewise.
43542         * lib/mbscasestr.c: Likewise.
43543         * lib/mbsstr.c: Likewise.
43544         * lib/strcasestr.c: Likewise.
43545         * lib/memmem.c: Likewise.
43546
43547 2007-12-23  Bruno Haible  <bruno@clisp.org>
43548
43549         * tests/test-memmem.c: Include <string.h> first.
43550
43551 2007-12-22  Bruno Haible  <bruno@clisp.org>
43552
43553         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43554         the contents of $testsbase.
43555         Reported by Ralf Wildenhues.
43556
43557 2007-12-22  Bruno Haible  <bruno@clisp.org>
43558
43559         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43560         two variables local_ldadd_before, local_ldadd_last.
43561
43562 2007-12-20  Eric Blake  <ebb9@byu.net>
43563
43564         Work around circular library issue when cross-compiling.
43565         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43566         that progname.o does not need to pull in rpl_memcmp.
43567
43568 2007-12-19  Eric Blake  <ebb9@byu.net>
43569
43570         Fix memmem to avoid O(n^2) worst-case complexity.
43571         * lib/memmem.c (knuth_morris_pratt): New function.
43572         (memmem): Use it if first few naive iterations fail.
43573         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43574         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43575         * modules/memchr (License): Likewise.
43576         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43577         malloca.
43578         * tests/test-memmem.c: Rewrite, borrowing ideas from
43579         test-mbsstr1.c; the old version wouldn't even compile!
43580         * modules/memmem-tests: New file.
43581         * lib/string.in.h (rpl_memmem): Add declaration.
43582         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43584         REPLACE_MEMMEM.
43585
43586 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43587
43588         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43589         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43590         before any system include files, and undef after them all.  This
43591         should fix a problem on VMS reported by John E. Malmberg in
43592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43593
43594 2007-12-17  Eric Blake  <ebb9@byu.net>
43595
43596         Revert addition of verify, for BSD/OS.
43597         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43598         can't handle large files, for the sake of obsolete platforms.
43599         * modules/fseeko (Depends-on): Remove verify.
43600         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43601         * doc/functions/ftello.texi (ftello): Likewise.
43602         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43603         Reported by Larry Jones.
43604
43605 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43606
43607         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43608         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43609
43610 2007-12-17  Jim Meyering  <meyering@redhat.com>
43611
43612         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43613         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43614         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43615         * modules/getcwd (Depends-on): Add openat.
43616         Reported by Petr Salinger.
43617
43618 2007-12-17  Bruno Haible  <bruno@clisp.org>
43619
43620         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43621         avoid a segmentation fault of the configure test on x86_64 systems.
43622
43623 2007-12-15  Jim Meyering  <meyering@redhat.com>
43624
43625         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43626
43627 2007-12-13  Eric Blake  <ebb9@byu.net>
43628
43629         Another fseek test.
43630         * tests/test-fseek.c (main): Also test ungetc handling.
43631         * tests/test-fseeko.c (main): Likewise.
43632         * modules/fseeko (Depends-on): Add verify.
43633         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43634         large.
43635         Reported by Larry Jones.
43636
43637         Fix fseeko on mingw.
43638         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43639         seek.
43640
43641         Beef up fseek tests.
43642         * tests/test-fseek.c (main): Also test eof handling.
43643         * tests/test-fseeko.c (main): Likewise.
43644         Reported by Larry Jones.
43645
43646 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43647
43648         Fix fseeko on BSD-based platforms.
43649         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43650         successful seek.
43651
43652 2007-12-12  Eric Blake  <ebb9@byu.net>
43653
43654         Allow circular dependency of separate libtests.a
43655         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43656         when use_libtests.
43657
43658 2007-12-11  Eric Blake  <ebb9@byu.net>
43659
43660         Fix bug with -0.0L in previous patch.
43661         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43662         * tests/test-isnan.c (main): Also test on zeroes.
43663         * tests/test-isnanf.c (main): Likewise.
43664         * tests/test-isnanl.h (main): Likewise.
43665
43666         Detect pseudo-denormals on x86 even when cross-compiling.
43667         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43668         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43669         invalid bit patterns that happen to satisfy ==.
43670
43671         Avoid link failures with separate libtests.a.
43672         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43673         last, to satisfy circular dependencies.
43674
43675 2007-12-11  Eric Blake  <ebb9@byu.net>
43676         and Bruno Haible  <bruno@clisp.org>
43677
43678         Fix OpenBSD 4.0 <float.h> handling of long double.
43679         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43680         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43681         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43682
43683 2007-12-11  Jim Meyering  <meyering@redhat.com>
43684
43685         * users.txt: Add libvirt.
43686
43687         Support versions of autoconf prior to 2.59c.
43688         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43689         if it is not already defined.
43690
43691 2007-12-09  Bruno Haible  <bruno@clisp.org>
43692
43693         Let 'gnulib-tool --import' collect sources needed for the tests in
43694         tests/ rather than in lib/.
43695         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43696         argument. If true, add rules to generate libtests.a, and put libtests.a
43697         into $(LDADD). Consider source files in subdirectories and set
43698         uses_subdirs.
43699         (func_emit_initmacro_start, func_emit_initmacro_end,
43700         func_emit_initmacro_done): Pass all arguments explicitly.
43701         (func_import): Determine two module lists main_modules,
43702         testsrelated_modules. Determine use_libtests. Determine two variables
43703         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43704         instead of just sed_transform_lib_file. Determine two variables
43705         main_files and testsrelated_files. Compute 'files' as the union of
43706         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43707         func_add_or_update. In the generated gnulib-comp.m4, collect the
43708         object files for tests/ in different variables than those for lib/.
43709         Substitute LIBTESTS_LIBDEPS.
43710         (func_create_testdir): Combine the uses_subdirs results from
43711         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43712
43713 2007-12-09  Bruno Haible  <bruno@clisp.org>
43714
43715         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43716         the build-aux directory.
43717
43718 2007-12-09  Bruno Haible  <bruno@clisp.org>
43719
43720         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43721         introduced on 2006-09-09.
43722
43723 2007-12-07  Jim Meyering  <meyering@redhat.com>
43724
43725         Let these macros work also with autoconf-2.59.
43726         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43727         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43728         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43729
43730 2007-12-06  Jim Meyering  <meyering@redhat.com>
43731
43732         Avoid a configure-time syntax error in gl_FUNC_ACL.
43733         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43734         function in each branch, before testing the cache variable.
43735
43736 2007-12-04  Eric Blake  <ebb9@byu.net>
43737
43738         Make scripts executable.
43739         * build-aux/config.guess: Add execute permissions.
43740         * build-aux/config.sub: Likewise.
43741         * build-aux/gendocs.sh: Likewise.
43742
43743         Fix frexp on mingw.
43744         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43745         cross-compiling.
43746         * doc/functions/frexp.texi (frexp): Document the bug.
43747
43748         Make cygwin fseeko check more reliable.
43749         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43750         version numbers, rather than unrelated feature check.
43751         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43752         * doc/functions/ftello.texi (ftello): Likewise.
43753         Reported by Bruno Haible.
43754
43755         * m4/strerror.m4: Bump version number.
43756
43757 2007-12-03  Bruno Haible  <bruno@clisp.org>
43758
43759         * doc/functions/mprotect.texi: Mention the mingw problem.
43760
43761 2007-12-03  Eric Blake  <ebb9@byu.net>
43762
43763         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43764         REPLACE_STRERROR is initialized before this macro.
43765
43766 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43767
43768         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43769         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43770         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43771         put -lsec in even for programs other than 'ls'.  This fixes a problem
43772         for gettext reported by Bruno Haible in
43773         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43774         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43775         Add support for Solaris 10.  This isn't efficient, but should get the
43776         job done for now.
43777
43778 2007-12-03  James Youngman  <jay@gnu.org>
43779
43780         * doc/regexprops-generic.texi: change "an close-group" to "a
43781         close-group" and "illegal" to "not allowed".
43782
43783 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43784
43785         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43786         pr_byname.h. Needed for the rare case when the maintainer has done
43787         "make maintainer-clean" in the source directory and then attempts a
43788         build outside the source directory.
43789         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43790         scripts_byname.h.
43791
43792 2007-12-02  Martin Lambers <marlam@marlam.de>
43793             Bruno Haible  <bruno@clisp.org>
43794
43795         * lib/getpagesize.h: Remove file.
43796         * lib/unistd.in.h: Include declaration of getpagesize here.
43797         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43798         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43799         HAVE_SYS_PARAM_H.
43800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43801         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43802         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43803         (Depends-on): Add unistd.
43804         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43805         (Include): Use <unistd.h> instead of getpagesize.h.
43806         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43807         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43808         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43809         gl_GETPAGESIZE invocation, already handled by module dependency.
43810         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43811
43812 2007-12-02  Bruno Haible  <bruno@clisp.org>
43813
43814         * modules/strings-tests: New file.
43815         * tests/test-strings.c: New file.
43816
43817         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43818         * lib/strings.in.h: New file.
43819         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43820         * m4/strings_h.m4: New file.
43821         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43822         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43823         * modules/strings: New file.
43824         * modules/string (Makefile.am): Update.
43825         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43826         Reported by Karl Berry.
43827
43828 2007-12-01  Eric Blake  <ebb9@byu.net>
43829
43830         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43831         accomodate fix in cygwin 1.5.25.
43832
43833 2007-12-01  Jim Meyering  <meyering@redhat.com>
43834
43835         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43836         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43837         that would inhibit utf8-optimization of a regexp containing line-
43838         or buffer-anchors, e.g., `^', `$'.
43839
43840 2007-11-30  Bruno Haible  <bruno@clisp.org>
43841
43842         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43843         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43844         glthread_recursive_lock_init.
43845         * lib/lock.c (glthread_recursive_lock_init)
43846         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43847         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43848
43849 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43850
43851         New function qset_acl, like set_acl but with syscall semantics.
43852         * lib/acl.h (qset_acl): New decl.
43853         * lib/acl.c (qset_acl): New function.
43854         (set_acl): Use new function.  Use more-consistent diagnostics.
43855
43856 2007-11-28  Jim Meyering  <meyering@redhat.com>
43857
43858         * modules/physmem (License): Change from GPL to LGPLv2+.
43859
43860 2007-11-26  Bruno Haible  <bruno@clisp.org>
43861
43862         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43863         'long double' type has excess precision.
43864         Reported by Jim Meyering in
43865         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43866
43867 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43868
43869         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43870         Sync from <http://gnu.org/licenses>.
43871         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43872         with license text from same location.
43873         * doc/maintain.texi, doc/standards.texi:  Sync from
43874         <http://savannah.gnu.org/projects/gnustandards>.
43875
43876 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43877         and Jim Meyering  <meyering@redhat.com>
43878
43879         Adjust getdate' grammar to accept a slightly more regular language.
43880         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43881         Before, the former was rejected.
43882         * lib/getdate.y (digits_to_date_time): New function, factored
43883         out of ...
43884         (number): ...here.  Just call digits_to_date_time.
43885         (hybrid): New non-terminal to handle an <unsigned number,
43886         signed relative offset> sequence consistently.
43887
43888 2007-11-18  Jim Meyering  <meyering@redhat.com>
43889
43890         Pull my changes from coreutils:
43891         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43892         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43893         use of $gnulib_tool_option_extras, so that it's separated from the
43894         preceding argument.
43895
43896         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43897         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43898         parent destination directories before copying a file into place.
43899
43900 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43901
43902         bootstrap: work also with 4-argument variant of AC_INIT
43903         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43904
43905 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43906
43907         Port test-getaddrinfo to Solaris.
43908         Problem reported by Bruno Haible in
43909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43910         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43911         explanation of setting 'hints'.
43912         Don't reject an implementation merely because it returns EAI_SERVICE.
43913         (EAI_SERVICE): Define to 0 if not defined.
43914
43915 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43916
43917         The license of gnu-make and posix-shell is now "GPLed build tool".
43918         * modules/gnu-make (License): Likewise.
43919         * modules/posix-shell (License): Likewise.
43920
43921         New module posix-shell, for determining a POSIX shell
43922         or perhaps something that is close enough to a POSIX shell.
43923         * m4/posix-shell.m4: New file.
43924         * modules/posix-shell: New file.
43925
43926         * MODULES.html.sh: Mention new module.
43927
43928         New module gnu-make, for determining whether we're using GNU Make.
43929         * m4/gnu-make.m4: New file.
43930         * modules/gnu-make: New file.
43931         * MODULES.html.sh: Mention new module.
43932
43933 2007-11-14  Jim Meyering  <meyering@redhat.com>
43934
43935         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43936         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43937         use this macro to create a function _definition_.
43938         Remove useless "#undef ARGMATCH_DIE".
43939
43940 2007-11-14  Bruno Haible  <bruno@clisp.org>
43941
43942         * lib/config.charset: Update for OpenBSD 4.1.
43943         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43944
43945 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43946
43947         Document 64-bit #if problems in stdint.texi.
43948         * doc/headers/stdint.texi (stdint.h): Mention problems with
43949         64-bit-#if, and how to work around them.
43950
43951         Don't insist on 'long long int' support in the preprocessor.  It
43952         breaks too many things.  For example, PRIdMAX still uses a 'long
43953         long int' format with the latest Sun compiler, even though
43954         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43955         preprocessor problem.  This causes the latest coreutils to dump
43956         core on Solaris 10 sparc with the Sun C compiler.
43957         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43958         the troublesome expressions at configure-time, not at #if-time.
43959         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43960         preprocessor.
43961         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43962         compile-time C checks, done at 'configure'-time.
43963         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43964         * modules/inttypes (Makefile): Substitute the new symbols that
43965         gl_INTTYPES_H now generates.
43966         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43967
43968 2007-11-12  Bruno Haible  <bruno@clisp.org>
43969
43970         Tests for Unicode character classification functions.
43971
43972         * modules/unictype/bidicategory-byname-tests: New file.
43973         * modules/unictype/bidicategory-name-tests: New file.
43974         * modules/unictype/bidicategory-of-tests: New file.
43975         * modules/unictype/bidicategory-test-tests: New file.
43976         * modules/unictype/block-list-tests: New file.
43977         * modules/unictype/block-of-tests: New file.
43978         * modules/unictype/block-test-tests: New file.
43979         * modules/unictype/category-C-tests: New file.
43980         * modules/unictype/category-Cc-tests: New file.
43981         * modules/unictype/category-Cf-tests: New file.
43982         * modules/unictype/category-Cn-tests: New file.
43983         * modules/unictype/category-Co-tests: New file.
43984         * modules/unictype/category-Cs-tests: New file.
43985         * modules/unictype/category-L-tests: New file.
43986         * modules/unictype/category-Ll-tests: New file.
43987         * modules/unictype/category-Lm-tests: New file.
43988         * modules/unictype/category-Lo-tests: New file.
43989         * modules/unictype/category-Lt-tests: New file.
43990         * modules/unictype/category-Lu-tests: New file.
43991         * modules/unictype/category-M-tests: New file.
43992         * modules/unictype/category-Mc-tests: New file.
43993         * modules/unictype/category-Me-tests: New file.
43994         * modules/unictype/category-Mn-tests: New file.
43995         * modules/unictype/category-N-tests: New file.
43996         * modules/unictype/category-Nd-tests: New file.
43997         * modules/unictype/category-Nl-tests: New file.
43998         * modules/unictype/category-No-tests: New file.
43999         * modules/unictype/category-P-tests: New file.
44000         * modules/unictype/category-Pc-tests: New file.
44001         * modules/unictype/category-Pd-tests: New file.
44002         * modules/unictype/category-Pe-tests: New file.
44003         * modules/unictype/category-Pf-tests: New file.
44004         * modules/unictype/category-Pi-tests: New file.
44005         * modules/unictype/category-Po-tests: New file.
44006         * modules/unictype/category-Ps-tests: New file.
44007         * modules/unictype/category-S-tests: New file.
44008         * modules/unictype/category-Sc-tests: New file.
44009         * modules/unictype/category-Sk-tests: New file.
44010         * modules/unictype/category-Sm-tests: New file.
44011         * modules/unictype/category-So-tests: New file.
44012         * modules/unictype/category-Z-tests: New file.
44013         * modules/unictype/category-Zl-tests: New file.
44014         * modules/unictype/category-Zp-tests: New file.
44015         * modules/unictype/category-Zs-tests: New file.
44016         * modules/unictype/category-and-not-tests: New file.
44017         * modules/unictype/category-and-tests: New file.
44018         * modules/unictype/category-byname-tests: New file.
44019         * modules/unictype/category-name-tests: New file.
44020         * modules/unictype/category-none-tests: New file.
44021         * modules/unictype/category-of-tests: New file.
44022         * modules/unictype/category-or-tests: New file.
44023         * modules/unictype/category-test-withtable-tests: New file.
44024         * modules/unictype/combining-class-tests: New file.
44025         * modules/unictype/ctype-alnum-tests: New file.
44026         * modules/unictype/ctype-alpha-tests: New file.
44027         * modules/unictype/ctype-blank-tests: New file.
44028         * modules/unictype/ctype-cntrl-tests: New file.
44029         * modules/unictype/ctype-digit-tests: New file.
44030         * modules/unictype/ctype-graph-tests: New file.
44031         * modules/unictype/ctype-lower-tests: New file.
44032         * modules/unictype/ctype-print-tests: New file.
44033         * modules/unictype/ctype-punct-tests: New file.
44034         * modules/unictype/ctype-space-tests: New file.
44035         * modules/unictype/ctype-upper-tests: New file.
44036         * modules/unictype/ctype-xdigit-tests: New file.
44037         * modules/unictype/decimal-digit-tests: New file.
44038         * modules/unictype/digit-tests: New file.
44039         * modules/unictype/mirror-tests: New file.
44040         * modules/unictype/numeric-tests: New file.
44041         * modules/unictype/property-alphabetic-tests: New file.
44042         * modules/unictype/property-ascii-hex-digit-tests: New file.
44043         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44044         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44045         * modules/unictype/property-bidi-block-separator-tests: New file.
44046         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44047         * modules/unictype/property-bidi-common-separator-tests: New file.
44048         * modules/unictype/property-bidi-control-tests: New file.
44049         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44050         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44051         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44052         * modules/unictype/property-bidi-european-digit-tests: New file.
44053         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44054         * modules/unictype/property-bidi-left-to-right-tests: New file.
44055         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44056         * modules/unictype/property-bidi-other-neutral-tests: New file.
44057         * modules/unictype/property-bidi-pdf-tests: New file.
44058         * modules/unictype/property-bidi-segment-separator-tests: New file.
44059         * modules/unictype/property-bidi-whitespace-tests: New file.
44060         * modules/unictype/property-byname-tests: New file.
44061         * modules/unictype/property-combining-tests: New file.
44062         * modules/unictype/property-composite-tests: New file.
44063         * modules/unictype/property-currency-symbol-tests: New file.
44064         * modules/unictype/property-dash-tests: New file.
44065         * modules/unictype/property-decimal-digit-tests: New file.
44066         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44067         * modules/unictype/property-deprecated-tests: New file.
44068         * modules/unictype/property-diacritic-tests: New file.
44069         * modules/unictype/property-extender-tests: New file.
44070         * modules/unictype/property-format-control-tests: New file.
44071         * modules/unictype/property-grapheme-base-tests: New file.
44072         * modules/unictype/property-grapheme-extend-tests: New file.
44073         * modules/unictype/property-grapheme-link-tests: New file.
44074         * modules/unictype/property-hex-digit-tests: New file.
44075         * modules/unictype/property-hyphen-tests: New file.
44076         * modules/unictype/property-id-continue-tests: New file.
44077         * modules/unictype/property-id-start-tests: New file.
44078         * modules/unictype/property-ideographic-tests: New file.
44079         * modules/unictype/property-ids-binary-operator-tests: New file.
44080         * modules/unictype/property-ids-trinary-operator-tests: New file.
44081         * modules/unictype/property-ignorable-control-tests: New file.
44082         * modules/unictype/property-iso-control-tests: New file.
44083         * modules/unictype/property-join-control-tests: New file.
44084         * modules/unictype/property-left-of-pair-tests: New file.
44085         * modules/unictype/property-line-separator-tests: New file.
44086         * modules/unictype/property-logical-order-exception-tests: New file.
44087         * modules/unictype/property-lowercase-tests: New file.
44088         * modules/unictype/property-math-tests: New file.
44089         * modules/unictype/property-non-break-tests: New file.
44090         * modules/unictype/property-not-a-character-tests: New file.
44091         * modules/unictype/property-numeric-tests: New file.
44092         * modules/unictype/property-other-alphabetic-tests: New file.
44093         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44094         * modules/unictype/property-other-grapheme-extend-tests: New file.
44095         * modules/unictype/property-other-id-continue-tests: New file.
44096         * modules/unictype/property-other-id-start-tests: New file.
44097         * modules/unictype/property-other-lowercase-tests: New file.
44098         * modules/unictype/property-other-math-tests: New file.
44099         * modules/unictype/property-other-uppercase-tests: New file.
44100         * modules/unictype/property-paired-punctuation-tests: New file.
44101         * modules/unictype/property-paragraph-separator-tests: New file.
44102         * modules/unictype/property-pattern-syntax-tests: New file.
44103         * modules/unictype/property-pattern-white-space-tests: New file.
44104         * modules/unictype/property-private-use-tests: New file.
44105         * modules/unictype/property-punctuation-tests: New file.
44106         * modules/unictype/property-quotation-mark-tests: New file.
44107         * modules/unictype/property-radical-tests: New file.
44108         * modules/unictype/property-sentence-terminal-tests: New file.
44109         * modules/unictype/property-soft-dotted-tests: New file.
44110         * modules/unictype/property-space-tests: New file.
44111         * modules/unictype/property-terminal-punctuation-tests: New file.
44112         * modules/unictype/property-test-tests: New file.
44113         * modules/unictype/property-titlecase-tests: New file.
44114         * modules/unictype/property-unassigned-code-value-tests: New file.
44115         * modules/unictype/property-unified-ideograph-tests: New file.
44116         * modules/unictype/property-uppercase-tests: New file.
44117         * modules/unictype/property-variation-selector-tests: New file.
44118         * modules/unictype/property-white-space-tests: New file.
44119         * modules/unictype/property-xid-continue-tests: New file.
44120         * modules/unictype/property-xid-start-tests: New file.
44121         * modules/unictype/property-zero-width-tests: New file.
44122         * modules/unictype/scripts-tests: New file.
44123         * modules/unictype/syntax-c-ident-tests: New file.
44124         * modules/unictype/syntax-c-whitespace-tests: New file.
44125         * modules/unictype/syntax-java-ident-tests: New file.
44126         * modules/unictype/syntax-java-whitespace-tests: New file.
44127         * tests/unictype/test-bidi_byname.c: New file.
44128         * tests/unictype/test-bidi_name.c: New file.
44129         * tests/unictype/test-bidi_of.c: New file.
44130         * tests/unictype/test-bidi_test.c: New file.
44131         * tests/unictype/test-block_list.c: New file.
44132         * tests/unictype/test-block_of.c: New file.
44133         * tests/unictype/test-block_test.c: New file.
44134         * tests/unictype/test-categ_and.c: New file.
44135         * tests/unictype/test-categ_and_not.c: New file.
44136         * tests/unictype/test-categ_byname.c: New file.
44137         * tests/unictype/test-categ_name.c: New file.
44138         * tests/unictype/test-categ_none.c: New file.
44139         * tests/unictype/test-categ_of.c: New file.
44140         * tests/unictype/test-categ_or.c: New file.
44141         * tests/unictype/test-categ_test_withtable.c: New file.
44142         * tests/unictype/test-combining.c: New file.
44143         * tests/unictype/test-decdigit.c: New file.
44144         * tests/unictype/test-digit.c: New file.
44145         * tests/unictype/test-mirror.c: New file.
44146         * tests/unictype/test-numeric.c: New file.
44147         * tests/unictype/test-pr_byname.c: New file.
44148         * tests/unictype/test-pr_test.c: New file.
44149         * tests/unictype/test-predicate-part1.h: New file.
44150         * tests/unictype/test-predicate-part2.h: New file.
44151         * tests/unictype/test-scripts.c: New file.
44152         * tests/unictype/test-sy_c_ident.c: New file.
44153         * tests/unictype/test-sy_java_ident.c: New file.
44154
44155         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44156         for Unicode 5.0.0.
44157         * tests/unictype/test-categ_Cc.c: Likewise.
44158         * tests/unictype/test-categ_Cf.c: Likewise.
44159         * tests/unictype/test-categ_Cn.c: Likewise.
44160         * tests/unictype/test-categ_Co.c: Likewise.
44161         * tests/unictype/test-categ_Cs.c: Likewise.
44162         * tests/unictype/test-categ_L.c: Likewise.
44163         * tests/unictype/test-categ_Ll.c: Likewise.
44164         * tests/unictype/test-categ_Lm.c: Likewise.
44165         * tests/unictype/test-categ_Lo.c: Likewise.
44166         * tests/unictype/test-categ_Lt.c: Likewise.
44167         * tests/unictype/test-categ_Lu.c: Likewise.
44168         * tests/unictype/test-categ_M.c: Likewise.
44169         * tests/unictype/test-categ_Mc.c: Likewise.
44170         * tests/unictype/test-categ_Me.c: Likewise.
44171         * tests/unictype/test-categ_Mn.c: Likewise.
44172         * tests/unictype/test-categ_N.c: Likewise.
44173         * tests/unictype/test-categ_Nd.c: Likewise.
44174         * tests/unictype/test-categ_Nl.c: Likewise.
44175         * tests/unictype/test-categ_No.c: Likewise.
44176         * tests/unictype/test-categ_P.c: Likewise.
44177         * tests/unictype/test-categ_Pc.c: Likewise.
44178         * tests/unictype/test-categ_Pd.c: Likewise.
44179         * tests/unictype/test-categ_Pe.c: Likewise.
44180         * tests/unictype/test-categ_Pf.c: Likewise.
44181         * tests/unictype/test-categ_Pi.c: Likewise.
44182         * tests/unictype/test-categ_Po.c: Likewise.
44183         * tests/unictype/test-categ_Ps.c: Likewise.
44184         * tests/unictype/test-categ_S.c: Likewise.
44185         * tests/unictype/test-categ_Sc.c: Likewise.
44186         * tests/unictype/test-categ_Sk.c: Likewise.
44187         * tests/unictype/test-categ_Sm.c: Likewise.
44188         * tests/unictype/test-categ_So.c: Likewise.
44189         * tests/unictype/test-categ_Z.c: Likewise.
44190         * tests/unictype/test-categ_Zl.c: Likewise.
44191         * tests/unictype/test-categ_Zp.c: Likewise.
44192         * tests/unictype/test-categ_Zs.c: Likewise.
44193         * tests/unictype/test-ctype_alnum.c: Likewise.
44194         * tests/unictype/test-ctype_alpha.c: Likewise.
44195         * tests/unictype/test-ctype_blank.c: Likewise.
44196         * tests/unictype/test-ctype_cntrl.c: Likewise.
44197         * tests/unictype/test-ctype_digit.c: Likewise.
44198         * tests/unictype/test-ctype_graph.c: Likewise.
44199         * tests/unictype/test-ctype_lower.c: Likewise.
44200         * tests/unictype/test-ctype_print.c: Likewise.
44201         * tests/unictype/test-ctype_punct.c: Likewise.
44202         * tests/unictype/test-ctype_space.c: Likewise.
44203         * tests/unictype/test-ctype_upper.c: Likewise.
44204         * tests/unictype/test-ctype_xdigit.c: Likewise.
44205         * tests/unictype/test-decdigit.h: Likewise.
44206         * tests/unictype/test-digit.h: Likewise.
44207         * tests/unictype/test-numeric.h: Likewise.
44208         * tests/unictype/test-pr_alphabetic.c: Likewise.
44209         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44210         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44211         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44212         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44213         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44214         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44215         * tests/unictype/test-pr_bidi_control.c: Likewise.
44216         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44217         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44218         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44219         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44220         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44221         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44222         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44223         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44224         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44225         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44226         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44227         * tests/unictype/test-pr_combining.c: Likewise.
44228         * tests/unictype/test-pr_composite.c: Likewise.
44229         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44230         * tests/unictype/test-pr_dash.c: Likewise.
44231         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44232         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44233         * tests/unictype/test-pr_deprecated.c: Likewise.
44234         * tests/unictype/test-pr_diacritic.c: Likewise.
44235         * tests/unictype/test-pr_extender.c: Likewise.
44236         * tests/unictype/test-pr_format_control.c: Likewise.
44237         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44238         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44239         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44240         * tests/unictype/test-pr_hex_digit.c: Likewise.
44241         * tests/unictype/test-pr_hyphen.c: Likewise.
44242         * tests/unictype/test-pr_id_continue.c: Likewise.
44243         * tests/unictype/test-pr_id_start.c: Likewise.
44244         * tests/unictype/test-pr_ideographic.c: Likewise.
44245         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44246         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44247         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44248         * tests/unictype/test-pr_iso_control.c: Likewise.
44249         * tests/unictype/test-pr_join_control.c: Likewise.
44250         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44251         * tests/unictype/test-pr_line_separator.c: Likewise.
44252         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44253         * tests/unictype/test-pr_lowercase.c: Likewise.
44254         * tests/unictype/test-pr_math.c: Likewise.
44255         * tests/unictype/test-pr_non_break.c: Likewise.
44256         * tests/unictype/test-pr_not_a_character.c: Likewise.
44257         * tests/unictype/test-pr_numeric.c: Likewise.
44258         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44259         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44260         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44261         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44262         * tests/unictype/test-pr_other_id_start.c: Likewise.
44263         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44264         * tests/unictype/test-pr_other_math.c: Likewise.
44265         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44266         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44267         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44268         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44269         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44270         * tests/unictype/test-pr_private_use.c: Likewise.
44271         * tests/unictype/test-pr_punctuation.c: Likewise.
44272         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44273         * tests/unictype/test-pr_radical.c: Likewise.
44274         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44275         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44276         * tests/unictype/test-pr_space.c: Likewise.
44277         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44278         * tests/unictype/test-pr_titlecase.c: Likewise.
44279         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44280         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44281         * tests/unictype/test-pr_uppercase.c: Likewise.
44282         * tests/unictype/test-pr_variation_selector.c: Likewise.
44283         * tests/unictype/test-pr_white_space.c: Likewise.
44284         * tests/unictype/test-pr_xid_continue.c: Likewise.
44285         * tests/unictype/test-pr_xid_start.c: Likewise.
44286         * tests/unictype/test-pr_zero_width.c: Likewise.
44287         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44288         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44289
44290 2007-11-12  Bruno Haible  <bruno@clisp.org>
44291
44292         Unicode character classification functions.
44293         * lib/unictype.h: New file.
44294         * modules/unictype/base: New file.
44295         * modules/unictype/category-L: New file.
44296         * modules/unictype/category-Lu: New file.
44297         * modules/unictype/category-Ll: New file.
44298         * modules/unictype/category-Lt: New file.
44299         * modules/unictype/category-Lm: New file.
44300         * modules/unictype/category-Lo: New file.
44301         * modules/unictype/category-M: New file.
44302         * modules/unictype/category-Mn: New file.
44303         * modules/unictype/category-Mc: New file.
44304         * modules/unictype/category-Me: New file.
44305         * modules/unictype/category-N: New file.
44306         * modules/unictype/category-Nd: New file.
44307         * modules/unictype/category-Nl: New file.
44308         * modules/unictype/category-No: New file.
44309         * modules/unictype/category-P: New file.
44310         * modules/unictype/category-Pc: New file.
44311         * modules/unictype/category-Pd: New file.
44312         * modules/unictype/category-Ps: New file.
44313         * modules/unictype/category-Pe: New file.
44314         * modules/unictype/category-Pi: New file.
44315         * modules/unictype/category-Pf: New file.
44316         * modules/unictype/category-Po: New file.
44317         * modules/unictype/category-S: New file.
44318         * modules/unictype/category-Sm: New file.
44319         * modules/unictype/category-Sc: New file.
44320         * modules/unictype/category-Sk: New file.
44321         * modules/unictype/category-So: New file.
44322         * modules/unictype/category-Z: New file.
44323         * modules/unictype/category-Zs: New file.
44324         * modules/unictype/category-Zl: New file.
44325         * modules/unictype/category-Zp: New file.
44326         * modules/unictype/category-C: New file.
44327         * modules/unictype/category-Cc: New file.
44328         * modules/unictype/category-Cf: New file.
44329         * modules/unictype/category-Cs: New file.
44330         * modules/unictype/category-Co: New file.
44331         * modules/unictype/category-Cn: New file.
44332         * modules/unictype/category-or: New file.
44333         * modules/unictype/category-of: New file.
44334         * modules/unictype/category-test: New file.
44335         * modules/unictype/category-test-withtable: New file.
44336         * modules/unictype/category-byname: New file.
44337         * modules/unictype/category-none: New file.
44338         * modules/unictype/category-and: New file.
44339         * modules/unictype/category-and-not: New file.
44340         * modules/unictype/category-name: New file.
44341         * modules/unictype/combining-class: New file.
44342         * modules/unictype/category-all: New file.
44343         * modules/unictype/bidicategory-all: New file.
44344         * modules/unictype/bidicategory-byname: New file.
44345         * modules/unictype/bidicategory-name: New file.
44346         * modules/unictype/bidicategory-of: New file.
44347         * modules/unictype/bidicategory-test: New file.
44348         * modules/unictype/decimal-digit: New file.
44349         * modules/unictype/digit: New file.
44350         * modules/unictype/numeric: New file.
44351         * modules/unictype/mirror: New file.
44352         * modules/unictype/property-white-space: New file.
44353         * modules/unictype/property-alphabetic: New file.
44354         * modules/unictype/property-other-alphabetic: New file.
44355         * modules/unictype/property-not-a-character: New file.
44356         * modules/unictype/property-default-ignorable-code-point: New file.
44357         * modules/unictype/property-other-default-ignorable-code-point: New
44358         file.
44359         * modules/unictype/property-deprecated: New file.
44360         * modules/unictype/property-logical-order-exception: New file.
44361         * modules/unictype/property-variation-selector: New file.
44362         * modules/unictype/property-private-use: New file.
44363         * modules/unictype/property-unassigned-code-value: New file.
44364         * modules/unictype/property-uppercase: New file.
44365         * modules/unictype/property-other-uppercase: New file.
44366         * modules/unictype/property-lowercase: New file.
44367         * modules/unictype/property-other-lowercase: New file.
44368         * modules/unictype/property-titlecase: New file.
44369         * modules/unictype/property-soft-dotted: New file.
44370         * modules/unictype/property-id-start: New file.
44371         * modules/unictype/property-other-id-start: New file.
44372         * modules/unictype/property-id-continue: New file.
44373         * modules/unictype/property-other-id-continue: New file.
44374         * modules/unictype/property-xid-start: New file.
44375         * modules/unictype/property-xid-continue: New file.
44376         * modules/unictype/property-pattern-white-space: New file.
44377         * modules/unictype/property-pattern-syntax: New file.
44378         * modules/unictype/property-join-control: New file.
44379         * modules/unictype/property-grapheme-base: New file.
44380         * modules/unictype/property-grapheme-extend: New file.
44381         * modules/unictype/property-other-grapheme-extend: New file.
44382         * modules/unictype/property-grapheme-link: New file.
44383         * modules/unictype/property-bidi-control: New file.
44384         * modules/unictype/property-bidi-left-to-right: New file.
44385         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44386         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44387         * modules/unictype/property-bidi-european-digit: New file.
44388         * modules/unictype/property-bidi-eur-num-separator: New file.
44389         * modules/unictype/property-bidi-eur-num-terminator: New file.
44390         * modules/unictype/property-bidi-arabic-digit: New file.
44391         * modules/unictype/property-bidi-common-separator: New file.
44392         * modules/unictype/property-bidi-block-separator: New file.
44393         * modules/unictype/property-bidi-segment-separator: New file.
44394         * modules/unictype/property-bidi-whitespace: New file.
44395         * modules/unictype/property-bidi-non-spacing-mark: New file.
44396         * modules/unictype/property-bidi-boundary-neutral: New file.
44397         * modules/unictype/property-bidi-pdf: New file.
44398         * modules/unictype/property-bidi-embedding-or-override: New file.
44399         * modules/unictype/property-bidi-other-neutral: New file.
44400         * modules/unictype/property-hex-digit: New file.
44401         * modules/unictype/property-ascii-hex-digit: New file.
44402         * modules/unictype/property-ideographic: New file.
44403         * modules/unictype/property-unified-ideograph: New file.
44404         * modules/unictype/property-radical: New file.
44405         * modules/unictype/property-ids-binary-operator: New file.
44406         * modules/unictype/property-ids-trinary-operator: New file.
44407         * modules/unictype/property-zero-width: New file.
44408         * modules/unictype/property-space: New file.
44409         * modules/unictype/property-non-break: New file.
44410         * modules/unictype/property-iso-control: New file.
44411         * modules/unictype/property-format-control: New file.
44412         * modules/unictype/property-dash: New file.
44413         * modules/unictype/property-hyphen: New file.
44414         * modules/unictype/property-punctuation: New file.
44415         * modules/unictype/property-line-separator: New file.
44416         * modules/unictype/property-paragraph-separator: New file.
44417         * modules/unictype/property-quotation-mark: New file.
44418         * modules/unictype/property-sentence-terminal: New file.
44419         * modules/unictype/property-terminal-punctuation: New file.
44420         * modules/unictype/property-currency-symbol: New file.
44421         * modules/unictype/property-math: New file.
44422         * modules/unictype/property-other-math: New file.
44423         * modules/unictype/property-paired-punctuation: New file.
44424         * modules/unictype/property-left-of-pair: New file.
44425         * modules/unictype/property-combining: New file.
44426         * modules/unictype/property-composite: New file.
44427         * modules/unictype/property-decimal-digit: New file.
44428         * modules/unictype/property-numeric: New file.
44429         * modules/unictype/property-diacritic: New file.
44430         * modules/unictype/property-extender: New file.
44431         * modules/unictype/property-ignorable-control: New file.
44432         * modules/unictype/property-test: New file.
44433         * modules/unictype/property-byname: New file.
44434         * modules/unictype/property-all: New file.
44435         * modules/unictype/scripts: New file.
44436         * modules/unictype/scripts-all: New file.
44437         * modules/unictype/block-of: New file.
44438         * modules/unictype/block-test: New file.
44439         * modules/unictype/block-list: New file.
44440         * modules/unictype/block-all: New file.
44441         * modules/unictype/syntax-c-whitespace: New file.
44442         * modules/unictype/syntax-java-whitespace: New file.
44443         * modules/unictype/syntax-c-ident: New file.
44444         * modules/unictype/syntax-java-ident: New file.
44445         * modules/unictype/ctype-alnum: New file.
44446         * modules/unictype/ctype-alpha: New file.
44447         * modules/unictype/ctype-cntrl: New file.
44448         * modules/unictype/ctype-digit: New file.
44449         * modules/unictype/ctype-graph: New file.
44450         * modules/unictype/ctype-lower: New file.
44451         * modules/unictype/ctype-print: New file.
44452         * modules/unictype/ctype-punct: New file.
44453         * modules/unictype/ctype-space: New file.
44454         * modules/unictype/ctype-upper: New file.
44455         * modules/unictype/ctype-xdigit: New file.
44456         * modules/unictype/ctype-blank: New file.
44457         * lib/unictype/bidi_byname.c: New file.
44458         * lib/unictype/bidi_name.c: New file.
44459         * lib/unictype/bidi_of.c: New file.
44460         * lib/unictype/bidi_test.c: New file.
44461         * lib/unictype/bitmap.h: New file.
44462         * lib/unictype/block_test.c: New file.
44463         * lib/unictype/blocks.c: New file.
44464         * lib/unictype/categ_C.c: New file.
44465         * lib/unictype/categ_Cc.c: New file.
44466         * lib/unictype/categ_Cf.c: New file.
44467         * lib/unictype/categ_Cn.c: New file.
44468         * lib/unictype/categ_Co.c: New file.
44469         * lib/unictype/categ_Cs.c: New file.
44470         * lib/unictype/categ_L.c: New file.
44471         * lib/unictype/categ_Ll.c: New file.
44472         * lib/unictype/categ_Lm.c: New file.
44473         * lib/unictype/categ_Lo.c: New file.
44474         * lib/unictype/categ_Lt.c: New file.
44475         * lib/unictype/categ_Lu.c: New file.
44476         * lib/unictype/categ_M.c: New file.
44477         * lib/unictype/categ_Mc.c: New file.
44478         * lib/unictype/categ_Me.c: New file.
44479         * lib/unictype/categ_Mn.c: New file.
44480         * lib/unictype/categ_N.c: New file.
44481         * lib/unictype/categ_Nd.c: New file.
44482         * lib/unictype/categ_Nl.c: New file.
44483         * lib/unictype/categ_No.c: New file.
44484         * lib/unictype/categ_P.c: New file.
44485         * lib/unictype/categ_Pc.c: New file.
44486         * lib/unictype/categ_Pd.c: New file.
44487         * lib/unictype/categ_Pe.c: New file.
44488         * lib/unictype/categ_Pf.c: New file.
44489         * lib/unictype/categ_Pi.c: New file.
44490         * lib/unictype/categ_Po.c: New file.
44491         * lib/unictype/categ_Ps.c: New file.
44492         * lib/unictype/categ_S.c: New file.
44493         * lib/unictype/categ_Sc.c: New file.
44494         * lib/unictype/categ_Sk.c: New file.
44495         * lib/unictype/categ_Sm.c: New file.
44496         * lib/unictype/categ_So.c: New file.
44497         * lib/unictype/categ_Z.c: New file.
44498         * lib/unictype/categ_Zl.c: New file.
44499         * lib/unictype/categ_Zp.c: New file.
44500         * lib/unictype/categ_Zs.c: New file.
44501         * lib/unictype/categ_and.c: New file.
44502         * lib/unictype/categ_and_not.c: New file.
44503         * lib/unictype/categ_byname.c: New file.
44504         * lib/unictype/categ_name.c: New file.
44505         * lib/unictype/categ_none.c: New file.
44506         * lib/unictype/categ_of.c: New file.
44507         * lib/unictype/categ_or.c: New file.
44508         * lib/unictype/categ_test.c: New file.
44509         * lib/unictype/combining.c: New file.
44510         * lib/unictype/ctype_alnum.c: New file.
44511         * lib/unictype/ctype_alpha.c: New file.
44512         * lib/unictype/ctype_blank.c: New file.
44513         * lib/unictype/ctype_cntrl.c: New file.
44514         * lib/unictype/ctype_digit.c: New file.
44515         * lib/unictype/ctype_graph.c: New file.
44516         * lib/unictype/ctype_lower.c: New file.
44517         * lib/unictype/ctype_print.c: New file.
44518         * lib/unictype/ctype_punct.c: New file.
44519         * lib/unictype/ctype_space.c: New file.
44520         * lib/unictype/ctype_upper.c: New file.
44521         * lib/unictype/ctype_xdigit.c: New file.
44522         * lib/unictype/decdigit.c: New file.
44523         * lib/unictype/digit.c: New file.
44524         * lib/unictype/identsyntaxmap.h: New file.
44525         * lib/unictype/mirror.c: New file.
44526         * lib/unictype/numeric.c: New file.
44527         * lib/unictype/pr_alphabetic.c: New file.
44528         * lib/unictype/pr_ascii_hex_digit.c: New file.
44529         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44530         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44531         * lib/unictype/pr_bidi_block_separator.c: New file.
44532         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44533         * lib/unictype/pr_bidi_common_separator.c: New file.
44534         * lib/unictype/pr_bidi_control.c: New file.
44535         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44536         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44537         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44538         * lib/unictype/pr_bidi_european_digit.c: New file.
44539         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44540         * lib/unictype/pr_bidi_left_to_right.c: New file.
44541         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44542         * lib/unictype/pr_bidi_other_neutral.c: New file.
44543         * lib/unictype/pr_bidi_pdf.c: New file.
44544         * lib/unictype/pr_bidi_segment_separator.c: New file.
44545         * lib/unictype/pr_bidi_whitespace.c: New file.
44546         * lib/unictype/pr_byname.c: New file.
44547         * lib/unictype/pr_byname.gperf: New file.
44548         * lib/unictype/pr_combining.c: New file.
44549         * lib/unictype/pr_composite.c: New file.
44550         * lib/unictype/pr_currency_symbol.c: New file.
44551         * lib/unictype/pr_dash.c: New file.
44552         * lib/unictype/pr_decimal_digit.c: New file.
44553         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44554         * lib/unictype/pr_deprecated.c: New file.
44555         * lib/unictype/pr_diacritic.c: New file.
44556         * lib/unictype/pr_extender.c: New file.
44557         * lib/unictype/pr_format_control.c: New file.
44558         * lib/unictype/pr_grapheme_base.c: New file.
44559         * lib/unictype/pr_grapheme_extend.c: New file.
44560         * lib/unictype/pr_grapheme_link.c: New file.
44561         * lib/unictype/pr_hex_digit.c: New file.
44562         * lib/unictype/pr_hyphen.c: New file.
44563         * lib/unictype/pr_id_continue.c: New file.
44564         * lib/unictype/pr_id_start.c: New file.
44565         * lib/unictype/pr_ideographic.c: New file.
44566         * lib/unictype/pr_ids_binary_operator.c: New file.
44567         * lib/unictype/pr_ids_trinary_operator.c: New file.
44568         * lib/unictype/pr_ignorable_control.c: New file.
44569         * lib/unictype/pr_iso_control.c: New file.
44570         * lib/unictype/pr_join_control.c: New file.
44571         * lib/unictype/pr_left_of_pair.c: New file.
44572         * lib/unictype/pr_line_separator.c: New file.
44573         * lib/unictype/pr_logical_order_exception.c: New file.
44574         * lib/unictype/pr_lowercase.c: New file.
44575         * lib/unictype/pr_math.c: New file.
44576         * lib/unictype/pr_non_break.c: New file.
44577         * lib/unictype/pr_not_a_character.c: New file.
44578         * lib/unictype/pr_numeric.c: New file.
44579         * lib/unictype/pr_other_alphabetic.c: New file.
44580         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44581         * lib/unictype/pr_other_grapheme_extend.c: New file.
44582         * lib/unictype/pr_other_id_continue.c: New file.
44583         * lib/unictype/pr_other_id_start.c: New file.
44584         * lib/unictype/pr_other_lowercase.c: New file.
44585         * lib/unictype/pr_other_math.c: New file.
44586         * lib/unictype/pr_other_uppercase.c: New file.
44587         * lib/unictype/pr_paired_punctuation.c: New file.
44588         * lib/unictype/pr_paragraph_separator.c: New file.
44589         * lib/unictype/pr_pattern_syntax.c: New file.
44590         * lib/unictype/pr_pattern_white_space.c: New file.
44591         * lib/unictype/pr_private_use.c: New file.
44592         * lib/unictype/pr_punctuation.c: New file.
44593         * lib/unictype/pr_quotation_mark.c: New file.
44594         * lib/unictype/pr_radical.c: New file.
44595         * lib/unictype/pr_sentence_terminal.c: New file.
44596         * lib/unictype/pr_soft_dotted.c: New file.
44597         * lib/unictype/pr_space.c: New file.
44598         * lib/unictype/pr_terminal_punctuation.c: New file.
44599         * lib/unictype/pr_test.c: New file.
44600         * lib/unictype/pr_titlecase.c: New file.
44601         * lib/unictype/pr_unassigned_code_value.c: New file.
44602         * lib/unictype/pr_unified_ideograph.c: New file.
44603         * lib/unictype/pr_uppercase.c: New file.
44604         * lib/unictype/pr_variation_selector.c: New file.
44605         * lib/unictype/pr_white_space.c: New file.
44606         * lib/unictype/pr_xid_continue.c: New file.
44607         * lib/unictype/pr_xid_start.c: New file.
44608         * lib/unictype/pr_zero_width.c: New file.
44609         * lib/unictype/scripts.c: New file.
44610         * lib/unictype/sy_c_ident.c: New file.
44611         * lib/unictype/sy_c_whitespace.c: New file.
44612         * lib/unictype/sy_java_ident.c: New file.
44613         * lib/unictype/sy_java_whitespace.c: New file.
44614
44615         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44616         Unicode 5.0.0.
44617         * lib/unictype/blocks.h: Likewise.
44618         * lib/unictype/categ_C.h: Likewise.
44619         * lib/unictype/categ_Cc.h: Likewise.
44620         * lib/unictype/categ_Cf.h: Likewise.
44621         * lib/unictype/categ_Cn.h: Likewise.
44622         * lib/unictype/categ_Co.h: Likewise.
44623         * lib/unictype/categ_Cs.h: Likewise.
44624         * lib/unictype/categ_L.h: Likewise.
44625         * lib/unictype/categ_Ll.h: Likewise.
44626         * lib/unictype/categ_Lm.h: Likewise.
44627         * lib/unictype/categ_Lo.h: Likewise.
44628         * lib/unictype/categ_Lt.h: Likewise.
44629         * lib/unictype/categ_Lu.h: Likewise.
44630         * lib/unictype/categ_M.h: Likewise.
44631         * lib/unictype/categ_Mc.h: Likewise.
44632         * lib/unictype/categ_Me.h: Likewise.
44633         * lib/unictype/categ_Mn.h: Likewise.
44634         * lib/unictype/categ_N.h: Likewise.
44635         * lib/unictype/categ_Nd.h: Likewise.
44636         * lib/unictype/categ_Nl.h: Likewise.
44637         * lib/unictype/categ_No.h: Likewise.
44638         * lib/unictype/categ_P.h: Likewise.
44639         * lib/unictype/categ_Pc.h: Likewise.
44640         * lib/unictype/categ_Pd.h: Likewise.
44641         * lib/unictype/categ_Pe.h: Likewise.
44642         * lib/unictype/categ_Pf.h: Likewise.
44643         * lib/unictype/categ_Pi.h: Likewise.
44644         * lib/unictype/categ_Po.h: Likewise.
44645         * lib/unictype/categ_Ps.h: Likewise.
44646         * lib/unictype/categ_S.h: Likewise.
44647         * lib/unictype/categ_Sc.h: Likewise.
44648         * lib/unictype/categ_Sk.h: Likewise.
44649         * lib/unictype/categ_Sm.h: Likewise.
44650         * lib/unictype/categ_So.h: Likewise.
44651         * lib/unictype/categ_Z.h: Likewise.
44652         * lib/unictype/categ_Zl.h: Likewise.
44653         * lib/unictype/categ_Zp.h: Likewise.
44654         * lib/unictype/categ_Zs.h: Likewise.
44655         * lib/unictype/categ_of.h: Likewise.
44656         * lib/unictype/combining.h: Likewise.
44657         * lib/unictype/ctype_alnum.h: Likewise.
44658         * lib/unictype/ctype_alpha.h: Likewise.
44659         * lib/unictype/ctype_blank.h: Likewise.
44660         * lib/unictype/ctype_cntrl.h: Likewise.
44661         * lib/unictype/ctype_digit.h: Likewise.
44662         * lib/unictype/ctype_graph.h: Likewise.
44663         * lib/unictype/ctype_lower.h: Likewise.
44664         * lib/unictype/ctype_print.h: Likewise.
44665         * lib/unictype/ctype_punct.h: Likewise.
44666         * lib/unictype/ctype_space.h: Likewise.
44667         * lib/unictype/ctype_upper.h: Likewise.
44668         * lib/unictype/ctype_xdigit.h: Likewise.
44669         * lib/unictype/decdigit.h: Likewise.
44670         * lib/unictype/digit.h: Likewise.
44671         * lib/unictype/mirror.h: Likewise.
44672         * lib/unictype/numeric.h: Likewise.
44673         * lib/unictype/pr_alphabetic.h: Likewise.
44674         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44675         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44676         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44677         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44678         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44679         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44680         * lib/unictype/pr_bidi_control.h: Likewise.
44681         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44682         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44683         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44684         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44685         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44686         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44687         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44688         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44689         * lib/unictype/pr_bidi_pdf.h: Likewise.
44690         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44691         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44692         * lib/unictype/pr_combining.h: Likewise.
44693         * lib/unictype/pr_composite.h: Likewise.
44694         * lib/unictype/pr_currency_symbol.h: Likewise.
44695         * lib/unictype/pr_dash.h: Likewise.
44696         * lib/unictype/pr_decimal_digit.h: Likewise.
44697         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44698         * lib/unictype/pr_deprecated.h: Likewise.
44699         * lib/unictype/pr_diacritic.h: Likewise.
44700         * lib/unictype/pr_extender.h: Likewise.
44701         * lib/unictype/pr_format_control.h: Likewise.
44702         * lib/unictype/pr_grapheme_base.h: Likewise.
44703         * lib/unictype/pr_grapheme_extend.h: Likewise.
44704         * lib/unictype/pr_grapheme_link.h: Likewise.
44705         * lib/unictype/pr_hex_digit.h: Likewise.
44706         * lib/unictype/pr_hyphen.h: Likewise.
44707         * lib/unictype/pr_id_continue.h: Likewise.
44708         * lib/unictype/pr_id_start.h: Likewise.
44709         * lib/unictype/pr_ideographic.h: Likewise.
44710         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44711         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44712         * lib/unictype/pr_ignorable_control.h: Likewise.
44713         * lib/unictype/pr_iso_control.h: Likewise.
44714         * lib/unictype/pr_join_control.h: Likewise.
44715         * lib/unictype/pr_left_of_pair.h: Likewise.
44716         * lib/unictype/pr_line_separator.h: Likewise.
44717         * lib/unictype/pr_logical_order_exception.h: Likewise.
44718         * lib/unictype/pr_lowercase.h: Likewise.
44719         * lib/unictype/pr_math.h: Likewise.
44720         * lib/unictype/pr_non_break.h: Likewise.
44721         * lib/unictype/pr_not_a_character.h: Likewise.
44722         * lib/unictype/pr_numeric.h: Likewise.
44723         * lib/unictype/pr_other_alphabetic.h: Likewise.
44724         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44725         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44726         * lib/unictype/pr_other_id_continue.h: Likewise.
44727         * lib/unictype/pr_other_id_start.h: Likewise.
44728         * lib/unictype/pr_other_lowercase.h: Likewise.
44729         * lib/unictype/pr_other_math.h: Likewise.
44730         * lib/unictype/pr_other_uppercase.h: Likewise.
44731         * lib/unictype/pr_paired_punctuation.h: Likewise.
44732         * lib/unictype/pr_paragraph_separator.h: Likewise.
44733         * lib/unictype/pr_pattern_syntax.h: Likewise.
44734         * lib/unictype/pr_pattern_white_space.h: Likewise.
44735         * lib/unictype/pr_private_use.h: Likewise.
44736         * lib/unictype/pr_punctuation.h: Likewise.
44737         * lib/unictype/pr_quotation_mark.h: Likewise.
44738         * lib/unictype/pr_radical.h: Likewise.
44739         * lib/unictype/pr_sentence_terminal.h: Likewise.
44740         * lib/unictype/pr_soft_dotted.h: Likewise.
44741         * lib/unictype/pr_space.h: Likewise.
44742         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44743         * lib/unictype/pr_titlecase.h: Likewise.
44744         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44745         * lib/unictype/pr_unified_ideograph.h: Likewise.
44746         * lib/unictype/pr_uppercase.h: Likewise.
44747         * lib/unictype/pr_variation_selector.h: Likewise.
44748         * lib/unictype/pr_white_space.h: Likewise.
44749         * lib/unictype/pr_xid_continue.h: Likewise.
44750         * lib/unictype/pr_xid_start.h: Likewise.
44751         * lib/unictype/pr_zero_width.h: Likewise.
44752         * lib/unictype/scripts.h: Likewise.
44753         * lib/unictype/scripts_byname.gperf: Likewise.
44754         * lib/unictype/sy_c_ident.h: Likewise.
44755         * lib/unictype/sy_c_whitespace.h: Likewise.
44756         * lib/unictype/sy_java_ident.h: Likewise.
44757         * lib/unictype/sy_java_whitespace.h: Likewise.
44758
44759         * lib/unictype/Makefile: New file.
44760         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44761         glibc.
44762         * lib/unictype/3level.h: New file, copied from glibc.
44763         * lib/unictype/3levelbit.h: New file.
44764
44765 2007-11-11  Bruno Haible  <bruno@clisp.org>
44766
44767         * modules/gperf: New file.
44768         * modules/iconv_open (Depends-on): Add it.
44769         (Makefile.am): Remove the GPERF definition.
44770
44771 2007-11-11  Bruno Haible  <bruno@clisp.org>
44772
44773         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44774         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44775
44776 2007-11-11  Bruno Haible  <bruno@clisp.org>
44777
44778         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44779         (usage): Remove function.
44780
44781 2007-11-11  Bruno Haible  <bruno@clisp.org>
44782
44783         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44784         gl_FUNC_CEILF_LIBS.
44785         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44786         gl_FUNC_CEIL_LIBS.
44787         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44788         gl_FUNC_CEILL_LIBS.
44789         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44790         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44791         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44792
44793 2007-11-11  Bruno Haible  <bruno@clisp.org>
44794
44795         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44796         roundf were declared but do not exist on functions.
44797         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44798         roundl were declared but do not exist on functions.
44799         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44800         HAVE_FLOORL_AND_CEILL, respectively.
44801         Needed for Sun C on Solaris 10.
44802
44803 2007-11-11  Bruno Haible  <bruno@clisp.org>
44804
44805         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44806         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44807         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44808         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44809         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44810         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44811         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44812         HAVE_DECL_ROUNDF.
44813         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44814         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44816         of HAVE_DECL_ROUND*.
44817         * modules/math (Makefile.am): Update.
44818
44819 2007-11-10  Bruno Haible  <bruno@clisp.org>
44820
44821         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44822         ptrdiff_t as m4/intl.m4.
44823
44824 2007-11-10  Jim Meyering  <meyering@redhat.com>
44825
44826         Avoid link failure for the argmatch test.
44827         * tests/test-argmatch.c (usage): Define function to avoid a link
44828         failure: argmatch_die requires a usage function.
44829
44830 2007-11-09  Bruno Haible  <bruno@clisp.org>
44831
44832         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44833         * doc/functions/vsnprintf.texi: Likewise.
44834         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44835         with a size argument < 2.
44836
44837 2007-11-09  Bruno Haible  <bruno@clisp.org>
44838
44839         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44840         buffer. Fixes an inefficiency introduced on 2007-11-03.
44841
44842 2007-11-09  Bruno Haible  <bruno@clisp.org>
44843
44844         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44845         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44846
44847 2007-11-08  Jim Meyering  <meyering@redhat.com>
44848
44849         Change cache variable name prefix "jm_" to "gl_" everywhere.
44850         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44851         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44852         * m4/uptime.m4: s/gl_/jm_/
44853
44854 2007-11-07  Bruno Haible  <bruno@clisp.org>
44855
44856         Update to GNU gettext 0.17.
44857         * m4/intl.m4: Update to GNU gettext 0.17.
44858         * m4/po.m4: Likewise.
44859         * modules/gettext (Files): Remove m4/ulonglong.m4.
44860         (configure.ac): Require gettext infrastructure from version 0.17.
44861
44862 2007-11-06  Bruno Haible  <bruno@clisp.org>
44863
44864         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44865         symbolic values are not defined in a public header.
44866         * lib/freadable.c (freadable) [QNX]: Likewise.
44867         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44868         * lib/freading.c (freading) [QNX]: Likewise.
44869         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44870         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44871         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44872         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44873         Reported by Alain Magloire.
44874
44875         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44876
44877 2007-11-05  Bruno Haible  <bruno@clisp.org>
44878
44879         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44880         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44881         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44882         Reported by Eric Blake.
44883
44884 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44885             Bruno Haible  <bruno@clisp.org>
44886
44887         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44888         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44889         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44890         (malloc): Undefine also before including <stdlib.h>.
44891         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44892         Needed on OSF/1 4.0.
44893
44894 2007-11-05  Jim Meyering  <meyering@redhat.com>
44895
44896         git-version-gen: sync from coreutils.
44897         * build-aux/git-version-gen: Add comments.
44898         Change the first '-' to '.' in the snapshot version string,
44899         e.g., 6.9-377-08144 -> 6.9.377-08144
44900         Remove first parameter.
44901         Don't declare a version "-dirty" merely because a time
44902         stamp has changed.
44903
44904 2007-11-04  Bruno Haible  <bruno@clisp.org>
44905
44906         * lib/lock.h: Protect all macro definitions containing an 'if'
44907         statement through a "do { ... } while (0)".
44908         * lib/tls.h: Likewise.
44909
44910 2007-11-04  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44913
44914 2007-11-04  Bruno Haible  <bruno@clisp.org>
44915
44916         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44917         * modules/fprintf-posix (Depends-on): Add nocrash.
44918         * modules/snprintf-posix (Depends-on): Likewise.
44919         * modules/sprintf-posix (Depends-on): Likewise.
44920         * modules/vasnprintf-posix (Depends-on): Likewise.
44921         * modules/vasprintf-posix (Depends-on): Likewise.
44922         * modules/vfprintf-posix (Depends-on): Likewise.
44923         * modules/vsnprintf-posix (Depends-on): Likewise.
44924         * modules/vsprintf-posix (Depends-on): Likewise.
44925         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44926         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44927         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44928         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44929         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44930         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44931         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44932
44933 2007-11-04  Bruno Haible  <bruno@clisp.org>
44934
44935         * modules/nocrash: New file.
44936         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44937         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44938
44939 2007-11-04  Bruno Haible  <bruno@clisp.org>
44940
44941         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44942         precision handling.
44943         * tests/test-vasprintf-posix.c (test_function): Likewise.
44944         * tests/test-snprintf-posix.h (test_function): Likewise.
44945         * tests/test-sprintf-posix.h (test_function): Likewise.
44946
44947         Fix *printf behaviour for large precisions on mingw and BeOS.
44948         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44949         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44950         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44951         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44952         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44953         gl_PRINTF_PRECISION and test its result. Invoke
44954         gl_PREREQ_VASNPRINTF_PRECISION.
44955         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44956         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44957         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44958         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44959         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44961         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44962         * doc/functions/fprintf.texi: Update.
44963         * doc/functions/printf.texi: Update.
44964         * doc/functions/snprintf.texi: Update.
44965         * doc/functions/sprintf.texi: Update.
44966         * doc/functions/vfprintf.texi: Update.
44967         * doc/functions/vprintf.texi: Update.
44968         * doc/functions/vsnprintf.texi: Update.
44969         * doc/functions/vsprintf.texi: Update.
44970
44971 2007-11-04  Bruno Haible  <bruno@clisp.org>
44972
44973         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44974
44975 2007-11-04  Bruno Haible  <bruno@clisp.org>
44976
44977         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44978         Reported by Sylvain Beucler <beuc@gnu.org>.
44979
44980 2007-11-03  Bruno Haible  <bruno@clisp.org>
44981
44982         * tests/test-fprintf-posix2.sh: New file.
44983         * tests/test-fprintf-posix2.c: New file.
44984         * modules/fprintf-posix-tests (Files): Add them.
44985         (TESTS): Add test-fprintf-posix2.sh.
44986         (configure.ac): Check for getrlimit and setrlimit.
44987         (check_PROGRAMS): Add test-fprintf-posix2.
44988
44989         * tests/test-printf-posix2.sh: New file.
44990         * tests/test-printf-posix2.c: New file.
44991         * modules/printf-posix-tests (Files): Add them.
44992         (TESTS): Add test-printf-posix2.sh.
44993         (configure.ac): Check for getrlimit and setrlimit.
44994         (check_PROGRAMS): Add test-printf-posix2.
44995
44996         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44997         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44998         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44999         (decode_double): New function, copied from decode_long_double.
45000         (scale10_round_decimal_decoded): New function, extracted from
45001         scale10_round_decimal_long_double.
45002         (scale10_round_decimal_long_double): Use it.
45003         (scale10_round_decimal_double): New function.
45004         (floorlog10): New function.
45005         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45007         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45008         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45009         gl_PRINTF_ENOMEM and test its result. Invoke
45010         gl_PREREQ_VASNPRINTF_ENOMEM.
45011         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45012         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45013         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45014         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45015         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45016         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45017         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45018         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45019         * modules/snprintf-posix (Depends-on): Likewise.
45020         * modules/sprintf-posix (Depends-on): Likewise.
45021         * modules/vasnprintf-posix (Depends-on): Likewise.
45022         * modules/vasprintf-posix (Depends-on): Likewise.
45023         * modules/vfprintf-posix (Depends-on): Likewise.
45024         * modules/vsnprintf-posix (Depends-on): Likewise.
45025         * modules/vsprintf-posix (Depends-on): Likewise.
45026         * doc/functions/fprintf.texi: Update.
45027         * doc/functions/printf.texi: Update.
45028         * doc/functions/snprintf.texi: Update.
45029         * doc/functions/sprintf.texi: Update.
45030         * doc/functions/vfprintf.texi: Update.
45031         * doc/functions/vprintf.texi: Update.
45032         * doc/functions/vsnprintf.texi: Update.
45033         * doc/functions/vsprintf.texi: Update.
45034
45035 2007-11-03  Bruno Haible  <bruno@clisp.org>
45036
45037         * modules/frexp-nolibm-tests: New file.
45038
45039         * modules/frexp-nolibm: New file.
45040         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45041
45042 2007-11-03  Bruno Haible  <bruno@clisp.org>
45043
45044         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45045         value is C99 compliant.
45046         Needed for OSF/1 5.1.
45047
45048 2007-11-03  Bruno Haible  <bruno@clisp.org>
45049
45050         Fix out-of-memory handling of vasnprintf.
45051         * lib/printf-parse.c: Include <errno.h>.
45052         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45053         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45054         is already set.
45055
45056 2007-11-02  Eric Blake  <ebb9@byu.net>
45057
45058         Fix tests on cygwin.
45059         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45060
45061 2007-11-01  Bruno Haible  <bruno@clisp.org>
45062
45063         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45064         warning.
45065         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45066         needed for POSIX compatibility.
45067
45068 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45069
45070         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45071         for compatibility with GNU.
45072
45073 2007-11-01  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45076         (putenv): Renamed from rpl_putenv. Change argument type from
45077         'const char *' to 'char *'.
45078         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45079         of defining putenv in config.h, just set REPLACE_PUTENV.
45080         * modules/putenv (Depends-on): Add stdlib.
45081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45082         (Include): Use <stdlib.h>.
45083         * lib/stdlib.in.h (putenv): New declaration.
45084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45085         REPLACE_PUTENV.
45086         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45087         REPLACE_PUTENV.
45088         Needed for MacOS X 10.5.0.
45089         Reported by Peter O'Gorman <peter@pogma.com>.
45090
45091 2007-11-01  Jim Meyering  <meyering@redhat.com>
45092
45093         Treat an empty date string exactly like "0".
45094         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45095         if the remaining date string (to be parsed) is empty, use "0".
45096         Reported by Mischa Molhoek and discussed in this thread:
45097         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45098
45099 2007-10-31  Bruno Haible  <bruno@clisp.org>
45100
45101         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45102         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45103         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45104         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45105         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45106         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45107
45108 2007-10-31  Bruno Haible  <bruno@clisp.org>
45109
45110         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45111         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45112         (AC_TYPE_LONG_LONG_INT): Use it.
45113         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45114         it as well.
45115         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45116         to m4/longlong.m4.
45117         * modules/stdint (Files): Remove m4/ulonglong.m4.
45118         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45119         m4/ulonglong.m4.
45120         * modules/strtoumax (Files): Likewise.
45121
45122 2007-10-30  Bruno Haible  <bruno@clisp.org>
45123
45124         * modules/xvasprintf-posix: New file.
45125         Suggested by Eric Blake.
45126
45127 2007-10-30  Bruno Haible  <bruno@clisp.org>
45128
45129         * modules/xprintf-posix-tests: New file.
45130         * tests/test-xprintf-posix.sh: New file.
45131         * tests/test-xprintf-posix.c: New file.
45132         * tests/test-xfprintf-posix.c: New file.
45133
45134         * modules/xprintf-posix: New file.
45135
45136 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45137
45138         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45139         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45140         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45141
45142 2007-10-29  Bruno Haible  <bruno@clisp.org>
45143
45144         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45145         contain the special marker '_cv_'.
45146         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45147         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45148         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45149         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45150         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45151         Reported by Ralf Wildenhues.
45152
45153 2007-10-29  Bruno Haible  <bruno@clisp.org>
45154
45155         * gnulib-tool (func_import): When --lgpl is not specified, set
45156         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45157         GPLv3.
45158         Reported by Simon Josefsson.
45159
45160 2007-10-28  Bruno Haible  <bruno@clisp.org>
45161
45162         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45163         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45164         HAVE_DECL_ISFINITE.
45165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45166         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45167         HAVE_DECL_ISFINITE.
45168
45169 2007-10-28  Bruno Haible  <bruno@clisp.org>
45170
45171         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45172         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45173
45174 2007-10-28  Bruno Haible  <bruno@clisp.org>
45175
45176         Fix link errors with Sun C 5.0 on Solaris 10.
45177         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45178         function is declared but not present in the compiler's libm.
45179         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45180         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45181         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45182         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45183         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45184         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45185         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45187         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45188         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45189         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45190         HAVE_DECL_FLOORL.
45191
45192 2007-10-28  Bruno Haible  <bruno@clisp.org>
45193
45194         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45195         gl_FUNC_FLOORL. Cache the result.
45196         (gl_FUNC_FLOORL): Use it.
45197         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45198         gl_FUNC_CEILL. Cache the result.
45199         (gl_FUNC_CEILL): Use it.
45200
45201         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45202         gl_FUNC_FLOOR. Cache the result.
45203         (gl_FUNC_FLOOR): Use it.
45204         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45205         gl_FUNC_CEIL. Cache the result.
45206         (gl_FUNC_CEIL): Use it.
45207
45208         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45209         gl_FUNC_FLOORF. Cache the result.
45210         (gl_FUNC_FLOORF): Use it.
45211         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45212         gl_FUNC_CEILF. Cache the result.
45213         (gl_FUNC_CEILF): Use it.
45214
45215 2007-10-28  Bruno Haible  <bruno@clisp.org>
45216
45217         * gnulib-tool: Allow specifying the LGPL version number through
45218         --lgpl=2 or --lgpl=3.
45219         (func_usage): Document --lgpl with argument.
45220         Handle --lgpl=... arguments.
45221         (func_import): Recognize also gl_LGPL calls with an argument. When
45222         --lgpl=2 is used and the module's license is just LGPL, report an
45223         error. Set sed_transform_lib_file according to the lgpl variable. In
45224         the generated files, use --lgpl or gl_LGPL invocations with argument,
45225         if necessary.
45226         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45227         an LGPv2+ license.
45228         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45229         gl_LGPL macro.
45230
45231 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45232             Bruno Haible  <bruno@clisp.org>
45233
45234         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45235         (u16_uctomb_aux): Likewise.
45236         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45237         !HAVE_INLINE.
45238         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45239
45240 2007-10-28  Bruno Haible  <bruno@clisp.org>
45241
45242         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45243         Invoke AM_GETTEXT_OPTION if it exists.
45244         * modules/vasprintf: Likewise.
45245         * modules/verror: Likewise.
45246         * modules/xprintf: Likewise.
45247         * modules/xvasprintf: Likewise.
45248
45249 2007-10-27  Ben Pfaff  <blp@gnu.org>
45250
45251         * lib/math.in.h: Define isfinite macro and prototypes for
45252         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45253         implementations.
45254         * m4/math_h.m4: New substitutions for isfinite module.
45255         * lib/isfinite.c: New file.
45256         * m4/isfinite.m4: New file.
45257         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45258         * modules/isfinite: New file.
45259         * modules/isfinite-tests: New file.
45260         * tests/tests-isfinite.c: New file.
45261         * doc/functions/isfinite.texi: Mention isfinite module.
45262         * MODULES.html.sh: Mention new module.
45263
45264 2007-10-27  Ben Pfaff  <blp@gnu.org>
45265
45266         Ralf Wildenhues reported that Tru64 4.0D declares the round
45267         functions but does not have definitions.
45268         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45269         cannot be found in any library, set the output variable to
45270         "missing" instead of "".
45271         * m4/round.m4: Also use our substitute if we cannot find round in
45272         any library, even if it is declared.
45273         * m4/roundf.m4: Likewise for roundf.
45274         * m4/roundl.m4: Likewise for roundl.
45275         * lib/math.in.h: Undefine roundf, round, roundl before defining
45276         their replacements, to allow for hypothetical systems where these
45277         may be defined as macros but not available in libraries.
45278
45279 2007-10-27  Bruno Haible  <bruno@clisp.org>
45280
45281         * doc/gnulib.texi: Invoke @firstparagraphindent.
45282         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45283         changes in gnulib.
45284         (Source changes): New section.
45285
45286 2007-10-26  Bruno Haible  <bruno@clisp.org>
45287
45288         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45289         borrowed from autoconf.
45290
45291 2007-10-26  Bruno Haible  <bruno@clisp.org>
45292
45293         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45294         strerror returned the empty string. Needed on HP-UX 11.00.
45295
45296 2007-10-24  Micah Cowan  <micah@cowan.name>
45297
45298         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45299         * build-aux/bootstrap: Remove support for now-unnecessary option,
45300         --cvs-user, and envvars CVS_USER, CVS_RSH.
45301
45302 2007-10-24  Jim Meyering  <meyering@redhat.com>
45303
45304         Avoid diagnostics from sha1sum when there is no cached checksum.
45305         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45306         if the po.s1 file hasn't been created yet.
45307
45308         * build-aux/bootstrap: Sync from coreutils:
45309         2007-10-24  Jim Meyering  <meyering@redhat.com>
45310         Get gnulib from the git repository, not from an obsolete cvs one.
45311         * build-aux/bootstrap: Suggestion from Micah Cowan.
45312         2007-10-04  Jim Meyering  <jim@meyering.net>
45313         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45314         (update_po_files): Work also when there are no .po files in po/.
45315
45316 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45317
45318         * README: Append ".git" to git and cg examples.
45319         Problem reported by Benoit Sigoure.
45320
45321 2007-10-23  Micah Cowan  <micah@cowan.name>
45322
45323         * users.txt: Add wget.
45324
45325 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45326
45327         Fix linking of some unistdio tests on FreeBSD.
45328         * modules/unistdio/u16-vsnprintf-tests
45329         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45330         * modules/unistdio/u16-vsprintf-tests
45331         (test_u16_vsnprintf1_LDADD): Likewise.
45332         * modules/unistdio/u32-vsnprintf-tests
45333         (test_u32_vsnprintf1_LDADD): Likewise.
45334         * modules/unistdio/u32-vsprintf-tests
45335         (test_u32_vsprintf1_LDADD): Likewise.
45336         * modules/unistdio/u8-vsnprintf-tests
45337         (test_u8_vsnprintf1_LDADD): Likewise.
45338         * modules/unistdio/u8-vsprintf-tests
45339         (test_u8_vsprintf1_LDADD): Likewise.
45340         * modules/unistdio/ulc-vsnprintf-tests
45341         (test_ulc_vsnprintf1_LDADD): Likewise.
45342         * modules/unistdio/ulc-vsprintf-tests
45343         (test_ulc_vsprintf1_LDADD): Likewise.
45344
45345         Fix linking of some uniconv tests on FreeBSD.
45346         * modules/uniconv/u16-conv-from-enc-tests
45347         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45348         * modules/uniconv/u16-conv-to-enc-tests
45349         (test_u16_conv_to_enc_LDADD): Likewise.
45350         * modules/uniconv/u16-strconv-from-enc-tests
45351         (test_u16_strconv_from_enc_LDADD): Likewise.
45352         * modules/uniconv/u16-strconv-to-enc-tests
45353         (test_u16_strconv_to_enc_LDADD): Likewise.
45354         * modules/uniconv/u32-conv-from-enc-tests
45355         (test_u32_conv_from_enc_LDADD): Likewise.
45356         * modules/uniconv/u32-conv-to-enc-tests
45357         (test_u32_conv_to_enc_LDADD): Likewise.
45358         * modules/uniconv/u32-strconv-from-enc-tests
45359         (test_u32_strconv_from_enc_LDADD): Likewise.
45360         * modules/uniconv/u32-strconv-to-enc-tests
45361         (test_u32_strconv_to_enc_LDADD): Likewise.
45362         * modules/uniconv/u8-conv-from-enc-tests
45363         (test_u8_conv_from_enc_LDADD): Likewise.
45364         * modules/uniconv/u8-conv-to-enc-tests
45365         (test_u8_conv_to_enc_LDADD): Likewise.
45366         * modules/uniconv/u8-strconv-from-enc-tests
45367         (test_u8_strconv_from_enc_LDADD): Likewise.
45368         * modules/uniconv/u8-strconv-to-enc-tests
45369         (test_u8_strconv_to_enc_LDADD): Likewise.
45370
45371 2007-10-22  Bruno Haible  <bruno@clisp.org>
45372
45373         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45374         size.
45375
45376 2007-10-22  Eric Blake  <ebb9@byu.net>
45377
45378         Tweak x*printf documentation.
45379         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45380         variable name and comments.
45381         Suggested by Bruno Haible.
45382
45383 2007-10-22  Bruno Haible  <bruno@clisp.org>
45384
45385         * lib/acl.c (copy_acl): Fix file name in comment.
45386
45387 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45388
45389         Fix Tru64 problem with stdbool.h.
45390         * lib/stdbool.in.h (false, true):
45391         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45392         Don't declare as an enum in this situation; it runs afoul of Tru64.
45393         Problem reported by Steven M. Schweda in
45394         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45395
45396 2007-10-22  Eric Blake  <ebb9@byu.net>
45397
45398         Also wrap vf?printf.
45399         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45400         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45401         (xvprintf, xvfprintf): New functions.
45402
45403 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45404
45405         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45406         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45407
45408         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45409         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45410
45411 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45412
45413         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45414         by Bruno Haible.
45415
45416 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45417
45418         * lib/getloadavg.c
45419         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45420         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45421
45422         * tests/test-i-ring.c: Work for C89.
45423
45424 2007-10-22  Bruno Haible  <bruno@clisp.org>
45425
45426         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45427         -1u, in preprocessor expression, so that we don't test for the bug
45428         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45430
45431 2007-10-22  Eric Blake  <ebb9@byu.net>
45432
45433         * tests/test-yesno.sh: Silence stderr during test.
45434
45435 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45436
45437         * modules/crypto/gc-camellia: New file.
45438
45439         * m4/gc-camellia.m4: New file.
45440
45441         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45442
45443         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45444
45445 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45446
45447         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45448         --help to stdout.  Reported by sms@antinode.org (Steven
45449         M. Schweda).
45450
45451 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45452
45453         * users.txt: Fix link to libksba.
45454
45455 2007-10-21  Ben Pfaff  <blp@gnu.org>
45456
45457         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45458         round.c roundf implementation that depends on floorf and ceilf to
45459         be tested unconditionally.
45460
45461 2007-10-21  Ben Pfaff  <blp@gnu.org>
45462
45463         * m4/check-libm-func.m4: Removed.
45464         * m4/check-math-lib.m4: New file.
45465         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45466         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45467         definition and lack of AC_LIBOBJ([roundf]).
45468         * m4/roundl.m4: Ditto, and similarly for roundl.
45469         * modules/round: Reference new m4 file.
45470         * modules/roundf: Ditto.
45471         * modules/roundl: Ditto.
45472         * tests/test-round2.c (main): Use ROUND instead of round.
45473         Bug report from Bruno Haible.
45474
45475 2007-10-21  Bruno Haible  <bruno@clisp.org>
45476
45477         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45478         context.
45479
45480 2007-10-21  Bruno Haible  <bruno@clisp.org>
45481
45482         * tests/test-wcwidth.c (main): Allow negative result for some control
45483         characters.
45484
45485         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45486         Needed on OSF/1 5.1.
45487
45488 2007-10-21  Bruno Haible  <bruno@clisp.org>
45489
45490         * tests/test-floorf1.c: Include isnanf.h.
45491         (main): Use isnanf() instead of isnan().
45492         * tests/test-ceilf1.c: Include isnanf.h.
45493         (main): Use isnanf() instead of isnan().
45494         * tests/test-truncf1.c: Include isnanf.h.
45495         (main): Use isnanf() instead of isnan().
45496         * tests/test-roundf1.c: Include isnanf.h.
45497         (main): Use isnanf() instead of isnan().
45498
45499 2007-10-21  Eric Blake  <ebb9@byu.net>
45500
45501         * users.txt: Update URL for m4.
45502
45503 2007-10-21  Bruno Haible  <bruno@clisp.org>
45504
45505         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45506
45507 2007-10-21  Bruno Haible  <bruno@clisp.org>
45508
45509         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45510         Git's management files if the CVS files are not present.
45511
45512 2007-10-20  Bruno Haible  <bruno@clisp.org>
45513
45514         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45515         gcc-3.4.x.
45516
45517 2007-10-20  Ben Pfaff  <blp@gnu.org>
45518
45519         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45520         implementations.
45521         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45522         * lib/round.c: New file.
45523         * lib/roundf.c: New file.
45524         * lib/roundl.c: New file.
45525         * m4/round.m4: New file.
45526         * m4/roundf.m4: New file.
45527         * m4/roundl.m4: New file.
45528         * m4/check-libm-func-m4: New file.
45529         * modules/math: Replace round, roundf, roundl related @VARS@ in
45530         math.in.h.
45531         * modules/round: New file.
45532         * modules/round-tests: New file.
45533         * modules/roundf: New file.
45534         * modules/roundf-tests: New file.
45535         * modules/roundl: New file.
45536         * modules/roundl-tests: New file.
45537         * tests/test-round1.c: New file.
45538         * tests/test-round2.c: New file.
45539         * tests/test-roundf1.c: New file.
45540         * tests/test-roundf2.c: New file.
45541         * tests/test-roundl.c: New file.
45542         * doc/functions/round.texi: Mention round module.
45543         * doc/functions/roundf.texi: Mention roundf module.
45544         * doc/functions/roundl.texi: Mention roundl module.
45545         * MODULES.html.sh: Mention new modules.
45546         Thanks to Bruno Haible for suggestions.
45547
45548 2007-10-20  Jim Meyering  <meyering@redhat.com>
45549
45550         * lib/xprintf.c: Include <config.h> unconditionally.
45551
45552         Change xprintf's license to GPL.
45553         * modules/xprintf (License): s/LGPL/GPL/, since this module
45554         depends on modules (exit and exitfail) which are GPL.
45555         Suggestion from Bruno Haible.
45556
45557         xprintf fixes.
45558         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45559         Use a clearer diagnostic.
45560         Patch from Bruno Haible.
45561
45562 2007-10-20  Bruno Haible  <bruno@clisp.org>
45563
45564         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45565         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45566         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45567
45568 2007-10-20  Bruno Haible  <bruno@clisp.org>
45569
45570         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45571         precision in the comparison result > x - 1 or similar.
45572         * tests/test-ceilf2.c (correct_result_p): Likewise.
45573         * tests/test-truncf2.c (correct_result_p): Likewise.
45574         * tests/test-trunc2.c (correct_result_p): Likewise.
45575         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45576
45577 2007-10-20  Bruno Haible  <bruno@clisp.org>
45578
45579         * modules/ceil: New file.
45580         * m4/ceil.m4: New file.
45581         * doc/functions/ceil.texi: Mention the 'ceil' module.
45582
45583 2007-10-20  Bruno Haible  <bruno@clisp.org>
45584
45585         * modules/floor: New file.
45586         * m4/floor.m4: New file.
45587         * doc/functions/floor.texi: Mention the 'floor' module.
45588
45589 2007-10-20  Bruno Haible  <bruno@clisp.org>
45590
45591         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45592         of %a.
45593         * modules/floorf-tests (Depends-on): Likewise.
45594         * modules/truncf-tests (Depends-on): Likewise.
45595         * modules/trunc-tests (Depends-on): Likewise.
45596         Reported by Ben Pfaff.
45597
45598 2007-10-19  Jim Meyering  <meyering@redhat.com>
45599
45600         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45601         Don't bother testing specific errno values.  Just test ferror.
45602
45603         New module: xprintf
45604         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45605
45606 2007-10-19  Bruno Haible  <bruno@clisp.org>
45607
45608         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45609         syntax.
45610         * modules/javaexec (Makefile.am): Likewise.
45611         * modules/relocatable-prog (Makefile.am): Likewise.
45612         Suggested by Jim Meyering.
45613
45614 2007-10-18  Bruno Haible  <bruno@clisp.org>
45615
45616         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45617         Reported by Jim Meyering.
45618
45619 2007-10-18  Eric Blake  <ebb9@byu.net>
45620
45621         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45622
45623 2007-10-18  Bruno Haible  <bruno@clisp.org>
45624
45625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45626         the format string into writable memory. Needed in Fortify conditions.
45627
45628 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45629             Bruno Haible  <bruno@clisp.org>
45630
45631         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45632         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45633         * modules/trim (Depends-on): Add mbchar.
45634         (configure.ac): Add gl_FUNC_MBRTOWC.
45635         (Makefile.am): Augment lib_SOURCES.
45636
45637 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45638
45639         Modify glob.c to use fstatat and dirfd, to simplify it.
45640         Suggested by Eric Blake.
45641         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45642         Don't include <stdbool.h>; not used.
45643         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45644         (link_exists_p): Simplify implementation, since we can now assume
45645         dirfd and fstatat.
45646         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45647
45648 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45649
45650         * gnulib-tool (func_get_dependencies): Fix sed script to
45651         match only tests.
45652
45653 2007-10-17  Bruno Haible  <bruno@clisp.org>
45654
45655         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45656         allow locale names without encoding suffix.
45657         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45658         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45659
45660 2007-10-16  Bruno Haible  <bruno@clisp.org>
45661
45662         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45663         * lib/getgroups.c (getgroups): Likewise.
45664         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45665
45666 2007-10-16  Bruno Haible  <bruno@clisp.org>
45667
45668         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45669         * modules/malloc-posix (License): Likewise.
45670         * modules/realloc-posix (License): Likewise.
45671         * modules/calloc-posix (License): Likewise.
45672         * modules/intprops (License): Change from GPL to LGPL, with
45673         Paul Eggert's approval.
45674
45675 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45676
45677         Merge glibc changes into lib/glob.c.
45678
45679         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45680         2007-10-15 04:59:03 UTC.  Here are the changes:
45681
45682         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45683
45684         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45685
45686         * lib/glob.c: Add some branch prediction throughout.
45687
45688         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45689
45690         [BZ #5103]
45691         * lib/glob.c (glob): Recognize patterns starting \/.
45692
45693         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45694
45695         [BZ #3996]
45696         * lib/glob.c (attribute_hidden): Define if not defined.
45697         (glob): Unescape dirname, filename or username when needed and not
45698         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45699         is NULL.  Handle unescaped [ in pattern without closing ].
45700         Don't pass GLOB_CHECK down to recursive glob for directories.
45701         (__glob_pattern_type): New function.
45702         (__glob_pattern_p): Implement using __glob_pattern_type.
45703         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45704         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45705         Remove unreachable code.
45706
45707         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45708
45709         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45710         explain why there are no leaks.
45711
45712         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45713
45714         [BZ #3253]
45715         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45716         time, rather allocate increasingly bigger arrays of pointers, if
45717         possible with alloca, if too large with malloc.
45718
45719 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45720
45721         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45722         Problem reported by H.Merijn Brand in
45723         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45724         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45725         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45726
45727 2007-10-15  Bruno Haible  <bruno@clisp.org>
45728
45729         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45730         with explicit rpl_ prefix.
45731         * lib/fopen.c (fopen): Likewise.
45732         * lib/freopen.c (freopen): Likewise.
45733         * lib/iconv.c (iconv): Likewise.
45734         * lib/iconv_close.c (iconv_close): Likewise.
45735
45736 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45737
45738         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45739
45740 2007-10-15  Bruno Haible  <bruno@clisp.org>
45741
45742         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45743         <stddef.h> instead of <stdlib.h> since we only need NULL.
45744         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45745
45746 2007-10-15  Bruno Haible  <bruno@clisp.org>
45747
45748         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45749         Replace paragraph talking about LIBOBJS.
45750         Reported by Colin Watson <cjwatson@debian.org>.
45751
45752 2007-10-15  Bruno Haible  <bruno@clisp.org>
45753
45754         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45755         <stdlib.h> before using NULL.
45756
45757 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45758
45759         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45760         Reported by Albert Chin <china@thewrittenword.com>.
45761
45762 2007-10-14  Bruno Haible  <bruno@clisp.org>
45763
45764         * modules/iconv_open-utf-tests: New file.
45765         * tests/test-iconv-utf.c: New file.
45766
45767         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45768         * modules/iconv_open-utf: New file.
45769         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45770         (iconv, iconv_close): New declarations.
45771         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45772         be defined.
45773         (iconv_open): Add special handling of conversion between UTF-8 and
45774         UTF-{16,32}{BE,LE}.
45775         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45776         * lib/iconv_close.c: New file.
45777         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45778         gl_FUNC_ICONV_OPEN.
45779         (gl_FUNC_ICONV_OPEN): Use it.
45780         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45781         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45782         and REPLACE_ICONV_UTF.
45783         * modules/iconv_open (Depends-on): Add c-strcase.
45784         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45785         ICONV_CONST.
45786         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45787
45788 2007-10-13  Albert Chin  <china@thewrittenword.com>
45789             Bruno Haible  <bruno@clisp.org>
45790
45791         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45792         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45793
45794 2007-10-13  Bruno Haible  <bruno@clisp.org>
45795
45796         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45797         defined, use the ISO C99 inline semantics.
45798         * lib/argp.h (ARGP_EI): Likewise.
45799
45800 2007-10-13  Bruno Haible  <bruno@clisp.org>
45801
45802         Handle 'inline' change in gcc 4.3.0.
45803         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45804         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45805         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45806         argp_fmtstream_point): Disable 'extern' declaration if the function
45807         definition is going to be provided inline.
45808         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45809         semantics, not the ISO C99 inline semantics.
45810         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45811         'extern' declaration if the function definition is going to be provided
45812         inline.
45813         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45814         the GNU C inline semantics, not the ISO C99 inline semantics. With
45815         GCC 4.2, avoid a warning.
45816
45817 2007-10-13  Bruno Haible  <bruno@clisp.org>
45818
45819         * lib/freading.h (freading): Enable the use of __freading for
45820         glibc >= 2.7.
45821         * lib/freading.c (freading): Likewise.
45822
45823 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45824
45825         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45826         "warning: C99 inline functions are not supported; using GNU89".
45827
45828 2007-10-12  Bruno Haible  <bruno@clisp.org>
45829
45830         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45831         of 2.
45832         * tests/test-ceilf2.c: New file.
45833         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45834
45835         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45836         * modules/ceilf-tests: Update.
45837
45838 2007-10-12  Bruno Haible  <bruno@clisp.org>
45839
45840         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45841         of 2.
45842         * tests/test-floorf2.c: New file.
45843         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45844
45845         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45846         * modules/floorf-tests: Update.
45847
45848 2007-10-12  Bruno Haible  <bruno@clisp.org>
45849
45850         * tests/test-trunc2.c: New file.
45851         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45852
45853         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45854         * modules/trunc-tests: Update.
45855
45856 2007-10-12  Bruno Haible  <bruno@clisp.org>
45857
45858         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45859         of 2.
45860         * tests/test-truncf2.c: New file.
45861         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45862
45863         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45864         * modules/truncf-tests: Update.
45865
45866 2007-10-11  Eric Blake  <ebb9@byu.net>
45867
45868         Don't claim strerror is broken on Interix.
45869         * doc/functions/strerror.texi (strerror): Known broken systems are
45870         now Solaris 8, and not Interix.
45871         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45872         Interix on cross-compile.
45873         Reported by Martin Koeppe in
45874         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45875
45876 2007-10-11  Bruno Haible  <bruno@clisp.org>
45877
45878         * modules/i-ring-tests: New file.
45879         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45880         instead of assert.
45881
45882 2007-10-11  Bruno Haible  <bruno@clisp.org>
45883
45884         * modules/filenamecat-tests: New file.
45885         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45886         * lib/filenamecat.c: Remove test code.
45887
45888 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45889
45890         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45891
45892         * lib/strerror.c: Include <string.h> always, to test interface,
45893         and to remove the need for the dummy.
45894         Include intprops.h to compute width instead of doing it ourselves
45895         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45896         (strerror): Define it to return NULL if there's no system strerror.
45897         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45898         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45899         ancient pre-strerror Unix systems well any more.  Saying "unknown
45900         system error" is enough.
45901         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45902         simpler strerror.c implementation.
45903         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45904         Simplify the tests to reflect the simpler strerror implementation.
45905         * modules/strerror (Depends-on): Add intprops.
45906
45907 2007-10-09  Eric Blake  <ebb9@byu.net>
45908
45909         Silence test-fpending.
45910         * modules/fpending-tests (Files): Add wrapper script.
45911         * tests/test-fpending.sh: New file.
45912
45913 2007-10-09  Bruno Haible  <bruno@clisp.org>
45914
45915         * MODULES.html.sh (func_module): Don't create a hyperlink for
45916         function names like 'printf_frexp'.
45917         (Misc): Add crc, memxor.
45918         (Characteristics of floating types): New section.
45919         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45920         isnanf-nolibm, signbit, trunc, truncf, truncl.
45921         (Enhancements for ISO C 99 functions): New subsection Input/output.
45922         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45923         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45924         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45925         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45926         (Enhancements for POSIX:2001 functions): Add chdir-long.
45927         (File system functions): Add areadlink, chdir-safer, read-file.
45928         Remove cycle-check.
45929         (File system as inode set): New section.
45930         (Date and time): Add gethrxtime.
45931         (Multithreading): Add openmp.
45932         (Internationalization functions): Add localename.
45933         (Unicode string functions): Add unistr/u*-mbsnlen.
45934         (Support for maintaining and releasing projects): Add git-version-gen.
45935         (Lone files): Remove directories.
45936
45937 2007-10-08  Ben Pfaff  <blp@gnu.org>
45938
45939         * lib/xmalloca.h: Fix typo in comment.
45940
45941 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45942
45943         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45944         when avoiding problems with integer overflow.  Use a portable test
45945         instead.
45946
45947 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45948
45949         * modules/dummy (License): Change to LGPLv2+.
45950         * modules/float (License): Likewise
45951         * modules/realloc (License): Likewise
45952         * modules/stdlib (License): Likewise
45953
45954 2007-10-07  Bruno Haible  <bruno@clisp.org>
45955
45956         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45957         * floor.c (TWO_MANT_DIG): Likewise.
45958         * ceil.c (TWO_MANT_DIG): Likewise.
45959         Reported by Ben Pfaff.
45960
45961 2007-10-07  Bruno Haible  <bruno@clisp.org>
45962
45963         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45964         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45965         * lib/frexp.c (FUNC): Likewise.
45966         * lib/printf-frexp.h (printf_frexp): Likewise.
45967         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45968         * lib/printf-frexp.c (FUNC): Likewise.
45969         Suggested by Jim Meyering.
45970
45971 2007-10-07  Jim Meyering  <meyering@redhat.com>
45972
45973         Make xnanosleep's integer overflow test more robust.
45974         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45975         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45976
45977 2007-10-07  Bruno Haible  <bruno@clisp.org>
45978
45979         * NEWS: Mention the license change.
45980
45981         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45982         abbreviations in the modules files.
45983
45984         Change copyright notice from GPLv2+ to GPLv3+.
45985         * README: Change copyright notice.
45986         * MODULES.html.sh: Likewise.
45987         * build-aux/bootstrap.conf: Likewise.
45988         * build-aux/config.libpath: Likewise.
45989         * build-aux/csharpcomp.sh.in: Likewise.
45990         * build-aux/csharpexec.sh.in: Likewise.
45991         * build-aux/install-reloc: Likewise.
45992         * build-aux/javacomp.sh.in: Likewise.
45993         * build-aux/javaexec.sh.in: Likewise.
45994         * build-aux/ldd.sh.in: Likewise.
45995         * build-aux/reloc-ldflags: Likewise.
45996         * build-aux/relocatable.sh.in: Likewise.
45997         * build-aux/x-to-1.in: Likewise.
45998         * check-module: Likewise.
45999         * config/srclistvars.sh: Likewise.
46000         * gnulib-tool: Likewise.
46001         * lib/acl-internal.h: Likewise.
46002         * lib/acl.c: Likewise.
46003         * lib/acl.h: Likewise.
46004         * lib/acl_entries.c: Likewise.
46005         * lib/areadlink-with-size.c: Likewise.
46006         * lib/areadlink.c: Likewise.
46007         * lib/areadlink.h: Likewise.
46008         * lib/argmatch.c: Likewise.
46009         * lib/argmatch.h: Likewise.
46010         * lib/argp-ba.c: Likewise.
46011         * lib/argp-eexst.c: Likewise.
46012         * lib/argp-fmtstream.c: Likewise.
46013         * lib/argp-fmtstream.h: Likewise.
46014         * lib/argp-fs-xinl.c: Likewise.
46015         * lib/argp-help.c: Likewise.
46016         * lib/argp-namefrob.h: Likewise.
46017         * lib/argp-parse.c: Likewise.
46018         * lib/argp-pin.c: Likewise.
46019         * lib/argp-pv.c: Likewise.
46020         * lib/argp-pvh.c: Likewise.
46021         * lib/argp-xinl.c: Likewise.
46022         * lib/argp.h: Likewise.
46023         * lib/at-func.c: Likewise.
46024         * lib/atanl.c: Likewise.
46025         * lib/backupfile.c: Likewise.
46026         * lib/backupfile.h: Likewise.
46027         * lib/basename.c: Likewise.
46028         * lib/binary-io.h: Likewise.
46029         * lib/byteswap.in.h: Likewise.
46030         * lib/c-stack.c: Likewise.
46031         * lib/c-stack.h: Likewise.
46032         * lib/c-strcasestr.c: Likewise.
46033         * lib/c-strcasestr.h: Likewise.
46034         * lib/c-strstr.c: Likewise.
46035         * lib/c-strstr.h: Likewise.
46036         * lib/c-strtod.c: Likewise.
46037         * lib/calloc.c: Likewise.
46038         * lib/canon-host.c: Likewise.
46039         * lib/canon-host.h: Likewise.
46040         * lib/canonicalize-lgpl.c: Likewise.
46041         * lib/canonicalize.c: Likewise.
46042         * lib/canonicalize.h: Likewise.
46043         * lib/ceil.c: Likewise.
46044         * lib/ceilf.c: Likewise.
46045         * lib/ceill.c: Likewise.
46046         * lib/chdir-long.c: Likewise.
46047         * lib/chdir-long.h: Likewise.
46048         * lib/chdir-safer.c: Likewise.
46049         * lib/chdir-safer.h: Likewise.
46050         * lib/chown.c: Likewise.
46051         * lib/classpath.c: Likewise.
46052         * lib/classpath.h: Likewise.
46053         * lib/clean-temp.c: Likewise.
46054         * lib/clean-temp.h: Likewise.
46055         * lib/cloexec.c: Likewise.
46056         * lib/close-stream.c: Likewise.
46057         * lib/closein.c: Likewise.
46058         * lib/closein.h: Likewise.
46059         * lib/closeout.c: Likewise.
46060         * lib/closeout.h: Likewise.
46061         * lib/concat-filename.c: Likewise.
46062         * lib/copy-file.c: Likewise.
46063         * lib/copy-file.h: Likewise.
46064         * lib/count-one-bits.h: Likewise.
46065         * lib/crc.c: Likewise.
46066         * lib/crc.h: Likewise.
46067         * lib/creat-safer.c: Likewise.
46068         * lib/csharpcomp.c: Likewise.
46069         * lib/csharpcomp.h: Likewise.
46070         * lib/csharpexec.c: Likewise.
46071         * lib/csharpexec.h: Likewise.
46072         * lib/cycle-check.c: Likewise.
46073         * lib/cycle-check.h: Likewise.
46074         * lib/diacrit.c: Likewise.
46075         * lib/diacrit.h: Likewise.
46076         * lib/diffseq.h: Likewise.
46077         * lib/dirchownmod.c: Likewise.
46078         * lib/dirent.in.h: Likewise.
46079         * lib/dirfd.c: Likewise.
46080         * lib/dirfd.h: Likewise.
46081         * lib/dirname.c: Likewise.
46082         * lib/dirname.h: Likewise.
46083         * lib/dummy.c: Likewise.
46084         * lib/dup-safer.c: Likewise.
46085         * lib/dup2.c: Likewise.
46086         * lib/eealloc.h: Likewise.
46087         * lib/error.c: Likewise.
46088         * lib/error.h: Likewise.
46089         * lib/euidaccess.c: Likewise.
46090         * lib/exclude.c: Likewise.
46091         * lib/exclude.h: Likewise.
46092         * lib/execute.c: Likewise.
46093         * lib/execute.h: Likewise.
46094         * lib/exitfail.c: Likewise.
46095         * lib/exitfail.h: Likewise.
46096         * lib/expl.c: Likewise.
46097         * lib/fatal-signal.c: Likewise.
46098         * lib/fatal-signal.h: Likewise.
46099         * lib/fbufmode.c: Likewise.
46100         * lib/fbufmode.h: Likewise.
46101         * lib/fchdir.c: Likewise.
46102         * lib/fchmodat.c: Likewise.
46103         * lib/fchownat.c: Likewise.
46104         * lib/fcntl--.h: Likewise.
46105         * lib/fcntl-safer.h: Likewise.
46106         * lib/fcntl.in.h: Likewise.
46107         * lib/fd-safer.c: Likewise.
46108         * lib/fflush.c: Likewise.
46109         * lib/file-has-acl.c: Likewise.
46110         * lib/file-set.c: Likewise.
46111         * lib/file-type.c: Likewise.
46112         * lib/file-type.h: Likewise.
46113         * lib/fileblocks.c: Likewise.
46114         * lib/filemode.c: Likewise.
46115         * lib/filemode.h: Likewise.
46116         * lib/filename.h: Likewise.
46117         * lib/filenamecat.c: Likewise.
46118         * lib/filenamecat.h: Likewise.
46119         * lib/findprog.c: Likewise.
46120         * lib/findprog.h: Likewise.
46121         * lib/float.in.h: Likewise.
46122         * lib/floor.c: Likewise.
46123         * lib/floorf.c: Likewise.
46124         * lib/floorl.c: Likewise.
46125         * lib/fopen-safer.c: Likewise.
46126         * lib/fopen.c: Likewise.
46127         * lib/fpending.c: Likewise.
46128         * lib/fpending.h: Likewise.
46129         * lib/fprintf.c: Likewise.
46130         * lib/fprintftime.h: Likewise.
46131         * lib/fpucw.h: Likewise.
46132         * lib/fpurge.c: Likewise.
46133         * lib/fpurge.h: Likewise.
46134         * lib/freadable.c: Likewise.
46135         * lib/freadable.h: Likewise.
46136         * lib/freadahead.c: Likewise.
46137         * lib/freadahead.h: Likewise.
46138         * lib/freading.c: Likewise.
46139         * lib/freading.h: Likewise.
46140         * lib/free.c: Likewise.
46141         * lib/freopen.c: Likewise.
46142         * lib/frexp.c: Likewise.
46143         * lib/frexpl.c: Likewise.
46144         * lib/fseek.c: Likewise.
46145         * lib/fseterr.c: Likewise.
46146         * lib/fseterr.h: Likewise.
46147         * lib/fstatat.c: Likewise.
46148         * lib/fstrcmp.c: Likewise.
46149         * lib/fstrcmp.h: Likewise.
46150         * lib/fsusage.c: Likewise.
46151         * lib/fsusage.h: Likewise.
46152         * lib/ftell.c: Likewise.
46153         * lib/ftello.c: Likewise.
46154         * lib/fts-cycle.c: Likewise.
46155         * lib/fts.c: Likewise.
46156         * lib/fts_.h: Likewise.
46157         * lib/full-read.c: Likewise.
46158         * lib/full-read.h: Likewise.
46159         * lib/full-write.c: Likewise.
46160         * lib/full-write.h: Likewise.
46161         * lib/fwritable.c: Likewise.
46162         * lib/fwritable.h: Likewise.
46163         * lib/fwriteerror.c: Likewise.
46164         * lib/fwriteerror.h: Likewise.
46165         * lib/fwriting.c: Likewise.
46166         * lib/fwriting.h: Likewise.
46167         * lib/gcd.c: Likewise.
46168         * lib/gcd.h: Likewise.
46169         * lib/getcwd.c: Likewise.
46170         * lib/getdate.h: Likewise.
46171         * lib/getdate.y: Likewise.
46172         * lib/getdomainname.c: Likewise.
46173         * lib/getdomainname.h: Likewise.
46174         * lib/getgroups.c: Likewise.
46175         * lib/gethostname.c: Likewise.
46176         * lib/gethrxtime.c: Likewise.
46177         * lib/gethrxtime.h: Likewise.
46178         * lib/getloadavg.c: Likewise.
46179         * lib/getndelim2.c: Likewise.
46180         * lib/getndelim2.h: Likewise.
46181         * lib/getnline.c: Likewise.
46182         * lib/getnline.h: Likewise.
46183         * lib/getopt.c: Likewise.
46184         * lib/getopt.in.h: Likewise.
46185         * lib/getopt1.c: Likewise.
46186         * lib/getopt_int.h: Likewise.
46187         * lib/getpagesize.h: Likewise.
46188         * lib/getsubopt.c: Likewise.
46189         * lib/gettime.c: Likewise.
46190         * lib/getugroups.c: Likewise.
46191         * lib/getugroups.h: Likewise.
46192         * lib/getusershell.c: Likewise.
46193         * lib/gl_anyavltree_list1.h: Likewise.
46194         * lib/gl_anyavltree_list2.h: Likewise.
46195         * lib/gl_anyhash_list1.h: Likewise.
46196         * lib/gl_anyhash_list2.h: Likewise.
46197         * lib/gl_anylinked_list1.h: Likewise.
46198         * lib/gl_anylinked_list2.h: Likewise.
46199         * lib/gl_anyrbtree_list1.h: Likewise.
46200         * lib/gl_anyrbtree_list2.h: Likewise.
46201         * lib/gl_anytree_list1.h: Likewise.
46202         * lib/gl_anytree_list2.h: Likewise.
46203         * lib/gl_anytree_oset.h: Likewise.
46204         * lib/gl_anytreehash_list1.h: Likewise.
46205         * lib/gl_anytreehash_list2.h: Likewise.
46206         * lib/gl_array_list.c: Likewise.
46207         * lib/gl_array_list.h: Likewise.
46208         * lib/gl_array_oset.c: Likewise.
46209         * lib/gl_array_oset.h: Likewise.
46210         * lib/gl_avltree_list.c: Likewise.
46211         * lib/gl_avltree_list.h: Likewise.
46212         * lib/gl_avltree_oset.c: Likewise.
46213         * lib/gl_avltree_oset.h: Likewise.
46214         * lib/gl_avltreehash_list.c: Likewise.
46215         * lib/gl_avltreehash_list.h: Likewise.
46216         * lib/gl_carray_list.c: Likewise.
46217         * lib/gl_carray_list.h: Likewise.
46218         * lib/gl_linked_list.c: Likewise.
46219         * lib/gl_linked_list.h: Likewise.
46220         * lib/gl_linkedhash_list.c: Likewise.
46221         * lib/gl_linkedhash_list.h: Likewise.
46222         * lib/gl_list.c: Likewise.
46223         * lib/gl_list.h: Likewise.
46224         * lib/gl_oset.c: Likewise.
46225         * lib/gl_oset.h: Likewise.
46226         * lib/gl_rbtree_list.c: Likewise.
46227         * lib/gl_rbtree_list.h: Likewise.
46228         * lib/gl_rbtree_oset.c: Likewise.
46229         * lib/gl_rbtree_oset.h: Likewise.
46230         * lib/gl_rbtreehash_list.c: Likewise.
46231         * lib/gl_rbtreehash_list.h: Likewise.
46232         * lib/gl_sublist.c: Likewise.
46233         * lib/gl_sublist.h: Likewise.
46234         * lib/group-member.c: Likewise.
46235         * lib/group-member.h: Likewise.
46236         * lib/hard-locale.c: Likewise.
46237         * lib/hard-locale.h: Likewise.
46238         * lib/hash-pjw.c: Likewise.
46239         * lib/hash-pjw.h: Likewise.
46240         * lib/hash-triple.c: Likewise.
46241         * lib/hash.c: Likewise.
46242         * lib/hash.h: Likewise.
46243         * lib/human.c: Likewise.
46244         * lib/human.h: Likewise.
46245         * lib/i-ring.c: Likewise.
46246         * lib/i-ring.h: Likewise.
46247         * lib/idcache.c: Likewise.
46248         * lib/imaxabs.c: Likewise.
46249         * lib/imaxdiv.c: Likewise.
46250         * lib/inet_pton.c: Likewise.
46251         * lib/inet_pton.h: Likewise.
46252         * lib/intprops.h: Likewise.
46253         * lib/inttostr.c: Likewise.
46254         * lib/inttostr.h: Likewise.
46255         * lib/inttypes.in.h: Likewise.
46256         * lib/isapipe.c: Likewise.
46257         * lib/isdir.c: Likewise.
46258         * lib/isnan.c: Likewise.
46259         * lib/isnan.h: Likewise.
46260         * lib/isnanf.c: Likewise.
46261         * lib/isnanf.h: Likewise.
46262         * lib/isnanl-nolibm.h: Likewise.
46263         * lib/isnanl.c: Likewise.
46264         * lib/isnanl.h: Likewise.
46265         * lib/javacomp.c: Likewise.
46266         * lib/javacomp.h: Likewise.
46267         * lib/javaexec.c: Likewise.
46268         * lib/javaexec.h: Likewise.
46269         * lib/javaversion.c: Likewise.
46270         * lib/javaversion.h: Likewise.
46271         * lib/javaversion.java: Likewise.
46272         * lib/lbrkprop.h: Likewise.
46273         * lib/lchmod.h: Likewise.
46274         * lib/lchown.c: Likewise.
46275         * lib/ldexpl.c: Likewise.
46276         * lib/linebreak.c: Likewise.
46277         * lib/linebreak.h: Likewise.
46278         * lib/linebuffer.c: Likewise.
46279         * lib/linebuffer.h: Likewise.
46280         * lib/locale.in.h: Likewise.
46281         * lib/logl.c: Likewise.
46282         * lib/long-options.c: Likewise.
46283         * lib/long-options.h: Likewise.
46284         * lib/lstat.c: Likewise.
46285         * lib/lstat.h: Likewise.
46286         * lib/math.in.h: Likewise.
46287         * lib/mbchar.c: Likewise.
46288         * lib/mbchar.h: Likewise.
46289         * lib/mbfile.h: Likewise.
46290         * lib/mbiter.h: Likewise.
46291         * lib/mbscasecmp.c: Likewise.
46292         * lib/mbscasestr.c: Likewise.
46293         * lib/mbschr.c: Likewise.
46294         * lib/mbscspn.c: Likewise.
46295         * lib/mbslen.c: Likewise.
46296         * lib/mbsncasecmp.c: Likewise.
46297         * lib/mbsnlen.c: Likewise.
46298         * lib/mbspbrk.c: Likewise.
46299         * lib/mbspcasecmp.c: Likewise.
46300         * lib/mbsrchr.c: Likewise.
46301         * lib/mbssep.c: Likewise.
46302         * lib/mbsspn.c: Likewise.
46303         * lib/mbsstr.c: Likewise.
46304         * lib/mbstok_r.c: Likewise.
46305         * lib/mbswidth.c: Likewise.
46306         * lib/mbswidth.h: Likewise.
46307         * lib/mbuiter.h: Likewise.
46308         * lib/memcasecmp.c: Likewise.
46309         * lib/memcasecmp.h: Likewise.
46310         * lib/memchr.c: Likewise.
46311         * lib/memcmp.c: Likewise.
46312         * lib/memcoll.c: Likewise.
46313         * lib/memcoll.h: Likewise.
46314         * lib/memcpy.c: Likewise.
46315         * lib/memrchr.c: Likewise.
46316         * lib/mkancesdirs.c: Likewise.
46317         * lib/mkdir-p.c: Likewise.
46318         * lib/mkdir-p.h: Likewise.
46319         * lib/mkdir.c: Likewise.
46320         * lib/mkdirat.c: Likewise.
46321         * lib/mkdtemp.c: Likewise.
46322         * lib/mkstemp-safer.c: Likewise.
46323         * lib/mkstemp.c: Likewise.
46324         * lib/modechange.c: Likewise.
46325         * lib/modechange.h: Likewise.
46326         * lib/mountlist.c: Likewise.
46327         * lib/mountlist.h: Likewise.
46328         * lib/mpsort.c: Likewise.
46329         * lib/nanosleep.c: Likewise.
46330         * lib/obstack.c: Likewise.
46331         * lib/obstack.h: Likewise.
46332         * lib/open-safer.c: Likewise.
46333         * lib/open.c: Likewise.
46334         * lib/openat-die.c: Likewise.
46335         * lib/openat-priv.h: Likewise.
46336         * lib/openat-proc.c: Likewise.
46337         * lib/openat.c: Likewise.
46338         * lib/openat.h: Likewise.
46339         * lib/pagealign_alloc.c: Likewise.
46340         * lib/pagealign_alloc.h: Likewise.
46341         * lib/physmem.c: Likewise.
46342         * lib/physmem.h: Likewise.
46343         * lib/pipe-safer.c: Likewise.
46344         * lib/pipe.c: Likewise.
46345         * lib/pipe.h: Likewise.
46346         * lib/posixtm.c: Likewise.
46347         * lib/posixtm.h: Likewise.
46348         * lib/posixver.c: Likewise.
46349         * lib/printf-frexp.c: Likewise.
46350         * lib/printf-frexp.h: Likewise.
46351         * lib/printf-frexpl.c: Likewise.
46352         * lib/printf-frexpl.h: Likewise.
46353         * lib/printf.c: Likewise.
46354         * lib/progname.c: Likewise.
46355         * lib/progname.h: Likewise.
46356         * lib/progreloc.c: Likewise.
46357         * lib/putenv.c: Likewise.
46358         * lib/quote.c: Likewise.
46359         * lib/quote.h: Likewise.
46360         * lib/quotearg.c: Likewise.
46361         * lib/quotearg.h: Likewise.
46362         * lib/raise.c: Likewise.
46363         * lib/readline.c: Likewise.
46364         * lib/readline.h: Likewise.
46365         * lib/readlink.c: Likewise.
46366         * lib/readtokens.c: Likewise.
46367         * lib/readtokens.h: Likewise.
46368         * lib/readtokens0.c: Likewise.
46369         * lib/readtokens0.h: Likewise.
46370         * lib/readutmp.c: Likewise.
46371         * lib/readutmp.h: Likewise.
46372         * lib/realloc.c: Likewise.
46373         * lib/relocwrapper.c: Likewise.
46374         * lib/rename-dest-slash.c: Likewise.
46375         * lib/rename.c: Likewise.
46376         * lib/rmdir.c: Likewise.
46377         * lib/rpmatch.c: Likewise.
46378         * lib/safe-read.c: Likewise.
46379         * lib/safe-read.h: Likewise.
46380         * lib/safe-write.c: Likewise.
46381         * lib/safe-write.h: Likewise.
46382         * lib/same-inode.h: Likewise.
46383         * lib/same.c: Likewise.
46384         * lib/same.h: Likewise.
46385         * lib/save-cwd.c: Likewise.
46386         * lib/save-cwd.h: Likewise.
46387         * lib/savedir.c: Likewise.
46388         * lib/savedir.h: Likewise.
46389         * lib/savewd.c: Likewise.
46390         * lib/savewd.h: Likewise.
46391         * lib/search.in.h: Likewise.
46392         * lib/setenv.c: Likewise.
46393         * lib/setenv.h: Likewise.
46394         * lib/settime.c: Likewise.
46395         * lib/sh-quote.c: Likewise.
46396         * lib/sh-quote.h: Likewise.
46397         * lib/sig2str.c: Likewise.
46398         * lib/sig2str.h: Likewise.
46399         * lib/signal.in.h: Likewise.
46400         * lib/signbitd.c: Likewise.
46401         * lib/signbitf.c: Likewise.
46402         * lib/signbitl.c: Likewise.
46403         * lib/sigprocmask.c: Likewise.
46404         * lib/sincosl.c: Likewise.
46405         * lib/sleep.c: Likewise.
46406         * lib/sprintf.c: Likewise.
46407         * lib/sqrtl.c: Likewise.
46408         * lib/stat-time.h: Likewise.
46409         * lib/stdio--.h: Likewise.
46410         * lib/stdio-safer.h: Likewise.
46411         * lib/stdlib--.h: Likewise.
46412         * lib/stdlib-safer.h: Likewise.
46413         * lib/stdlib.in.h: Likewise.
46414         * lib/stpcpy.c: Likewise.
46415         * lib/stpncpy.c: Likewise.
46416         * lib/strchrnul.c: Likewise.
46417         * lib/strcspn.c: Likewise.
46418         * lib/strerror.c: Likewise.
46419         * lib/strftime.c: Likewise.
46420         * lib/strftime.h: Likewise.
46421         * lib/striconveh.c: Likewise.
46422         * lib/striconveh.h: Likewise.
46423         * lib/striconveha.c: Likewise.
46424         * lib/striconveha.h: Likewise.
46425         * lib/stripslash.c: Likewise.
46426         * lib/strnlen1.c: Likewise.
46427         * lib/strnlen1.h: Likewise.
46428         * lib/strtod.c: Likewise.
46429         * lib/strtoimax.c: Likewise.
46430         * lib/strtok_r.c: Likewise.
46431         * lib/strtol.c: Likewise.
46432         * lib/strtoll.c: Likewise.
46433         * lib/strtoul.c: Likewise.
46434         * lib/strtoull.c: Likewise.
46435         * lib/sysexits.in.h: Likewise.
46436         * lib/tempname.c: Likewise.
46437         * lib/tempname.h: Likewise.
46438         * lib/timespec.h: Likewise.
46439         * lib/tls.c: Likewise.
46440         * lib/tls.h: Likewise.
46441         * lib/tmpdir.c: Likewise.
46442         * lib/tmpdir.h: Likewise.
46443         * lib/tmpfile-safer.c: Likewise.
46444         * lib/tmpfile.c: Likewise.
46445         * lib/trigl.c: Likewise.
46446         * lib/trigl.h: Likewise.
46447         * lib/trim.c: Likewise.
46448         * lib/trim.h: Likewise.
46449         * lib/trunc.c: Likewise.
46450         * lib/truncf.c: Likewise.
46451         * lib/truncl.c: Likewise.
46452         * lib/tsearch.c: Likewise.
46453         * lib/unicodeio.c: Likewise.
46454         * lib/unicodeio.h: Likewise.
46455         * lib/unistd--.h: Likewise.
46456         * lib/unistd-safer.h: Likewise.
46457         * lib/unistdio/ulc-fprintf.c: Likewise.
46458         * lib/unistdio/ulc-vfprintf.c: Likewise.
46459         * lib/unlinkdir.c: Likewise.
46460         * lib/unlinkdir.h: Likewise.
46461         * lib/unlocked-io.h: Likewise.
46462         * lib/unsetenv.c: Likewise.
46463         * lib/userspec.c: Likewise.
46464         * lib/utime.c: Likewise.
46465         * lib/utimecmp.c: Likewise.
46466         * lib/utimecmp.h: Likewise.
46467         * lib/utimens.c: Likewise.
46468         * lib/verify.h: Likewise.
46469         * lib/verror.c: Likewise.
46470         * lib/verror.h: Likewise.
46471         * lib/version-etc-fsf.c: Likewise.
46472         * lib/version-etc.c: Likewise.
46473         * lib/version-etc.h: Likewise.
46474         * lib/vfprintf.c: Likewise.
46475         * lib/vprintf.c: Likewise.
46476         * lib/vsprintf.c: Likewise.
46477         * lib/w32spawn.h: Likewise.
46478         * lib/wait-process.c: Likewise.
46479         * lib/wait-process.h: Likewise.
46480         * lib/wcwidth.c: Likewise.
46481         * lib/write-any-file.c: Likewise.
46482         * lib/xalloc-die.c: Likewise.
46483         * lib/xalloc.h: Likewise.
46484         * lib/xasprintf.c: Likewise.
46485         * lib/xgetcwd.c: Likewise.
46486         * lib/xgetcwd.h: Likewise.
46487         * lib/xgetdomainname.c: Likewise.
46488         * lib/xgetdomainname.h: Likewise.
46489         * lib/xgethostname.c: Likewise.
46490         * lib/xmalloc.c: Likewise.
46491         * lib/xmalloca.c: Likewise.
46492         * lib/xmalloca.h: Likewise.
46493         * lib/xmemcoll.c: Likewise.
46494         * lib/xnanosleep.c: Likewise.
46495         * lib/xreadlink.c: Likewise.
46496         * lib/xreadlink.h: Likewise.
46497         * lib/xsetenv.c: Likewise.
46498         * lib/xsetenv.h: Likewise.
46499         * lib/xstriconv.c: Likewise.
46500         * lib/xstriconv.h: Likewise.
46501         * lib/xstrndup.c: Likewise.
46502         * lib/xstrndup.h: Likewise.
46503         * lib/xstrtod.c: Likewise.
46504         * lib/xstrtod.h: Likewise.
46505         * lib/xstrtol-error.c: Likewise.
46506         * lib/xstrtol.c: Likewise.
46507         * lib/xstrtol.h: Likewise.
46508         * lib/xtime.h: Likewise.
46509         * lib/xvasprintf.c: Likewise.
46510         * lib/xvasprintf.h: Likewise.
46511         * lib/yesno.c: Likewise.
46512         * lib/yesno.h: Likewise.
46513         * posix-modules: Likewise.
46514         * tests/test-alloca-opt.c: Likewise.
46515         * tests/test-arcfour.c: Likewise.
46516         * tests/test-arctwo.c: Likewise.
46517         * tests/test-argmatch.c: Likewise.
46518         * tests/test-argp-2.sh: Likewise.
46519         * tests/test-argp.c: Likewise.
46520         * tests/test-arpa_inet.c: Likewise.
46521         * tests/test-array_list.c: Likewise.
46522         * tests/test-array_oset.c: Likewise.
46523         * tests/test-atexit.c: Likewise.
46524         * tests/test-avltree_list.c: Likewise.
46525         * tests/test-avltree_oset.c: Likewise.
46526         * tests/test-avltreehash_list.c: Likewise.
46527         * tests/test-base64.c: Likewise.
46528         * tests/test-binary-io.c: Likewise.
46529         * tests/test-byteswap.c: Likewise.
46530         * tests/test-c-ctype.c: Likewise.
46531         * tests/test-c-strcasecmp.c: Likewise.
46532         * tests/test-c-strcasestr.c: Likewise.
46533         * tests/test-c-strncasecmp.c: Likewise.
46534         * tests/test-c-strstr.c: Likewise.
46535         * tests/test-canonicalize-lgpl.c: Likewise.
46536         * tests/test-canonicalize.c: Likewise.
46537         * tests/test-carray_list.c: Likewise.
46538         * tests/test-ceilf.c: Likewise.
46539         * tests/test-ceill.c: Likewise.
46540         * tests/test-count-one-bits.c: Likewise.
46541         * tests/test-crc.c: Likewise.
46542         * tests/test-dirname.c: Likewise.
46543         * tests/test-fbufmode.c: Likewise.
46544         * tests/test-fcntl.c: Likewise.
46545         * tests/test-fflush.c: Likewise.
46546         * tests/test-floorf.c: Likewise.
46547         * tests/test-floorl.c: Likewise.
46548         * tests/test-fopen.c: Likewise.
46549         * tests/test-fprintf-posix.c: Likewise.
46550         * tests/test-fprintf-posix.h: Likewise.
46551         * tests/test-fpurge.c: Likewise.
46552         * tests/test-freadable.c: Likewise.
46553         * tests/test-freadahead.c: Likewise.
46554         * tests/test-freading.c: Likewise.
46555         * tests/test-freopen.c: Likewise.
46556         * tests/test-frexp.c: Likewise.
46557         * tests/test-frexpl.c: Likewise.
46558         * tests/test-fseek.c: Likewise.
46559         * tests/test-fseeko.c: Likewise.
46560         * tests/test-fseterr.c: Likewise.
46561         * tests/test-fstrcmp.c: Likewise.
46562         * tests/test-ftell.c: Likewise.
46563         * tests/test-ftello.c: Likewise.
46564         * tests/test-fwritable.c: Likewise.
46565         * tests/test-fwriting.c: Likewise.
46566         * tests/test-getaddrinfo.c: Likewise.
46567         * tests/test-getpass.c: Likewise.
46568         * tests/test-gettimeofday.c: Likewise.
46569         * tests/test-hmac-md5.c: Likewise.
46570         * tests/test-hmac-sha1.c: Likewise.
46571         * tests/test-iconv.c: Likewise.
46572         * tests/test-iconvme.c: Likewise.
46573         * tests/test-inttypes.c: Likewise.
46574         * tests/test-isnan.c: Likewise.
46575         * tests/test-isnanf.c: Likewise.
46576         * tests/test-isnanl-nolibm.c: Likewise.
46577         * tests/test-isnanl.c: Likewise.
46578         * tests/test-isnanl.h: Likewise.
46579         * tests/test-ldexpl.c: Likewise.
46580         * tests/test-linked_list.c: Likewise.
46581         * tests/test-linkedhash_list.c: Likewise.
46582         * tests/test-locale.c: Likewise.
46583         * tests/test-localename.c: Likewise.
46584         * tests/test-lock.c: Likewise.
46585         * tests/test-lseek.c: Likewise.
46586         * tests/test-malloca.c: Likewise.
46587         * tests/test-math.c: Likewise.
46588         * tests/test-mbscasecmp.c: Likewise.
46589         * tests/test-mbscasestr1.c: Likewise.
46590         * tests/test-mbscasestr2.c: Likewise.
46591         * tests/test-mbscasestr3.c: Likewise.
46592         * tests/test-mbscasestr4.c: Likewise.
46593         * tests/test-mbschr.c: Likewise.
46594         * tests/test-mbscspn.c: Likewise.
46595         * tests/test-mbsncasecmp.c: Likewise.
46596         * tests/test-mbspbrk.c: Likewise.
46597         * tests/test-mbspcasecmp.c: Likewise.
46598         * tests/test-mbsrchr.c: Likewise.
46599         * tests/test-mbsspn.c: Likewise.
46600         * tests/test-mbsstr1.c: Likewise.
46601         * tests/test-mbsstr2.c: Likewise.
46602         * tests/test-mbsstr3.c: Likewise.
46603         * tests/test-md5.c: Likewise.
46604         * tests/test-memmem.c: Likewise.
46605         * tests/test-netinet_in.c: Likewise.
46606         * tests/test-open.c: Likewise.
46607         * tests/test-printf-frexp.c: Likewise.
46608         * tests/test-printf-frexpl.c: Likewise.
46609         * tests/test-printf-posix.c: Likewise.
46610         * tests/test-printf-posix.h: Likewise.
46611         * tests/test-rbtree_list.c: Likewise.
46612         * tests/test-rbtree_oset.c: Likewise.
46613         * tests/test-rbtreehash_list.c: Likewise.
46614         * tests/test-read-file.c: Likewise.
46615         * tests/test-rijndael.c: Likewise.
46616         * tests/test-search.c: Likewise.
46617         * tests/test-signbit.c: Likewise.
46618         * tests/test-sleep.c: Likewise.
46619         * tests/test-snprintf-posix.c: Likewise.
46620         * tests/test-snprintf-posix.h: Likewise.
46621         * tests/test-snprintf.c: Likewise.
46622         * tests/test-sprintf-posix.c: Likewise.
46623         * tests/test-sprintf-posix.h: Likewise.
46624         * tests/test-stat-time.c: Likewise.
46625         * tests/test-stdbool.c: Likewise.
46626         * tests/test-stdint.c: Likewise.
46627         * tests/test-stdio.c: Likewise.
46628         * tests/test-stdlib.c: Likewise.
46629         * tests/test-stpncpy.c: Likewise.
46630         * tests/test-strcasestr.c: Likewise.
46631         * tests/test-striconv.c: Likewise.
46632         * tests/test-striconveh.c: Likewise.
46633         * tests/test-striconveha.c: Likewise.
46634         * tests/test-string.c: Likewise.
46635         * tests/test-sys_select.c: Likewise.
46636         * tests/test-sys_socket.c: Likewise.
46637         * tests/test-sys_stat.c: Likewise.
46638         * tests/test-sys_time.c: Likewise.
46639         * tests/test-sysexits.c: Likewise.
46640         * tests/test-time.c: Likewise.
46641         * tests/test-tls.c: Likewise.
46642         * tests/test-trunc.c: Likewise.
46643         * tests/test-truncf.c: Likewise.
46644         * tests/test-truncl.c: Likewise.
46645         * tests/test-unistd.c: Likewise.
46646         * tests/test-vasnprintf-posix.c: Likewise.
46647         * tests/test-vasnprintf-posix2.c: Likewise.
46648         * tests/test-vasnprintf.c: Likewise.
46649         * tests/test-vasprintf-posix.c: Likewise.
46650         * tests/test-vasprintf.c: Likewise.
46651         * tests/test-verify.c: Likewise.
46652         * tests/test-vfprintf-posix.c: Likewise.
46653         * tests/test-vprintf-posix.c: Likewise.
46654         * tests/test-vsnprintf-posix.c: Likewise.
46655         * tests/test-vsnprintf.c: Likewise.
46656         * tests/test-vsprintf-posix.c: Likewise.
46657         * tests/test-wchar.c: Likewise.
46658         * tests/test-wctype.c: Likewise.
46659         * tests/test-wcwidth.c: Likewise.
46660         * tests/test-xstrtol.c: Likewise.
46661         * tests/test-xvasprintf.c: Likewise.
46662         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46663         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46664         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46665         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46666         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46667         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46668         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46669         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46670         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46671         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46672         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46673         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46674         * tests/uniname/test-uninames.c: Likewise.
46675         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46676         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46677         * tests/unistdio/test-u16-printf1.h: Likewise.
46678         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46679         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46680         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46681         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46682         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46683         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46684         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46685         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46686         * tests/unistdio/test-u32-printf1.h: Likewise.
46687         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46688         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46689         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46690         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46691         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46692         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46693         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46694         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46695         * tests/unistdio/test-u8-printf1.h: Likewise.
46696         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46697         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46698         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46699         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46700         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46701         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46702         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46703         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46704         * tests/unistdio/test-ulc-printf1.h: Likewise.
46705         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46706         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46707         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46708         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46709         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46710         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46711         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46712         * tests/uniwidth/test-u16-width.c: Likewise.
46713         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46714         * tests/uniwidth/test-u32-width.c: Likewise.
46715         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46716         * tests/uniwidth/test-u8-width.c: Likewise.
46717         * tests/uniwidth/test-uc_width.c: Likewise.
46718         * config/srclist-update: Likewise.
46719         (fixlicense): Update to GPLv3+.
46720
46721         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46722         * tests/test-tsearch.c: Change copyright notice.
46723
46724         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46725         * lib/c-strcaseeq.h: Change copyright notice.
46726         * lib/streq.h: Likewise.
46727         * lib/uniconv.h: Likewise.
46728         * lib/uniconv/u-conv-from-enc.h: Likewise.
46729         * lib/uniconv/u-conv-to-enc.h: Likewise.
46730         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46731         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46732         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46733         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46734         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46735         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46736         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46737         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46738         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46739         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46740         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46741         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46742         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46743         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46744         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46745         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46746         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46747         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46748         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46749         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46750         * lib/uniname.h: Likewise.
46751         * lib/uniname/uniname.c: Likewise.
46752         * lib/unistdio.h: Likewise.
46753         * lib/unistdio/u-asnprintf.h: Likewise.
46754         * lib/unistdio/u-asprintf.h: Likewise.
46755         * lib/unistdio/u-printf-args.c: Likewise.
46756         * lib/unistdio/u-printf-args.h: Likewise.
46757         * lib/unistdio/u-printf-parse.h: Likewise.
46758         * lib/unistdio/u-snprintf.h: Likewise.
46759         * lib/unistdio/u-sprintf.h: Likewise.
46760         * lib/unistdio/u-vasprintf.h: Likewise.
46761         * lib/unistdio/u-vsnprintf.h: Likewise.
46762         * lib/unistdio/u-vsprintf.h: Likewise.
46763         * lib/unistdio/u16-asnprintf.c: Likewise.
46764         * lib/unistdio/u16-asprintf.c: Likewise.
46765         * lib/unistdio/u16-printf-parse.c: Likewise.
46766         * lib/unistdio/u16-snprintf.c: Likewise.
46767         * lib/unistdio/u16-sprintf.c: Likewise.
46768         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46769         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46770         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46771         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46772         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46773         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46774         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46775         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46776         * lib/unistdio/u16-vasnprintf.c: Likewise.
46777         * lib/unistdio/u16-vasprintf.c: Likewise.
46778         * lib/unistdio/u16-vsnprintf.c: Likewise.
46779         * lib/unistdio/u16-vsprintf.c: Likewise.
46780         * lib/unistdio/u32-asnprintf.c: Likewise.
46781         * lib/unistdio/u32-asprintf.c: Likewise.
46782         * lib/unistdio/u32-printf-parse.c: Likewise.
46783         * lib/unistdio/u32-snprintf.c: Likewise.
46784         * lib/unistdio/u32-sprintf.c: Likewise.
46785         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46786         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46787         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46788         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46789         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46790         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46791         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46792         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46793         * lib/unistdio/u32-vasnprintf.c: Likewise.
46794         * lib/unistdio/u32-vasprintf.c: Likewise.
46795         * lib/unistdio/u32-vsnprintf.c: Likewise.
46796         * lib/unistdio/u32-vsprintf.c: Likewise.
46797         * lib/unistdio/u8-asnprintf.c: Likewise.
46798         * lib/unistdio/u8-asprintf.c: Likewise.
46799         * lib/unistdio/u8-printf-parse.c: Likewise.
46800         * lib/unistdio/u8-snprintf.c: Likewise.
46801         * lib/unistdio/u8-sprintf.c: Likewise.
46802         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46803         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46804         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46805         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46806         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46807         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46808         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46809         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46810         * lib/unistdio/u8-vasnprintf.c: Likewise.
46811         * lib/unistdio/u8-vasprintf.c: Likewise.
46812         * lib/unistdio/u8-vsnprintf.c: Likewise.
46813         * lib/unistdio/u8-vsprintf.c: Likewise.
46814         * lib/unistdio/ulc-asnprintf.c: Likewise.
46815         * lib/unistdio/ulc-asprintf.c: Likewise.
46816         * lib/unistdio/ulc-printf-parse.c: Likewise.
46817         * lib/unistdio/ulc-snprintf.c: Likewise.
46818         * lib/unistdio/ulc-sprintf.c: Likewise.
46819         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46820         * lib/unistdio/ulc-vasprintf.c: Likewise.
46821         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46822         * lib/unistdio/ulc-vsprintf.c: Likewise.
46823         * lib/unistr.h: Likewise.
46824         * lib/unistr/u-cpy-alloc.h: Likewise.
46825         * lib/unistr/u-cpy.h: Likewise.
46826         * lib/unistr/u-endswith.h: Likewise.
46827         * lib/unistr/u-move.h: Likewise.
46828         * lib/unistr/u-set.h: Likewise.
46829         * lib/unistr/u-startswith.h: Likewise.
46830         * lib/unistr/u-stpcpy.h: Likewise.
46831         * lib/unistr/u-stpncpy.h: Likewise.
46832         * lib/unistr/u-strcat.h: Likewise.
46833         * lib/unistr/u-strcpy.h: Likewise.
46834         * lib/unistr/u-strcspn.h: Likewise.
46835         * lib/unistr/u-strdup.h: Likewise.
46836         * lib/unistr/u-strlen.h: Likewise.
46837         * lib/unistr/u-strncat.h: Likewise.
46838         * lib/unistr/u-strncpy.h: Likewise.
46839         * lib/unistr/u-strnlen.h: Likewise.
46840         * lib/unistr/u-strpbrk.h: Likewise.
46841         * lib/unistr/u-strspn.h: Likewise.
46842         * lib/unistr/u-strstr.h: Likewise.
46843         * lib/unistr/u-strtok.h: Likewise.
46844         * lib/unistr/u16-check.c: Likewise.
46845         * lib/unistr/u16-chr.c: Likewise.
46846         * lib/unistr/u16-cmp.c: Likewise.
46847         * lib/unistr/u16-cpy-alloc.c: Likewise.
46848         * lib/unistr/u16-cpy.c: Likewise.
46849         * lib/unistr/u16-endswith.c: Likewise.
46850         * lib/unistr/u16-mblen.c: Likewise.
46851         * lib/unistr/u16-mbsnlen.c: Likewise.
46852         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46853         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46854         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46855         * lib/unistr/u16-mbtouc.c: Likewise.
46856         * lib/unistr/u16-mbtoucr.c: Likewise.
46857         * lib/unistr/u16-move.c: Likewise.
46858         * lib/unistr/u16-next.c: Likewise.
46859         * lib/unistr/u16-prev.c: Likewise.
46860         * lib/unistr/u16-set.c: Likewise.
46861         * lib/unistr/u16-startswith.c: Likewise.
46862         * lib/unistr/u16-stpcpy.c: Likewise.
46863         * lib/unistr/u16-stpncpy.c: Likewise.
46864         * lib/unistr/u16-strcat.c: Likewise.
46865         * lib/unistr/u16-strchr.c: Likewise.
46866         * lib/unistr/u16-strcmp.c: Likewise.
46867         * lib/unistr/u16-strcpy.c: Likewise.
46868         * lib/unistr/u16-strcspn.c: Likewise.
46869         * lib/unistr/u16-strdup.c: Likewise.
46870         * lib/unistr/u16-strlen.c: Likewise.
46871         * lib/unistr/u16-strmblen.c: Likewise.
46872         * lib/unistr/u16-strmbtouc.c: Likewise.
46873         * lib/unistr/u16-strncat.c: Likewise.
46874         * lib/unistr/u16-strncmp.c: Likewise.
46875         * lib/unistr/u16-strncpy.c: Likewise.
46876         * lib/unistr/u16-strnlen.c: Likewise.
46877         * lib/unistr/u16-strpbrk.c: Likewise.
46878         * lib/unistr/u16-strrchr.c: Likewise.
46879         * lib/unistr/u16-strspn.c: Likewise.
46880         * lib/unistr/u16-strstr.c: Likewise.
46881         * lib/unistr/u16-strtok.c: Likewise.
46882         * lib/unistr/u16-to-u32.c: Likewise.
46883         * lib/unistr/u16-to-u8.c: Likewise.
46884         * lib/unistr/u16-uctomb-aux.c: Likewise.
46885         * lib/unistr/u16-uctomb.c: Likewise.
46886         * lib/unistr/u32-check.c: Likewise.
46887         * lib/unistr/u32-chr.c: Likewise.
46888         * lib/unistr/u32-cmp.c: Likewise.
46889         * lib/unistr/u32-cpy-alloc.c: Likewise.
46890         * lib/unistr/u32-cpy.c: Likewise.
46891         * lib/unistr/u32-endswith.c: Likewise.
46892         * lib/unistr/u32-mblen.c: Likewise.
46893         * lib/unistr/u32-mbsnlen.c: Likewise.
46894         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46895         * lib/unistr/u32-mbtouc.c: Likewise.
46896         * lib/unistr/u32-mbtoucr.c: Likewise.
46897         * lib/unistr/u32-move.c: Likewise.
46898         * lib/unistr/u32-next.c: Likewise.
46899         * lib/unistr/u32-prev.c: Likewise.
46900         * lib/unistr/u32-set.c: Likewise.
46901         * lib/unistr/u32-startswith.c: Likewise.
46902         * lib/unistr/u32-stpcpy.c: Likewise.
46903         * lib/unistr/u32-stpncpy.c: Likewise.
46904         * lib/unistr/u32-strcat.c: Likewise.
46905         * lib/unistr/u32-strchr.c: Likewise.
46906         * lib/unistr/u32-strcmp.c: Likewise.
46907         * lib/unistr/u32-strcpy.c: Likewise.
46908         * lib/unistr/u32-strcspn.c: Likewise.
46909         * lib/unistr/u32-strdup.c: Likewise.
46910         * lib/unistr/u32-strlen.c: Likewise.
46911         * lib/unistr/u32-strmblen.c: Likewise.
46912         * lib/unistr/u32-strmbtouc.c: Likewise.
46913         * lib/unistr/u32-strncat.c: Likewise.
46914         * lib/unistr/u32-strncmp.c: Likewise.
46915         * lib/unistr/u32-strncpy.c: Likewise.
46916         * lib/unistr/u32-strnlen.c: Likewise.
46917         * lib/unistr/u32-strpbrk.c: Likewise.
46918         * lib/unistr/u32-strrchr.c: Likewise.
46919         * lib/unistr/u32-strspn.c: Likewise.
46920         * lib/unistr/u32-strstr.c: Likewise.
46921         * lib/unistr/u32-strtok.c: Likewise.
46922         * lib/unistr/u32-to-u16.c: Likewise.
46923         * lib/unistr/u32-to-u8.c: Likewise.
46924         * lib/unistr/u32-uctomb.c: Likewise.
46925         * lib/unistr/u8-check.c: Likewise.
46926         * lib/unistr/u8-chr.c: Likewise.
46927         * lib/unistr/u8-cmp.c: Likewise.
46928         * lib/unistr/u8-cpy-alloc.c: Likewise.
46929         * lib/unistr/u8-cpy.c: Likewise.
46930         * lib/unistr/u8-endswith.c: Likewise.
46931         * lib/unistr/u8-mblen.c: Likewise.
46932         * lib/unistr/u8-mbsnlen.c: Likewise.
46933         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46934         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46935         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46936         * lib/unistr/u8-mbtouc.c: Likewise.
46937         * lib/unistr/u8-mbtoucr.c: Likewise.
46938         * lib/unistr/u8-move.c: Likewise.
46939         * lib/unistr/u8-next.c: Likewise.
46940         * lib/unistr/u8-prev.c: Likewise.
46941         * lib/unistr/u8-set.c: Likewise.
46942         * lib/unistr/u8-startswith.c: Likewise.
46943         * lib/unistr/u8-stpcpy.c: Likewise.
46944         * lib/unistr/u8-stpncpy.c: Likewise.
46945         * lib/unistr/u8-strcat.c: Likewise.
46946         * lib/unistr/u8-strchr.c: Likewise.
46947         * lib/unistr/u8-strcmp.c: Likewise.
46948         * lib/unistr/u8-strcpy.c: Likewise.
46949         * lib/unistr/u8-strcspn.c: Likewise.
46950         * lib/unistr/u8-strdup.c: Likewise.
46951         * lib/unistr/u8-strlen.c: Likewise.
46952         * lib/unistr/u8-strmblen.c: Likewise.
46953         * lib/unistr/u8-strmbtouc.c: Likewise.
46954         * lib/unistr/u8-strncat.c: Likewise.
46955         * lib/unistr/u8-strncmp.c: Likewise.
46956         * lib/unistr/u8-strncpy.c: Likewise.
46957         * lib/unistr/u8-strnlen.c: Likewise.
46958         * lib/unistr/u8-strpbrk.c: Likewise.
46959         * lib/unistr/u8-strrchr.c: Likewise.
46960         * lib/unistr/u8-strspn.c: Likewise.
46961         * lib/unistr/u8-strstr.c: Likewise.
46962         * lib/unistr/u8-strtok.c: Likewise.
46963         * lib/unistr/u8-to-u16.c: Likewise.
46964         * lib/unistr/u8-to-u32.c: Likewise.
46965         * lib/unistr/u8-uctomb-aux.c: Likewise.
46966         * lib/unistr/u8-uctomb.c: Likewise.
46967         * lib/unitypes.h: Likewise.
46968         * lib/uniwidth.h: Likewise.
46969         * lib/uniwidth/cjk.h: Likewise.
46970         * lib/uniwidth/u16-strwidth.c: Likewise.
46971         * lib/uniwidth/u16-width.c: Likewise.
46972         * lib/uniwidth/u32-strwidth.c: Likewise.
46973         * lib/uniwidth/u32-width.c: Likewise.
46974         * lib/uniwidth/u8-strwidth.c: Likewise.
46975         * lib/uniwidth/u8-width.c: Likewise.
46976         * lib/uniwidth/width.c: Likewise.
46977
46978 2007-10-07  Bruno Haible  <bruno@clisp.org>
46979
46980         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46981         The file is still under LGPL (see modules/inttypes).
46982
46983 2007-10-06  Bruno Haible  <bruno@clisp.org>
46984
46985         * modules/trunc (Dependencies): Add 'extensions'.
46986         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46987         Reported by Ben Pfaff <blp@gnu.org>.
46988
46989 2007-10-06  Bruno Haible  <bruno@clisp.org>
46990
46991         * modules/freopen-tests: New file.
46992         * tests/test-freopen.c: New file.
46993
46994         * modules/fopen-tests: New file.
46995         * tests/test-fopen.c: New file.
46996
46997         * modules/fopen: New file.
46998         * lib/fopen.c: New file.
46999         * m4/fopen.m4: New file.
47000         * modules/freopen: New file.
47001         * lib/freopen.c: New file.
47002         * m4/freopen.m4: New file.
47003         * lib/stdio.in.h (fopen, freopen): New declarations.
47004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47005         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47006         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47007         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47008         * doc/functions/fopen.texi: Mention the 'fopen' module.
47009         * doc/functions/freopen.texi: Mention the 'freopen' module.
47010
47011 2007-10-06  Bruno Haible  <bruno@clisp.org>
47012
47013         * modules/open-tests: New file.
47014         * tests/test-open.c: New file.
47015
47016         * modules/open: New file.
47017         * lib/open.c: New file.
47018         * m4/open.m4: New file.
47019         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47020         lib/open.c does.
47021         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47022         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47023         macros.
47024         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47025         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47026         REPLACE_OPEN.
47027         * doc/functions/open.texi: Mention the 'open' module.
47028
47029 2007-10-04  Bruno Haible  <bruno@clisp.org>
47030
47031         * modules/ceill-tests: New file.
47032         * tests/test-ceill.c: New file.
47033
47034         * modules/ceill: New file.
47035         * lib/ceill.c: Replace entire file.
47036         * m4/ceill.m4: New file.
47037         * lib/math.in.h (ceill): Replace declaration.
47038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47039         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47040         * doc/functions/ceill.texi: Mention the 'ceill' module.
47041         * modules/mathl (Files): Remove lib/ceill.c.
47042         (Depends-on): Add ceill.
47043
47044 2007-10-04  Bruno Haible  <bruno@clisp.org>
47045
47046         * modules/ceilf-tests: New file.
47047         * tests/test-ceilf.c: New file.
47048
47049         * modules/ceilf: New file.
47050         * lib/ceil.c: New file.
47051         * lib/ceilf.c: New file.
47052         * m4/ceilf.m4: New file.
47053         * lib/math.in.h (ceilf): New declaration.
47054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47055         HAVE_DECL_CEILF.
47056         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47057         HAVE_DECL_CEILF.
47058         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47059
47060 2007-10-04  Bruno Haible  <bruno@clisp.org>
47061
47062         * modules/floorl-tests: New file.
47063         * tests/test-floorl.c: New file.
47064
47065         * modules/floorl: New file.
47066         * lib/floorl.c: Replace entire file.
47067         * m4/floorl.m4: New file.
47068         * lib/math.in.h (floorl): Replace declaration.
47069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47070         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47071         * doc/functions/floorl.texi: Mention the 'floorl' module.
47072         * modules/mathl (Files): Remove lib/floorl.c.
47073         (Depends-on): Add floorl.
47074
47075 2007-10-04  Bruno Haible  <bruno@clisp.org>
47076
47077         * modules/floorf-tests: New file.
47078         * tests/test-floorf.c: New file.
47079
47080         * modules/floorf: New file.
47081         * lib/floor.c: New file.
47082         * lib/floorf.c: New file.
47083         * m4/floorf.m4: New file.
47084         * lib/math.in.h (floorf): New declaration.
47085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47086         HAVE_DECL_FLOORF.
47087         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47088         HAVE_DECL_FLOORF.
47089         * doc/functions/floorf.texi: Mention the 'floorf' module.
47090
47091 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47092             Bruno Haible  <bruno@clisp.org>
47093
47094         Advertise for the Git server instead of the CVS server.
47095         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47096         repository instead of the CVS one.
47097         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47098         about all VCS systems generically.
47099         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47100
47101 2007-10-04  Bruno Haible  <bruno@clisp.org>
47102
47103         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47104         means.
47105         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47106
47107 2007-10-04  Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/truncl-tests: New file.
47110         * tests/test-truncl.c: New file.
47111
47112         * modules/truncl: New file.
47113         * lib/truncl.c: New file.
47114         * m4/truncl.m4: New file.
47115         * lib/math.in.h (truncl): New declaration.
47116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47117         HAVE_DECL_TRUNCL.
47118         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47119         HAVE_DECL_TRUNCL.
47120         * doc/functions/truncl.texi: Mention the 'truncl' module.
47121
47122 2007-10-04  Bruno Haible  <bruno@clisp.org>
47123
47124         * modules/truncf-tests: New file.
47125         * tests/test-truncf.c: New file.
47126
47127         * modules/truncf: New file.
47128         * lib/trunc.c: Make paramerizable through USE_* macros.
47129         * lib/truncf.c: New file.
47130         * m4/truncf.m4: New file.
47131         * lib/math.in.h (truncf): New declaration.
47132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47133         HAVE_DECL_TRUNCF.
47134         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47135         HAVE_DECL_TRUNCF.
47136         * doc/functions/truncf.texi: Mention the 'truncf' module.
47137
47138 2007-10-03  Bruno Haible  <bruno@clisp.org>
47139
47140         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47141         augmentation also for tests modules.
47142         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47143         * modules/atexit-tests (Makefile.am): Likewise.
47144         * modules/binary-io-tests (Makefile.am): Likewise.
47145         * modules/c-strcase-tests (Makefile.am): Likewise.
47146         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47147         * modules/canonicalize-tests (Makefile.am): Likewise.
47148         * modules/closein-tests (Makefile.am): Likewise.
47149         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47150         * modules/freadahead-tests (Makefile.am): Likewise.
47151         * modules/fseek-tests (Makefile.am): Likewise.
47152         * modules/fseeko-tests (Makefile.am): Likewise.
47153         * modules/ftell-tests (Makefile.am): Likewise.
47154         * modules/ftello-tests (Makefile.am): Likewise.
47155         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47156         * modules/isnanl-tests (Makefile.am): Likewise.
47157         * modules/lseek-tests (Makefile.am): Likewise.
47158         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47159         * modules/mbscasestr-tests (Makefile.am): Likewise.
47160         * modules/mbschr-tests (Makefile.am): Likewise.
47161         * modules/mbscspn-tests (Makefile.am): Likewise.
47162         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47163         * modules/mbspbrk-tests (Makefile.am): Likewise.
47164         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47165         * modules/mbsrchr-tests (Makefile.am): Likewise.
47166         * modules/mbsspn-tests (Makefile.am): Likewise.
47167         * modules/mbsstr-tests (Makefile.am): Likewise.
47168         * modules/printf-posix-tests (Makefile.am): Likewise.
47169         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47170         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47171         * modules/tsearch-tests (Makefile.am): Likewise.
47172         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47173         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47174         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47175         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47176         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47177         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47178         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47179         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47180         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47181         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47182         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47183         * modules/xstrtol-tests (Makefile.am): Likewise.
47184         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47185         * modules/yesno-tests (Makefile.am): Likewise.
47186
47187 2007-10-03  Bruno Haible  <bruno@clisp.org>
47188
47189         * modules/trunc-tests: New file.
47190         * tests/test-trunc.c: New file.
47191
47192         * modules/trunc: New file.
47193         * lib/trunc.c: New file.
47194         * m4/trunc.m4: New file.
47195         * lib/math.in.h (trunc): New declaration.
47196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47197         HAVE_DECL_TRUNC.
47198         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47199         HAVE_DECL_TRUNC.
47200         * doc/functions/trunc.texi: Mention the 'trunc' module.
47201
47202 2007-10-03  Bruno Haible  <bruno@clisp.org>
47203
47204         * tests/test-fpending.c: New file, mostly copied
47205         from coreutils/lib/t-fpending.c.
47206         * modules/fpending-tests: New file.
47207
47208 2007-10-03  Bruno Haible  <bruno@clisp.org>
47209
47210         Port the stdio extensions to QNX (untested).
47211         * lib/fseterr.c (fseterr): Add support for QNX.
47212         * lib/fbufmode.c (fbufmode): Likewise.
47213         * lib/freadable.c (freadable): Likewise.
47214         * lib/fwritable.c (fwritable): Likewise.
47215         * lib/freading.c (freading): Likewise.
47216         * lib/fwriting.c (fwriting): Likewise.
47217         * lib/freadahead.c (freadahed): Likewise.
47218         * lib/fpurge.c (fpurge): Likewise.
47219         * lib/fseeko.c (rpl_fseeko): Likewise.
47220
47221 2007-10-03  Bruno Haible  <bruno@clisp.org>
47222             Jim Meyering  <jim@meyering.net>
47223             Eric Blake  <ebb9@byu.net>
47224
47225         * doc/relocatable.texi: Use @command instead of @program.
47226
47227 2007-10-02  Jim Meyering  <jim@meyering.net>
47228
47229         Perform one more "_.h" -> ".in.h" substitution.
47230         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47231         instead of unistd_.h here, too.
47232
47233 2007-10-01  Bruno Haible  <bruno@clisp.org>
47234
47235         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47236         Needed for the alloca-opt module.
47237
47238 2007-09-30  Bruno Haible  <bruno@clisp.org>
47239
47240         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47241         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47242         alloca_.h.
47243         * lib/argz.in.h: Renamed from lib/argz_.h.
47244         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47245         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47246         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47247         byteswap_.h.
47248         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47249         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47250         dirent_.h.
47251         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47252         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47253         fcntl_.h.
47254         * lib/float.in.h: Renamed from lib/float_.h.
47255         * modules/float (Files, Makefile.am): Use float.in.h instead of
47256         float_.h.
47257         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47258         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47259         fnmatch_.h.
47260         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47261         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47262         getopt_.h.
47263         * lib/glob.in.h: Renamed from lib/glob_.h.
47264         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47265         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47266         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47267         iconv_.h.
47268         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47269         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47270         inttypes_.h.
47271         * lib/locale.in.h: Renamed from lib/locale_.h.
47272         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47273         locale_.h.
47274         * lib/math.in.h: Renamed from lib/math_.h.
47275         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47276         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47277         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47278         of netinet_in_.h. Add dependency.
47279         * lib/poll.in.h: Renamed from lib/poll_.h.
47280         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47281         * lib/search.in.h: Renamed from lib/search_.h.
47282         * modules/search (Files, Makefile.am): Use search.in.h instead of
47283         search_.h.
47284         * lib/signal.in.h: Renamed from lib/signal_.h.
47285         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47286         _signal.h.
47287         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47288         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47289         stdbool_.h.
47290         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47291         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47292         stdint_.h.
47293         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47294         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47295         stdio_.h.
47296         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47297         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47298         stdlib_.h.
47299         * lib/string.in.h: Renamed from lib/string_.h.
47300         * modules/string (Files, Makefile.am): Use string.in.h instead of
47301         string_.h.
47302         * doc/gnulib-tool.texi (Initial import): Update.
47303         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47304         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47305         of sys_select_.h. Add dependency.
47306         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47307         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47308         of sys_socket_.h.
47309         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47310         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47311         sys_stat_.h.
47312         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47313         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47314         sys_time_.h.
47315         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47316         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47317         sysexits_.h.
47318         * lib/time.in.h: Renamed from lib/time_.h.
47319         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47320         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47321         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47322         unistd_.h.
47323         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47324         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47325         wchar_.h.
47326         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47327         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47328         wctype_.h.
47329         * build-aux/bootstrap (slurp): Update.
47330         * lib/.cppi-disable: Update.
47331
47332 2007-09-30  Bruno Haible  <bruno@clisp.org>
47333
47334         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47335         Needed on BeOS.
47336
47337 2007-09-30  Bruno Haible  <bruno@clisp.org>
47338
47339         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47340
47341 2007-09-29  Bruno Haible  <bruno@clisp.org>
47342
47343         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47344
47345 2007-09-29  Bruno Haible  <bruno@clisp.org>
47346
47347         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47348         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47349         * build-aux/install-reloc: Compile also areadlink.c.
47350         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47351
47352 2007-09-29  Bruno Haible  <bruno@clisp.org>
47353
47354         * gnulib-tool (func_emit_initmacro_done): Indentation.
47355
47356 2007-09-29  Bruno Haible  <bruno@clisp.org>
47357
47358         * README: Add CVS checkout update instructions.
47359         Info from Bob Proulx <bob@proulx.com>.
47360
47361 2007-09-28  Eric Blake  <ebb9@byu.net>
47362
47363         Provide move-if-change.
47364         * build-aux/move-if-change: New file, based on best practice
47365         rather than any canonical upstream location.
47366
47367 2007-09-28  Jim Meyering  <jim@meyering.net>
47368
47369         Fix canonicalize loop-detection corner case.
47370         Do not attempt to stat the symlink values stored via seen_triple.
47371         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47372         on linux-2.6.18, (but not 2.6.22).
47373         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47374         triple_compare.  The former compares dev,ino,filename, while the latter
47375         would actually stat dirname(filename) when dev and ino were equal.
47376         * lib/hash-triple.c: Install <string.h>.
47377         (STREQ): Define.
47378         (triple_compare_ino_str): New function.
47379         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47380
47381 2007-09-28  Eric Blake  <ebb9@byu.net>
47382
47383         Enforce that AC_REPLACE_FUNCS files exist.
47384         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47385         override check for typos.
47386
47387         Fix test-closein on Solaris 10.
47388         * tests/test-closein.c (main): Don't assume stdin can be inherited
47389         closed on all systems.
47390         * tests/test-closein.sh: Likewise.
47391         Reported by Piotr Tarnowski.
47392
47393 2007-09-28  Jim Meyering  <jim@meyering.net>
47394
47395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47396
47397 2007-09-27  Jim Meyering  <jim@meyering.net>
47398
47399         canonicalize: Avoid a false-positive cycle failure.
47400         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47401         Sort.  Remove cycle-check.
47402         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47403         not cycle-check.h.
47404         (seen_triple): New function.
47405         (canonicalize_filename_mode): Use it instead of cycle-check.
47406         * tests/test-canonicalize.c: Add a test for this bug.
47407         * tests/test-canonicalize.sh: Set up and run the test.
47408
47409         New module, file-set, from coreutils.
47410         * modules/file-set: Define it.
47411         * lib/file-set.c, lib/file-set.h: Implement.
47412
47413         New module, hash-triple, from coreutils.
47414         * modules/hash-triple: Define it.
47415         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47416
47417 2007-09-25  Eric Blake  <ebb9@byu.net>
47418
47419         Fix strerror on Interix.
47420         * lib/string_.h (strerror): Declare replacement.
47421         * doc/functions/strerror.texi (strerror): Document the Interix
47422         shortcoming.
47423         * modules/string (Makefile.am): Support new hooks.
47424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47425         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47426         gl_FUNC_STRERROR_SEPARATE.
47427         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47428         * lib/strerror.c (rpl_strerror): Provide replacement.
47429         * modules/strerror (Depends-on): Add string.
47430         (configure.ac): Detect use of module.
47431         * tests/test-strerror.c: New file.
47432         * modules/strerror-tests: New test module.
47433         * modules/argp (Depends-on): Add strerror.
47434         * modules/error (Depends-on): Likewise.
47435         Reported by Martin Koeppe.
47436
47437 2007-09-24  Bruno Haible  <bruno@clisp.org>
47438
47439         * README: Update git instructions.
47440
47441 2007-09-24  Eric Blake  <ebb9@byu.net>
47442
47443         Revert fpending breakage from 2007-09-08.
47444         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47445         __fpending.c.
47446
47447 2007-09-24  Jim Meyering  <jim@meyering.net>
47448
47449         filenamecat.c: Add a test.
47450         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47451         showing how the function works when DIR is the empty string.
47452
47453 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47454
47455         * tests/test-canonicalize.sh: Turn on executable bit.
47456
47457 2007-09-19  Eric Blake  <ebb9@byu.net>
47458
47459         * README: Update CVS instructions.
47460
47461 2007-09-18  Bruno Haible  <bruno@clisp.org>
47462
47463         * modules/areadlink: New file.
47464         * lib/areadlink.h (areadlink): New declaration.
47465         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47466
47467 2007-09-17  Jim Meyering  <jim@meyering.net>
47468
47469         * lib/savewd.c (ESTALE) [!defined]: Define.
47470         Reported to be required on Interix by Martin Koeppe.
47471
47472 2007-09-17  Bruno Haible  <bruno@clisp.org>
47473
47474         * gnulib-tool (func_version): Use $version.
47475
47476 2007-09-16  Bruno Haible  <bruno@clisp.org>
47477
47478         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47479         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47480         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47481         Reported by Greg Schafer <gschafer@zip.com.au>.
47482
47483 2007-09-15  Bruno Haible  <bruno@clisp.org>
47484
47485         * gnulib-tool (sed): Try a little harder to make bash understand the
47486         alias.
47487         Reported by Bruce Korb <bruce.korb@gmail.com>.
47488
47489 2007-09-13  Eric Blake  <ebb9@byu.net>
47490
47491         * ChangeLog: Remove conflict markers.
47492
47493 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47494
47495         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47496         Reported by Bruno Haible <bruno@clisp.org>.
47497
47498 2007-09-12  Bruno Haible  <bruno@clisp.org>
47499
47500         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47501         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47502         is not defined.
47503
47504 2007-09-12  Eric Blake  <ebb9@byu.net>
47505
47506         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47508         Autoconf definition.
47509         * modules/euidaccess (Depends-on): Add extensions, for
47510         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47511         * modules/fnmatch (Depends-on): Likewise.
47512         * modules/getaddrinfo (Depends-on): Likewise.
47513         * modules/getdelim (Depends-on): Likewise.
47514         * modules/getline (Depends-on): Likewise.
47515         * modules/getsubopt (Depends-on): Likewise.
47516         * modules/gettext (Depends-on): Likewise.
47517         * modules/group-member (Depends-on): Likewise.
47518         * modules/mbchar (Depends-on): Likewise.
47519         * modules/memmem (Depends-on): Likewise.
47520         * modules/mempcpy (Depends-on): Likewise.
47521         * modules/memrchr (Depends-on): Likewise.
47522         * modules/pagealign_alloc (Depends-on): Likewise.
47523         * modules/readutmp (Depends-on): Likewise.
47524         * modules/stpcpy (Depends-on): Likewise.
47525         * modules/stpncpy (Depends-on): Likewise.
47526         * modules/strchrnul (Depends-on): Likewise.
47527         * modules/strndup (Depends-on): Likewise.
47528         * modules/strsep (Depends-on): Likewise.
47529         * modules/strverscmp (Depends-on): Likewise.
47530         * modules/vasprintf (Depends-on): Likewise.
47531         * modules/wcwidth (Depends-on): Likewise.
47532         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47533         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47534         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47535         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47536         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47537         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47538         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47539         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47540         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47541         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47542         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47543         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47544         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47545         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47546         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47547         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47548         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47549         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47550         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47551         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47552         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47553         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47554         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47555         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47556         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47558         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47559         so that lock.m4 can be used in gettext without extensions module.
47560
47561 2007-09-11  Bruno Haible  <bruno@clisp.org>
47562
47563         * m4/isc-posix.m4: Remove file.
47564         Suggested by Eric Blake.
47565
47566 2007-09-11  Eric Blake  <ebb9@byu.net>
47567
47568         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47569
47570 2007-09-10  Bruno Haible  <bruno@clisp.org>
47571
47572         * posix-modules: Fix typo in error message.
47573         Reported by Matt <mkraai@beckman.com>.
47574
47575 2007-09-09  Bruno Haible  <bruno@clisp.org>
47576
47577         * doc/functions/getdelim.texi: Update list of platforms lacking the
47578         function.
47579         * doc/functions/getline.texi: Likewise.
47580
47581 2007-09-09  Jim Meyering  <jim@meyering.net>
47582
47583         * lib/hash.c (hash_initialize): Detect calloc failure.
47584         Reported by Bruno Haible.
47585
47586 2007-09-09  Bruno Haible  <bruno@clisp.org>
47587
47588         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47589         malloc or realloc fails.
47590
47591 2007-09-09  Bruno Haible  <bruno@clisp.org>
47592
47593         * modules/getcwd (Depends-on): Add malloc-posix.
47594         * modules/glob (Depends-on): Likewise.
47595         * modules/putenv (Depends-on): Likewise.
47596         * modules/strdup (Depends-on): Likewise.
47597         * modules/getdelim (Depends-on): Add realloc-posix.
47598         * modules/read-file (Depends-on): Likewise.
47599
47600 2007-09-09  Bruno Haible  <bruno@clisp.org>
47601
47602         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47603         (gl_FUNC_MALLOC_POSIX): Require it.
47604         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47605         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47606         * modules/realloc (Files): Add m4/malloc.m4.
47607         * modules/calloc (Files): Likewise.
47608
47609 2007-09-09  Bruno Haible  <bruno@clisp.org>
47610
47611         * modules/malloc-posix: New file.
47612         * modules/malloc (Depends-on): Add malloc-posix.
47613         * lib/malloc.c: Include errno.h.
47614         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47615         and a POSIX-compatible malloc into a single function. Set ENOMEM
47616         when returning NULL.
47617         * m4/malloc.m4: New file.
47618         * doc/functions/malloc.texi: Mention the malloc-posix module.
47619         * lib/stdlib_.h (malloc): New declaration.
47620         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47621         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47622         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47623         and HAVE_MALLOC_POSIX.
47624
47625 2007-09-09  Bruno Haible  <bruno@clisp.org>
47626
47627         * modules/realloc-posix: New file.
47628         * modules/realloc (Depends-on): Add realloc-posix.
47629         * lib/realloc.c: Include errno.h.
47630         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47631         and a POSIX-compatible realloc into a single function. Set ENOMEM
47632         when returning NULL.
47633         * m4/realloc.m4: New file.
47634         * doc/functions/realloc.texi: Mention the realloc-posix module.
47635         * lib/stdlib_.h (realloc): New declaration.
47636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47637         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47638         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47639         and HAVE_REALLOC_POSIX.
47640
47641 2007-09-09  Bruno Haible  <bruno@clisp.org>
47642
47643         * modules/calloc-posix: New file.
47644         * modules/calloc (Depends-on): Add calloc-posix.
47645         * lib/calloc.c: Include errno.h.
47646         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47647         and a POSIX-compatible calloc into a single function. Set ENOMEM
47648         when returning NULL.
47649         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47650         * doc/functions/calloc.texi: Mention the calloc-posix module.
47651         * lib/stdlib_.h (calloc): New declaration.
47652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47653         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47654         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47655         and HAVE_CALLOC_POSIX.
47656
47657 2007-09-09  Bruno Haible  <bruno@clisp.org>
47658
47659         Allow for modules to show an arbitrary notice.
47660         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47661         * gnulib-tool: New option --extract-notice.
47662         (func_usage): Document it.
47663         (sed_extract_prog): Update.
47664         (func_get_notice): New function.
47665         (func_modules_notice): New function.
47666         (func_import, func_create_testdir): Invoke it.
47667         Suggested by Jim Meyering.
47668
47669 2007-09-09  Bruno Haible  <bruno@clisp.org>
47670
47671         * gnulib-tool: New options --verbose, --quiet.
47672         (func_usage): Document them.
47673         (verbose): New variable.
47674         (func_execute_command): New function.
47675         (func_import): Don't show the module list and the file list if
47676         $verbose < 0.
47677         (func_create_testdir): Likewise. Use func_execute_command.
47678         (func_create_megatestdir): Use func_execute_command.
47679
47680 2007-09-08  Bruno Haible  <bruno@clisp.org>
47681
47682         * gnulib-tool (func_import): Prefer rsync over wget when available,
47683         for fetching the PO files.
47684
47685 2007-09-08  Bruno Haible  <bruno@clisp.org>
47686
47687         * posix-modules: New file. Portions copied from gnulib-tool.
47688         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47689
47690 2007-09-08  Jim Meyering  <jim@meyering.net>
47691
47692         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47693         * lib/fpending.h: Rename from __fpending.h.
47694         * lib/fpending.c: Rename from __fpending.c.
47695         Include "fpending.h", not "__fpending.h".
47696         * lib/__fpending.h, lib/__fpending.c: Remove files.
47697         * modules/fpending (Files): Reflect new file names.
47698         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47699
47700 2007-09-08  Bruno Haible  <bruno@clisp.org>
47701
47702         * m4/inttypes-h.m4: Remove stub file.
47703
47704 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47705
47706         * doc/headers/stdint.texi: Discuss #include_next issue.
47707
47708 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47709
47710         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47711
47712 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47713
47714         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47715         in variable name.
47716
47717 2007-09-03  Jim Meyering  <jim@meyering.net>
47718
47719         New module: git-version-gen.
47720         * modules/git-version-gen: New file.
47721
47722         Import changes from coreutils for bootstrap script.
47723
47724         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47725
47726         bootstrap: uses rsync to download the .po files
47727         * build-aux/bootstrap (po_download_command_format): New global.
47728         (download_po_files): Use rsync.
47729         (update_po_files): Don't remove .po files after download,
47730         so future rsync runs can take advantage of the copies.
47731
47732         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47733
47734         Solve the unnecessary-.po-file-regeneration problem once and for all.
47735         * build-aux/bootstrap (download_po_files): New function, renamed from
47736         get_translations.  Now, downloads, but doesn't update LINGUAS.
47737         (update_po_files): New function.
47738
47739         bootstrap: Ignore more.
47740         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47741         uniwidth to e.g., lib/.gitignore.
47742         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47743
47744         * build-aux/bootstrap: New setting: vc_ignore.
47745         (insert_sorted_if_absent): Create $file if absent.
47746         Adapt to new, possibly empty, list: $vc_ignore.
47747
47748         bootstrap: generate more ignorable names
47749         * build-aux/bootstrap (slurp): When generating ignorable names,
47750         also map .sin to .sed, .gperf to .c, and .y to .c.
47751
47752 2007-09-03  Jim Meyering  <jim@meyering.net>
47753
47754         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47755         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47756
47757 2007-09-02  Bruno Haible  <bruno@clisp.org>
47758
47759         Fix mis-recognition of 'mcs' on QNX 6.
47760         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47761         output contains the string "Mono".
47762         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47763         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47764
47765 2007-09-01  Bruno Haible  <bruno@clisp.org>
47766
47767         Fix collision between uniwidth/* and linebreak modules.
47768         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47769         u32_width): Remove declarations.
47770         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47771         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47772         streq3, streq2, streq1, streq0): Remove functions.
47773         (STREQ): Remove macro.
47774         (is_cjk_encoding): Remove function.
47775         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47776         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47777         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47778         * NEWS: Document the change.
47779
47780 2007-09-01  Bruno Haible  <bruno@clisp.org>
47781
47782         * lib/streq.h: Add double-inclusion guard.
47783
47784 2007-09-01  Karl Berry  <karl@gnu.org>
47785
47786         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47787
47788 2007-08-28  Jim Meyering  <jim@meyering.net>
47789
47790         Rename mreadlink_with_size to areadlink_with_size.
47791         * NEWS: Document the change.
47792         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47793         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47794         * lib/mreadlink.h: Rename this to...
47795         * lib/areadlink.h: ...this.
47796         * modules/mreadlink-with-size: Rename this to...
47797         * modules/areadlink-with-size: ...this.
47798         * lib/canonicalize.c: Reflect the renaming.
47799         * modules/canonicalize: Likewise.
47800
47801 2007-08-26  Bruno Haible  <bruno@clisp.org>
47802
47803         * gnulib-tool (func_import): When deciding which files to remove,
47804         consider also dangling symbolic links.
47805         Reported by Eric Blake.
47806
47807 2007-08-26  Bruno Haible  <bruno@clisp.org>
47808
47809         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47810
47811 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47812
47813         * lib/readline.c: Don't include getline.h, the prototype is now
47814         found in stdio.h.
47815
47816 2007-08-23  Jim Meyering  <jim@meyering.net>
47817
47818         Getdelim touchup.
47819         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47820         around the funlockfile call, since funlockfile never sets errno.
47821         Don't set errno upon failed realloc.
47822
47823 2007-08-22  Eric Blake  <ebb9@byu.net>
47824
47825         Getline touchups.
47826         * lib/getdelim.c (getdelim): Revert regression that required *n to
47827         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47828         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47829         getdelim, rather than whether implementation is missing.
47830         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47831         * lib/stdio_.h (getline): Also declare if replacement is
47832         required.
47833         * doc/functions/getdelim.texi: New file.
47834         * doc/functions/getline.texi: Likewise.
47835         * doc/gnulib.texi (Function Substitutes): Add new files.
47836         Reported by Bruno Haible.
47837
47838 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47839
47840         * users.txt: Add Guile.
47841
47842 2007-08-22  Eric Blake  <ebb9@byu.net>
47843
47844         * tests/test-getdelim.c (main): Use remove, not unlink.
47845         * tests/test-getline.c (main): Likewise.
47846
47847         Move getline and getdelim into stdio.h, per POSIX 200x.
47848         * modules/getline (Files): Remove getline.h.
47849         (Depends-on): Add stdio.
47850         (configure.ac): Add module indicator.
47851         * modules/getdelim (Files): Remove getdelim.h.
47852         (Depends-on): Add stdio.
47853         (configure.ac): Add module indicator.
47854         * modules/stdio (Makefile.am): Work with new indicators.
47855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47856         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47857         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47858         * lib/getdelim.h: Delete.
47859         * lib/getline.h: Delete.
47860         * lib/stdio_.h (getdelim, getline): Declare.
47861         * modules/getdelim-tests: New module.
47862         * modules/getline-tests: Likewise.
47863         * tests/test-getdelim.c: New file.
47864         * tests/test-getline.c: Likewise.
47865         * NEWS: Document the change.
47866         * lib/getline.c: Update choice of header.
47867         * lib/csharpcomp.c: Likewise.
47868         * lib/getpass.c: Likewise.
47869         * lib/javacomp.c: Likewise.
47870         * lib/javaversion.c: Likewise.
47871         * lib/yesno.c: Likewise.
47872         * lib/getdelim.c: Likewise.
47873         (getdelim): Set errno on failure, and avoid memory leak.
47874
47875 2007-08-19  Bruno Haible  <bruno@clisp.org>
47876
47877         * modules/closein (Depends-on): Add freadahead.
47878         * lib/closein.c: Include freadahead.h.
47879         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47880         is zero.
47881
47882 2007-08-19  Bruno Haible  <bruno@clisp.org>
47883
47884         * modules/freadahead-tests: New file.
47885         * tests/test-freadahead.sh: New file.
47886         * tests/test-freadahead.c: New file.
47887
47888         * modules/freadahead: New file.
47889         * lib/freadahead.h: New file.
47890         * lib/freadahead.c: New file.
47891         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47892         fbufmode, fpurge, freadable, fwritable.
47893
47894 2007-08-19  Eric Blake  <ebb9@byu.net>
47895
47896         Test yesno in combination with closein.
47897         * lib/yesno.c (yesno): Document use of stdin.
47898         * modules/yesno-tests (Files): New module.
47899         * tests/test-yesno.c (main): New file.
47900         * tests/test-yesno.sh: Likewise.
47901
47902 2007-08-19  Bruno Haible  <bruno@clisp.org>
47903
47904         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47905         * lib/fseeko.c (rpl_fseeko): Likewise.
47906         * lib/fseterr.c (fseterr): Likewise.
47907
47908 2007-08-19  Bruno Haible  <bruno@clisp.org>
47909
47910         * tests/test-lseek.c (main): Disable a test for BeOS.
47911         * doc/functions/lseek.texi: Document the BeOS bug.
47912
47913 2007-08-19  Bruno Haible  <bruno@clisp.org>
47914             Eric Blake  <ebb9@byu.net>
47915
47916         * lib/lseek.c: Include <sys/stat.h>.
47917         (rpl_lseek): Add workaround code also for Unix platforms.
47918         Needed for BeOS.
47919         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47920         * doc/functions/lseek.texi: Document BeOS definiency.
47921
47922 2007-08-18  Bruno Haible  <bruno@clisp.org>
47923
47924         * modules/fstrcmp-tests: New file.
47925         * tests/test-fstrcmp.c: New file.
47926
47927 2007-08-18  Bruno Haible  <bruno@clisp.org>
47928
47929         * modules/fstrcmp: New file, from GNU gettext with modifications.
47930         * lib/fstrcmp.h: New file, from GNU gettext.
47931         * lib/fstrcmp.c: New file, from GNU gettext.
47932         * MODULES.html.sh (String handling): Add fstrcmp.
47933
47934 2007-08-18  Bruno Haible  <bruno@clisp.org>
47935
47936         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47937         'bool'.
47938         (diag, compareseq): Remove const from the ctxt argument.
47939         (USE_HEURISTIC): Undefine at the end.
47940
47941 2007-08-18  Jim Meyering  <jim@meyering.net>
47942
47943         New file: lib/idcache.h
47944         * NEWS: Mention the addition.
47945         * modules/idcache (Files): Add lib/idcache.h
47946         * lib/idcache.c: Include "idcache.h".
47947         Don't include <sys/types.h>.
47948         Add a FIXME comment.
47949         Move file-scoped "static" declarations to the top.
47950         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47951
47952 2007-08-17  Bruno Haible  <bruno@clisp.org>
47953         and Paul Eggert  <eggert@cs.ucla.edu>
47954
47955         * MODULES.html.sh: Add diffseq.
47956         * modules/diffseq: New file.
47957         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47958         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47959
47960 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47961
47962         Import changes from coreutils for bootstrap script.
47963
47964         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47965
47966         * build-aux/bootstrap (slurp): Work even in environments where
47967         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47968         current code does not slurp files whose names start with ".", and
47969         this looks like it might be a troublesome area.
47970
47971         2007-07-11  Jim Meyering  <jim@meyering.net>
47972
47973         If there's a GPL vN copyright comment, require that N == 3.
47974
47975         2007-07-08  Jim Meyering  <jim@meyering.net>
47976
47977         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47978         * build-aux/bootstrap (mam_template): Move definition out of loop.
47979
47980         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47981
47982         * build-aux/bootstrap (symlink_to_dir): Rename function from
47983         symlink_to_gnulib.  Add a directory parameter.  Update all
47984         callers.
47985         (cp_mark_as_generated): Also check for -- and link to -- files in
47986         gl/.
47987
47988         2007-07-08  Jim Meyering  <jim@meyering.net>
47989
47990         Adapt to deeper hierarchy in gnulib.
47991         * build-aux/bootstrap (symlink_to_dir): If the destination
47992         directory doesn't exist, create it. This is required at least for
47993         "lib/uniwidth/cjk.h".
47994
47995         2007-05-15  Jim Meyering  <jim@meyering.net>
47996
47997         * build-aux/bootstrap: Now that generated Makefile.am files
47998         are no longer under version control, they must be created at
47999         bootstrap time.
48000
48001 2007-08-14  Ben Pfaff  <blp@gnu.org>
48002
48003         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48004
48005 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48006
48007         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48008         given the changes below.
48009         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48010         even on hosts that have padding bits beyond the supported 64.
48011
48012 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48013
48014         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48015         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48016         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48017         depends on it.
48018         (xstrtol_error): Remove.
48019         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48020         but with a different signature.
48021         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48022         * lib/xstrtol-error.c: Include exitfail.h.
48023         (xstrtol_fatal): New function, with a different signature from the
48024         old xstrtol_error, so that the caller need not worry about passing
48025         in an exit status, or about storage management of the option argument.
48026         (xstrtol_error): Now a static function.  Redo signature to
48027         implement xstrtol_fatal.  Output the correct number of hyphens in
48028         front of the option so that the caller need not worry about
48029         storage management.
48030         (N_): New macro.
48031         (_): Remove; not used now.
48032         * modules/xstrtol: Depend on getopt.
48033         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48034         of old STRTOL_FATAL_ERROR macro.
48035         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48036         of test program.
48037         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48038         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48039
48040 2007-08-08  Eric Blake  <ebb9@byu.net>
48041
48042         * lib/xstrtol-error.c: Add missing include.
48043
48044         Move xstrtol messages into gnulib domain, when --pobase is used.
48045         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48046         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48047         * modules/xstrtol (Files): Distribute new file.
48048         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48049         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48050         * tests/test-xstrtol.c: ...into new file.
48051         * tests/test-xstrtoul.c: Also test xstrtoul.
48052         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48053         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48054         * tests/test-xstrtol.sh: Drive the tests.
48055         * tests/test-xstrtoimax.sh: Likewise.
48056         * tests/test-xstrtoumax.sh: Likewise.
48057         * modules/xstrtol-tests: New module.
48058         * modules/xstrtoimax-tests: Likewise.
48059         * modules/xstrtoumax-tests: Likewise.
48060
48061 2007-08-08  Jim Meyering  <jim@meyering.net>
48062
48063         New function: mfile_name_concat.
48064         * lib/filenamecat.c (mfile_name_concat): New function, just like
48065         file_name_concat, but return NULL upon failure rather than exiting
48066         with a diagnostic.
48067         * lib/filenamecat.h: Declare it.
48068
48069 2007-08-07  Bruno Haible  <bruno@clisp.org>
48070
48071         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48072         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48073         warning from gcc.
48074         Reported by Eric Blake.
48075
48076 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48077
48078         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48079         * modules/crypto/arcfour (License): Likewise.
48080         * modules/crypto/des-tests (License): Likewise.
48081         * modules/crypto/gc-arctwo-tests (License): Likewise.
48082         * modules/crypto/gc-des-tests (License): Likewise.
48083         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48084         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48085         * modules/crypto/gc-md2-tests (License): Likewise.
48086         * modules/crypto/gc-md4-tests (License): Likewise.
48087         * modules/crypto/gc-md5-tests (License): Likewise.
48088         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48089         * modules/crypto/gc-rijndael-tests (License): Likewise.
48090         * modules/crypto/gc-sha1-tests (License): Likewise.
48091         * modules/crypto/gc-tests (License): Likewise.
48092         * modules/crypto/hmac-md5 (License): Likewise.
48093         * modules/crypto/hmac-sha1 (License): Likewise.
48094         * modules/crypto/md2-tests (License): Likewise.
48095         * modules/crypto/md4-tests (License): Likewise.
48096         * modules/crypto/md5 (License): Likewise.
48097         * modules/crypto/rijndael (License): Likewise.
48098         * modules/crypto/sha1 (License): Likewise.
48099         * modules/memxor (License): Likewise.
48100
48101 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48102         and Bruno Haible  <bruno@clisp.org>
48103
48104         * NEWS: Describe interface changes to human, xstrtol.
48105         * lib/human.h: Include <xstrtol.h>.
48106         (human_options): Return enum strtol_error, not int.  Remove
48107         bool arg; take int * instead.
48108         * lib/human.c: Don't include "gettext.h".
48109         (_): Remove; no longer used.
48110         Don't include <xstrtol.h>, since human.h does it.
48111         (human_options): Adjust to abovementioned interface changes.
48112         Do not report error to stderr; that's now the caller's
48113         responsibility.
48114         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48115         interface change.
48116         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48117         Str, Argument_type_string.  All uses changed.  Put " argument"
48118         in diagnostics to make them clearer.  Change wording of suffix
48119         message for clarity.
48120         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48121         Argument_type_string.
48122         (STRTOL_FATAL_WARN): Remove; no longer used.
48123         * modules/human (Depends-on): Remove gettext-h.
48124
48125 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48126
48127         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48128
48129 2007-07-31  Bruno Haible  <bruno@clisp.org>
48130
48131         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48132         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48133         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48134
48135 2007-07-31  Bruno Haible  <bruno@clisp.org>
48136
48137         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48138         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48139
48140 2007-07-30  Bruno Haible  <bruno@clisp.org>
48141
48142         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48143         * modules/c-ctype (License): Likewise.
48144         * modules/c-strcase (License): Likewise.
48145         * modules/check-version (License): Likewise.
48146         * modules/iconv (License): Likewise.
48147         * modules/iconv_open (License): Likewise.
48148         * modules/read-file (License): Likewise.
48149         * modules/striconv (License): Likewise.
48150         * modules/strverscmp (License): Likewise.
48151         * modules/vasprintf (License): Likewise.
48152         * modules/crypto/des (License): Likewise.
48153         * modules/crypto/gc (License): Likewise.
48154         * modules/crypto/gc-arcfour (License): Likewise.
48155         * modules/crypto/gc-arctwo (License): Likewise.
48156         * modules/crypto/gc-des (License): Likewise.
48157         * modules/crypto/gc-hmac-md5 (License): Likewise.
48158         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48159         * modules/crypto/gc-md2 (License): Likewise.
48160         * modules/crypto/gc-md4 (License): Likewise.
48161         * modules/crypto/gc-md5 (License): Likewise.
48162         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48163         * modules/crypto/gc-random (License): Likewise.
48164         * modules/crypto/gc-rijndael (License): Likewise.
48165         * modules/crypto/gc-sha1 (License): Likewise.
48166         * modules/crypto/md2 (License): Likewise.
48167         * modules/crypto/md4 (License): Likewise.
48168
48169 2007-07-30  Jim Meyering  <jim@meyering.net>
48170
48171         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48172         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48173         it has valid stat data.  This bug would cause du not to count the
48174         sizes of inaccessible directories.
48175         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48176         in <http://bugzilla.redhat.com/250077>.
48177
48178 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48179             Bruno Haible  <bruno@clisp.org>
48180
48181         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48182         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48183         #include_next, gives a diagnostic about it, but reports no error in
48184         the exit code.
48185         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48186
48187 2007-07-24  Ben Pfaff  <blp@gnu.org>
48188
48189         Improve name: "count-one-bits" is better than "popcount".
48190         * MODULES.html.sh: Update name.
48191         * lib/popcount.h: Renamed lib/count-one-bits.h.
48192         (popcount): Renamed count_one_bits.
48193         (popcountl): Renamed count_one_bits_l.
48194         (popcountll): Renamed count_one_bits_ll.
48195         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48196         * modules/popcount: Renamed module/count-one-bits.
48197         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48198         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48199
48200 2007-07-23  Ben Pfaff  <blp@gnu.org>
48201
48202         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48203         better code generation, and add U to large constants to avoid
48204         warnings, in non-GCC case.
48205         Suggested by Bruno Haible.
48206
48207 2007-07-23  Ben Pfaff  <blp@gnu.org>
48208
48209         * lib/popcount.h: Use verify_true instead of if...abort.
48210         * modules/popcount: Depend on verify module.
48211         Suggested by Jim Meyering.
48212
48213 2007-07-23  Bruno Haible  <bruno@clisp.org>
48214
48215         * gnulib-tool (func_import): Create a .cvsignore file also when the
48216         directory is not yet in CVS but the toplevel directory is. When
48217         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48218         Reported by Karl Berry.
48219
48220 2007-07-22  Ben Pfaff  <blp@gnu.org>
48221
48222         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48223         case.
48224         Suggested by Eric Blake.
48225
48226 2007-07-22  Ben Pfaff  <blp@gnu.org>
48227
48228         New module: popcount.
48229         * MODULES.html.sh: Add popcount.
48230         * modules/popcount: New file.
48231         * modules/popcount-tests: New file.
48232         * tests/test-popcount.c: New file.
48233         * lib/popcount.h: New file.
48234         * m4/popcount.m4: New file.
48235
48236 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48237
48238         * build-aux/announce-gen: Update to GPLv3.
48239
48240         * build-aux/config.guess: Update from config.
48241
48242 2007-07-21  Bruno Haible  <bruno@clisp.org>
48243
48244         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48245         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48246
48247 2007-07-20  Jim Meyering  <jim@meyering.net>
48248
48249         * check-module: Diagnose a self-dependency.
48250
48251 2007-07-19  Bruno Haible  <bruno@clisp.org>
48252
48253         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48254         empty.
48255         Reported by Eric Blake.
48256
48257 2007-07-18  Bruno Haible  <bruno@clisp.org>
48258
48259         * gnulib-tool: New options --po-base, --po-domain.
48260         (func_usage): Document them.
48261         (pobase, po_domain): New variables.
48262         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48263         DEFAULT_TEXT_DOMAIN.
48264         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48265         (func_import): Consider pobase and po_domain. Create a po/ directory.
48266         (func_create_testdir): Set pobase and po_domain to empty.
48267         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48268         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48269
48270 2007-07-18  Bruno Haible  <bruno@clisp.org>
48271
48272         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48273         EXTRA_DIST augmentation for files in build-aux/.
48274
48275 2007-07-16  Bruno Haible  <bruno@clisp.org>
48276
48277         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48278         * modules/getdelim (License): Likewise.
48279
48280 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48281
48282         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48283         * modules/d-type (License): Likewise.
48284         * modules/extensions (License): Likewise.
48285         * modules/fnmatch (License): Likewise.
48286         * modules/fseeko (License): Likewise.
48287         * modules/getaddrinfo (License): Likewise.
48288         * modules/getline (License): Likewise.
48289         * modules/getlogin_r (License): Likewise.
48290         * modules/getpass (License): Likewise.
48291         * modules/gettimeofday (License): Likewise.
48292         * modules/glob (License): Likewise.
48293         * modules/inet_ntop (License): Likewise.
48294         * modules/malloc (License): Likewise.
48295         * modules/malloca (License): Likewise.
48296         * modules/memmem (License): Likewise.
48297         * modules/mempcpy (License): Likewise.
48298         * modules/memset (License): Likewise.
48299         * modules/minmax (License): Likewise.
48300         * modules/mktime (License): Likewise.
48301         * modules/netinet_in (License): Likewise.
48302         * modules/pathmax (License): Likewise.
48303         * modules/poll (License): Likewise.
48304         * modules/regex (License): Likewise.
48305         * modules/snprintf (License): Likewise.
48306         * modules/stdbool (License): Likewise.
48307         * modules/stdint (License): Likewise.
48308         * modules/stdio (License): Likewise.
48309         * modules/strcase (License): Likewise.
48310         * modules/strcasestr (License): Likewise.
48311         * modules/strdup (License): Likewise.
48312         * modules/string (License): Likewise.
48313         * modules/strndup (License): Likewise.
48314         * modules/strnlen (License): Likewise.
48315         * modules/strpbrk (License): Likewise.
48316         * modules/strptime (License): Likewise.
48317         * modules/strsep (License): Likewise.
48318         * modules/sys_select (License): Likewise.
48319         * modules/sys_socket (License): Likewise.
48320         * modules/sys_stat (License): Likewise.
48321         * modules/sys_time (License): Likewise.
48322         * modules/time (License): Likewise.
48323         * modules/time_r (License): Likewise.
48324         * modules/timegm (License): Likewise.
48325         * modules/unistd (License): Likewise.
48326         * modules/vsnprintf (License): Likewise.
48327         * modules/wctype (License): Likewise.
48328
48329 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48330
48331         * modules/argz (License): LGPLv2+.
48332
48333 2007-07-15  Karl Berry  <karl@gnu.org>
48334
48335         * doc/gnulib.texi: revise node structure per new fdl.texi.
48336
48337 2007-07-14  Bruno Haible  <bruno@clisp.org>
48338
48339         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48340         the output file.
48341         * lib/uniname/uninames.h: Regenerated.
48342
48343 2007-07-14  Karl Berry  <karl@gnu.org>
48344
48345         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48346         omitting sectioning and index commands.
48347
48348 2007-07-13  Bruno Haible  <bruno@clisp.org>
48349
48350         New gnulib-tool option --more-symlinks.
48351         * gnulib-tool (func_usage): Document --more-symlinks.
48352         (do_copyrights): New variable.
48353         Recognize option --more-symlinks.
48354         (func_import): Don't add a copyright notice transform to
48355         sed_transform_lib_file if do_copyrights is empty.
48356
48357 2007-07-13  Bruno Haible  <bruno@clisp.org>
48358
48359         * lib/vasnprintf.c (decimal_point_char): Define also if
48360         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48361         && !NEED_PRINTF_DIRECTIVE_A.
48362         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48363         Gary V. Vaughan <gary@gnu.org>.
48364
48365 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48366
48367         * lib/inttypes_.h: Undo previous change, since it was fixed
48368         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48369
48370 2007-07-13  Bruno Haible  <bruno@clisp.org>
48371
48372         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48373         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48374
48375 2007-07-13  Jim Meyering  <jim@meyering.net>
48376
48377         df: Don't fail for Tru64's "file-on-file mount".
48378         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48379         so we fall through and use statfs instead.  Details here:
48380         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48381         Reported by Albert Chin.
48382
48383 2007-07-13  Bruno Haible  <bruno@clisp.org>
48384
48385         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48386         * modules/configmake (License): Likewise.
48387         * modules/gettext (License): Likewise.
48388         * modules/gettext-h (License): Likewise.
48389         * modules/include_next (License): Likewise.
48390         * modules/link-warning (License): Likewise.
48391         * modules/localcharset (License): Likewise.
48392         * modules/localename (License): Likewise.
48393         * modules/lock (License): Likewise.
48394         * modules/relocatable-lib-lgpl (License): Likewise.
48395         * modules/size_max (License): Likewise.
48396         * modules/vasnprintf (License): Likewise.
48397         * modules/wchar (License): Likewise.
48398         * modules/xsize (License): Likewise.
48399
48400 2007-07-13  Bruno Haible  <bruno@clisp.org>
48401
48402         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48403         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48404
48405 2007-07-12  Bruno Haible  <bruno@clisp.org>
48406
48407         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48408         in the modules files.
48409
48410 2007-07-11  Karl Berry  <karl@gnu.org>
48411
48412         * MODULES.html.sh (func_module): use
48413          sed -e '\|^'"${includefile}"'$|d'
48414          instead of /.../d, to avoid errors on $includefile's containing /.
48415
48416 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48417
48418         * gnulib-tool (func_import): Avoid duplication of --avoid
48419         statements
48420         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48421         names to `_' in variable names.
48422
48423 2007-07-10  Eric Blake  <ebb9@byu.net>
48424
48425         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48426         * NEWS: Document this change.
48427
48428 2007-07-08  Bruno Haible  <bruno@clisp.org>
48429
48430         Update to Unicode 5.0.
48431         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48432         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48433         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48434         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48435         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48436         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48437         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48438         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48439         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48440         U+10A3F, U+1D242..U+1D244.
48441         (nonspacing_table_ind): Update.
48442         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48443         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48444
48445 2007-07-08  Bruno Haible  <bruno@clisp.org>
48446
48447         Update to Unicode 5.0.
48448         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48449         code transform. Extend the name index field of unicode_name_to_code and
48450         unicode_code_to_name from 16 to 24 bits.
48451         * lib/uniname/uniname.c (unicode_character_name,
48452         unicode_name_character): Add the range 0x12xxx to the code transform.
48453         * lib/uniname/uninames.h: Regenerated.
48454         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48455
48456 2007-07-07  Bruno Haible  <bruno@clisp.org>
48457
48458         * modules/wcwidth-tests: New file.
48459         * tests/test-wcwidth.c: New file.
48460
48461         Work around MacOS X wcwidth() bug.
48462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48463         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48464         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48465         original wcwidth in non-UTF-8 locales.
48466         * modules/wcwidth (Depends-on): Add localcharset, streq,
48467         uniwidth/width.
48468         * doc/functions/wcwidth.texi: Update.
48469
48470 2007-07-07  Bruno Haible  <bruno@clisp.org>
48471
48472         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48473         (wcwidth): New declaration.
48474         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48475         macros.
48476         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48477         here. Prepare for creating <wchar.h> unconditionally.
48478         * modules/wchar (Depends-on): Add link-warning.
48479         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48480         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48481         * lib/wcwidth.h: Remove file.
48482         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48483         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48484         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48485         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48486         (Include): Replace wcwidth.h with <wchar.h>.
48487         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48488         * lib/mbchar.h: Don't include wcwidth.h.
48489         * lib/mbswidth.c: Likewise.
48490         * NEWS: Mention the change.
48491
48492 2007-07-07  Bruno Haible  <bruno@clisp.org>
48493
48494         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48495         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48496         definition with an external declaration.
48497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48498         defined as a function. Remove AC_C_INLINE requirement.
48499         * modules/wcwidth (Files): Add lib/wcwidth.c.
48500         (Makefile.am): Remove redundant statement.
48501
48502 2007-07-07  Bruno Haible  <bruno@clisp.org>
48503
48504         * MODULES.html.sh (Unicode string functions): Add the new modules.
48505
48506         * tests/uniwidth/test-u32-strwidth.c: New file.
48507         * modules/uniwidth/u32-strwidth-tests: New file.
48508
48509         * lib/uniwidth/u32-strwidth.c: New file.
48510         * modules/uniwidth/u32-strwidth: New file.
48511
48512         * tests/uniwidth/test-u16-strwidth.c: New file.
48513         * modules/uniwidth/u16-strwidth-tests: New file.
48514
48515         * lib/uniwidth/u16-strwidth.c: New file.
48516         * modules/uniwidth/u16-strwidth: New file.
48517
48518         * tests/uniwidth/test-u8-strwidth.c: New file.
48519         * modules/uniwidth/u8-strwidth-tests: New file.
48520
48521         * lib/uniwidth/u8-strwidth.c: New file.
48522         * modules/uniwidth/u8-strwidth: New file.
48523
48524         * tests/uniwidth/test-u32-width.c: New file.
48525         * modules/uniwidth/u32-width-tests: New file.
48526
48527         * lib/uniwidth/u32-width.c: New file.
48528         * modules/uniwidth/u32-width: New file.
48529
48530         * tests/uniwidth/test-u16-width.c: New file.
48531         * modules/uniwidth/u16-width-tests: New file.
48532
48533         * lib/uniwidth/u16-width.c: New file.
48534         * modules/uniwidth/u16-width: New file.
48535
48536         * tests/uniwidth/test-u8-width.c: New file.
48537         * modules/uniwidth/u8-width-tests: New file.
48538
48539         * lib/uniwidth/u8-width.c: New file.
48540         * modules/uniwidth/u8-width: New file.
48541
48542         * tests/uniwidth/test-uc_width.c: New file.
48543         * modules/uniwidth/width-tests: New file.
48544
48545         * lib/uniwidth/width.c: New file, from GNU libiconv.
48546         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48547         * modules/uniwidth/width: New file.
48548
48549         * lib/uniwidth.h: New file, from GNU libiconv.
48550         * modules/uniwidth/base: New file.
48551
48552 2007-07-07  Bruno Haible  <bruno@clisp.org>
48553
48554         * lib/uniname.h: New file, from GNU gettext.
48555         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48556         * lib/uniname/uninames.h: New file, from GNU gettext.
48557         * lib/uniname/uniname.c: New file, from GNU gettext.
48558         * tests/uniname/test-uninames.sh: New file.
48559         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48560         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48561         * modules/uniname/base: New file.
48562         * modules/uniname/uniname: New file.
48563         * modules/uniname/uniname-tests: New file.
48564         * MODULES.html.sh (Unicode string functions): Add the new modules.
48565
48566 2007-07-06  Bruno Haible  <bruno@clisp.org>
48567
48568         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48569
48570 2007-07-06  Bruno Haible  <bruno@clisp.org>
48571
48572         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48573         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48574         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48575         include <sys/time.h>.
48576         Reported by Eric Blake.
48577
48578 2007-07-06  Eric Blake  <ebb9@byu.net>
48579
48580         Fix testing canonicalize on cygwin.
48581         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48582         Revert patch from 2007-06-19.
48583         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48584         canonicalize module is also in use.
48585         * tests/test-canonicalize.c: New file.
48586         * tests/test-canonicalize.sh: Likewise.
48587         * modules/canonicalize-tests: Likewise.
48588
48589 2007-07-06  Jim Meyering  <jim@meyering.net>
48590
48591         * lib/getugroups.c (getugroups): Detect getgrent failure.
48592         Adjust comment to reflect reality: this function may return -1.
48593
48594 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48595
48596         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48597         the new TP address.
48598         (usage): Fix typo
48599         (gnulib_mk): New variable.
48600
48601 2007-07-05  Jim Meyering  <jim@meyering.net>
48602
48603         Don't let endgrent clobber errno, no matter how improbable.
48604         * lib/getugroups.c (getugroups): Save and restore errno around
48605         endgrent call.
48606
48607         Close the group DB even when failing with 2^31 or more members.
48608         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48609
48610 2007-07-04  Jim Meyering  <jim@meyering.net>
48611
48612         * lib/getugroups.h: New file.
48613         * lib/getugroups.c: Include "getugroups.h".
48614         Remove uses of "register" keyword.
48615         Move local variable, "cp", down into scope where used.
48616         Give "username" parameter the "const" attribute.
48617         * modules/getugroups (Files): Add lib/getugroups.h
48618
48619 2007-07-04  Karl Berry  <karl@gnu.org>
48620
48621         * MODULES.html.sh (func_all_modules): Complete rename of
48622         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48623
48624 2007-07-02  Bruno Haible  <bruno@clisp.org>
48625
48626         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48627         mode, when inttypes.h comes from gnulib.
48628         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48629
48630 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48631
48632         * NEWS: Mention lgpl module name change.
48633
48634         * modules/lgpl-2.1: Renamed from lgpl.
48635
48636         * NEWS: Mention gpl module name change.
48637
48638         * modules/gpl-3.0: New file, based on gpl-2.0.
48639
48640         * modules/gpl-2.0: Renamed from gpl.
48641
48642         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48643         doc/gpl-2.0.texi.
48644
48645 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48646
48647         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48648         #define __STDC_LIMIT_MACROS temporarily while including
48649         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48650         Problem reported by Joel E. Denny in
48651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48652
48653 2007-07-01  Bruno Haible  <bruno@clisp.org>
48654
48655         * lib/unistdio.h: New file.
48656         * lib/unistdio/u-asnprintf.h: New file.
48657         * lib/unistdio/u-asprintf.h: New file.
48658         * lib/unistdio/u-printf-args.c: New file.
48659         * lib/unistdio/u-printf-args.h: New file.
48660         * lib/unistdio/u-printf-parse.h: New file.
48661         * lib/unistdio/u-snprintf.h: New file.
48662         * lib/unistdio/u-sprintf.h: New file.
48663         * lib/unistdio/u-vasprintf.h: New file.
48664         * lib/unistdio/u-vsnprintf.h: New file.
48665         * lib/unistdio/u-vsprintf.h: New file.
48666         * lib/unistdio/ulc-asnprintf.c: New file.
48667         * lib/unistdio/ulc-asprintf.c: New file.
48668         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48669         * lib/unistdio/ulc-printf-parse.c: New file.
48670         * lib/unistdio/ulc-snprintf.c: New file.
48671         * lib/unistdio/ulc-sprintf.c: New file.
48672         * lib/unistdio/ulc-vasnprintf.c: New file.
48673         * lib/unistdio/ulc-vasprintf.c: New file.
48674         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48675         * lib/unistdio/ulc-vsnprintf.c: New file.
48676         * lib/unistdio/ulc-vsprintf.c: New file.
48677         * lib/unistdio/u8-asnprintf.c: New file.
48678         * lib/unistdio/u8-asprintf.c: New file.
48679         * lib/unistdio/u8-printf-parse.c: New file.
48680         * lib/unistdio/u8-snprintf.c: New file.
48681         * lib/unistdio/u8-sprintf.c: New file.
48682         * lib/unistdio/u8-vasnprintf.c: New file.
48683         * lib/unistdio/u8-vasprintf.c: New file.
48684         * lib/unistdio/u8-vsnprintf.c: New file.
48685         * lib/unistdio/u8-vsprintf.c: New file.
48686         * lib/unistdio/u8-u8-asnprintf.c: New file.
48687         * lib/unistdio/u8-u8-asprintf.c: New file.
48688         * lib/unistdio/u8-u8-snprintf.c: New file.
48689         * lib/unistdio/u8-u8-sprintf.c: New file.
48690         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48691         * lib/unistdio/u8-u8-vasprintf.c: New file.
48692         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48693         * lib/unistdio/u8-u8-vsprintf.c: New file.
48694         * lib/unistdio/u16-asnprintf.c: New file.
48695         * lib/unistdio/u16-asprintf.c: New file.
48696         * lib/unistdio/u16-printf-parse.c: New file.
48697         * lib/unistdio/u16-snprintf.c: New file.
48698         * lib/unistdio/u16-sprintf.c: New file.
48699         * lib/unistdio/u16-vasnprintf.c: New file.
48700         * lib/unistdio/u16-vasprintf.c: New file.
48701         * lib/unistdio/u16-vsnprintf.c: New file.
48702         * lib/unistdio/u16-vsprintf.c: New file.
48703         * lib/unistdio/u16-u16-asnprintf.c: New file.
48704         * lib/unistdio/u16-u16-asprintf.c: New file.
48705         * lib/unistdio/u16-u16-snprintf.c: New file.
48706         * lib/unistdio/u16-u16-sprintf.c: New file.
48707         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48708         * lib/unistdio/u16-u16-vasprintf.c: New file.
48709         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48710         * lib/unistdio/u16-u16-vsprintf.c: New file.
48711         * lib/unistdio/u32-asnprintf.c: New file.
48712         * lib/unistdio/u32-asprintf.c: New file.
48713         * lib/unistdio/u32-printf-parse.c: New file.
48714         * lib/unistdio/u32-snprintf.c: New file.
48715         * lib/unistdio/u32-sprintf.c: New file.
48716         * lib/unistdio/u32-vasnprintf.c: New file.
48717         * lib/unistdio/u32-vasprintf.c: New file.
48718         * lib/unistdio/u32-vsnprintf.c: New file.
48719         * lib/unistdio/u32-vsprintf.c: New file.
48720         * lib/unistdio/u32-u32-asnprintf.c: New file.
48721         * lib/unistdio/u32-u32-asprintf.c: New file.
48722         * lib/unistdio/u32-u32-snprintf.c: New file.
48723         * lib/unistdio/u32-u32-sprintf.c: New file.
48724         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48725         * lib/unistdio/u32-u32-vasprintf.c: New file.
48726         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48727         * lib/unistdio/u32-u32-vsprintf.c: New file.
48728         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48729         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48730         * tests/unistdio/test-ulc-printf1.h: New file.
48731         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48732         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48733         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48734         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48735         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48736         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48737         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48738         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48739         * tests/unistdio/test-u8-asnprintf1.c: New file.
48740         * tests/unistdio/test-u8-asnprintf1.h: New file.
48741         * tests/unistdio/test-u8-printf1.h: New file.
48742         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48743         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48744         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48745         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48746         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48747         * tests/unistdio/test-u8-vasprintf1.c: New file.
48748         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48749         * tests/unistdio/test-u8-vsprintf1.c: New file.
48750         * tests/unistdio/test-u16-asnprintf1.c: New file.
48751         * tests/unistdio/test-u16-asnprintf1.h: New file.
48752         * tests/unistdio/test-u16-printf1.h: New file.
48753         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48754         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48755         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48756         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48757         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48758         * tests/unistdio/test-u16-vasprintf1.c: New file.
48759         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48760         * tests/unistdio/test-u16-vsprintf1.c: New file.
48761         * tests/unistdio/test-u32-asnprintf1.c: New file.
48762         * tests/unistdio/test-u32-asnprintf1.h: New file.
48763         * tests/unistdio/test-u32-printf1.h: New file.
48764         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48765         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48766         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48767         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48768         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48769         * tests/unistdio/test-u32-vasprintf1.c: New file.
48770         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48771         * tests/unistdio/test-u32-vsprintf1.c: New file.
48772         * modules/unistdio/base: New file.
48773         * modules/unistdio/u-printf-args: New file.
48774         * modules/unistdio/ulc-asnprintf: New file.
48775         * modules/unistdio/ulc-asprintf: New file.
48776         * modules/unistdio/ulc-fprintf: New file.
48777         * modules/unistdio/ulc-printf-parse: New file.
48778         * modules/unistdio/ulc-snprintf: New file.
48779         * modules/unistdio/ulc-sprintf: New file.
48780         * modules/unistdio/ulc-vasnprintf: New file.
48781         * modules/unistdio/ulc-vasprintf: New file.
48782         * modules/unistdio/ulc-vfprintf: New file.
48783         * modules/unistdio/ulc-vsnprintf: New file.
48784         * modules/unistdio/ulc-vsprintf: New file.
48785         * modules/unistdio/u8-asnprintf: New file.
48786         * modules/unistdio/u8-asprintf: New file.
48787         * modules/unistdio/u8-printf-parse: New file.
48788         * modules/unistdio/u8-snprintf: New file.
48789         * modules/unistdio/u8-sprintf: New file.
48790         * modules/unistdio/u8-vasnprintf: New file.
48791         * modules/unistdio/u8-vasprintf: New file.
48792         * modules/unistdio/u8-vsnprintf: New file.
48793         * modules/unistdio/u8-vsprintf: New file.
48794         * modules/unistdio/u8-u8-asnprintf: New file.
48795         * modules/unistdio/u8-u8-asprintf: New file.
48796         * modules/unistdio/u8-u8-snprintf: New file.
48797         * modules/unistdio/u8-u8-sprintf: New file.
48798         * modules/unistdio/u8-u8-vasnprintf: New file.
48799         * modules/unistdio/u8-u8-vasprintf: New file.
48800         * modules/unistdio/u8-u8-vsnprintf: New file.
48801         * modules/unistdio/u8-u8-vsprintf: New file.
48802         * modules/unistdio/u16-asnprintf: New file.
48803         * modules/unistdio/u16-asprintf: New file.
48804         * modules/unistdio/u16-printf-parse: New file.
48805         * modules/unistdio/u16-snprintf: New file.
48806         * modules/unistdio/u16-sprintf: New file.
48807         * modules/unistdio/u16-vasnprintf: New file.
48808         * modules/unistdio/u16-vasprintf: New file.
48809         * modules/unistdio/u16-vsnprintf: New file.
48810         * modules/unistdio/u16-vsprintf: New file.
48811         * modules/unistdio/u16-u16-asnprintf: New file.
48812         * modules/unistdio/u16-u16-asprintf: New file.
48813         * modules/unistdio/u16-u16-snprintf: New file.
48814         * modules/unistdio/u16-u16-sprintf: New file.
48815         * modules/unistdio/u16-u16-vasnprintf: New file.
48816         * modules/unistdio/u16-u16-vasprintf: New file.
48817         * modules/unistdio/u16-u16-vsnprintf: New file.
48818         * modules/unistdio/u16-u16-vsprintf: New file.
48819         * modules/unistdio/u32-asnprintf: New file.
48820         * modules/unistdio/u32-asprintf: New file.
48821         * modules/unistdio/u32-printf-parse: New file.
48822         * modules/unistdio/u32-snprintf: New file.
48823         * modules/unistdio/u32-sprintf: New file.
48824         * modules/unistdio/u32-vasnprintf: New file.
48825         * modules/unistdio/u32-vasprintf: New file.
48826         * modules/unistdio/u32-vsnprintf: New file.
48827         * modules/unistdio/u32-vsprintf: New file.
48828         * modules/unistdio/u32-u32-asnprintf: New file.
48829         * modules/unistdio/u32-u32-asprintf: New file.
48830         * modules/unistdio/u32-u32-snprintf: New file.
48831         * modules/unistdio/u32-u32-sprintf: New file.
48832         * modules/unistdio/u32-u32-vasnprintf: New file.
48833         * modules/unistdio/u32-u32-vasprintf: New file.
48834         * modules/unistdio/u32-u32-vsnprintf: New file.
48835         * modules/unistdio/u32-u32-vsprintf: New file.
48836         * modules/unistdio/ulc-asnprintf-tests: New file.
48837         * modules/unistdio/ulc-vasnprintf-tests: New file.
48838         * modules/unistdio/ulc-vasprintf-tests: New file.
48839         * modules/unistdio/ulc-vsnprintf-tests: New file.
48840         * modules/unistdio/ulc-vsprintf-tests: New file.
48841         * modules/unistdio/u8-asnprintf-tests: New file.
48842         * modules/unistdio/u8-vasnprintf-tests: New file.
48843         * modules/unistdio/u8-vasprintf-tests: New file.
48844         * modules/unistdio/u8-vsnprintf-tests: New file.
48845         * modules/unistdio/u8-vsprintf-tests: New file.
48846         * modules/unistdio/u16-asnprintf-tests: New file.
48847         * modules/unistdio/u16-vasnprintf-tests: New file.
48848         * modules/unistdio/u16-vasprintf-tests: New file.
48849         * modules/unistdio/u16-vsnprintf-tests: New file.
48850         * modules/unistdio/u16-vsprintf-tests: New file.
48851         * modules/unistdio/u32-asnprintf-tests: New file.
48852         * modules/unistdio/u32-vasnprintf-tests: New file.
48853         * modules/unistdio/u32-vasprintf-tests: New file.
48854         * modules/unistdio/u32-vsnprintf-tests: New file.
48855         * modules/unistdio/u32-vsprintf-tests: New file.
48856         * MODULES.html.sh (Unicode string functions): Add the new modules.
48857
48858 2007-07-01  Bruno Haible  <bruno@clisp.org>
48859
48860         * lib/sprintf.c (sprintf): Limit the available length estimation,
48861         to avoid address wraparound.
48862         * lib/vsprintf.c (vsprintf): Likewise.
48863         * modules/sprintf-posix (Dependencies): Add stdint.
48864         * modules/vsprintf-posix (Dependencies): Likewise.
48865
48866 2007-07-01  Bruno Haible  <bruno@clisp.org>
48867
48868         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48869         Windows PATH as well. Conservative double-quoting. Comments.
48870
48871 2007-07-01  Bruno Haible  <bruno@clisp.org>
48872             Eric Blake  <ebb9@byu.net>
48873             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48874
48875         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48876         empty components in $PATH, denoting '.'.
48877
48878 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48879
48880         * gnulib-tool: Fix indentation.
48881         (func_create_megatestdir): Likewise.
48882         Report by Bruno Haible.
48883
48884 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48885
48886         Sync from Automake.
48887         * build-aux/gnupload: Fix shell portability issues with for loops.
48888         Report by Karl Berry.
48889
48890 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48891
48892         * build-aux/maint.mk (POURL): Use translationproject.org.
48893
48894 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48895             Bruno Haible  <bruno@clisp.org>
48896
48897         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48898         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48899         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48900         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48901         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48902
48903 2007-06-27  Bruno Haible  <bruno@clisp.org>
48904
48905         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48906         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48907
48908 2007-06-26  Karl Berry  <karl@gnu.org>
48909
48910         * MODULES.html.sh: remove xreadlink-with-size.
48911
48912 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48913
48914         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48915         method that I hope also handles the double-include problem noted
48916         by Bruno Haible in
48917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48918
48919 2007-06-23  Bruno Haible  <bruno@clisp.org>
48920
48921         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48922         Don't let the 'mostlyclean' target fail if the last subdirectory could
48923         not be removed.
48924         Reported by Karl Berry.
48925
48926 2007-06-23  Bruno Haible  <bruno@clisp.org>
48927
48928         * gnulib-tool (echo): Add a speedier workaround for ksh.
48929         * tests/test-echo.sh: Likewise.
48930
48931 2007-06-23  Bruno Haible  <bruno@clisp.org>
48932
48933         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48934         * tests/test-echo.sh: Likewise.
48935
48936 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48937
48938         * gnulib-tool (IFS): Initialize early, so we don't set it to
48939         empty later.
48940         (self_abspathname): Rewrite algorithm to set it, reindent.
48941         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48942         (func_create_megatestdir): Merge some sed scripts.
48943
48944 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48945
48946         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48947         exposed by Sun Studio 11 cc on Solaris 8.
48948
48949 2007-06-22  Bruno Haible  <bruno@clisp.org>
48950
48951         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48952         backslashes.
48953         * tests/test-echo.sh: New file.
48954
48955 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48956
48957         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48958         simplify `sed_replace_build_aux' scripts, they are portable but
48959         echoing them with `echo' is not.
48960         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48961
48962 2007-06-21  Karl Berry  <karl@gnu.org>
48963
48964         * config/srclist.txt: guess we can't handle the licenses via
48965         srclist at the moment.
48966
48967 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48968
48969         * MODULES.html.sh: Add include_next.
48970         * modules/include_next: New file.
48971
48972 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48973
48974         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48975         INCLUDE_NEXT.
48976         (gl_CHECK_NEXT_HEADERS): New macro.
48977         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48978         the obsolescent gl_ABSOLUTE_HEADER.
48979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48980         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48981         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48982         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48983         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48984         * m4/math_h.m4 (gl_MATH_H): Likewise.
48985         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48986         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48987         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48988         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48989         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48990         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48991         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48992         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48993         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48994         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48995         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48996         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48997         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48998         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48999         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49000         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49001         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49002         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49003         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49004         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49005         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49006         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49007         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49008         * lib/float_.h: Likewise.
49009         * lib/inttypes_.h: Likewise.
49010         * lib/math_.h: Likewise.
49011         * lib/search_.h: Likewise.
49012         * lib/signal_.h: Likewise.
49013         * lib/stdint_.h: Likewise.
49014         * lib/stdio_.h: Likewise.
49015         * lib/stdlib_.h: Likewise.
49016         * lib/string_.h: Likewise.
49017         * lib/sys_stat_.h: Likewise.
49018         * lib/sys_time_.h: Likewise.
49019         * lib/time_.h: Likewise.
49020         * lib/unistd_.h: Likewise.
49021         * lib/wchar_.h: Likewise.
49022         * lib/wctype_.h: Likewise.
49023         * lib/dirent_.h: Likewise.
49024         * lib/iconv_.h: Likewise.
49025         * lib/locale_.h: Likewise.
49026         * lib/netinet_in_.h: Likewise.
49027         * lib/sys_select_.h: Likewise.
49028         * lib/sys_socket_.h: Likewise.
49029         * lib/sysexits_.h: Likewise.
49030         * modules/fcntl (Depends-on): Depend on include_next, not
49031         absolute_header.
49032         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49033         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49034         * modules/fchdir: Likewise.
49035         * modules/float: Likewise.
49036         * modules/iconv_open: Likewise.
49037         * modules/inttypes: Likewise.
49038         * modules/locale: Likewise.
49039         * modules/math: Likewise.
49040         * modules/netinet_in: Likewise.
49041         * modules/search: Likewise.
49042         * modules/signal: Likewise.
49043         * modules/stdint: Likewise.
49044         * modules/stdio: Likewise.
49045         * modules/stdlib: Likewise.
49046         * modules/string: Likewise.
49047         * modules/sys_select: Likewise.
49048         * modules/sys_socket: Likewise.
49049         * modules/sys_stat: Likewise.
49050         * modules/sys_time: Likewise.
49051         * modules/sysexits: Likewise.
49052         * modules/time: Likewise.
49053         * modules/unistd: Likewise.
49054         * modules/wchar: Likewise.
49055         * modules/wctype: Likewise.
49056         * modules/sys_stat: Change maintainer to "all".
49057         * modules/unistd: Likewise.
49058
49059 2007-06-20  Karl Berry  <karl@gnu.org>
49060
49061         * config/srclist.txt: track www changes in license files.
49062
49063 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49064
49065         * build-aux/bootstrap: Remove stray dot.
49066         Make sure build_aux settings are honored when linking
49067         gnulib_extra_files.
49068
49069 2007-06-19  Eric Blake  <ebb9@byu.net>
49070
49071         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49072         Allow compilation on cygwin.
49073
49074 2007-06-19  Jim Meyering  <jim@meyering.net>
49075
49076         xreadlink-with-size: Remove module.  No longer used.
49077         Ex-callers now use xreadlink or mreadlink-with-size.
49078         * modules/xreadlink-with-size: Remove module.
49079         * lib/xreadlink-with-size.c: Remove file.
49080         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49081         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49082         just before the function definition *is* accurate.
49083
49084         Eliminate one way canonicalize_filename_mode could exit.
49085         * lib/canonicalize.c (canonicalize_filename_mode):
49086         Use mreadlink_with_size, not xreadlink_with_size.
49087
49088 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49089
49090         Detect porting problems to FreeBSD/arm, which has time_t wider than
49091         long int.  Original problem reported for GNU diff by Xin Li in
49092         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49093         * modules/getdate (Depends-on): Add intprops, verify.
49094         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49095         is an integer type no wider than long int.
49096
49097 2007-06-18  Jim Meyering  <jim@meyering.net>
49098
49099         New module: mreadlink-with-size.
49100         * MODULES.html.sh: Add mreadlink-with-size.
49101         * modules/mreadlink-with-size: New module
49102         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49103         not xreadlink-with-size.
49104         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49105
49106 2007-06-16  Bruno Haible  <bruno@clisp.org>
49107
49108         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49109         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49110         Reported by Gary V. Vaughan <gary@gnu.org>.
49111
49112 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49113
49114         Revamp lchown so that it lives in unistd.h where it belongs.
49115         * lib/lchown.h: Remove.
49116         * lib/dirchownmod.c: Don't include lib/lchown.h.
49117         * lib/fchownat.c: Likewise.
49118         * lib/openat.c: Likewise.
49119         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49120         does not follow symlinks.
49121         (EOPNOTSUPP): Define if not defined.
49122         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49123         is defined to 0.
49124         (lchown): New decl.
49125         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49126         Do not check for lchown decl.
49127         Set REPLACE_LCHOWN.
49128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49129         REPLACE_LCHOWN.
49130         * modules/chown: Make it clear it follows symlinks.
49131         * modules/lchown: Make it clear it doesn't follow symlinks.
49132         (Files): Remove lib/lchown.h
49133         (Depends-on): Add unistd.
49134         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49135         (Include): Include <unistd.h>, not "lchown.h".
49136         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49137         REPLACE_LCHOWN.
49138
49139 2007-06-15  Jim Meyering  <jim@meyering.net>
49140
49141         Change license (GPL to LGPL) of fsusage and dependents.
49142         * modules/fsusage (License): Change to LGPL.
49143         * modules/full-read (License): Likewise.
49144         * modules/full-write (License): Likewise.
49145         * modules/safe-read (License): Likewise.
49146         * modules/safe-write (License): Likewise.
49147
49148 2007-06-14  Ben Pfaff  <blp@gnu.org>
49149
49150         Missing part of allocsa -> malloca transition.
49151         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49152         gl_MALLOCA.
49153
49154 2007-06-12  Bruno Haible  <bruno@clisp.org>
49155
49156         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49157         to ia64, x86_64, i386.
49158         Reported by Eric Blake.
49159
49160 2007-06-12  Bruno Haible  <bruno@clisp.org>
49161
49162         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49163         cross-compiling to x86_64.
49164
49165 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49166
49167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49168         glitch reported by Ralf Wildenhues in
49169         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49170
49171         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49172         Vin Shelton.
49173
49174 2007-06-11  Bruno Haible  <bruno@clisp.org>
49175
49176         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49177         replacement string.
49178         Reported by Eric Blake.
49179
49180 2007-06-10  Bruno Haible  <bruno@clisp.org>
49181
49182         Prepare vasnprintf code for use with Unicode strings.
49183         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49184         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49185         TYPE_U32_STRING.
49186         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49187         a_u32_string variants.
49188         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49189         * lib/printf-args.c: Don't include config.h and the specification
49190         header if PRINTF_FETCHARGS is already defined.
49191         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49192         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49193         TYPE_U16_STRING, TYPE_U32_STRING.
49194         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49195         u16_directive, u16_directives, u32_directive, u32_directives): New
49196         types.
49197         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49198         New declarations.
49199         * lib/printf-parse.c: Don't include config.h and the specification
49200         header if PRINTF_PARSE is already defined. Eliminate the set of
49201         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49202         them now. Include c-ctype.h.
49203         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49204         directive and CHAR_T_ONLY_ASCII.
49205         * lib/vasnprintf.c: Don't include config.h and the specification header
49206         if VASNPRINTF is already defined.
49207         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49208         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49209         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49210         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49211         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49212         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49213         code accordingly.
49214         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49215         pad_ourselves also in this case, with the 'c' and 's' directives, and
49216         with a different notion of "width".
49217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49218
49219 2007-06-10  Bruno Haible  <bruno@clisp.org>
49220
49221         * modules/unistr/u32-mbsnlen: New file.
49222         * lib/unistr/u32-mbsnlen.c: New file.
49223
49224         * modules/unistr/u16-mbsnlen: New file.
49225         * lib/unistr/u16-mbsnlen.c: New file.
49226
49227         * modules/unistr/u8-mbsnlen: New file.
49228         * lib/unistr/u8-mbsnlen.c: New file.
49229
49230         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49231         declarations.
49232
49233 2007-06-10  Bruno Haible  <bruno@clisp.org>
49234
49235         * lib/string_.h (mbsnlen): New declaration.
49236         * lib/mbsnlen.c: New file.
49237         * m4/mbsnlen.m4: New file.
49238         * modules/mbsnlen: New file.
49239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49240         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49241         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49242
49243 2007-06-10  Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49246
49247 2007-06-10  Bruno Haible  <bruno@clisp.org>
49248
49249         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49250         * lib/mbuiter.h: Likewise.
49251
49252 2007-06-10  Bruno Haible  <bruno@clisp.org>
49253
49254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49255         declaration.
49256
49257 2007-06-10  Karl Berry  <karl@gnu.org>
49258
49259         * config/srclist.txt: remove gettext entries, Bruno prefers
49260         to update individually.
49261
49262 2007-06-10  Bruno Haible  <bruno@clisp.org>
49263
49264         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49265         'maxlen'. Ensure only length + width bytes are allocated, not
49266         length + 1 + width.
49267
49268 2007-06-09  Bruno Haible  <bruno@clisp.org>
49269
49270         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49271         (CHAR_T): Remove macro.
49272         (VASNPRINTF): Update.
49273
49274 2007-06-09  Bruno Haible  <bruno@clisp.org>
49275
49276         * MODULES.html.sh (Unicode string functions): Add the new modules.
49277
49278         * modules/uniconv/u32-conv-to-enc: New file.
49279         * lib/uniconv/u32-conv-to-enc.c: New file.
49280         * modules/uniconv/u32-conv-to-enc-tests: New file.
49281         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49282
49283         * modules/uniconv/u16-conv-to-enc: New file.
49284         * lib/uniconv/u16-conv-to-enc.c: New file.
49285         * lib/uniconv/u-conv-to-enc.h: New file.
49286         * modules/uniconv/u16-conv-to-enc-tests: New file.
49287         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49288
49289         * modules/uniconv/u8-conv-to-enc: New file.
49290         * lib/uniconv/u8-conv-to-enc.c: New file.
49291         * modules/uniconv/u8-conv-to-enc-tests: New file.
49292         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49293
49294         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49295         u32_conv_to_encoding): New declarations.
49296
49297 2007-06-09  Bruno Haible  <bruno@clisp.org>
49298
49299         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49300
49301 2007-06-09  Bruno Haible  <bruno@clisp.org>
49302
49303         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49304         * modules/malloca: Renamed from modules/allocsa, updated.
49305         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49306         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49307         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49308         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49309         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49310         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49311         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49312         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49313         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49314         * modules/c-strcasestr (Depends-on): Update.
49315         * lib/c-strcasestr.c: Update.
49316         * modules/c-strstr (Depends-on): Update.
49317         * lib/c-strstr.c: Update.
49318         * modules/canonicalize-lgpl (Depends-on): Update.
49319         * lib/canonicalize-lgpl.c: Update.
49320         * modules/clean-temp (Depends-on): Update.
49321         * lib/clean-temp.c: Update.
49322         * modules/csharpcomp (Depends-on): Update.
49323         * lib/csharpcomp.c: Update.
49324         * modules/csharpexec (Depends-on): Update.
49325         * lib/csharpexec.c: Update.
49326         * modules/javacomp (Depends-on): Update.
49327         * lib/javacomp.c: Update.
49328         * modules/javaexec (Depends-on): Update.
49329         * lib/javaexec.c: Update.
49330         * modules/mbscasestr (Depends-on): Update.
49331         * lib/mbscasestr.c: Update.
49332         * modules/mbsstr (Depends-on): Update.
49333         * lib/mbsstr.c: Update.
49334         * modules/setenv (Depends-on): Update.
49335         * lib/setenv.c: Update.
49336         * modules/strcasestr (Depends-on): Update.
49337         * lib/strcasestr.c: Update.
49338         * modules/striconveha (Depends-on): Update.
49339         * lib/striconveha.c: Update.
49340         * modules/relocatable-prog-wrapper (Files): Update.
49341         * lib/relocwrapper.c: Update.
49342         * build-aux/install-reloc: Update.
49343         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49344
49345 2007-06-08  Bruno Haible  <bruno@clisp.org>
49346
49347         Port to uClibc.
49348         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49349         * lib/fpurge.c (fpurge): Likewise.
49350         * lib/freading.c (freading): Likewise.
49351         * lib/fseeko.c (rpl_fseeko): Likewise.
49352         * lib/fseterr.c (fseterr): Likewise.
49353         * lib/fwriting.c (fwriting): Likewise.
49354         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49355
49356 2007-06-08  Bruno Haible  <bruno@clisp.org>
49357
49358         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49359         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49360         * modules/gettext (Files): Add m4/intlmacosx.m4.
49361
49362 2007-06-07  Bruno Haible  <bruno@clisp.org>
49363
49364         * modules/localename-tests: New file.
49365         * tests/test-localename.c: New file.
49366
49367         New module 'localename'.
49368         * lib/localename.h: New file.
49369         * lib/localename.c: New file, from GNU gettext.
49370         * m4/localename.m4: New file.
49371         * modules/localename: New file.
49372
49373 2007-06-07  Bruno Haible  <bruno@clisp.org>
49374
49375         Work around the lack of <wchar.h> on some builds of uClibc.
49376         * doc/headers/wchar.texi: Update.
49377         * lib/wchar_.h: Include <wchar.h> only if it exists.
49378         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49379         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49380         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49381         doesn't exist.
49382         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49383         * modules/mbfile (Depends-on): Add wchar.
49384         * modules/mbiter (Depends-on): Likewise.
49385         * modules/mbuiter (Depends-on): Likewise.
49386         Reported by Simon Josefsson.
49387
49388 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49389
49390         Work around problem reported by Steven M. Schweda in
49391         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49392         Tru64 5.1B with the Compaq compiler environment installed declares
49393         an 'isblank' function but does not define it in the C library.
49394         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49395         * lib/regex_internal.h (isblank): Likewise.
49396         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49397         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49398
49399 2007-06-05  Bruno Haible  <bruno@clisp.org>
49400
49401         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49402         ia64.
49403         * modules/printf-safe: New file.
49404         * modules/fprintf-posix (Depends-on): Add printf-safe.
49405         * modules/printf-posix (Depends-on): Likewise.
49406         * modules/snprintf-posix (Depends-on): Likewise.
49407         * modules/sprintf-posix (Depends-on): Likewise.
49408         * modules/vasnprintf-posix (Depends-on): Likewise.
49409         * modules/vasprintf-posix (Depends-on): Likewise.
49410         * modules/vfprintf-posix (Depends-on): Likewise.
49411         * modules/vprintf-posix (Depends-on): Likewise.
49412         * modules/vsnprintf-posix (Depends-on): Likewise.
49413         * modules/vsprintf-posix (Depends-on): Likewise.
49414         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49415         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49416         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49417         "no" on i386, x86_64, ia64.
49418         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49419         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49420         on i386, x86_64, ia64.
49421         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49422         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49423         on i386, x86_64, ia64.
49424         * tests/test-vasnprintf-posix.c: Include float.h.
49425         (LDBL80_WORDS): New macro.
49426         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49427         on i386, x86_64, ia64.
49428         * tests/test-vasprintf-posix.c: Include float.h.
49429         (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-snprintf-posix.c: Include float.h.
49433         * tests/test-sprintf-posix.c: Likewise.
49434         * tests/test-vsnprintf-posix.c: Likewise.
49435         * tests/test-vsprintf-posix.c: Likewise.
49436
49437 2007-06-05  Bruno Haible  <bruno@clisp.org>
49438
49439         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49440         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49441         non-IEEE numbers on i386, x86_64, ia64.
49442         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49443         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49444         * tests/test-isnanl.h: Include float.h.
49445         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49446
49447 2007-06-05  Bruno Haible  <bruno@clisp.org>
49448
49449         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49450         also the %a / %A. Handle the %a / %A code before this extra handling.
49451
49452 2007-06-05  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49455         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49456
49457 2007-06-05  Bruno Haible  <bruno@clisp.org>
49458
49459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49460         typo in variable name.
49461
49462 2007-06-05  Eric Blake  <ebb9@byu.net>
49463
49464         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49465         Reported by Simon Josefsson.
49466
49467 2007-06-04  Bruno Haible  <bruno@clisp.org>
49468
49469         Avoid test failures on some PowerPC platforms.
49470         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49471         Define differently for PowerPC.
49472         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49473         Reported by Gary V. Vaughan <gary@gnu.org>.
49474
49475 2007-06-02  Bruno Haible  <bruno@clisp.org>
49476
49477         Fix test-stdint failure on FreeBSD/ia64.
49478         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49479         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49480         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49481         * doc/headers/stdint.texi: Update.
49482
49483 2007-06-01  Bruno Haible  <bruno@clisp.org>
49484
49485         * tests/test-binary-io.c (main): Pass a third argument to open().
49486         Reported by Gary V. Vaughan <gary@gnu.org>.
49487
49488 2007-06-01  Bruno Haible  <bruno@clisp.org>
49489
49490         * doc/functions/frexpl.texi: Update for mingw.
49491
49492 2007-06-01  Bruno Haible  <bruno@clisp.org>
49493
49494         * tests/test-lseek.c (main): Disable test of errno for invalid third
49495         argument.
49496         * doc/functions/lseek.texi: Update.
49497         Reported by Gary V. Vaughan <gary@gnu.org>.
49498
49499 2007-05-28  Bruno Haible  <bruno@clisp.org>
49500
49501         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49502
49503 2007-05-31  Eric Blake  <ebb9@byu.net>
49504
49505         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49506         cross compiling.
49507
49508 2007-05-30  Eric Blake  <ebb9@byu.net>
49509         and Bruno Haible  <bruno@clisp.org>
49510
49511         Work around mingw test failures exposed by m4-1.4.9b.
49512         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49513         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49514         moment.
49515
49516 2007-05-30  Bruno Haible  <bruno@clisp.org>
49517
49518         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49519         assuming that they are closed. Needed on HP-UX 11.
49520
49521 2007-05-29  Bruno Haible  <bruno@clisp.org>
49522
49523         Fix a problem with #include_next.
49524         * lib/dirent_.h: Split the double-inclusion guard.
49525         * lib/fcntl_.h: Likewise.
49526         * lib/float_.h: Likewise.
49527         * lib/iconv_.h: Likewise.
49528         * lib/inttypes_.h: Likewise.
49529         * lib/locale_.h: Likewise.
49530         * lib/math_.h: Likewise.
49531         * lib/netinet_in_.h: Likewise.
49532         * lib/search_.h: Likewise.
49533         * lib/signal_.h: Likewise.
49534         * lib/stdint_.h: Likewise.
49535         * lib/stdio_.h: Likewise.
49536         * lib/stdlib_.h: Likewise.
49537         * lib/string_.h: Likewise.
49538         * lib/sys_select_.h: Likewise.
49539         * lib/sys_socket_.h: Likewise.
49540         * lib/sys_stat_.h: Likewise.
49541         * lib/sys_time_.h: Likewise.
49542         * lib/sysexits_.h: Likewise.
49543         * lib/time_.h: Likewise.
49544         * lib/unistd_.h: Likewise.
49545         * lib/wchar_.h: Likewise.
49546         * lib/wctype_.h: Likewise.
49547
49548 2007-05-29  Bruno Haible  <bruno@clisp.org>
49549
49550         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49551         for the moment.
49552
49553 2007-05-29  Bruno Haible  <bruno@clisp.org>
49554
49555         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49556         invocation.
49557         Reported by Eric Blake.
49558
49559 2007-05-29  Bruno Haible  <bruno@clisp.org>
49560
49561         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49562         compiling case.
49563
49564 2007-05-29  Eric Blake  <ebb9@byu.net>
49565             Bruno Haible  <bruno@clisp.org>
49566
49567         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49568         cross compiles.
49569
49570 2007-05-28  Eric Blake  <ebb9@byu.net>
49571
49572         * modules/closein-tests (test_closein_LDADD): Support test on
49573         cygwin with libtool.
49574
49575 2007-05-28  Bruno Haible  <bruno@clisp.org>
49576
49577         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49578         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49579         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49580         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49581         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49582         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49583         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49584         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49585         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49586
49587 2007-05-28  Eric Blake  <ebb9@byu.net>
49588
49589         Unconditionally include <config.h> in unit tests.
49590         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49591         * tests/test-allocsa.c, tests/test-arcfour.c,
49592         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49593         tests/test-array_list.c, tests/test-array_oset.c,
49594         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49595         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49596         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49597         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49598         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49599         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49600         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49601         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49602         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49603         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49604         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49605         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49606         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49607         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49608         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49609         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49610         test-md5.c, test-memmem.c, test-printf-posix.c,
49611         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49612         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49613         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49614         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49615         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49616         test-vasnprintf-posix2.c, test-vasnprintf.c,
49617         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49618         test-vfprintf-posix.c, test-vprintf-posix.c,
49619         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49620         test-xvasprintf.c: Likewise.
49621
49622 2007-05-28  Bruno Haible  <bruno@clisp.org>
49623
49624         * gnulib-tool (func_import): Remember the --with-tests command-line
49625         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49626         Reported by Eric Blake.
49627
49628 2007-05-28  Bruno Haible  <bruno@clisp.org>
49629
49630         * modules/ftell-tests: New file.
49631         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49632         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49633
49634         * lib/ftell.c: New file.
49635         * modules/ftell: New file.
49636         * m4/ftell.m4: New file.
49637         * doc/functions/ftell.texi: Update.
49638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49639         REPLACE_FTELL.
49640         * lib/stdio_.h (rpl_ftell): New declaration.
49641         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49642         REPLACE_FTELL.
49643
49644 2007-05-28  Eric Blake  <ebb9@byu.net>
49645
49646         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49647
49648 2007-05-28  Bruno Haible  <bruno@clisp.org>
49649
49650         * modules/fseek-tests: New file.
49651         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49652         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49653
49654         * lib/fseek.c: New file.
49655         * modules/fseek: New file.
49656         * m4/fseek.m4: New file.
49657         * doc/functions/fseek.texi: Update.
49658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49659         REPLACE_FSEEK.
49660         * lib/stdio_.h (rpl_fseek): New declaration.
49661         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49662         REPLACE_FSEEK.
49663
49664 2007-05-28  Bruno Haible  <bruno@clisp.org>
49665
49666         * lib/stdio_.h (fflush): More comments.
49667
49668 2007-05-28  Bruno Haible  <bruno@clisp.org>
49669
49670         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49671         runtime test.
49672
49673 2007-05-28  Eric Blake  <ebb9@byu.net>
49674
49675         Improve lseek module.
49676         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49677         * lib/unistd_.h (lseek): Scale back link warning message.
49678         * tests/test-lseek.c: Beef up test.
49679         * tests/test-lseek.sh: Exercise more facets of lseek.
49680         Reported by Bruno Haible.
49681
49682 2007-05-28  Bruno Haible  <bruno@clisp.org>
49683
49684         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49685         to define.
49686
49687 2007-05-27  Bruno Haible  <bruno@clisp.org>
49688
49689         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49690
49691 2007-05-27  Bruno Haible  <bruno@clisp.org>
49692
49693         * modules/openmp: New file.
49694         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49695         Noah Misch.
49696
49697 2007-05-26  Bruno Haible  <bruno@clisp.org>
49698
49699         * modules/chdir-long (Depends-on): Add fchdir.
49700         * modules/chdir-safer (Depends-on): Likewise.
49701         * modules/fts (Depends-on): Likewise.
49702         * modules/fts-lgpl (Depends-on): Likewise.
49703         * modules/openat (Depends-on): Likewise.
49704         * modules/savewd (Depends-on): Likewise.
49705
49706 2007-05-24  Eric Blake  <ebb9@byu.net>
49707
49708         Fix lseek on mingw.
49709         * modules/lseek: New module.
49710         * m4/lseek.m4: New file.
49711         * lib/lseek.c: New file.
49712         * modules/lseek-tests: New file.
49713         * tests/test-lseek.c: New file.
49714         * tests/test-lseek.sh: New file.
49715         * MODULES.html.sh: Document lseek module.
49716         * modules/fflush (Depends-on): Add lseek, fseeko.
49717         * modules/fseeko (Depends-on): Likewise.
49718         * modules/ftello (Depends-on): Likewise.
49719         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49720         broken.
49721         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49722         broken.
49723         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49724         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49725         * lib/ftello.c (rpl_ftello): Likewise.
49726         * tests/test-fseeko.c (main): Test this.
49727         * tests/test-fseeko.sh: Likewise.
49728         * tests/test-ftello.c (main): Likewise.
49729         * tests/test-ftello.sh: Likewise.
49730         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49731         implies replacing fseek.
49732         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49733         HAVE_FTELLO.
49734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49735         * modules/unistd (Makefile.am): Likewise.
49736         * lib/unistd_.h (lseek): Declare a replacement.
49737         * doc/functions/lseek.texi (lseek): Document this fix.
49738         * doc/functions/fseek.texi (fseek): Likewise.
49739         * doc/functions/ftell.texi (ftell): Likewise.
49740
49741 2007-05-24  Bruno Haible  <bruno@clisp.org>
49742
49743         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49744         in the printed representation of a NaN.
49745         * tests/test-vasprintf-posix.c (test_function): Likewise.
49746         * tests/test-snprintf-posix.h (test_function): Likewise.
49747         * tests/test-sprintf-posix.h (test_function): Likewise.
49748         Reported by Eric Blake.
49749
49750 2007-05-23  Eric Blake  <ebb9@byu.net>
49751
49752         Fix fseeko/ftello on cygwin 1.5.24.
49753         * doc/functions/fseeko.texi (fseeko): Document the fix.
49754         * doc/functions/ftello.texi (ftello): Document the fix.
49755         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49756         * doc/functions/stdout.text (stdout): New file.
49757         * doc/functions/stderr.text (stderr): New file.
49758         * doc/gnulib.texi (Function Substitutes): Use new files.
49759         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49760         prior to 1.7.0.
49761         * tests/test-ftello.c (main): Likewise for ftello.
49762         * tests/test-fseeko.sh: New file.
49763         * tests/test-ftello.sh: New file.
49764         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49765         with seekable stdin.
49766         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49767         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49768         (gl_REPLACE_FSEEKO): New macro.
49769         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49770         * modules/fseeko (Files): Distribute fseeko.c.
49771         * modules/ftello (Files): Distribute ftello.c.
49772         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49773         mode.
49774         * lib/ftello.c (rpl_ftello): New file.
49775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49776         fseeko, ftello.
49777         (gl_STDIN_LARGE_OFFSET): New macro.
49778         * modules/stdio (Makefile.am): Perform the replacement.
49779         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49780
49781 2007-05-23  Bruno Haible  <bruno@clisp.org>
49782
49783         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49784         GNULIB_POSIXCHECK is defined.
49785
49786 2007-05-21  Bruno Haible  <bruno@clisp.org>
49787
49788         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49789         Check also the output for NaN arguments. When cross-compiling, guess
49790         no on IRIX.
49791         * lib/vasnprintf.c: Update comments.
49792         * tests/test-vasnprintf-posix.c (strisnan): New function.
49793         (test_function): Use it.
49794         * tests/test-vasprintf-posix.c (strisnan): New function.
49795         (test_function): Use it.
49796         * tests/test-snprintf-posix.h (strisnan): New function.
49797         (test_function): Use it.
49798         * tests/test-sprintf-posix.h (strisnan): New function.
49799         (test_function): Use it.
49800         Reported by Eric Blake.
49801
49802 2007-05-20  Bruno Haible  <bruno@clisp.org>
49803
49804         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49805         numbers that fails on BeOS.
49806         * doc/functions/frexpl.texi: Update.
49807
49808 2007-05-20  Jim Meyering  <jim@meyering.net>
49809
49810         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49811         forced upon us by glibc-2.6.
49812
49813 2007-05-20  Bruno Haible  <bruno@clisp.org>
49814
49815         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49816         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49817         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49818         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49819         NEED_PRINTF_INFINITE.
49820         (is_infinitel): New function.
49821         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49823         gl_PREREQ_VASNPRINTF_INFINITE.
49824         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49825         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49826         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49827         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49828         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49829         gl_PREREQ_VASNPRINTF_INFINITE.
49830         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49831         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49832         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49833         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49834         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49835         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49836         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49837         * doc/functions/fprintf.texi: Update.
49838         * doc/functions/printf.texi: Update.
49839         * doc/functions/snprintf.texi: Update.
49840         * doc/functions/sprintf.texi: Update.
49841         * doc/functions/vfprintf.texi: Update.
49842         * doc/functions/vprintf.texi: Update.
49843         * doc/functions/vsnprintf.texi: Update.
49844         * doc/functions/vsprintf.texi: Update.
49845
49846 2007-05-20  Bruno Haible  <bruno@clisp.org>
49847
49848         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49849         was not found in libc.
49850         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49851
49852 2007-05-20  Bruno Haible  <bruno@clisp.org>
49853
49854         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49855         printed as "-nan" instead of "nan".
49856         * tests/test-vasprintf-posix.c (test_function): Likewise.
49857         * tests/test-snprintf-posix.h (test_function): Likewise.
49858         * tests/test-sprintf-posix.h (test_function): Likewise.
49859         Needed for HP-UX 11.
49860
49861 2007-05-20  Jim Meyering  <jim@meyering.net>
49862
49863         Fix buggy test for the fchownat-deref bug.
49864         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49865         symlink required for the run-test.  Without it, this test would
49866         always declare that fchownat doesn't work, and client code would
49867         unnecessarily use the replacement function with fixed libc.
49868         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49869         Reported by Greg Schafer.
49870
49871 2007-05-19  Bruno Haible  <bruno@clisp.org>
49872
49873         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49874         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49875         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49876         Needed for IRIX 6.5 and Solaris 2.5.1.
49877
49878 2007-05-19  Bruno Haible  <bruno@clisp.org>
49879
49880         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49881         (test_function): Skip tests involving -0.0 on platforms where
49882         -0.0 = 0.0.
49883         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49884         (test_function): Skip tests involving -0.0 on platforms where
49885         -0.0 = 0.0.
49886         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49887         (test_function): Skip tests involving -0.0 on platforms where
49888         -0.0 = 0.0.
49889         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49890         (test_function): Skip tests involving -0.0 on platforms where
49891         -0.0 = 0.0.
49892         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49893         tests.
49894         * tests/test-printf-posix.h (test_function): Likewise.
49895         * tests/test-printf-posix.output: Remove all -0.0 related results.
49896         Needed for IRIX 6.5.
49897
49898 2007-05-19  Bruno Haible  <bruno@clisp.org>
49899
49900         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49901         printed as "nan0x7fffffff" instead of "nan".
49902         * tests/test-vasprintf-posix.c (test_function): Likewise.
49903         * tests/test-snprintf-posix.h (test_function): Likewise.
49904         * tests/test-sprintf-posix.h (test_function): Likewise.
49905         * tests/test-fprintf-posix.h (NaN): Remove macro.
49906         (test_function): Remove all NaN related tests.
49907         * tests/test-printf-posix.h (NaN): Remove macro.
49908         (test_function): Remove all NaN related tests.
49909         * tests/test-printf-posix.output: Remove all NaN related results.
49910         Needed for IRIX 6.5.
49911
49912 2007-05-19  Bruno Haible  <bruno@clisp.org>
49913
49914         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49915         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49916
49917 2007-05-19  Bruno Haible  <bruno@clisp.org>
49918
49919         * lib/float_.h: New file.
49920         * m4/float_h.m4: New file.
49921         * modules/float: New file.
49922         * modules/isnanl (Dependencies): Add float.
49923         * modules/isnanl-nolibm (Dependencies): Likewise.
49924         * modules/mathl (Dependencies): Likewise.
49925         * modules/printf-frexpl (Dependencies): Likewise.
49926         * modules/signbit (Dependencies): Likewise.
49927         * modules/vasnprintf (Dependencies): Likewise.
49928         * doc/headers/float.texi: Update.
49929
49930 2007-05-19  Jim Meyering  <jim@meyering.net>
49931
49932         * lib/utimens.c (gl_futimens): Rename from futimens,
49933         now that glibc-2.6 declares futimens.
49934         * lib/utimens.h: Likewise.
49935
49936 2007-05-19  Bruno Haible  <bruno@clisp.org>
49937
49938         Avoid test failures on mingw.
49939         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49940         * tests/test-printf-posix.sh: Likewise.
49941         * tests/test-vfprintf-posix.sh: Likewise.
49942         * tests/test-vprintf-posix.sh: Likewise.
49943
49944 2007-05-19  Bruno Haible  <bruno@clisp.org>
49945
49946         Fix *printf result for NaN, Inf, -0.0 on mingw.
49947         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49948         * lib/vasnprintf.c: Include math.h and isnan.h.
49949         (is_infinite_or_zero): New function.
49950         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49951         values in the %f, %F, %e, %E, %g, %G directives.
49952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49953         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49954         gl_PRINTF_INFINITE and test its result. Invoke
49955         gl_PREREQ_VASNPRINTF_INFINITE.
49956         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49957         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49958         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49959         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49960         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49962         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49963         * doc/functions/fprintf.texi: Update.
49964         * doc/functions/printf.texi: Update.
49965         * doc/functions/snprintf.texi: Update.
49966         * doc/functions/sprintf.texi: Update.
49967         * doc/functions/vfprintf.texi: Update.
49968         * doc/functions/vprintf.texi: Update.
49969         * doc/functions/vsnprintf.texi: Update.
49970         * doc/functions/vsprintf.texi: Update.
49971
49972 2007-05-19  Bruno Haible  <bruno@clisp.org>
49973
49974         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49975         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49976         Instead of multiplying with 10^k, set extra_zeroes to k.
49977         (scale10_round_long_double): Remove function.
49978
49979 2007-05-18  Bruno Haible  <bruno@clisp.org>
49980
49981         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49982         introduced on 2007-05-06.
49983
49984 2007-05-18  Bruno Haible  <bruno@clisp.org>
49985
49986         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49987         %g directives.
49988         * tests/test-vasprintf-posix.c (test_function): Likewise.
49989         * tests/test-snprintf-posix.h (test_function): Likewise.
49990         * tests/test-sprintf-posix.h (test_function): Likewise.
49991
49992 2007-05-18  Bruno Haible  <bruno@clisp.org>
49993
49994         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49995         (strmatch): New function.
49996         (test_function): Test the %f directive on numbers of various exponents.
49997         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49998         (strmatch): New function.
49999         (test_function): Test the %f directive on numbers of various exponents.
50000         * tests/test-snprintf-posix.h (strmatch): New function.
50001         (test_function): Test the %f directive on numbers of various exponents.
50002         * tests/test-sprintf-posix.h (strmatch): New function.
50003         (test_function): Test the %f directive on numbers of various exponents.
50004         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50005         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50006         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50007         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50008
50009 2007-05-18  Bruno Haible  <bruno@clisp.org>
50010
50011         Add support for 'long double' number output.
50012         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50013         * lib/vasnprintf.c: Include math.h and float+.h.
50014         (mp_limb_t): New type.
50015         (GMP_LIMB_BITS): New macro.
50016         (mp_twolimb_t): New type.
50017         (GMP_TWOLIMB_BITS): New macro.
50018         (mpn_t): New type.
50019         (multiply, divide, convert_to_decimal, decode_long_double,
50020         scale10_round_long_double, scale10_round_decimal_long_double,
50021         floorlog10l): New functions.
50022         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50023         for the %f, %F, %e, %E, %g, %G directives.
50024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50025         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50026         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50027         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50029         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50031         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50032         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50033         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50034         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50035         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50036         * modules/snprintf-posix (Depends-on): Likewise.
50037         * modules/sprintf-posix (Depends-on): Likewise.
50038         * modules/vasnprintf-posix (Depends-on): Likewise.
50039         * modules/vasprintf-posix (Depends-on): Likewise.
50040         * modules/vfprintf-posix (Depends-on): Likewise.
50041         * modules/vsnprintf-posix (Depends-on): Likewise.
50042         * modules/vsprintf-posix (Depends-on): Likewise.
50043         * modules/vasnprintf (Files): Add lib/float+.h.
50044         * doc/functions/fprintf.texi: Update.
50045         * doc/functions/printf.texi: Update.
50046         * doc/functions/snprintf.texi: Update.
50047         * doc/functions/sprintf.texi: Update.
50048         * doc/functions/vfprintf.texi: Update.
50049         * doc/functions/vprintf.texi: Update.
50050         * doc/functions/vsnprintf.texi: Update.
50051         * doc/functions/vsprintf.texi: Update.
50052
50053 2007-05-18  Bruno Haible  <bruno@clisp.org>
50054
50055         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50056
50057 2007-05-18  Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50060         for printing 64-bit integers. Needed for mingw.
50061
50062 2007-05-18  Bruno Haible  <bruno@clisp.org>
50063
50064         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50065         gl_FUNC_FREXPL_WORKS.
50066         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50067
50068 2007-05-18  Bruno Haible  <bruno@clisp.org>
50069
50070         * modules/frexpl-nolibm-tests: New file.
50071
50072         * modules/frexpl-nolibm: New file.
50073         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50074
50075 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50076
50077         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50078         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50079         GCC 4.2, which otherwise issues a lot of warnings.
50080         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50081         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50082         Likewise.
50083         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50084         * modules/iconv_open (iconv.h): Likewise.
50085         * modules/locale (locale.h): Likewise.
50086         * modules/netinet_in (netinet/in.h): Likewise.
50087         * modules/sys_select (sys_select.h): Likewise.
50088         * modules/sys_socket (sys/socket.h): Likewise.
50089         * modules/sys_stat (sys/stat.h): Likewise.
50090         * modules/sysexits (sysexits.h): Likewise.
50091         * modules/unistd (unistd.h): Likewise.
50092
50093 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50094
50095         * modules/closein-tests (Makefile.am): Distribute
50096         `test-closein.sh'.
50097
50098 2007-05-17  Bruno Haible  <bruno@clisp.org>
50099
50100         * tests/test-printf-posix.output: Renamed from
50101         tests/test-fprintf-posix.out.
50102         * modules/fprintf-posix-tests: Update.
50103         * modules/printf-posix-tests: Update.
50104         * modules/vfprintf-posix-tests: Update.
50105         * modules/vprintf-posix-tests: Update.
50106         * tests/test-fprintf-posix.sh: Update.
50107         * tests/test-printf-posix.sh: Update.
50108         * tests/test-vfprintf-posix.sh: Update.
50109         * tests/test-vprintf-posix.sh: Update.
50110         Reported by Ralf Wildenhues.
50111
50112 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50113
50114         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50115         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50116         GCC 4.2, which otherwise issues a lot of warnings.
50117         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50118         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50119         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50120         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50121         it should no longer be needed.
50122         * lib/string_.h: Likewise.
50123         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50124         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50125         * modules/inttypes (inttypes.h): Likewise.
50126         * modules/math (math.h): Likewise.
50127         * modules/search (search.h): Likewise.
50128         * modules/signal (signal.h): Likewise.
50129         * modules/stdint (stdint.h): Likewise.
50130         * modules/stdio (stdio.h): Likewise.
50131         * modules/stdlib (stdlib.h): Likewise.
50132         * modules/string (string.h): Likewise.
50133         * modules/sys_time (sys/time.h): Likewise.
50134         * modules/time (time.h): Likewise.
50135         * modules/wchar (wchar.h): Likewise.
50136         * modules/wctype (wtype.h): Likewise.
50137
50138 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50139
50140         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50141
50142 2007-05-13  Bruno Haible  <bruno@clisp.org>
50143
50144         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50145         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50146         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50147         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50148         (gl_PREREQ_STRTOK_R): Don't require it here.
50149
50150 2007-05-13  Bruno Haible  <bruno@clisp.org>
50151
50152         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50153         when used in C++ mode.
50154
50155 2007-05-12  Bruno Haible  <bruno@clisp.org>
50156
50157         * lib/linebuffer.h: Tweak doc.
50158         * lib/linebuffer.c: Likewise.
50159
50160 2007-05-12  James Youngman  <jay@gnu.org>
50161
50162         * lib/linebuffer.c (readlinebuffer_delim): New function,
50163         like readlinebuffer, but use a caller-specified delimiter.
50164         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50165         as the delimiter.
50166         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50167
50168 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50169
50170         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50171         * modules/openat (Files): Remove openat-die.c.
50172         (Depends-on): Add openat-die.
50173         * modules/openat-die: New module.
50174
50175 2007-05-06  Bruno Haible  <bruno@clisp.org>
50176
50177         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50178         Update with info about Cygwin.
50179         * doc/functions/fprintf.texi: Update.
50180         * doc/functions/printf.texi: Update.
50181         * doc/functions/snprintf.texi: Update.
50182         * doc/functions/sprintf.texi: Update.
50183         * doc/functions/vfprintf.texi: Update.
50184         * doc/functions/vprintf.texi: Update.
50185         * doc/functions/vsnprintf.texi: Update.
50186         * doc/functions/vsprintf.texi: Update.
50187         Reported by Eric Blake.
50188
50189 2007-05-06  Bruno Haible  <bruno@clisp.org>
50190
50191         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50192         padding ourselves for the floating-point directives.
50193         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50195         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50196         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50197         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50198         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50199         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50200         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50201         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50202         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50203         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50204         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50205         * tests/test-snprintf-posix.h (test_function): Also check the width
50206         and some flags in the %f directive.
50207         * tests/test-sprintf-posix.h (test_function): Likewise.
50208         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50209         * tests/test-vasprintf-posix.c (test_function): Likewise.
50210         * doc/functions/fprintf.texi: Update.
50211         * doc/functions/printf.texi: Update.
50212         * doc/functions/snprintf.texi: Update.
50213         * doc/functions/sprintf.texi: Update.
50214         * doc/functions/vfprintf.texi: Update.
50215         * doc/functions/vprintf.texi: Update.
50216         * doc/functions/vsnprintf.texi: Update.
50217         * doc/functions/vsprintf.texi: Update.
50218
50219 2007-05-06  Bruno Haible  <bruno@clisp.org>
50220
50221         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50222         pass the ' flag character to sprintf or snprintf.
50223         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50226         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50227         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50229         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50231         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50232         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50234         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50235         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50236         flag.
50237         * tests/test-sprintf-posix.h (test_function): Likewise.
50238         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50239         * tests/test-vasprintf-posix.c (test_function): Likewise.
50240         * doc/functions/fprintf.texi: Update.
50241         * doc/functions/printf.texi: Update.
50242         * doc/functions/snprintf.texi: Update.
50243         * doc/functions/sprintf.texi: Update.
50244         * doc/functions/vfprintf.texi: Update.
50245         * doc/functions/vprintf.texi: Update.
50246         * doc/functions/vsnprintf.texi: Update.
50247         * doc/functions/vsprintf.texi: Update.
50248
50249 2007-05-01  Bruno Haible  <bruno@clisp.org>
50250
50251         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50252
50253 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50254
50255         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50256         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50257
50258 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50259
50260         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50261         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50262         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50263
50264 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50265
50266         * lib/argp-help.c (struct hol_entry): New member `ord'.
50267         (HOL_ENTRY_PTRCMP): Use ord for comparison
50268         (hol_sort): Initialize ord.
50269
50270 2007-05-01  Bruno Haible  <bruno@clisp.org>
50271
50272         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50273         Reported by Eric Blake.
50274         * doc/gnulib.texi (Function Substitutes): Update.
50275
50276 2007-05-01  Bruno Haible  <bruno@clisp.org>
50277
50278         * doc/functions.texi: Remove file, now redundant through
50279         doc/functions/*.texi.
50280
50281 2007-05-01  Bruno Haible  <bruno@clisp.org>
50282
50283         * modules/argp (Depends-on): Add sleep.
50284
50285 2007-05-01  Bruno Haible  <bruno@clisp.org>
50286
50287         * modules/sleep-tests: New file.
50288         * tests/test-sleep.c: New file.
50289
50290         * modules/sleep: New file.
50291         * lib/sleep.c: New file.
50292         * m4/sleep.m4: New file.
50293         * lib/unistd_.h (sleep): New declaration.
50294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50295         HAVE_SLEEP.
50296         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50297         * doc/functions/sleep.texi: Document the sleep module.
50298
50299 2007-05-01  Bruno Haible  <bruno@clisp.org>
50300
50301         * lib/sigprocmask.h: Remove file.
50302         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50303         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50304         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50305         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50306         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50307         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50308         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50309         HAVE_SIGSET_T as a shell variable.
50310         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50311         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50312         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50313         (Depends-on): Add signal. Remove verify.
50314         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50315         (Include): Mention <signal.h> instead of sigprocmask.h.
50316         * NEWS: Mention the change.
50317         * lib/fatal-signal.c: Don't include sigprocmask.h.
50318
50319 2007-05-01  Bruno Haible  <bruno@clisp.org>
50320
50321         * modules/signal: New file.
50322         * lib/signal_.h: New file.
50323         * m4/signal_h.m4: New file.
50324
50325 2007-05-01  Bruno Haible  <bruno@clisp.org>
50326
50327         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50328         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50329         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50330         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50331
50332 2007-05-01  Bruno Haible  <bruno@clisp.org>
50333
50334         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50335         configure time.
50336         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50337         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50338         * modules/sys_stat (Makefile.am): Substitute their values into
50339         sys/stat.h.
50340
50341 2007-05-01  Bruno Haible  <bruno@clisp.org>
50342
50343         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50344         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50345         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50346
50347 2007-05-01  Bruno Haible  <bruno@clisp.org>
50348
50349         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50350         'assert' module here.
50351
50352 2007-05-01  Bruno Haible  <bruno@clisp.org>
50353
50354         * doc/functions/*.texi: New files.
50355         * doc/functions/google-ranking.txt: New file.
50356         * doc/gnulib.texi (Function Substitutes): New chapter.
50357         (ctime, inet_ntoa): Remove sections.
50358         * doc/ctime.texi: Remove file.
50359         * doc/inet_ntoa.texi: Remove file.
50360         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50361         dependencies.
50362         (%.info): New rule, specifying a --reference-limit.
50363
50364 2007-05-01  Bruno Haible  <bruno@clisp.org>
50365
50366         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50367
50368 2007-05-01  Bruno Haible  <bruno@clisp.org>
50369
50370         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50371         the portability of 'mkdir' to mingw systems.
50372
50373 2007-05-01  Bruno Haible  <bruno@clisp.org>
50374
50375         * doc/headers/google-ranking.txt: New file.
50376
50377 2007-04-30  Eric Blake  <ebb9@byu.net>
50378
50379         Prefer fseeko to fseek.
50380         * modules/getpass (Depends-on): Add fseeko.
50381         * lib/getpass.c (getpass): Use fseeko, not fseek.
50382
50383 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50384
50385         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50386         assumes the sorting is stable, while most qsort implementations
50387         are not.  Use argument addresses to ensure they never compare as
50388         equal.
50389
50390         * tests/test-argp-2.sh (usage-indent test): Fix output
50391         (func_compare): Restore diff options
50392         * tests/test-argp.c: Restore #include "progname.h"
50393
50394 2007-04-29  Bruno Haible  <bruno@clisp.org>
50395
50396         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50397         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50398         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50399         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50400         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50401         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50402         (TESTS, check_PROGRAMS): Add test-snprintf.
50403         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50404         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50405         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50406         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50407         assertions that fail on HP-UX, OSF/1, or IRIX.
50408         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50409
50410 2007-04-29  Bruno Haible  <bruno@clisp.org>
50411
50412         * MODULES.html.sh (posix_functions): Remove 'contents'.
50413
50414 2007-04-29  Karl Berry  <karl@gnu.org>
50415
50416         * config/srclist.txt (gendocs_template_min): new entry.
50417
50418 2007-04-29  Bruno Haible  <bruno@clisp.org>
50419
50420         Work around fpurge bug on BSD systems.
50421         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50422         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50423         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50424         fpurge to rpl_fpurge if the system already has this function.
50425         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50426         the case where the system already has this function. Correct invariants
50427         on BSD systems.
50428         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50429         BSD systems.
50430
50431 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50432
50433         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50434         proposed by Sven Verdoolaege.
50435
50436         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50437         options.
50438         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50439         (usage and help tests): Update
50440
50441 2007-04-29  Bruno Haible  <bruno@clisp.org>
50442
50443         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50444         Print more information in case of failure. Disable a test on BeOS.
50445
50446 2007-04-29  Bruno Haible  <bruno@clisp.org>
50447
50448         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50449         This helps debugging on systems on which no gdb is available.
50450
50451 2007-04-29  Bruno Haible  <bruno@clisp.org>
50452
50453         * lib/freading.h: Improve comments.
50454         * lib/fwriting.h: Likewise.
50455         * tests/test-freading.c (main): Don't check freading immediately after
50456         repositioning. Needed for glibc.
50457
50458 2007-04-29  Bruno Haible  <bruno@clisp.org>
50459
50460         * lib/freading.c (freading): Trivial simplification.
50461
50462 2007-04-28  Bruno Haible  <bruno@clisp.org>
50463
50464         * tests/test-fwriting.c (main): Also test the interaction between
50465         fflush and fwriting.
50466         * modules/fwriting-tests (Depends-on): Add fflush.
50467
50468         * tests/test-freading.c (main): Also test the interaction between
50469         fflush and freading.
50470         * modules/freading-tests (Depends-on): Add fflush.
50471
50472 2007-04-28  Bruno Haible  <bruno@clisp.org>
50473
50474         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50475         fseeko and ftello.
50476         Suggested by Eric Blake.
50477
50478 2007-04-28  Jim Meyering  <jim@meyering.net>
50479
50480         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50481         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50482         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50483
50484 2007-04-27  Eric Blake  <ebb9@byu.net>
50485
50486         * doc/headers/assert.texi (assert.h): Document assert module use.
50487
50488 2007-04-27  Bruno Haible  <bruno@clisp.org>
50489
50490         * doc/headers/*.texi: New files.
50491         * doc/gnulib.texi (Header File Substitutes): New chapter.
50492         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50493         dependencies.
50494         (standards.info ,standards.html, standards.dvi): Update dependencies.
50495         (mostlyclean, clean): New targets.
50496
50497 2007-04-27  Bruno Haible  <bruno@clisp.org>
50498
50499         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50500         * modules/sysexits (Files, Makefile.am): Update.
50501
50502         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50503         * modules/sys_socket (Files, Makefile.am): Update.
50504
50505         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50506         * modules/sys_stat (Files, Makefile.am): Update.
50507
50508 2007-04-27  Eric Blake  <ebb9@byu.net>
50509
50510         * lib/freading.h: Improve comments.
50511         * lib/fwriting.h: Likewise.
50512         * lib/fflush.c: Likewise.
50513
50514         Fix closein for mingw.
50515         * modules/closein-tests: Add tests for closein.
50516         * tests/test-closein.c: New file.
50517         * tests/test-closein.sh: Likewise.
50518         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50519         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50520
50521 2007-04-27  Bruno Haible  <bruno@clisp.org>
50522
50523         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50524         version is < 6.
50525         * lib/math_.h [__DECC]: Likewise.
50526         * lib/stdio_.h [__DECC]: Likewise.
50527         * lib/stdlib_.h [__DECC]: Likewise.
50528         * lib/string_.h [__DECC]: Likewise.
50529         * lib/time_.h [__DECC]: Likewise.
50530         * lib/wchar_.h [__DECC]: Likewise.
50531         * lib/wctype_.h [__DECC]: Likewise.
50532
50533 2007-04-27  Bruno Haible  <bruno@clisp.org>
50534
50535         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50536
50537 2007-04-27  Bruno Haible  <bruno@clisp.org>
50538
50539         * lib/fflush.c: Add comments.
50540         * modules/fpurge-tests (Depends-on): Add fflush.
50541         * modules/freadable-tests (Depends-on): Likewise.
50542         * modules/fwritable-tests (Depends-on): Likewise.
50543
50544 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50545
50546         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50547         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50548         Report by Bruno Haible <bruno@clisp.org>.
50549
50550 2007-04-26  Eric Blake  <ebb9@byu.net>
50551
50552         Fix fflush on mingw.
50553         * modules/fflush (Depends-on): Add freading.
50554         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50555         but unread data.
50556
50557 2007-04-26  Eric Blake  <ebb9@byu.net>
50558         and Bruno Haible  <bruno@clisp.org>
50559
50560         Implement freading and fwriting.
50561         * lib/freading.c: New file.
50562         * lib/freading.h: Likewise.
50563         * m4/freading.m4: Likewise.
50564         * modules/freading: Likewise.
50565         * modules/freading-tests: Likewise.
50566         * tests/test-freading.c: Likewise.
50567         * lib/fwriting.c: New file.
50568         * lib/fwriting.h: Likewise.
50569         * m4/fwriting.m4: Likewise.
50570         * modules/fwriting: Likewise.
50571         * modules/fwriting-tests: Likewise.
50572         * tests/test-fwriting.c: Likewise.
50573         * MODULES.html.sh (File stream based Input/Output): Mention them.
50574
50575 2007-04-26  Bruno Haible  <bruno@clisp.org>
50576
50577         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50578         'long' when we assume it.
50579         Suggested by Eric Blake.
50580
50581 2007-04-26  Bruno Haible  <bruno@clisp.org>
50582
50583         Ensure fseeko, ftello are declared on glibc systems.
50584         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50585         * modules/fseeko (configure.ac-early): Likewise.
50586         * modules/ftello (configure.ac-early): Likewise.
50587         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50588         AC_FUNC_FSEEKO for this.
50589         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50590         (gl_CHECK_FSEEKO): Remove macro.
50591
50592 2007-04-26  Bruno Haible  <bruno@clisp.org>
50593
50594         * tests/test-fflush.c (main): Also check the ftell result after
50595         fflush and fseek/fseeko.
50596         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50597         file descriptor position cache in the stream.
50598         * lib/fseeko.c (rpl_fseeko): Likewise.
50599
50600 2007-04-26  Bruno Haible  <bruno@clisp.org>
50601
50602         * modules/fflush-tests (Depends-on): Add fseeko.
50603
50604 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50605             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50606
50607         * lib/argz_.h: ensure error_t definition is obtained in same
50608         mechanism system argz.h would have.
50609         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50610         argz facilities are known bad.  Err on the side of caution if
50611         cross-compiling.
50612
50613 2007-04-25  Eric Blake  <ebb9@byu.net>
50614
50615         * lib/fpurge.c (includes): Use stdlib.h for free.
50616         * tests/test-fflush.c (main): Also test fflush-fseeko.
50617
50618 2007-04-25  Bruno Haible  <bruno@clisp.org>
50619
50620         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50621         * lib/fseeko.c: New file.
50622         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50623         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50624         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50625         gl_FUNC_FSEEKO.
50626         (gl_FUNC_FSEEKO): Invoke it.
50627         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50628         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50629         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50630
50631 2007-04-25  Bruno Haible  <bruno@clisp.org>
50632
50633         * modules/fflush (Depends-on): Add ftello.
50634
50635 2007-04-25  Bruno Haible  <bruno@clisp.org>
50636
50637         * modules/ftello-tests: New file.
50638         * tests/test-ftello.c: New file.
50639
50640         * modules/ftello: New file.
50641         * m4/ftello.m4: New file.
50642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50643         HAVE_FTELLO.
50644         * lib/stdio_.h (ftello): New declaration.
50645         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50646         HAVE_FTELLO.
50647
50648 2007-04-25  Bruno Haible  <bruno@clisp.org>
50649
50650         * modules/fseeko-tests: New file.
50651         * tests/test-fseeko.c: New file.
50652
50653         * modules/fseeko: New file.
50654         * m4/fseeko.m4: New file.
50655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50656         HAVE_FSEEKO.
50657         * lib/stdio_.h (fseeko): New declaration.
50658         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50659         HAVE_FSEEKO.
50660
50661 2007-04-25  Bruno Haible  <bruno@clisp.org>
50662
50663         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50664
50665 2007-04-25  Bruno Haible  <bruno@clisp.org>
50666
50667         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50668         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50669         * tests/test-unistd.c: Likewise.
50670         * tests/test-fcntl.c: Likewise.
50671
50672 2007-04-23  Eric Blake  <ebb9@byu.net>
50673
50674         * lib/fflush.c: Fix missing include.
50675         Reported by Bruno Haible.
50676
50677 2007-04-23  Bruno Haible  <bruno@clisp.org>
50678
50679         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50680         Reported by Eric Blake.
50681
50682 2007-04-23  Bruno Haible  <bruno@clisp.org>
50683
50684         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50685
50686 2007-04-23  Bruno Haible  <bruno@clisp.org>
50687
50688         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50689
50690 2007-04-23  Bruno Haible  <bruno@clisp.org>
50691
50692         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50693         Needed on HP-UX 11.
50694
50695 2007-04-16  Eric Blake  <ebb9@byu.net>
50696
50697         Make fflush rely on fpurge.
50698         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50699         open coding all variants.
50700         * modules/fflush (Depends-on): Add fpurge and unistd.
50701         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50702         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50703
50704         Fix --with-tests compilation on cygwin.
50705         * modules/argmatch-tests (Makefile.am): List gnulib library first
50706         in LDADD.
50707         * modules/argp-tests (Makefile.am): Likewise.
50708         * modules/array-list-tests (Makefile.am): Likewise.
50709         * modules/array-oset-tests (Makefile.am): Likewise.
50710         * modules/avltree-list-tests (Makefile.am): Likewise.
50711         * modules/avltree-oset-tests (Makefile.am): Likewise.
50712         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50713         * modules/carray-list-tests (Makefile.am): Likewise.
50714         * modules/dirname-tests (Makefile.am): Likewise.
50715         * modules/frexp-tests (Makefile.am): Likewise.
50716         * modules/isnanl-tests (Makefile.am): Likewise.
50717         * modules/linked-list-tests (Makefile.am): Likewise.
50718         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50719         * modules/lock-tests (Makefile.am): Likewise.
50720         * modules/rbtree-list-tests (Makefile.am): Likewise.
50721         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50722         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50723         * modules/tls-tests (Makefile.am): Likewise.
50724         * modules/tsearch-tests (Makefile.am): Likewise.
50725         * modules/xvasprintf-tests (Makefile.am): Likewise.
50726
50727         Fix fpurge for cygwin.
50728         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50729         value.
50730         * modules/fpurge-tests (Depends-on): Clean up trash.
50731
50732 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50733
50734         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50735
50736         * m4/autobuild.m4: Re-indent.
50737
50738 2007-04-13  Bruno Haible  <bruno@clisp.org>
50739
50740         * modules/fpurge-tests: New file.
50741         * tests/test-fpurge.c: New file.
50742
50743         * modules/fpurge: New file.
50744         * lib/fpurge.h: New file.
50745         * lib/fpurge.c: New file.
50746         * m4/fpurge.m4: New file.
50747
50748 2007-04-13  Bruno Haible  <bruno@clisp.org>
50749
50750         * modules/fbufmode-tests: New file.
50751         * tests/test-fbufmode.c: New file.
50752
50753         * modules/fbufmode: New file.
50754         * lib/fbufmode.h: New file.
50755         * lib/fbufmode.c: New file.
50756         * m4/fbufmode.m4: New file.
50757
50758 2007-04-13  Bruno Haible  <bruno@clisp.org>
50759
50760         * modules/fwritable-tests: New file.
50761         * tests/test-fwritable.c: New file.
50762
50763         * modules/fwritable: New file.
50764         * lib/fwritable.h: New file.
50765         * lib/fwritable.c: New file.
50766         * m4/fwritable.m4: New file.
50767
50768 2007-04-13  Bruno Haible  <bruno@clisp.org>
50769
50770         * modules/freadable-tests: New file.
50771         * tests/test-freadable.c: New file.
50772
50773         * modules/freadable: New file.
50774         * lib/freadable.h: New file.
50775         * lib/freadable.c: New file.
50776         * m4/freadable.m4: New file.
50777
50778 2007-04-13  Bruno Haible  <bruno@clisp.org>
50779
50780         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50781         MOSTLYCLEANFILES.
50782
50783 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50784
50785         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50786         gzip bootstrap.conf to avoid dragging in i18n machinery.
50787         (gnulib_tool_option): Use it.
50788
50789 2007-04-13  Bruno Haible  <bruno@clisp.org>
50790
50791         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50792         %F directives.
50793         * tests/test-vasprintf-posix.c (test_function): Likewise.
50794         * tests/test-snprintf-posix.h (test_function): Likewise.
50795         * tests/test-sprintf-posix.h (test_function): Likewise.
50796         * tests/test-fprintf-posix.h (test_function): Likewise.
50797         * tests/test-printf-posix.h (test_function): Likewise.
50798         * tests/test-fprintf-posix.out: Likewise.
50799
50800 2007-04-13  Bruno Haible  <bruno@clisp.org>
50801
50802         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50803         * modules/tls-tests (configure.ac): Likewise.
50804         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50805
50806 2007-04-13  Bruno Haible  <bruno@clisp.org>
50807
50808         * lib/tls.c (glthread_tls_get): Fix return type.
50809         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50810
50811 2007-04-12  Eric Blake  <ebb9@byu.net>
50812
50813         * modules/gettime (Depends-on): Remove gettime.
50814         Reported by Dmitry V. Levin.
50815
50816 2007-04-12  Bruno Haible  <bruno@clisp.org>
50817
50818         * modules/fflush (Include): Mention <stdio.h>.
50819         * modules/strtoimax (Include): Mention <inttypes.h>.
50820         * modules/strtoumax (Include): Likewise.
50821
50822 2007-04-12  Eric Blake  <ebb9@byu.net>
50823
50824         * .cvsignore: New file.
50825         * .gitignore: Likewise.
50826
50827 2007-04-12  Bruno Haible  <bruno@clisp.org>
50828
50829         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50830         not before, since $(LDADD) often contains libgnu.a.
50831         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50832         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50833         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50834         Needed on Cygwin.
50835
50836 2007-04-12  Eric Blake  <ebb9@byu.net>
50837
50838         Work around glibc's failure to flush stdin on fclose.
50839         * lib/closein.c (close_stdin): Flush stdin before closing.
50840
50841         Work around glibc's failure to reset seekable stdin on exit.
50842         * modules/closein: New module.
50843         * lib/closein.c: New file.
50844         * lib/closein.h: Likewise.
50845         * m4/closein.m4: Likewise.
50846         * MODULES.html.sh (File stream based Input/Output): Document it.
50847
50848 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50849
50850         * gnulib-tool: Rename generated 'autobuild' script to
50851         'do-autobuild' in --create-megatestdir output.
50852
50853         * doc/gnulib.texi (Build robot for gnulib): Fix.
50854
50855 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50856
50857         * modules/sysexits (Depends-on): Add absolute-header.
50858
50859 2007-04-12  Eric Blake  <ebb9@byu.net>
50860
50861         No need to preserve errno on success.
50862         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50863         Reported by Bruno Haible.
50864
50865 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50866
50867         * MODULES.html.sh (Support for maintaining and releasing
50868         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50869
50870 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50871
50872         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50873
50874 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50875
50876         * modules/autobuild: New module.
50877
50878         * m4/autobuild.m4: New file.
50879
50880 2007-04-11  Bruno Haible  <bruno@clisp.org>
50881
50882         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50883         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50884         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50886         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50887         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50888         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50889         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50890         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50891         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50893         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50894         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50895         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50896         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50897         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50898         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50899         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50900         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50902         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50903         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50905         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50906         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50907         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50908         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50909         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50910         Reported by Eric Blake.
50911
50912 2007-04-11  Bruno Haible  <bruno@clisp.org>
50913
50914         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50915
50916 2007-04-10  Bruno Haible  <bruno@clisp.org>
50917
50918         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50919         for NaN and Infinity. Needed on FreeBSD 6.1.
50920         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50921         regarding results for "%010a" of Infinity and NaN.
50922         * tests/test-vasprintf-posix.c (test_function): Likewise.
50923         * tests/test-snprintf-posix.h (test_function): Likewise.
50924         * tests/test-sprintf-posix.h (test_function): Likewise.
50925         * tests/test-fprintf-posix.h (test_function): Likewise.
50926         * tests/test-printf-posix.h (test_function): Likewise.
50927         * tests/test-fprintf-posix.out: Likewise.
50928
50929 2007-04-10  Bruno Haible  <bruno@clisp.org>
50930
50931         * modules/locale-tests: New file.
50932         * tests/test-locale.c: New file.
50933
50934         * modules/locale: New file.
50935         * lib/locale_.h: New file.
50936         * m4/locale_h.m4: New file.
50937
50938 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50939             Bruno Haible  <bruno@clisp.org>
50940
50941         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50942         be determined, test for availability of the copysignf, copysign,
50943         copysignl functions.
50944         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50945         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50946         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50947
50948 2007-04-09  Eric Blake  <ebb9@byu.net>
50949
50950         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50951         * modules/stdio (Makefile.am): Support fflush.
50952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50953         * modules/fflush: New file.
50954         * lib/fflush.c: Likewise.
50955         * m4/fflush.m4: Likewise.
50956         * modules/fflush-tests: New test.
50957         * tests/test-fflush.c: Likewise.
50958         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50959
50960 2007-04-06  Bruno Haible  <bruno@clisp.org>
50961
50962         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50963         (VASNPRINTF): Use signbit for faster determination whether to print a
50964         minus sign.
50965         * modules/vasnprintf (Files): Remove lib/float+.h.
50966         * modules/fprintf-posix (Depends-on): Add signbit.
50967         * modules/snprintf-posix (Depends-on): Likewise.
50968         * modules/sprintf-posix (Depends-on): Likewise.
50969         * modules/vasnprintf-posix (Depends-on): Likewise.
50970         * modules/vasprintf-posix (Depends-on): Likewise.
50971         * modules/vfprintf-posix (Depends-on): Likewise.
50972         * modules/vsnprintf-posix (Depends-on): Likewise.
50973         * modules/vsprintf-posix (Depends-on): Likewise.
50974
50975 2007-04-06  Bruno Haible  <bruno@clisp.org>
50976
50977         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50978         * tests/test-frexpl.c (main): Likewise.
50979         * tests/test-ldexpl.c (main): Likewise.
50980         * modules/frexp-tests (Depends-on): Add signbit.
50981         * modules/frexpl-tests (Depdends-on): Likewise.
50982         * modules/ldexpl-tests (Depdends-on): Likewise.
50983
50984 2007-04-06  Bruno Haible  <bruno@clisp.org>
50985
50986         * modules/signbit-tests: New file.
50987         * tests/test-signbit.c: New file.
50988
50989         * modules/signbit: New file.
50990         * lib/signbitf.c: New file.
50991         * lib/signbitd.c: New file.
50992         * lib/signbitl.c: New file.
50993         * m4/signbit.m4: New file.
50994         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50995         (signbit): New macro.
50996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50997         REPLACE_SIGNBIT.
50998         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
50999         REPLACE_FREXPL into math.h.
51000
51001 2007-04-06  Bruno Haible  <bruno@clisp.org>
51002
51003         * modules/isnanf-nolibm-tests: New file.
51004         * tests/test-isnanf.c: New file.
51005
51006         * modules/isnanf-nolibm: New file.
51007         * lib/isnanf.h: New file.
51008         * lib/isnanf.c: New file.
51009         * lib/isnan.c: Consider the USE_FLOAT macro.
51010         * m4/isnanf.m4: New file.
51011
51012 2007-04-06  Bruno Haible  <bruno@clisp.org>
51013
51014         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51015         (Link): New section.
51016
51017         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51018
51019 2007-04-06  Bruno Haible  <bruno@clisp.org>
51020
51021         Assume the 'long double' type.
51022         * m4/longdouble.m4: Remove file.
51023         * config/srclist.txt: Don't mention longdouble.m4.
51024         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51025         * lib/float+.h: Likewise.
51026         * lib/frexp.c: Likewise.
51027         * lib/printf-args.h: Likewise.
51028         * lib/printf-args.c: Likewise.
51029         * lib/printf-frexp.c: Likewise.
51030         * lib/printf-parse.c: Likewise.
51031         * lib/vasnprintf.c: Likewise.
51032         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51033         * m4/intl.m4: Likewise.
51034         * m4/isnanl.m4: Likewise.
51035         * m4/printf.m4: Likewise.
51036         * m4/printf-frexpl.m4: Likewise.
51037         * m4/vasnprintf.m4: Likewise.
51038         * modules/allocsa (Files): Remove m4/longdouble.m4.
51039         * modules/gettext (Files): Likewise.
51040         * modules/relocatable-prog-wrapper (Files): Likewise.
51041         * modules/vasnprintf (Files): Likewise.
51042         * modules/isnanl (Files): Likewise.
51043         (Include): Simplify.
51044         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51045         (Include): Simplify.
51046         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51047         (Include): Simplify.
51048         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51049         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51050         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51051         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51052         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51053         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51054         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51055         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51056         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51057         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51058         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51059         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51060         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51061         * tests/test-isnanl.c: Likewise.
51062         * tests/test-snprintf-posix.h: Likewise.
51063         * tests/test-sprintf-posix.h: Likewise.
51064         * tests/test-vasnprintf-posix.c: Likewise.
51065         * tests/test-vasnprintf-posix2.c: Likewise.
51066         * tests/test-vasprintf-posix.c: Likewise.
51067
51068 2007-04-06  Bruno Haible  <bruno@clisp.org>
51069
51070         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51071         * lib/math_.h [__DECC]: Include the overridden include file through
51072         #include_next, outside the double-inclusion guard.
51073         * lib/stdio_.h [__DECC]: Likewise.
51074         * lib/stdlib_.h [__DECC]: Likewise.
51075         * lib/string_.h [__DECC]: Likewise.
51076         * lib/time_.h [__DECC]: Likewise.
51077         * lib/wchar_.h [__DECC]: Likewise.
51078         * lib/wctype_.h [__DECC]: Likewise.
51079         * lib/inttypes_.h [__DECC]: Likewise.
51080         Reported by Albert Chin <china@thewrittenword.com> in
51081         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51082
51083 2007-04-04  Eric Blake  <ebb9@byu.net>
51084
51085         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51086         1.5.x.
51087
51088 2007-04-04  Bruno Haible  <bruno@clisp.org>
51089
51090         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51091         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51092
51093 2007-04-04  Bruno Haible  <bruno@clisp.org>
51094
51095         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51096         results for "%010a" of Infinity and NaN.
51097         * tests/test-vasprintf-posix.c (test_function): Likewise.
51098         * tests/test-snprintf-posix.h (test_function): Likewise.
51099         * tests/test-sprintf-posix.h (test_function): Likewise.
51100         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51101         * tests/test-printf-posix.h (test_function): Likewise.
51102         * tests/test-fprintf-posix.out: Update.
51103         Needed for FreeBSD 6.1.
51104
51105 2007-04-04  Bruno Haible  <bruno@clisp.org>
51106
51107         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51108         directly used by the gnulib modules nor by gnulib-tool.
51109
51110 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51111
51112         * DEPENDENCIES: Give overall description of version dependency
51113         desirability.  Use more-typical names for apps.
51114         Add shell, coreutils, diffutils, grep, tar, gzip.
51115
51116 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51117
51118         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51119
51120 2007-04-04  Karl Berry  <karl@gnu.org>
51121
51122         * MODULES.html.sh (func_module): missing '.
51123
51124 2007-04-03  Bruno Haible  <bruno@clisp.org>
51125
51126         * modules/argmatch-tests (Makefile.am): New variable
51127         test_argmatch_LDADD.
51128         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51129         * modules/array-list-tests (Makefile.am): New variable
51130         test_array_list_LDADD.
51131         * modules/array-oset-tests (Makefile.am): New variable
51132         test_array_oset_LDADD.
51133         * modules/avltree-list-tests (Makefile.am): New variable
51134         test_avltree_list_LDADD.
51135         * modules/avltree-oset-tests (Makefile.am): New variable
51136         test_avltree_oset_LDADD.
51137         * modules/avltreehash-list-tests (Makefile.am): New variable
51138         test_avltreehash_list_LDADD.
51139         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51140         test_canonicalize_lgpl_LDADD.
51141         * modules/carray-list-tests (Makefile.am): New variable
51142         test_carray_list_LDADD.
51143         * modules/dirname-tests (Makefile.am): New variable
51144         test_dirname_LDADD.
51145         * modules/linked-list-tests (Makefile.am): New variable
51146         test_linked_list_LDADD.
51147         * modules/linkedhash-list-tests (Makefile.am): New variable
51148         test_linkedhash_list_LDADD.
51149         * modules/rbtree-list-tests (Makefile.am): New variable
51150         test_rbtree_list_LDADD.
51151         * modules/rbtree-oset-tests (Makefile.am): New variable
51152         test_rbtree_oset_LDADD.
51153         * modules/rbtreehash-list-tests (Makefile.am): New variable
51154         test_rbtreehash_list_LDADD.
51155         * modules/xvasprintf-tests (Makefile.am): New variable
51156         test_xvasprintf_LDADD.
51157         Reported by Eric Blake.
51158
51159 2007-04-03  Eric Blake  <ebb9@byu.net>
51160
51161         * DEPENDENCIES: Weaken m4 requirements.
51162
51163 2007-04-03  Bruno Haible  <bruno@clisp.org>
51164
51165         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51166         * modules/isnanl-tests (configure.ac): Likewise.
51167
51168 2007-04-03  Ben Pfaff  <blp@gnu.org>
51169
51170         * modules/iconv_open: Add $(srcdir)/ to source directory
51171         references in Makefile fragments that call gperf, to fix VPATH
51172         builds.
51173
51174 2007-04-03  Bruno Haible  <bruno@clisp.org>
51175
51176         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51177         * lib/ldexpl.c: Undo last change.
51178
51179 2007-04-03  Bruno Haible  <bruno@clisp.org>
51180
51181         * modules/printf-frexpl (Depends-on): Undo last change.
51182         (Files): Add m4/ldexpl.m4.
51183
51184 2007-04-03  Bruno Haible  <bruno@clisp.org>
51185
51186         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51187         * modules/isnanl (Link): New section.
51188
51189         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51190         * modules/frexp (Link): New section.
51191
51192         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51193         * modules/frexpl (Link): New section.
51194
51195         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51196         * modules/ldexpl (Link): New section.
51197
51198 2007-04-03  Bruno Haible  <bruno@clisp.org>
51199
51200         * modules/TEMPLATE-EXTENDED: New file.
51201         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51202
51203 2007-04-03  Bruno Haible  <bruno@clisp.org>
51204
51205         * DEPENDENCIES: New file.
51206         Suggested by Simon Josefsson.
51207
51208 2007-04-03  Bruno Haible  <bruno@clisp.org>
51209
51210         * doc/gnulib.texi: Escape @.
51211
51212 2007-04-03  James Youngman  <jay@gnu.org>
51213         and Paul Eggert  <eggert@cs.ucla.edu>
51214
51215         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51216         birthtime on all systems that have birthtime, not just those which
51217         use st_birthtimensec rather than st_birthtim.  Putting zero in
51218         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51219         that the birth time is not available for files on an NFS mount.
51220
51221 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51222
51223         * modules/memxor: Move back from crypto/, suggested by Bruno.
51224         * modules/crypto/hmac-sha1: Fix memxor dependency.
51225
51226         * modules/crypto/gc: Moved from ../.
51227
51228 2007-04-02  Eric Blake  <ebb9@byu.net>
51229
51230         * lib/ldexpl.c (includes): Avoid libm.
51231
51232         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51233
51234 2007-04-02  Bruno Haible  <bruno@clisp.org>
51235
51236         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51237         on IRIX.
51238
51239 2007-04-02  Bruno Haible  <bruno@clisp.org>
51240
51241         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51242         x86 or x86_64 platforms running MacOS X.
51243         Reported by Ryan Schmidt <@ryandesign.com>.
51244
51245 2007-04-02  Bruno Haible  <bruno@clisp.org>
51246
51247         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51248         i386.
51249
51250 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51251
51252         * modules/crypto/arcfour: Moved from ../.
51253         * modules/crypto/arcfour-tests: Moved from ../.
51254         * modules/crypto/arctwo: Moved from ../.
51255         * modules/crypto/arctwo-tests: Moved from ../.
51256         * modules/crypto/des: Moved from ../.
51257         * modules/crypto/des-tests: Moved from ../.
51258         * modules/crypto/gc-arcfour: Moved from ../.
51259         * modules/crypto/gc-arcfour-tests: Moved from ../.
51260         * modules/crypto/gc-arctwo: Moved from ../.
51261         * modules/crypto/gc-arctwo-tests: Moved from ../.
51262         * modules/crypto/gc-des: Moved from ../.
51263         * modules/crypto/gc-des-tests: Moved from ../.
51264         * modules/crypto/gc-hmac-md5: Moved from ../.
51265         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51266         * modules/crypto/gc-hmac-sha1: Moved from ../.
51267         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51268         * modules/crypto/gc-md2: Moved from ../.
51269         * modules/crypto/gc-md2-tests: Moved from ../.
51270         * modules/crypto/gc-md4: Moved from ../.
51271         * modules/crypto/gc-md4-tests: Moved from ../.
51272         * modules/crypto/gc-md5: Moved from ../.
51273         * modules/crypto/gc-md5-tests: Moved from ../.
51274         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51275         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51276         * modules/crypto/gc-random: Moved from ../.
51277         * modules/crypto/gc-rijndael: Moved from ../.
51278         * modules/crypto/gc-rijndael-tests: Moved from ../.
51279         * modules/crypto/gc-sha1: Moved from ../.
51280         * modules/crypto/gc-sha1-tests: Moved from ../.
51281         * modules/crypto/gc-tests: Moved from ../.
51282         * modules/crypto/hmac-md5: Moved from ../.
51283         * modules/crypto/hmac-md5-tests: Moved from ../.
51284         * modules/crypto/hmac-sha1: Moved from ../.
51285         * modules/crypto/hmac-sha1-tests: Moved from ../.
51286         * modules/crypto/md2: Moved from ../.
51287         * modules/crypto/md2-tests: Moved from ../.
51288         * modules/crypto/md4: Moved from ../.
51289         * modules/crypto/md4-tests: Moved from ../.
51290         * modules/crypto/md5: Moved from ../.
51291         * modules/crypto/md5-tests: Moved from ../.
51292         * modules/crypto/memxor: Moved from ../.
51293         * modules/crypto/rijndael: Moved from ../.
51294         * modules/crypto/rijndael-tests: Moved from ../.
51295         * modules/crypto/sha1: Moved from ../.
51296
51297 2007-03-30  James Youngman  <jay@gnu.org>
51298
51299         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51300         rename() to change the ctime of a file (because ctime is unaffected
51301         by rename on jfs2 on AIX 5.1).
51302         (main): Start by doing cleanup, in case a previous run failed leaving
51303         test files behind.
51304
51305 2007-03-31  Bruno Haible  <bruno@clisp.org>
51306
51307         Support old proprietary implementations of iconv.
51308         * modules/iconv_open: New file.
51309         * lib/iconv_.h: New file.
51310         * m4/iconv_h.m4: New file.
51311         * lib/iconv_open.c: New file.
51312         * lib/iconv_open-aix.gperf: New file.
51313         * lib/iconv_open-hpux.gperf: New file.
51314         * lib/iconv_open-irix.gperf: New file.
51315         * lib/iconv_open-osf.gperf: New file.
51316         * m4/iconv_open.m4: New file.
51317         * modules/linebreak (Depends-on): Add iconv_open.
51318         * modules/striconv (Depends-on): Likewise.
51319         * modules/striconveh (Depends-on): Likewise.
51320         * modules/unicodeio (Depends-on): Likewise.
51321         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51322         (iconv_t)(-1).
51323         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51324         conversion if cd is (iconv_t)(-1).
51325         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51326         is not possible.
51327
51328 2007-03-31  Bruno Haible  <bruno@clisp.org>
51329
51330         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51331         work on Solaris either. Protect also second use of "autodetect_jp".
51332
51333 2007-03-31  Bruno Haible  <bruno@clisp.org>
51334
51335         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51336         the function is not present.
51337
51338 2007-03-31  Bruno Haible  <bruno@clisp.org>
51339
51340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51341         the function is not present.
51342
51343 2007-03-31  Bruno Haible  <bruno@clisp.org>
51344
51345         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51346         a bug in HP-UX iconv_open().
51347
51348 2007-03-31  Bruno Haible  <bruno@clisp.org>
51349
51350         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51351         (Mathematics <math.h>): New section, add fpieee.
51352         (Input/output <stdio.h>): Add fseterr.
51353         (Mathematics <math.h>): New section, add printf-frexp.
51354         (Container data structures): Add sublist.
51355         (Core language properties): Add fpucw, inline.
51356         (Functions for greatest-width integer types <inttypes.h>): Add
51357         imaxabs, imaxdiv, inttypes.
51358         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51359         isnanl-nolibm, ldexp.
51360         (Mathematics <math.h>): New section, add printf-frexpl.
51361         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51362         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51363         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51364         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51365         (Unicode string functions): Add unistr/u*-mbtoucr.
51366         (Java): Add javacomp-script, javaexec-script.
51367         (C#): Add csharpcomp-script, csharpexec-script.
51368         (Support for building libraries and executables): Add havelib,
51369         relocatable-*.
51370         (Support for maintaining and releasing projects): Renamed from
51371         'Support for maintaining and release projects'. Add announce-gen.
51372
51373 2007-03-31  Bruno Haible  <bruno@clisp.org>
51374
51375         * README: Talk primarily about git.
51376         (git and CVS): Renamed from CVS.
51377         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51378         gnulib is available through git.
51379         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51380
51381 2007-03-30  Bruno Haible  <bruno@clisp.org>
51382
51383         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51384         * lib/poll_.h: Likewise.
51385         * lib/stat_.h: Likewise.
51386         * lib/sys_time_.h: Likewise.
51387         * lib/sysexit_.h: Likewise.
51388         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51389         * lib/stdbool_.h: Likewise.
51390         * lib/byteswap_.h: Add double-inclusion guard.
51391
51392 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51393
51394         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51395
51396 2007-03-30  Karl Berry  <karl@gnu.org>
51397
51398         * config/srclist-update: double space after USA in the license
51399         substitution, since that's how it's usually (?) written.
51400
51401 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51402
51403         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51404         reported by Bruno Haible.
51405
51406 2007-03-29  Bruno Haible  <bruno@clisp.org>
51407
51408         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51409         a bug in AIX iconv().
51410
51411 2007-03-29  Bruno Haible  <bruno@clisp.org>
51412
51413         * modules/ldexpl-tests: New file.
51414         * tests/test-ldexpl.c: New file.
51415
51416 2007-03-29  Bruno Haible  <bruno@clisp.org>
51417
51418         * lib/ldexpl.c: Include fpucw.h.
51419         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51420         multiplication.
51421         * modules/ldexpl (Depends-on): Add fpucw.
51422
51423 2007-03-29  Bruno Haible  <bruno@clisp.org>
51424
51425         * modules/ldexpl: New file.
51426         * m4/ldexpl.m4: New file.
51427         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51428         set.
51429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51430         REPLACE_LDEXPL.
51431         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51432         REPLACE_LDEXPL.
51433         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51434         gl_FUNC_LDEXPL_WORKS.
51435         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51436         * modules/mathl (Files): Remove lib/ldexpl.c.
51437         (Depends-on): Add ldexpl.
51438
51439 2007-03-29  Bruno Haible  <bruno@clisp.org>
51440
51441         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51442
51443 2007-03-29  Bruno Haible  <bruno@clisp.org>
51444
51445         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51446         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51447         and possibly also HP-UX.
51448         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51449         work on AIX, IRIX, HP-UX, OSF/1.
51450         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51451         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51452         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51453         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51454         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51455         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51456
51457 2007-03-29  Bruno Haible  <bruno@clisp.org>
51458
51459         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51460
51461 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51462
51463         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51464         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51465
51466 2007-03-29  Eric Blake  <ebb9@byu.net>
51467
51468         * lib/acl-internal.h: Remove redundant include.
51469         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51470         Cygwin when a file is locked.
51471
51472 2007-03-29  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51475         file.
51476         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51477
51478 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51479
51480         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51481         try to remove a parent directory if the child couldn't be removed
51482         (except for the first rmdir, which could fail because the child
51483         doesn't exist).  Problem reported by Jeff Blaine in
51484         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51485
51486 2007-03-28  Bruno Haible  <bruno@clisp.org>
51487
51488         * lib/striconveh.c (utf8conv_carefully): New function.
51489         (mem_cd_iconveh_internal): Invoke it.
51490
51491 2007-03-28  Bruno Haible  <bruno@clisp.org>
51492
51493         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51494         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51495         input.
51496         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51497         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51498         unistr/u8-uctomb.
51499
51500 2007-03-28  Bruno Haible  <bruno@clisp.org>
51501
51502         * modules/unistr/u8-mbtoucr: New file.
51503         * lib/unistr/u8-mbtoucr.c: New file.
51504         * modules/unistr/u16-mbtoucr: New file.
51505         * lib/unistr/u16-mbtoucr.c: New file.
51506         * modules/unistr/u16-mbtoucr: New file.
51507         * lib/unistr/u16-mbtoucr.c: New file.
51508         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51509
51510 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51511             Bruno Haible  <bruno@clisp.org>
51512
51513         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51514         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51515         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51516
51517         * m4/stdio_h.m4: Add stubs for vasprintf too.
51518
51519         * modules/stdio: Support vasprintf in sed command.
51520
51521         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51522         vasprintf.h.  Add stdio module indicator.
51523
51524         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51525         vasprintf.h.
51526
51527         * lib/vasprintf.h: File removed.
51528
51529         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51530         * lib/vasprintf.c: Ditto.
51531         * lib/xvasprintf.c: Ditto.
51532         * tests/test-vasprintf-posix.c: Ditto.
51533         * tests/test-vasprintf.c: Ditto.
51534
51535 2007-03-27  Bruno Haible  <bruno@clisp.org>
51536
51537         Make vasnprintf multithread-safe.
51538         * lib/vasnprintf.c (decimal_point_char): New function.
51539         (VASNPRINTF): Use it.
51540         Suggested by Simon Josefsson.
51541
51542 2007-03-27  Eric Blake  <ebb9@byu.net>
51543
51544         Support sub-second birthtime on cygwin.
51545         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51546         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51547         (get_stat_birthtime): Also work with st_birthtim.
51548
51549 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51550
51551         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51552         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51553         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51554         (get_stat_birthtime_ns): Simplify compile-time tests.
51555         (get_stat_birthtime): Change the API to look like
51556         get_stat_mtime etc., except return a negative tv_nsec on error.
51557         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51558         Don't check for "spare" fields.
51559         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51560         or for struct stat.st_birthtime, as these tests aren't used.
51561         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51562
51563 2007-03-27  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/stat-time.h: Include <sys/stat.h>.
51566
51567 2007-03-27  James Youngman  <jay@gnu.org>
51568
51569         * lib/stat-time.h (get_stat_birthtime): New function for
51570           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51571         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51572           and its variants.
51573         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51574         * modules/stat-time-test: New file.
51575         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51576
51577 2007-03-26  Bruno Haible  <bruno@clisp.org>
51578
51579         Better support of signalling NaNs.
51580         * lib/atanl.c: Include isnanl.h.
51581         (atanl): Perform test for NaN at the beginning of the function and
51582         through a call to isnanl.
51583         * lib/cosl.c: Include isnanl.h.
51584         (cosl): Perform test for NaN at the beginning of the function and
51585         through a call to isnanl.
51586         * lib/ldexpl.c: Include isnanl.h.
51587         (ldexpl): Perform test for NaN through a call to isnanl.
51588         * lib/logl.c: Include isnanl.h.
51589         (logl): Perform test for NaN at the beginning of the function and
51590         through a call to isnanl.
51591         * lib/sinl.c: Include isnanl.h.
51592         (sinl): Perform test for NaN at the beginning of the function and
51593         through a call to isnanl.
51594         * lib/sqrtl.c: Include isnanl.h.
51595         (sqrtl): Perform test for NaN at the beginning of the function and
51596         through a call to isnanl.
51597         * lib/tanl.c: Include isnanl.h.
51598         (tanl): Perform test for NaN at the beginning of the function and
51599         through a call to isnanl.
51600         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51601         * modules/mathl (Depends-on): Add isnanl.
51602
51603 2007-03-26  Eric Blake  <ebb9@byu.net>
51604
51605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51606         regression in logic sense of previous patch.
51607
51608 2007-03-26  Bruno Haible  <bruno@clisp.org>
51609
51610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51611         unportable shell command "if ! ...".
51612         Reported by Ralf Wildenhues.
51613
51614 2007-03-25  Bruno Haible  <bruno@clisp.org>
51615
51616         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51617         <sysexits.h> file, and only add EX_CONFIG.
51618         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51619         absolute file name and whether it is sufficient. Substitute also
51620         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51621         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51622         ABSOLUTE_SYSEXITS_H into sysexits.h.
51623
51624 2007-03-25  Bruno Haible  <bruno@clisp.org>
51625
51626         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51627         hints is NULL.
51628
51629 2007-03-25  Bruno Haible  <bruno@clisp.org>
51630
51631         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51632         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51633
51634 2007-03-25  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/vasnprintf.c: Include langinfo.h.
51637         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51638         multithread-safe.
51639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51641         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51642         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51643         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51644         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51645         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51647         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51648         Reported by Simon Josefsson.
51649
51650 2007-03-25  Bruno Haible  <bruno@clisp.org>
51651
51652         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51653         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51654         * modules/vasnprintf (Depends-on): Add stdint.
51655
51656 2007-03-25  Bruno Haible  <bruno@clisp.org>
51657
51658         * modules/fpieee: New file.
51659         * m4/fpieee.m4: New file.
51660         * modules/isnan-nolibm (Depends-on): Add fpieee.
51661         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51662         * modules/isnanl (Depends-on): Add fpieee.
51663
51664 2007-03-25  Bruno Haible  <bruno@clisp.org>
51665
51666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51667
51668 2007-03-25  Bruno Haible  <bruno@clisp.org>
51669
51670         Avoid test failures on IRIX 6.5.
51671         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51672         (main): Use it.
51673         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51674         macros.
51675         (main): Use them.
51676
51677 2007-03-25  Bruno Haible  <bruno@clisp.org>
51678
51679         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51680         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51681         exists but doesn't work.
51682         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51683         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51685         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51686         math.h.
51687
51688 2007-03-25  Bruno Haible  <bruno@clisp.org>
51689
51690         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51691         returns inf. Needed on IRIX 6.5.
51692
51693 2007-03-25  Bruno Haible  <bruno@clisp.org>
51694
51695         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51696         (main): Use isnanl instead of x != x idiom.
51697         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51698
51699         * tests/test-frexp.c: Include isnan.h.
51700         (main): Use isnan instead of x != x idiom.
51701         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51702
51703 2007-03-25  Bruno Haible  <bruno@clisp.org>
51704
51705         * tests/test-frexp.c (NaN): New function/macro.
51706         (main): Use it instead of 0.0 / 0.0.
51707         * tests/test-isnan.c (NaN): New function/macro.
51708         (main): Use it instead of 0.0 / 0.0.
51709         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51710         (test_function): Use it instead of 0.0 / 0.0.
51711         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51712         (test_function): Use it instead of 0.0 / 0.0.
51713         * tests/test-snprintf-posix.h (NaN): New function/macro.
51714         (test_function): Use it instead of 0.0 / 0.0.
51715         * tests/test-sprintf-posix.h (NaN): New function/macro.
51716         (test_function): Use it instead of 0.0 / 0.0.
51717         * tests/test-fprintf-posix.h (NaN): New function/macro.
51718         (test_function): Use it instead of 0.0 / 0.0.
51719         * tests/test-printf-posix.h (NaN): New function/macro.
51720         (test_function): Use it instead of 0.0 / 0.0.
51721
51722         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51723
51724 2007-03-25  Bruno Haible  <bruno@clisp.org>
51725
51726         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51727
51728 2007-03-25  Bruno Haible  <bruno@clisp.org>
51729
51730         * lib/regexec.c (merge_state_with_log): Make static.
51731
51732 2007-03-25  Bruno Haible  <bruno@clisp.org>
51733
51734         * lib/trigl.c (kernel_rem_pio2): Make static.
51735
51736 2007-03-25  Bruno Haible  <bruno@clisp.org>
51737
51738         * lib/sincosl.c (sincosl_table): Make static.
51739
51740 2007-03-25  Bruno Haible  <bruno@clisp.org>
51741
51742         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51743         if the compiler does not support C99.
51744
51745 2007-03-25  Bruno Haible  <bruno@clisp.org>
51746
51747         * modules/time (Makefile.am): Ensure all rule action lines start with a
51748         tab.
51749
51750 2007-03-24  Bruno Haible  <bruno@clisp.org>
51751
51752         * modules/tsearch-tests: New file.
51753         * tests/test-tsearch.sh: New file.
51754         * tests/test-tsearch.c: New file, mostly copied from glibc.
51755
51756         * modules/search-tests: New file.
51757         * tests/test-search.c: New file.
51758
51759         * modules/search: New file.
51760         * lib/search_.h: New file, incorporating lib/tsearch.h.
51761         * m4/search_h.m4: New file.
51762         * lib/tsearch.h: Remove file.
51763         * lib/tsearch.c: Include search.h instead of tsearch.h.
51764         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51765         HAVE_TSEARCH.
51766         * modules/tsearch (Files): Remove lib/tsearch.h.
51767         (Depends-on): Add search.
51768         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51769         (Include): Change tsearch.h into search.h.
51770
51771 2007-03-24  Bruno Haible  <bruno@clisp.org>
51772
51773         * modules/fpucw: New file.
51774         * lib/fpucw.h: New file.
51775         * lib/frexp.c: Include fpucw.h.
51776         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51777         (FUNC): Use them.
51778         * lib/printf-frexp.c: Include fpucw.h.
51779         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51780         (FUNC): Use them.
51781         * lib/vasnprintf.c: Include fpucw.h.
51782         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51783         'long double' calculations.
51784         * tests/test-frexpl.c: Include fpucw.h.
51785         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51786         * tests/test-printf-frexpl.c: Include fpucw.h.
51787         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51788         * modules/frexpl (Depends-on): Add fpucw.
51789         * modules/printf-frexpl (Depends-on): Likewise.
51790         * modules/fprintf-posix (Depends-on): Likewise.
51791         * modules/snprintf-posix (Depends-on): Likewise.
51792         * modules/sprintf-posix (Depends-on): Likewise.
51793         * modules/vasnprintf-posix (Depends-on): Likewise.
51794         * modules/vasprintf-posix (Depends-on): Likewise.
51795         * modules/vfprintf-posix (Depends-on): Likewise.
51796         * modules/vsnprintf-posix (Depends-on): Likewise.
51797         * modules/vsprintf-posix (Depends-on): Likewise.
51798         * modules/frexpl-tests (Depends-on): Likewise.
51799         * modules/printf-frexpl-tests (Depends-on): Likewise.
51800
51801 2007-03-24  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/float+.h: New file.
51804         * lib/isnan.c: Include float+.h.
51805         (SIZE): New macro.
51806         (FUNC): Compare only SIZE bytes of the value.
51807         * lib/vasnprintf.c: Include float+.h.
51808         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51809         SIZEOF_LDBL or SIZEOF_DBL bytes.
51810         * modules/isnan-nolibm (Files): Add lib/float+.h.
51811         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51812         * modules/isnanl (Files): Add lib/float+.h.
51813         * modules/vasnprintf (Files): Add lib/float+.h.
51814
51815 2007-03-24  Bruno Haible  <bruno@clisp.org>
51816
51817         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51818         include isnanl-nolibm.h.
51819
51820 2007-03-24  Bruno Haible  <bruno@clisp.org>
51821
51822         * tests/test-read-file.c (main): Don't produce spurious output for
51823         expected situations. Make the test fail if it encountered unexpected
51824         results.
51825
51826 2007-03-24  Bruno Haible  <bruno@clisp.org>
51827
51828         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51829         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51830
51831 2007-03-24  Bruno Haible  <bruno@clisp.org>
51832
51833         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51834
51835 2007-03-24  Bruno Haible  <bruno@clisp.org>
51836
51837         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51838         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51839
51840         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51841         * modules/utf8-ucs4: Turn into a symbolic link to module
51842         unistr/u8-mbtouc.
51843
51844         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51845         utf8-ucs4-unsafe.
51846         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51847         unistr/u8-mbtouc-unsafe.
51848
51849         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51850         * modules/utf16-ucs4: Turn into a symbolic link to module
51851         unistr/u16-mbtouc.
51852
51853         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51854         utf16-ucs4-unsafe.
51855         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51856         unistr/u16-mbtouc-unsafe.
51857
51858         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51859         * modules/ucs4-utf8: Turn into a symbolic link to module
51860         unistr/u8-ubtomb.
51861
51862         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51863         * modules/ucs4-utf16: Turn into a symbolic link to module
51864         unistr/u16-ubtomb.
51865
51866 2007-03-24  Bruno Haible  <bruno@clisp.org>
51867
51868         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51869         Enable the function only if HAVE_INLINE.
51870         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51871         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51872         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51873         Enable the function only if HAVE_INLINE.
51874         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51875         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51876         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51877         Enable the function only if HAVE_INLINE.
51878         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51879         Enable the function only if HAVE_INLINE.
51880         * modules/utf8-ucs4: Update.
51881         * modules/utf8-ucs4-unsafe: Update.
51882         * modules/utf16-ucs4: Update.
51883         * modules/utf16-ucs4-unsafe: Update.
51884         * modules/ucs4-utf8: Update.
51885         * modules/ucs4-utf16: Update.
51886
51887 2007-03-24  Bruno Haible  <bruno@clisp.org>
51888
51889         * lib/utf8-ucs4.h: Remove file.
51890         * lib/utf8-ucs4-unsafe.h: Remove file.
51891         * lib/utf16-ucs4.h: Remove file.
51892         * lib/utf16-ucs4-unsafe.h: Remove file.
51893         * lib/ucs4-utf8.h: Remove file.
51894         * lib/ucs4-utf16.h: Remove file.
51895         * lib/unistr.h: Include their previous contents.
51896         * m4/utf-ucs4.m4: Remove file.
51897         * m4/ucs4-utf.m4: Remove file.
51898         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51899         (Depends-on): Add unistr/base.
51900         (configure.ac): Remove gl_UTF_UCS4.
51901         (Makefile.am): Update.
51902         (Include): Change to unistr.h.
51903         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51904         (Depends-on): Add unistr/base.
51905         (configure.ac): Remove gl_UTF_UCS4.
51906         (Makefile.am): Update.
51907         (Include): Change to unistr.h.
51908         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51909         (Depends-on): Add unistr/base.
51910         (configure.ac): Remove gl_UTF_UCS4.
51911         (Makefile.am): Update.
51912         (Include): Change to unistr.h.
51913         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51914         (Depends-on): Add unistr/base.
51915         (configure.ac): Remove gl_UTF_UCS4.
51916         (Makefile.am): Update.
51917         (Include): Change to unistr.h.
51918         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51919         (Depends-on): Add unistr/base.
51920         (configure.ac): Remove gl_UCS4_UTF.
51921         (Makefile.am): Update.
51922         (Include): Change to unistr.h.
51923         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51924         (Depends-on): Add unistr/base.
51925         (configure.ac): Remove gl_UCS4_UTF.
51926         (Makefile.am): Update.
51927         (Include): Change to unistr.h.
51928         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51929         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51930         utf8-ucs4-unsafe.h.
51931         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51932         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51933         utf16-ucs4-unsafe.h.
51934         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51935         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51936         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51937         * lib/unistr/u8-strchr.c: Likewise.
51938         * lib/unistr/u8-strrchr.c: Likewise.
51939         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51940         * lib/unistr/u16-strchr.c: Likewise.
51941         * lib/unistr/u16-strrchr.c: Likewise.
51942         * lib/striconveh.c: Update.
51943         * lib/linebreak.c: Update.
51944
51945 2007-03-24  Bruno Haible  <bruno@clisp.org>
51946
51947         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51948         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51949
51950 2007-03-22  Bruno Haible  <bruno@clisp.org>
51951
51952         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51953
51954 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51955
51956         * MODULES.html.sh (File system functions): New module write-any-file.
51957         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51958         * m4/write-any-file.m4: New files.
51959
51960 2007-03-23  Eric Blake  <ebb9@byu.net>
51961
51962         * gnulib-tool: Rearrange space-tab sequences, since some editors
51963         like to eat them.
51964
51965 2007-03-23  Eric Blake  <ebb9@byu.net>
51966
51967         * lib/version-etc.c (version_etc_va): Update license wording to
51968         be more concise.  Recommended by Richard Stallman.
51969
51970 2007-03-22  Bruno Haible  <bruno@clisp.org>
51971
51972         * lib/poll.c (MSG_PEEK): New fallback definition.
51973
51974 2007-03-22  Bruno Haible  <bruno@clisp.org>
51975
51976         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51977         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51978         (main): Update.
51979         Fixes a compilation error on BeOS.
51980
51981 2007-03-22  Bruno Haible  <bruno@clisp.org>
51982
51983         * modules/frexpl-tests: New file.
51984         * tests/test-frexpl.c: New file.
51985
51986         * modules/frexpl: New file.
51987         * m4/frexpl.m4: New file.
51988         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51989         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51991         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51992         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51993         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51994
51995 2007-03-22  Bruno Haible  <bruno@clisp.org>
51996
51997         * lib/frexpl.c: Share code with lib/frexp.c.
51998         * modules/mathl (Files): Add lib/frexp.c.
51999         (Depends-on): Add isnanl-nolibm.
52000
52001 2007-03-22  Bruno Haible  <bruno@clisp.org>
52002
52003         * modules/printf-frexp (Files): Add m4/frexp.m4.
52004         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52005         only if the found frexp function actually works.
52006
52007 2007-03-22  Bruno Haible  <bruno@clisp.org>
52008
52009         * lib/frexp.c: Remove older implementation that uses divisions.
52010
52011 2007-03-21  Bruno Haible  <bruno@clisp.org>
52012
52013         * modules/frexp-tests: New file.
52014         * tests/test-frexp.c: New file.
52015
52016         * modules/frexp: New file.
52017         * lib/frexp.c: New file.
52018         * m4/frexp.m4: New file.
52019         * lib/math_.h (frexp): New declaration.
52020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52021         REPLACE_FREXP.
52022         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52023
52024 2007-03-21  Bruno Haible  <bruno@clisp.org>
52025
52026         * modules/isnanl-tests: New file.
52027         * tests/test-isnanl.c: New file.
52028
52029         * modules/isnanl: New file.
52030         * lib/isnanl.h: New file.
52031         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52032         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52033         gl_FUNC_ISNANL_WORKS.
52034         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52035         New macros.
52036
52037 2007-03-21  Bruno Haible  <bruno@clisp.org>
52038
52039         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52040         lib/isnanl.h.
52041         (Include): Update.
52042         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52043         * lib/vasnprintf.c: Update.
52044         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52045         tests/test-isnanl.h, remove tests/test-isnanl.c.
52046         (Makefile.am): Update.
52047         * tests/test-isnanl-nolibm.c: New file.
52048         * tests/test-isnanl.h: New file.
52049         * tests/test-isnanl.c: Remove file.
52050
52051 2007-03-21  Jim Meyering  <jim@meyering.net>
52052
52053         When trying to open ".", treat ESTALE like EACCES.
52054         * lib/savewd.c (savewd_save): Resort to forking not just upon
52055         failure with EACCES, but also when errno is ESTALE.
52056
52057 2007-03-20  Bruno Haible  <bruno@clisp.org>
52058
52059         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52060         Needed on AIX 5.1. Reported by Matthew Woehlke.
52061
52062 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52063
52064         Suggestions by Bruno Haible:
52065         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52066         our own.
52067         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52068         * modules/acl (Depends-on): Add gettext.
52069
52070 2007-03-19  Bruno Haible  <bruno@clisp.org>
52071
52072         * modules/iconvme: Remove file.
52073         * lib/iconvme.h: Remove file.
52074         * lib/iconvme.c: Remove file.
52075         * m4/iconvme.m4: Remove file.
52076
52077 2007-03-19  Bruno Haible  <bruno@clisp.org>
52078
52079         * doc/relocatable-maint.texi: Break long shell script line.
52080         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52081
52082 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52083
52084         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52085         handle file_has_acl.
52086         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52087         * lib/acl.c: Move header inclusions and related macro defns into
52088         lib/acl-internal.h.
52089         (S_ISLNK): Remove defn, since that's now done for us.
52090         (file_has_acl): Move to lib/file-has-acl.c.
52091         Call acl_trivial if available.  This is the crucial part of the fix.
52092         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52093         shared within the library.  Rewrite a bit, partly to make it compatible
52094         with the GNU coding style.
52095         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52096         Remove unnecessary double-quotes.
52097         Don't test for acl_to_text; the build will catch that.
52098         Replace acl_entries if it doesn't exist and it is needed.
52099         Check for -lsec and acl_trivial (as used on Solaris 10).
52100         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52101         lib/file-has-acl.c.
52102         (Depends-on): Add sys_stat, for S_ISLNK.
52103
52104 2007-03-19  Ben Pfaff  <blp@gnu.org>
52105
52106         * doc/gnulib.texi: Fix typos.
52107         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52108
52109 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52110
52111         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52112         If size is zero here, buf must be zero.
52113
52114 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52115
52116         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52117         <bruno@clisp.org>.
52118
52119 2007-03-18  Bruno Haible  <bruno@clisp.org>
52120
52121         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52122         Suggested by Eric Blake.
52123
52124 2007-03-18  Ben Pfaff  <blp@gnu.org>
52125
52126         * doc/relocatable.texi: Recommend using as prefix a directory
52127         that does not exist and will never be created.  Based on
52128         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52129         and others.
52130
52131 2007-03-17  Bruno Haible  <bruno@clisp.org>
52132
52133         * lib/fchownat.c: Include lchown.h.
52134
52135 2007-03-17  Bruno Haible  <bruno@clisp.org>
52136
52137         Fix endless loop when the given allocated size was > INT_MAX.
52138         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52139         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52140         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52141         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52142         * lib/sprintf.c (sprintf): Likewise.
52143
52144 2007-03-17  Bruno Haible  <bruno@clisp.org>
52145
52146         * tests/test-argp-2.sh (func_compare): Output a context diff.
52147
52148 2007-03-17  Bruno Haible  <bruno@clisp.org>
52149
52150         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52151         locale's decimal-point character.
52152
52153 2007-03-17  Bruno Haible  <bruno@clisp.org>
52154
52155         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52156         before comparing it. Needed because on some platforms (e.g. x86) a
52157         'long double' occupies less bytes than sizeof (long double).
52158
52159 2007-03-17  Bruno Haible  <bruno@clisp.org>
52160
52161         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52162         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52163         * tests/test-getaddrinfo.c (simple): Likewise.
52164         * tests/test-read-file.c (main): Likewise.
52165
52166 2007-03-17  Bruno Haible  <bruno@clisp.org>
52167
52168         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52169
52170 2007-03-17  Bruno Haible  <bruno@clisp.org>
52171
52172         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52173         unused variable.
52174
52175 2007-03-17  Bruno Haible  <bruno@clisp.org>
52176
52177         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52178         * tests/test-c-strncasecmp.c: Likewise.
52179
52180 2007-03-17  Bruno Haible  <bruno@clisp.org>
52181
52182         * modules/stdlib (Depends-on): Add unistd.
52183         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52184         Needed for MacOS X 10.3.
52185
52186 2007-03-17  Bruno Haible  <bruno@clisp.org>
52187
52188         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52189
52190 2007-03-17  Bruno Haible  <bruno@clisp.org>
52191
52192         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52193
52194 2007-03-17  Bruno Haible  <bruno@clisp.org>
52195
52196         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52197         to reflect files copied from gnulib (with or without modifications).
52198         Suggested by Jim Meyering.
52199
52200 2007-03-17  Eric Blake  <ebb9@byu.net>
52201
52202         * NEWS: Document stdlib change from 2007-02-18.
52203
52204 2007-03-17  Jim Meyering  <jim@meyering.net>
52205
52206         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52207         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52208         someone uses a name containing shell meta-characters.
52209         Reported by Alfred M. Szmidt.
52210
52211         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52212
52213 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52214
52215         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52216         and copy gettext configuration files only if configure.ac contains
52217         a use of AM_GNU_GETTEXT_VERSION.
52218
52219 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52220
52221         * build-aux/bootstrap (gnulib_name): New variable.
52222         (gnulib_tool_options): Use it.
52223
52224 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52225
52226         * tests/test-des.c: Use new namespace.
52227
52228 2007-03-15  Bruno Haible  <bruno@clisp.org>
52229
52230         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52231         Reported by James Youngman <jay@gnu.org>.
52232
52233 2007-03-15  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52236         declared prototype. Needed with cc on OSF/1 5.1.
52237
52238 2007-03-15  Bruno Haible  <bruno@clisp.org>
52239
52240         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52241         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52242         (struct gl_list_implementation): Add dispose_fn argument to the
52243         'create_empty', 'create' methods.
52244         (struct gl_list_impl_base): Add field 'dispose_fn'.
52245         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52246         argument.
52247         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52248         dispose_fn argument.
52249         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52250         dispose_fn on the dropped values.
52251         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52252         dispose_fn argument.
52253         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52254         dropped values.
52255         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52256         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52257         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52258         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52259         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52260         argument.
52261         (gl_tree_list_free): Call dispose_fn on the dropped values.
52262         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52263         the dropped values.
52264         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52265         Add dispose_fn argument.
52266         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52267         Call dispose_fn on the dropped values.
52268         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52269         Add dispose_fn argument.
52270         (gl_sublist_create): Initialize the 'dispose_fn' field.
52271         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52272         * tests/test-array_list.c (main): Update.
52273         * tests/test-carray_list.c (main): Update.
52274         * tests/test-avltree_list.c (main): Update.
52275         * tests/test-rbtree_list.c (main): Update.
52276         * tests/test-avltreehash_list.c (main): Update.
52277         * tests/test-rbtreehash_list.c (main): Update.
52278         * tests/test-linked_list.c (main): Update.
52279         * tests/test-linkedhash_list.c (main): Update.
52280         * tests/test-array_oset.c (main): Update.
52281
52282 2007-03-15  Bruno Haible  <bruno@clisp.org>
52283
52284         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52285         (gl_oset_create_empty): Add dispose_fn argument.
52286         (struct gl_oset_implementation): Add dispose_fn argument to
52287         'create_empty' method.
52288         (struct gl_oset_impl_base): Add dispose_fn field.
52289         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52290         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52291         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52292         values.
52293         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52294         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52295         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52296         dropped value.
52297         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52298         dropped value.
52299         * tests/test-array_oset.c (main): Update.
52300         * tests/test-avltree_oset.c (main): Update.
52301         * tests/test-rbtree_oset.c (main): Update.
52302         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52303
52304 2007-03-13  Bruno Haible  <bruno@clisp.org>
52305
52306         * tests/test-stdbool.c (i): Update after last patch.
52307
52308 2007-03-12  Bruno Haible  <bruno@clisp.org>
52309
52310         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52311         the iswprint macro. Needed on Solaris 2.5.1.
52312
52313 2007-03-12  Bruno Haible  <bruno@clisp.org>
52314
52315         * tests/test-printf-frexp.c (main): Declare x as volatile.
52316
52317 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52318
52319         * doc/gnulib.texi (Build robot for gnulib): New section.
52320
52321 2007-03-12  Jim Meyering  <jim@meyering.net>
52322
52323         * build-aux/bootstrap: New file.
52324         * build-aux/bootstrap.conf: New file, from coreutils.
52325
52326 2007-03-11  Bruno Haible  <bruno@clisp.org>
52327
52328         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52329
52330 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52331
52332         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52333         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52334         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52335
52336 2007-03-11  Bruno Haible  <bruno@clisp.org>
52337
52338         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52339         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52340
52341 2007-03-11  Bruno Haible  <bruno@clisp.org>
52342
52343         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52344         formula. Needed for SunPRO C 5.0.
52345
52346 2007-03-11  Bruno Haible  <bruno@clisp.org>
52347
52348         * modules/long-options (Depends-on): Add getopt.
52349
52350 2007-03-11  Bruno Haible  <bruno@clisp.org>
52351
52352         * modules/modechange (Depends-on): Add stdbool.
52353
52354 2007-03-11  Bruno Haible  <bruno@clisp.org>
52355
52356         * modules/i-ring (Depends-on): Add stdbool.
52357
52358 2007-03-11  Bruno Haible  <bruno@clisp.org>
52359
52360         * modules/gc-des (Depends-on): Add stdbool.
52361
52362 2007-03-11  Bruno Haible  <bruno@clisp.org>
52363
52364         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52365
52366 2007-03-11  Bruno Haible  <bruno@clisp.org>
52367
52368         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52369
52370 2007-03-11  Bruno Haible  <bruno@clisp.org>
52371
52372         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52373
52374 2007-03-11  Bruno Haible  <bruno@clisp.org>
52375
52376         * lib/vasnprintf.c (sprintf): Undefine.
52377
52378 2007-03-11  Bruno Haible  <bruno@clisp.org>
52379
52380         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52381         initializers in SunPRO C and Compaq C compilers.
52382
52383 2007-03-11  Bruno Haible  <bruno@clisp.org>
52384
52385         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52386         decrementing code ANSI C compliant.
52387
52388 2007-03-11  Bruno Haible  <bruno@clisp.org>
52389
52390         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52391         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52392
52393 2007-03-11  Bruno Haible  <bruno@clisp.org>
52394
52395         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52396         <stdbool.h> substitute doesn't pass.
52397
52398 2007-03-11  Bruno Haible  <bruno@clisp.org>
52399
52400         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52401
52402 2007-03-11  Bruno Haible  <bruno@clisp.org>
52403
52404         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52405         script, for submission to autobuild.josefsson.org.
52406
52407 2007-03-10  Bruno Haible  <bruno@clisp.org>
52408
52409         * modules/canonicalize-lgpl-tests: New file.
52410         * tests/test-canonicalize-lgpl.sh: New file.
52411         * tests/test-canonicalize-lgpl.c: New file.
52412
52413         * modules/c-strcase-tests: New file.
52414         * tests/test-c-strcase.sh: New file.
52415         * tests/test-c-strcasecmp.c: New file.
52416         * tests/test-c-strncasecmp.c: New file.
52417
52418         * modules/atexit-tests: New file.
52419         * tests/test-atexit.sh: New file.
52420         * tests/test-atexit.c: New file.
52421
52422 2007-03-10  Bruno Haible  <bruno@clisp.org>
52423
52424         * tests/test-binary-io.sh: Use temporary filenames that are not so
52425         likely to clash with those of other tests (in a parallel make).
52426         * tests/test-binary-io.c: Likewise.
52427
52428 2007-03-10  Bruno Haible  <bruno@clisp.org>
52429
52430         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52431         fallback; use #error instead.
52432         Suggested by Simon Josefsson.
52433
52434 2007-03-10  Bruno Haible  <bruno@clisp.org>
52435
52436         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52437         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52438         first and the last.
52439
52440 2007-03-10  Bruno Haible  <bruno@clisp.org>
52441
52442         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52443
52444 2007-03-10  Bruno Haible  <bruno@clisp.org>
52445
52446         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52447         "make distcheck".
52448         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52449         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52450         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52451
52452 2007-03-10  Bruno Haible  <bruno@clisp.org>
52453
52454         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52455         variable.
52456         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52457         variable.
52458
52459 2007-03-09  Eric Blake  <ebb9@byu.net>
52460         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52461
52462         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52463         types are not being provided by gnulib.
52464         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52465         types are supported.
52466
52467 2007-03-10  Bruno Haible  <bruno@clisp.org>
52468
52469         * lib/stdio_.h (__attribute__): New macro.
52470         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52471         vsprintf): Specify __attribute__ __format__ for GCC.
52472         Suggested by Eric Blake.
52473
52474 2007-03-09  Bruno Haible  <bruno@clisp.org>
52475
52476         * modules/printf-posix-tests: New file.
52477         * tests/test-printf-posix.sh: New file.
52478         * tests/test-printf-posix.c: New file.
52479
52480         * modules/printf-posix: New file.
52481         * lib/printf.c: New file.
52482         * m4/printf-posix-rpl.m4: New file.
52483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52484         REPLACE_PRINTF.
52485         * lib/stdio_.h (printf): New declaration.
52486         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52487         ____strfmon____): New macros.
52488         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52489         REPLACE_PRINTF.
52490
52491 2007-03-09  Bruno Haible  <bruno@clisp.org>
52492
52493         * tests/test-vasnprintf-posix2.sh: New file.
52494         * tests/test-vasnprintf-posix2.c: New file.
52495         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52496         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52497         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52498
52499         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52500         a locale dependent decimal point, rather than always '.'.
52501
52502 2007-03-09  Eric Blake  <ebb9@byu.net>
52503
52504         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52505         spite of platforms like Tandem/NSK that define it to -1.
52506
52507 2007-03-08  Bruno Haible  <bruno@clisp.org>
52508
52509         * modules/vprintf-posix-tests: New file.
52510         * tests/test-vprintf-posix.sh: New file.
52511         * tests/test-vprintf-posix.c: New file.
52512         * tests/test-printf-posix.h: New file.
52513
52514         * modules/vprintf-posix: New file.
52515         * lib/vprintf.c: New file.
52516         * m4/vprintf-posix.m4: New file.
52517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52518         REPLACE_VPRINTF.
52519         * lib/stdio_.h (vprintf): New declaration.
52520         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52521         REPLACE_VPRINTF.
52522
52523 2007-03-08  Bruno Haible  <bruno@clisp.org>
52524
52525         * modules/fprintf-posix-tests: New file.
52526         * tests/test-fprintf-posix.sh: New file.
52527         * tests/test-fprintf-posix.c: New file.
52528
52529         * modules/fprintf-posix: New file.
52530         * lib/fprintf.c: New file.
52531         * m4/fprintf-posix.m4: New file.
52532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52533         REPLACE_FPRINTF.
52534         * lib/stdio_.h (fprintf): New declaration.
52535         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52536         REPLACE_FPRINTF.
52537
52538 2007-03-08  Bruno Haible  <bruno@clisp.org>
52539
52540         * modules/vfprintf-posix-tests: New file.
52541         * tests/test-vfprintf-posix.sh: New file.
52542         * tests/test-vfprintf-posix.c: New file.
52543         * tests/test-fprintf-posix.h: New file.
52544         * tests/test-fprintf-posix.out: New file.
52545
52546         * modules/vfprintf-posix: New file.
52547         * lib/vfprintf.c: New file.
52548         * m4/vfprintf-posix.m4: New file.
52549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52550         REPLACE_VFPRINTF.
52551         * lib/stdio_.h (vfprintf): New declaration.
52552         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52553         REPLACE_VFPRINTF.
52554
52555 2007-03-08  Bruno Haible  <bruno@clisp.org>
52556
52557         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52558
52559 2007-03-08  Bruno Haible  <bruno@clisp.org>
52560
52561         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52562         instead of 'expr' invocations.
52563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52565         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52567         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52568         Suggested by Paul Eggert.
52569
52570 2007-03-08  Bruno Haible  <bruno@clisp.org>
52571
52572         * modules/fseterr-tests: New file.
52573         * tests/test-fseterr.c: New file.
52574
52575         * modules/fseterr: New file.
52576         * lib/fseterr.h: New file.
52577         * lib/fseterr.c: New file.
52578
52579 2007-03-08  Bruno Haible  <bruno@clisp.org>
52580
52581         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52582         * lib/getopt_.h: Likewise.
52583         * lib/mbswidth.h: Likewise.
52584         * lib/setenv.h: Likewise.
52585         * lib/vasnprintf.h: Likewise.
52586         * lib/vasprintf.h: Likewise.
52587         * lib/verror.h: Likewise.
52588         * lib/xsetenv.h: Likewise.
52589         * lib/xvasprintf.h: Likewise.
52590
52591 2007-03-08  Jim Meyering  <jim@meyering.net>
52592
52593         * users.txt: Add parted.
52594
52595         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52596
52597 2007-03-07  Bruno Haible  <bruno@clisp.org>
52598
52599         * m4/printf.m4: Make the shell script snippets copy&pastable.
52600
52601 2007-03-02  Bruno Haible  <bruno@clisp.org>
52602
52603         * lib/netinet_in_.h: New file.
52604         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52605         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52606         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52607         (Depends-on): Add absolute-header.
52608         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52609         into netinet/in.h.
52610
52611 2007-03-03  Bruno Haible  <bruno@clisp.org>
52612
52613         * lib/sys_select_.h: New file.
52614         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52615         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52616         * modules/sys_select (Files): Add lib/sys_select_.h.
52617         (Depends-on): Add absolute-header.
52618         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52619         into sys/select.h.
52620
52621 2007-03-02  Bruno Haible  <bruno@clisp.org>
52622
52623         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52624         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52625         values.
52626         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52627         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52628         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52629         * modules/sys_socket (Depends-on): Add absolute-header.
52630         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52631         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52632         (Include): Remove requirement of inclusion of <sys/types.h>.
52633
52634 2007-03-02  Bruno Haible  <bruno@clisp.org>
52635
52636         * lib/byteswap_.h (bswap_32): Fix formula.
52637
52638 2007-03-06  Bruno Haible  <bruno@clisp.org>
52639
52640         * modules/sprintf-posix-tests: New file.
52641         * tests/test-sprintf-posix.c: New file.
52642
52643         * modules/sprintf-posix: New file.
52644         * lib/sprintf.c: New file.
52645         * m4/sprintf-posix.m4: New file.
52646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52647         REPLACE_SPRINTF.
52648         * lib/stdio_.h (sprintf): New declaration.
52649         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52650         REPLACE_SPRINTF.
52651
52652 2007-03-06  Bruno Haible  <bruno@clisp.org>
52653
52654         * modules/vsprintf-posix-tests: New file.
52655         * tests/test-vsprintf-posix.c: New file.
52656         * tests/test-sprintf-posix.h: New file.
52657
52658         * modules/vsprintf-posix: New file.
52659         * lib/vsprintf.c: New file.
52660         * m4/vsprintf-posix.m4: New file.
52661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52662         REPLACE_VSPRINTF.
52663         * lib/stdio_.h (vsprintf): New declaration.
52664         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52665         REPLACE_VSPRINTF.
52666
52667 2007-03-06  Bruno Haible  <bruno@clisp.org>
52668
52669         * modules/vsnprintf (Depend-on): Remove minmax.
52670
52671 2007-03-06  Bruno Haible  <bruno@clisp.org>
52672
52673         * modules/snprintf-posix-tests: New file.
52674         * tests/test-snprintf-posix.c: New file.
52675
52676         * modules/snprintf-posix: New file.
52677         * m4/snprintf-posix.m4: New file.
52678         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52679         gl_FUNC_SNPRINTF.
52680         (gl_FUNC_SNPRINTF): Invoke it.
52681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52682         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52683         is set.
52684         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52685
52686 2007-03-06  Bruno Haible  <bruno@clisp.org>
52687
52688         * modules/vsnprintf-posix-tests: New file.
52689         * tests/test-vsnprintf-posix.c: New file.
52690         * tests/test-snprintf-posix.h: New file.
52691
52692         * modules/vsnprintf-posix: New file.
52693         * m4/vsnprintf-posix.m4: New file.
52694         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52695         gl_FUNC_VSNPRINTF.
52696         (gl_FUNC_VSNPRINTF): Invoke it.
52697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52698         * lib/stdio_.h (vsnprintf): Define as a replacement if
52699         REPLACE_VSNPRINTF is set.
52700         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52701
52702 2007-03-06  Bruno Haible  <bruno@clisp.org>
52703
52704         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52705         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52706
52707 2007-03-06  Bruno Haible  <bruno@clisp.org>
52708
52709         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52710         (asinl): Declare also if HAVE_DECL_ASINL is set.
52711         (atanl): Declare also if HAVE_DECL_ATANL is set.
52712         (ceill): Declare also if HAVE_DECL_CEILL is set.
52713         (cosl): Declare also if HAVE_DECL_COSL is set.
52714         (expl): Declare also if HAVE_DECL_EXPL is set.
52715         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52716         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52717         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52718         (logl): Declare also if HAVE_DECL_LOGL is set.
52719         (sinl): Declare also if HAVE_DECL_SINL is set.
52720         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52721         (tanl): Declare also if HAVE_DECL_TANL is set.
52722         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52724         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52725         declaration of frexpl, ldexpl.
52726         * modules/printf-frexpl (Depends-on): Add math.
52727         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52728
52729 2007-03-05  Bruno Haible  <bruno@clisp.org>
52730
52731         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52732         frexpl and ldexpl are declared.
52733         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52734
52735 2007-03-05  Bruno Haible  <bruno@clisp.org>
52736
52737         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52738         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52739
52740 2007-03-05  Bruno Haible  <bruno@clisp.org>
52741
52742         * lib/stdio_.h: Include <stddef.h>.
52743
52744 2007-03-05  Bruno Haible  <bruno@clisp.org>
52745
52746         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52747
52748 2007-03-05  Bruno Haible  <bruno@clisp.org>
52749
52750         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52751         NetBSD 4, from Ralf Wildenhues.
52752
52753 2007-03-04  Bruno Haible  <bruno@clisp.org>
52754
52755         * lib/vasprintf.h: Update #if logic for the case when the functions
52756         exist but are overridden.
52757
52758 2007-03-04  Bruno Haible  <bruno@clisp.org>
52759
52760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52761         implementations: glibc-2.4 and MacOS X 10.3.
52762         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52763         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52764         * tests/test-vasprintf-posix.c (test_function): Likewise.
52765
52766 2007-03-04  Bruno Haible  <bruno@clisp.org>
52767
52768         * modules/vasprintf-posix-tests: New file.
52769         * tests/test-vasprintf-posix.c: New file.
52770
52771         * modules/vasprintf-posix: New file.
52772         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52773         defined.
52774         * m4/vasprintf-posix.m4: New file.
52775         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52776         gl_FUNC_VASPRINTF.
52777         (gl_FUNC_VASPRINTF): Invoke it.
52778         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52779         here.
52780         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52781
52782 2007-03-04  Bruno Haible  <bruno@clisp.org>
52783
52784         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52785         REPLACE_GETTIMEOFDAY.
52786         * modules/sys_time (Makefile.am): Likewise.
52787         * m4/sys_time_h.m4: Likewise.
52788         * m4/gettimeofday.m4: Likewise.
52789
52790 2007-03-04  Bruno Haible  <bruno@clisp.org>
52791
52792         * modules/vasnprintf-posix-tests: New file.
52793         * tests/test-vasnprintf-posix.c: New file.
52794
52795         * modules/vasnprintf-posix: New file.
52796         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52797         printf-frexpl.h.
52798         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52799         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52800         REPLACE_VASNPRINTF is defined.
52801         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52802         gl_FUNC_VASNPRINTF.
52803         (gl_FUNC_VASNPRINTF): Invoke it.
52804         * m4/vasnprintf-posix.m4: New file.
52805         * m4/printf.m4: New file.
52806
52807 2007-03-04  Bruno Haible  <bruno@clisp.org>
52808
52809         Compile progreloc.c only if --enable-relocatable is specified.
52810         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52811         if --enable-relocatable was specified.
52812         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52813         lib_SOURCES.
52814
52815 2007-03-04  Jim Meyering  <jim@meyering.net>
52816
52817         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52818         Use it consistently, rather than enumerating errno constants.
52819
52820 2007-03-04  Bruno Haible  <bruno@clisp.org>
52821
52822         * modules/xvasprintf-tests: New file.
52823         * tests/test-xvasprintf.c: New file.
52824
52825         * modules/vasprintf-tests: New file.
52826         * tests/test-vasprintf.c: New file.
52827
52828         * modules/vasnprintf-tests: New file.
52829         * tests/test-vasnprintf.c: New file.
52830
52831         * modules/vsnprintf-tests: New file.
52832         * tests/test-vsnprintf.c: New file.
52833
52834         * modules/snprintf-tests: New file.
52835         * tests/test-snprintf.c: New file.
52836
52837 2007-03-04  Bruno Haible  <bruno@clisp.org>
52838
52839         Compile relocatable.c only if --enable-relocatable is specified.
52840         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52841         gl_RELOCATABLE_LIBRARY.
52842         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52843         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52844         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52845         gl_RELOCATABLE_LIBRARY.
52846         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52847         (Makefile.am): Remove lib_SOURCES.
52848         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52849         gl_RELOCATABLE_LIBRARY.
52850         (Makefile.am): Remove lib_SOURCES.
52851         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52852         always.
52853         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52854         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52855
52856 2007-03-04  Bruno Haible  <bruno@clisp.org>
52857
52858         * modules/argmatch-tests: New file.
52859         * tests/test-argmatch.c: New file.
52860
52861         * tests/test-allocsa.c (main): Halve the number of loop runs.
52862
52863         * modules/alloca-opt-tests: New file.
52864         * tests/test-alloca-opt.c: New file.
52865
52866 2007-03-04  Jim Meyering  <jim@meyering.net>
52867
52868         Work around difference between Linux ACLs and Solaris 10 ZFS.
52869         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52870         for EINVAL.
52871
52872 2007-03-03  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/relocatable-prog (Depends-on): Add back progreloc's
52875         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52876
52877 2007-03-03  Bruno Haible  <bruno@clisp.org>
52878
52879         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52880         * modules/relocatable-lib: New file.
52881
52882 2007-03-03  Bruno Haible  <bruno@clisp.org>
52883
52884         * modules/relocatable-prog: Renamed from modules/relocatable.
52885         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52886
52887 2007-03-03  Bruno Haible  <bruno@clisp.org>
52888
52889         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52890         m4/relocatable-lib.m4.
52891         (Depends-on): Remove 'relocatable'.
52892         (configure.ac): Add gl_RELOCATABLE_NOP.
52893
52894 2007-03-03  Bruno Haible  <bruno@clisp.org>
52895
52896         * modules/relocatable-prog-wrapper: New file.
52897         * modules/relocatable (Depends-on): Add it. Remove all other
52898         dependencies except progname.
52899         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52900
52901         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52902         (gl_FUNC_STRERROR): Nop.
52903         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52904
52905         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52906         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52907
52908         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52909         (gl_FUNC_READLINK): Update.
52910
52911         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52912
52913 2007-03-03  Bruno Haible  <bruno@clisp.org>
52914
52915         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52916         * modules/xreadlink (Depends-on): Add unistd.
52917         * modules/xreadlink-with-size (Depends-on): Likewise.
52918
52919 2007-03-03  Bruno Haible  <bruno@clisp.org>
52920
52921         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52922         extracted from gt_FUNC_SETENV.
52923         (gt_FUNC_SETENV): Remove macro.
52924         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52925         remove gt_FUNC_SETENV.
52926
52927 2007-03-03  Bruno Haible  <bruno@clisp.org>
52928
52929         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52930         ENABLE_RELOCATABLE here.
52931         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52932
52933 2007-03-03  Bruno Haible  <bruno@clisp.org>
52934
52935         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52936         * tests/test-rbtreehash_list.c: Include progname.h.
52937         (main): Call set_program_name.
52938
52939         * modules/rbtree-oset-tests (Depends-on): Add progname.
52940         * tests/test-rbtree_oset.c: Include progname.h.
52941         (main): Call set_program_name.
52942
52943         * modules/rbtree-list-tests (Depends-on): Add progname.
52944         * tests/test-rbtree_list.c: Include progname.h.
52945         (main): Call set_program_name.
52946
52947         * modules/linked-list-tests (Depends-on): Add progname.
52948         * tests/test-linked_list.c: Include progname.h.
52949         (main): Call set_program_name.
52950
52951 2007-03-03  Bruno Haible  <bruno@clisp.org>
52952
52953         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52954         All uses of __restrict changed to _Restrict_.
52955         * lib/glob_.h (__restrict): Remove macro.
52956
52957 2007-03-02  Bruno Haible  <bruno@clisp.org>
52958
52959         * modules/gettext (configure.ac): Require gettext infrastructure
52960         from version 0.16.1.
52961
52962 2007-03-02  Bruno Haible  <bruno@clisp.org>
52963
52964         * modules/linkedhash-list-tests (Depends-on): Add progname.
52965         * tests/test-linkedhash_list.c: Include progname.h.
52966         (main): Call set_program_name.
52967
52968         * modules/carray-list-tests (Depends-on): Add progname.
52969         * tests/test-carray_list.c: Include progname.h.
52970         (main): Call set_program_name.
52971
52972         * modules/avltreehash-list-tests (Depends-on): Add progname.
52973         * tests/test-avltreehash_list.c: Include progname.h.
52974         (main): Call set_program_name.
52975
52976         * modules/avltree-oset-tests (Depends-on): Add progname.
52977         * tests/test-avltree_oset.c: Include progname.h.
52978         (main): Call set_program_name.
52979
52980         * modules/avltree-list-tests (Depends-on): Add progname.
52981         * tests/test-avltree_list.c: Include progname.h.
52982         (main): Call set_program_name.
52983
52984         * modules/array-oset-tests (Depends-on): Add progname.
52985         * tests/test-array_oset.c: Include progname.h.
52986         (main): Call set_program_name.
52987
52988         * modules/array-list-tests (Depends-on): Add progname.
52989         * tests/test-array_list.c: Include progname.h.
52990         (main): Call set_program_name.
52991
52992         * modules/argp-tests (Depends-on): Add progname.
52993         * tests/test-argp.c: Include argp.h first. Include progname.h.
52994         (main): Call set_program_name.
52995
52996 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52997
52998         * doc/gnulib-tool.texi (Initial import): Reword description of
52999         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53000         limited effect even if defined after the first system include.
53001
53002 2007-03-01  Bruno Haible  <bruno@clisp.org>
53003
53004         * build-aux/config.libpath: Update to libtool-1.5.22.
53005         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53006
53007 2007-03-01  Bruno Haible  <bruno@clisp.org>
53008
53009         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53010         foo_CFLAGS.
53011         Reported by Ralf Wildenhues.
53012
53013 2007-03-01  Bruno Haible  <bruno@clisp.org>
53014
53015         * build-aux/install-reloc: Remove object files left over by some
53016         compilers.
53017         Reported by Ralf Wildenhues.
53018
53019 2007-03-01  Bruno Haible  <bruno@clisp.org>
53020
53021         * build-aux/install-reloc: Break long lines.
53022
53023 2007-03-01  Bruno Haible  <bruno@clisp.org>
53024
53025         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53026         Reported by Ralf Wildenhues.
53027
53028 2007-03-01  Bruno Haible  <bruno@clisp.org>
53029
53030         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53031         include ordering constraints.
53032
53033 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53034
53035         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53037         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53038         as another example.
53039         * lib/time_.h: Fix misspelling.
53040         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53041         Require gl_HEADER_TIME_H_DEFAULTS.
53042         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53043         * m4/time_r.m4 (gl_TIME_R): Likewise.
53044         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53045
53046 2007-03-01  Bruno Haible  <bruno@clisp.org>
53047
53048         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53049         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53050
53051 2007-03-01  Jim Meyering  <jim@meyering.net>
53052
53053         * modules/xreadlink (Maintainer): Add my name.
53054         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53055
53056 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53057             Bruno Haible  <bruno@clisp.org>
53058
53059         * build-aux/install-reloc: Compile also c-ctype.c.
53060         * build-aux/relocatable.sh.in: New file.
53061         * doc/relocatable.texi: New file.
53062         * doc/relocatable-maint.texi: New file.
53063         * doc/gnulib.texi: Include relocatable-maint.texi.
53064         * lib/progreloc.c: Include unistd.h unconditionally.
53065         * lib/relocwrapper.c: Include unistd.h unconditionally.
53066         Include c-ctype.h.
53067         (add_dotbin): Use c_tolower.
53068         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53069         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53070         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53071         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53072         to m4/relocatable-lib.m4.
53073         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53074         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53075         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53076         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53077         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53078         * modules/relocatable: New file.
53079         * modules/relocatable-lib: New file.
53080         * modules/relocatable-script: New file.
53081
53082 2007-02-28  Bruno Haible  <bruno@clisp.org>
53083
53084         Import --enable-relocatable infrastructure.
53085         * build-aux/config.libpath: New file, from GNU gettext.
53086         * build-aux/install-reloc: New file, from GNU gettext.
53087         * build-aux/reloc-ldflags: New file, from GNU gettext.
53088         * lib/relocatable.h: New file, from GNU gettext.
53089         * lib/relocatable.c: New file, from GNU gettext.
53090         * lib/relocwrapper.c: New file, from GNU gettext.
53091         * m4/relocatable.m4: New file, from GNU gettext.
53092
53093 2007-02-28  Bruno Haible  <bruno@clisp.org>
53094
53095         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53096
53097         * modules/xreadlink: New file, from GNU gettext with modifications.
53098         * lib/xreadlink.c: New file, from GNU gettext.
53099         * lib/xreadlink.h: Add comments.
53100         (xreadlink): New declaration.
53101
53102         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53103         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53104         lib/xreadlink-with-size.c.
53105         (configure.ac): Remove gl_XREADLINK invocation.
53106         (Makefile.am): Augment lib_SOURCES.
53107         * m4/xreadlink.m4: Remove file.
53108         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53109         (xreadlink_with_size): Renamed from xreadink.
53110         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53111         * modules/canonicalize (Depends-on): Replace xreadlink with
53112         xreadlink-with-size.
53113         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53114
53115 2007-02-25  Jim Meyering  <jim@meyering.net>
53116
53117         * build-aux/announce-gen: When complaining about excess arguments,
53118         list them.
53119
53120 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53121
53122         * README: Document signed integer overflow situation more
53123         accurately.
53124
53125 2007-02-25  Bruno Haible  <bruno@clisp.org>
53126
53127         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53128         'a' or 'A' conversion.
53129
53130 2007-02-25  Bruno Haible  <bruno@clisp.org>
53131
53132         * modules/filename: Renamed from modules/pathname.
53133         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53134         lib/concatpath.c with lib/concat-filename.c.
53135         (Makefile.am): Update.
53136         (Include): Replace pathname.h with filename.h.
53137         * lib/filename.h: Renamed from lib/pathname.h.
53138         (concatenated_filename): Renamed from concatenated_pathname.
53139         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53140         (concatenated_filename): Renamed from concatenated_pathname.
53141         * lib/findprog.c: Include filename.h instead of pathname.h.
53142         (find_in_path): Update.
53143         * lib/javacomp.c: Include filename.h instead of pathname.h.
53144         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53145         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53146         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53147         is_oldgcj_14_13_usable, is_javac_usable): Update.
53148         * lib/javaexec.c: Include filename.h instead of pathname.h.
53149         (execute_java_class): Update.
53150         * modules/findprog: Update.
53151         * modules/javacomp: Update.
53152         * modules/javaexec: Update.
53153         * MODULES.html.sh (File system functions): Add 'filename', remove
53154         'pathname'.
53155
53156 2007-02-25  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/printf-frexpl-tests: New file.
53159         * tests/test-printf-frexpl.c: New file.
53160
53161         * modules/printf-frexpl: New file.
53162         * lib/printf-frexpl.h: New file.
53163         * lib/printf-frexpl.c: New file.
53164         * m4/printf-frexpl.m4: New file.
53165
53166 2007-02-25  Bruno Haible  <bruno@clisp.org>
53167
53168         * modules/printf-frexp-tests: New file.
53169         * tests/test-printf-frexp.c: New file.
53170
53171         * modules/printf-frexp: New file.
53172         * lib/printf-frexp.h: New file.
53173         * lib/printf-frexp.c: New file.
53174         * m4/printf-frexp.m4: New file.
53175
53176 2007-02-25  Bruno Haible  <bruno@clisp.org>
53177
53178         Assume automake >= 1.10 for the tests.
53179         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53180         * modules/arctwo-tests: Likewise.
53181         * modules/argp-tests: Likewise.
53182         * modules/avltree-list-tests: Likewise.
53183         * modules/avltree-oset-tests: Likewise.
53184         * modules/avltreehash-list-tests: Likewise.
53185         * modules/carray-list-tests: Likewise.
53186         * modules/crc-tests: Likewise.
53187         * modules/des-tests: Likewise.
53188         * modules/gc-arcfour-tests: Likewise.
53189         * modules/gc-arctwo-tests: Likewise.
53190         * modules/gc-des-tests: Likewise.
53191         * modules/gc-hmac-md5-tests: Likewise.
53192         * modules/gc-hmac-sha1-tests: Likewise.
53193         * modules/gc-md2-tests: Likewise.
53194         * modules/gc-md4-tests: Likewise.
53195         * modules/gc-md5-tests: Likewise.
53196         * modules/gc-pbkdf2-sha1-tests: Likewise.
53197         * modules/gc-rijndael-tests: Likewise.
53198         * modules/gc-sha1-tests: Likewise.
53199         * modules/gc-tests: Likewise.
53200         * modules/getaddrinfo-tests: Likewise.
53201         * modules/hmac-md5-tests: Likewise.
53202         * modules/hmac-sha1-tests: Likewise.
53203         * modules/linked-list-tests: Likewise.
53204         * modules/linkedhash-list-tests: Likewise.
53205         * modules/lock-tests: Likewise.
53206         * modules/md2-tests: Likewise.
53207         * modules/md4-tests: Likewise.
53208         * modules/md5-tests: Likewise.
53209         * modules/rbtree-list-tests: Likewise.
53210         * modules/rbtree-oset-tests: Likewise.
53211         * modules/rbtreehash-list-tests: Likewise.
53212         * modules/read-file-tests: Likewise.
53213         * modules/rijndael-tests: Likewise.
53214         * modules/stdint-tests: Likewise.
53215         * modules/tls-tests: Likewise.
53216
53217 2007-02-24  Bruno Haible  <bruno@clisp.org>
53218
53219         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53220         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53221         function; instead check whether isnan with a double argument links.
53222         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53223         function; instead check whether isnan with a 'long double' argument
53224         links.
53225         Reported by Eric Blake <ebb9@byu.net>.
53226
53227 2007-02-24  Bruno Haible  <bruno@clisp.org>
53228
53229         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53230         defined.
53231         * lib/isnanl.c: Remove all code. Just include isnan.c.
53232         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53233
53234 2007-02-25  Jim Meyering  <jim@meyering.net>
53235
53236         Avoid conflicting types for 'unsetenv' on FreeBSD.
53237         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53238         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53239         in stdlib.h.
53240
53241 2007-02-24  Bruno Haible  <bruno@clisp.org>
53242
53243         * modules/isnanl-nolibm-tests: New file.
53244         * tests/test-isnanl.c: New file.
53245
53246         * modules/isnanl-nolibm: New file.
53247         * lib/isnanl.h: New file.
53248         * lib/isnanl.c: New file.
53249         * m4/isnanl.m4: New file.
53250
53251 2007-02-24  Bruno Haible  <bruno@clisp.org>
53252
53253         * modules/isnan-nolibm-tests: New file.
53254         * tests/test-isnan.c: New file.
53255
53256         * modules/isnan-nolibm: New file.
53257         * lib/isnan.h: New file.
53258         * lib/isnan.c: New file.
53259         * m4/isnan.m4: New file.
53260
53261 2007-02-24  Bruno Haible  <bruno@clisp.org>
53262
53263         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53264         assume that an exponent fits in 20 bits.
53265
53266 2007-02-24  Jim Meyering  <jim@meyering.net>
53267
53268         * m4/regex.m4: Update the description of the configure-time option,
53269         --without-included-regex, to state accurately what the defaults are,
53270         and perhaps to give people an idea why using this option is risky.
53271
53272 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53273
53274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53275         loops on small arguments.  This attempts to avoid the problem
53276         Bruno Haible reported for AIX 4.3.2 in
53277         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53278
53279 2007-02-23  Bruno Haible  <bruno@clisp.org>
53280
53281         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53282         Needed for help2man.
53283
53284 2007-02-23  Karl Berry  <karl@gnu.org>
53285
53286         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53287         exists, foo.h should be cvs-ignored, not committed.
53288
53289 2007-02-23  Eric Blake  <ebb9@byu.net>
53290
53291         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53292         * lib/stat-time.h (includes): Likewise.
53293         * lib/utimecmp.c (includes): Likewise.
53294         * lib/utimens.h (includes): Likewise.
53295         * lib/getdate.y (includes): Also include "timespec.h" for use
53296         internal to the module.
53297         * modules/utimens (Depends-on): Revert yesterday's patch.
53298         * modules/nanosleep (Depends-on): Add missing dependency.
53299
53300 2007-02-22  Bruno Haible  <bruno@clisp.org>
53301
53302         * lib/glob.c: Don't include getlogin_r.h.
53303
53304 2007-02-22  Jim Meyering  <jim@meyering.net>
53305
53306         * modules/utimens (Depends-on): Add timespec, required for
53307         utimens.h's inclusion of timespec.h.
53308
53309 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53310
53311         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53312         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53313         Schwab in
53314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53315         I'll try to think of a better way to fix the Solaris problem.
53316
53317         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53318         like glibc; on Solaris 10, it fails with errno == EINVAL.
53319         POSIX says the behavior is unspecified if the first argument is NULL,
53320         so play it safe and never pass NULL to the system getcwd.
53321
53322 2007-02-21  Jim Meyering  <jim@meyering.net>
53323
53324         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53325         of gettimeofday.  It would conflict with the one now always
53326         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53327         an IRIX 6.5 build failure.
53328
53329 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53330
53331         Minor fixups to port to Solaris 10 with Sun C 5.8.
53332         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53333         * modules/getcwd (Depends-on): Add dirfd.
53334         * lib/putenv.c (putenv): #undef it.
53335         (rpl_putenv): New decl.
53336         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53337
53338 2007-02-20  Bruno Haible  <bruno@clisp.org>
53339
53340         * modules/stdio-tests: New file.
53341         * tests/test-stdio.c: New file.
53342
53343         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53344         (Depends-on): Add stdio.
53345         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53346         (Include): Use <stdio.h> instead of vsnprintf.h.
53347         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53348         HAVE_DECL_VSNPRINTF.
53349         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53350
53351         * modules/snprintf (Files): Remove lib/snprintf.h.
53352         (Depends-on): Add stdio.
53353         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53354         (Include): Use <stdio.h> instead of snprintf.h.
53355         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53356         HAVE_DECL_SNPRINTF.
53357         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53358         * lib/getaddrinfo.c: Likewise.
53359
53360         * modules/stdio: New file.
53361         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53362         * lib/snprintf.h: Remove file.
53363         * lib/vsnprintf.h: Remove file.
53364         * lib/.cppi-disable: Remove snprintf.h.
53365         * m4/stdio_h.m4: New file.
53366         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53367
53368 2007-02-20  Jim Meyering  <jim@meyering.net>
53369
53370         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53371         used by e.g., mingw.  From Bruno Haible.
53372
53373 2007-02-19  Bruno Haible  <bruno@clisp.org>
53374
53375         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53376         warnings.
53377         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53378
53379 2007-02-19  Bruno Haible  <bruno@clisp.org>
53380
53381         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53382         from mingw users.
53383
53384 2007-02-19  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53387         warnings.
53388         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53389
53390 2007-02-19  Jim Meyering  <jim@meyering.net>
53391
53392         Don't use FD after a successful "fdopendir (fd)".
53393         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53394         Reset it by calling dirfd on the just-obtained DIR*.
53395
53396         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53397         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53398
53399 2007-02-18  Bruno Haible  <bruno@clisp.org>
53400
53401         * lib/readlink.c: Include <unistd.h>.
53402         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53403         HAVE_READLINK.
53404         * modules/readlink (Depends-on): Add unistd.
53405         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53406         (Include): Add <unistd.h>.
53407
53408         * lib/getlogin_r.h: Remove file.
53409         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53410         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53411         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53412         HAVE_DECL_GETLOGIN_R.
53413         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53414         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53415         (Include): Use <unistd.h> instead of getlogin_r.h.
53416
53417         * lib/getcwd.h: Remove file.
53418         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53419         * lib/xgetcwd.c: Likewise.
53420         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53421         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53422         * modules/getcwd (Files): Remove lib/getcwd.h.
53423         (Depends-on): Add unistd.
53424         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53425         (Include): Use <unistd.h> instad of getcwd.h.
53426
53427         * lib/ftruncate.c: Include <unistd.h> first.
53428         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53429         Set HAVE_FTRUNCATE.
53430         * modules/ftruncate (Depends-on): Add unistd.
53431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53432
53433         * lib/fchdir.c: Include <unistd.h> first.
53434         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53436         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53437         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53438         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53439
53440         * lib/dup2.c: Include <unistd.h> first.
53441         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53442         HAVE_DUP2.
53443         * modules/dup2 (Depends-on): Add unistd.
53444         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53445
53446         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53447         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53448         REPLACE_CHOWN. Don't define chown as a macro here.
53449         * modules/chown (Depends-on): Add unistd.
53450         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53451
53452         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53453         Add definition for GL_LINK_WARNING.
53454         (chown, dup2): New declarations.
53455         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53456         link warning.
53457         (ftruncate): New declaration.
53458         (getcwd): New declaration, taken from old getcwd.h.
53459         (getlogin_r): New declaration, taken from old getlogin_r.h.
53460         (readlink): New declaration.
53461         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53462         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53463         (gl_PREREQ_UNISTD): Remove macro.
53464         (gl_UNISTD_MODULE_INDICATOR): New macro.
53465         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53466         many new variables. Don't set UNISTD_H.
53467         * modules/unistd (Description): Change.
53468         (Depends-on): Add link-warning.
53469         (configure.ac): Update.
53470         (Makefile.am): Create unistd.h always. Substitute many new variables
53471         into it.
53472
53473 2007-02-18  Bruno Haible  <bruno@clisp.org>
53474
53475         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53476         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53477         HAVE_GETSUBOPT.
53478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53479         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53480         * lib/getsubopt.h: Remove file.
53481         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53482         (Depends-on): Add stdlib.
53483         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53484         (Includes): Use <stdlib.h> instead of getsubopt.h.
53485         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53486         Set HAVE_GETSUBOPT.
53487         * lib/getsubopt.c: Don't include getsubopt.h.
53488
53489 2007-02-18  Bruno Haible  <bruno@clisp.org>
53490
53491         * modules/fchdir (Depends-on): Add dup2.
53492
53493 2007-02-18  Bruno Haible  <bruno@clisp.org>
53494
53495         * lib/stdlib_.h: Handle glibc's special invocation convention
53496         specially.
53497
53498 2007-02-18  Bruno Haible  <bruno@clisp.org>
53499
53500         * modules/stdlib-tests: New file.
53501         * tests/test-stdlib.c: New file.
53502
53503         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53504         (Depends-on): Add stdlib.
53505         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53506         (Includes): Use <stdlib.h> instead of mkstemp.h.
53507         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53508         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53509         * lib/mkstemp.c: Don't include mkstemp.h.
53510         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53511         * lib/stdlib--.h: Don't include mkstemp.h.
53512
53513         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53514         (Depends-on): Add stdlib.
53515         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53516         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53517         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53518         HAVE_MKDTEMP.
53519         * lib/mkdtemp.c: Don't include mkdtemp.h.
53520         * lib/clean-temp.c: Don't include mkdtemp.h.
53521
53522         * modules/exit (Files): Remove lib/exit.h.
53523         (Depends-on): Add stdlib.
53524         (Makefile.am): Remove lib_SOURCES.
53525         (Include): Use <stdlib.h> instead of exit.h.
53526         * lib/argmatch.c: Don't include exit.h.
53527         * lib/execute.c: Likewise.
53528         * lib/pagealign_alloc.c: Likewise.
53529         * lib/pipe.c: Likewise.
53530         * lib/wait-process.c: Likewise.
53531         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53532         * lib/exitfail.c: Likewise.
53533         * lib/savewd.c: Likewise.
53534         * lib/xsetenv.c: Likewise.
53535
53536         * modules/stdlib: New file.
53537         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53538         and extra comments about mkstemp().
53539         * lib/exit.h: Remove file.
53540         * lib/mkdtemp.h: Remove file.
53541         * lib/mkstemp.h: Remove file.
53542         * m4/stdlib_h.m4: New file.
53543         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53544
53545 2007-02-18  Bruno Haible  <bruno@clisp.org>
53546
53547         * modules/math-tests: New file.
53548         * tests/test-math.c: New file.
53549
53550         * modules/math: New file.
53551         * modules/mathl (Files): Remove lib/mathl.h.
53552         (Depends-on): Add math.
53553         (Makefile.am): Don't mention mathl.h.
53554         (Include): Use <math.h> instead of mathl.h.
53555         * lib/math_.h: New file.
53556         * lib/mathl.h: Remove file.
53557         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53558         mathl.h.
53559         * lib/asinl.c: Likewise.
53560         * lib/atanl.c: Likewise.
53561         * lib/ceill.c: Likewise.
53562         * lib/cosl.c: Likewise.
53563         * lib/expl.c: Likewise.
53564         * lib/floorl.c: Likewise.
53565         * lib/frexpl.c: Likewise.
53566         * lib/ldexpl.c: Likewise.
53567         * lib/logl.c: Likewise.
53568         * lib/sincosl.c: Likewise.
53569         * lib/sinl.c: Likewise.
53570         * lib/sqrtl.c: Likewise.
53571         * lib/tanl.c: Likewise.
53572         * lib/trigl.c: Likewise.
53573         * m4/math_h.m4: New file.
53574         * MODULES.html.sh (Mathematics): Add math.
53575
53576 2007-02-17  Bruno Haible  <bruno@clisp.org>
53577
53578         * modules/wctype-tests: New file.
53579         * tests/test-wctype.c: New file.
53580
53581         * modules/wchar-tests: New file.
53582         * tests/test-wchar.c: New file.
53583
53584         * modules/unistd-tests: New file.
53585         * tests/test-unistd.c: New file.
53586
53587         * modules/time-tests: New file.
53588         * tests/test-time.c: New file.
53589
53590         * modules/sysexits-tests: New file.
53591         * tests/test-sysexits.c: New file.
53592
53593         * modules/sys_time-tests: New file.
53594         * tests/test-sys_time.c: New file.
53595
53596         * modules/sys_stat-tests: New file.
53597         * tests/test-sys_stat.c: New file.
53598
53599         * modules/sys_socket-tests: New file.
53600         * tests/test-sys_socket.c: New file.
53601
53602         * modules/sys_select-tests: New file.
53603         * tests/test-sys_select.c: New file.
53604
53605         * modules/string-tests: New file.
53606         * tests/test-string.c: New file.
53607
53608         * modules/stdbool-tests: New file.
53609         * tests/test-stdbool.c: New file.
53610
53611         * modules/netinet_in-tests: New file.
53612         * tests/test-netinet_in.c: New file.
53613
53614         * modules/inttypes-tests: New file.
53615         * tests/test-inttypes.c: New file.
53616
53617         * modules/fcntl-tests: New file.
53618         * tests/test-fcntl.c: New file.
53619
53620         * modules/byteswap-tests: New file.
53621         * tests/test-byteswap.c: New file.
53622
53623         * modules/arpa_inet-tests: New file.
53624         * tests/test-arpa_inet.c: New file.
53625
53626 2007-02-17  Bruno Haible  <bruno@clisp.org>
53627
53628         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53629         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53630         if the corresponding module is not enabled. Emit link warnings if
53631         the function is used nevertheless.
53632         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53633         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53634         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53635         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53636         * modules/inttypes (Depends-on): Add link-warning.
53637         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53638         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53639         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53640         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53641         * modules/imaxdiv (configure.ac): Likewise.
53642         * modules/strtoimax (configure.ac): Likewise.
53643         * modules/strtoumax (configure.ac): Likewise.
53644
53645 2007-02-17  Bruno Haible  <bruno@clisp.org>
53646
53647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53648         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53649         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53650         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53651
53652 2007-02-17  Bruno Haible  <bruno@clisp.org>
53653
53654         * modules/link-warning: New file.
53655         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53656         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53657         * modules/string (Depends-on): Add link-warning.
53658         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53659         string.h.
53660         * MODULES.html.sh (Support for building libraries and executables): Add
53661         link-warning.
53662
53663 2007-02-17  Bruno Haible  <bruno@clisp.org>
53664
53665         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53666         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53667         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53668         long lines.
53669
53670 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53671             Bruno Haible  <bruno@clisp.org>
53672
53673         * modules/tmpfile: New file.
53674         * lib/tmpfile.c: New file.
53675         * m4/tmpfile.m4: New file.
53676         * MODULES.html.sh (func_all_modules): New section "Input/output".
53677
53678 2007-02-15  Bruno Haible  <bruno@clisp.org>
53679
53680         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53681         (supports_delete_on_close): New function.
53682         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53683
53684 2007-02-14  Bruno Haible  <bruno@clisp.org>
53685
53686         * modules/mbspcasecmp-tests: New file.
53687         * tests/test-mbspcasecmp.sh: New file.
53688         * tests/test-mbspcasecmp.c: New file.
53689
53690         New module mbspcasecmp.
53691         * modules/mbspcasecmp: New file.
53692         * lib/mbspcasecmp.c: New file.
53693         * lib/string_.h (strncasecmp): Change warning message.
53694         (mbspcasecmp): New declaration.
53695         * m4/mbspcasecmp.m4: New file.
53696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53697         GNULIB_MBSPCASECMP.
53698         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53699         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53700
53701 2007-02-14  Bruno Haible  <bruno@clisp.org>
53702
53703         * modules/mbsncasecmp-tests: New file.
53704         * tests/test-mbsncasecmp.sh: New file.
53705         * tests/test-mbsncasecmp.c: New file.
53706
53707         New module mbsncasecmp.
53708         * modules/mbsncasecmp: New file.
53709         * lib/mbsncasecmp.c: New file.
53710         * lib/string_.h (mbsncasecmp): New declaration.
53711         * m4/mbsncasecmp.m4: New file.
53712         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53713         GNULIB_MBSNCASECMP.
53714         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53715         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53716
53717 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53718
53719         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53720         Verify that it doesn't overlap with our flags.
53721         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53722         do not have the desired effect in multibyte locales; instead, use
53723         mbscasecmp.
53724         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53725         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53726         we don't require GNU fnmatch ourselves (if our users require it, they
53727         should do so explicitly).
53728
53729         Fix regex code so it doesn't rely on strcasecmp.
53730         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53731         Otherwise, include gnulib's langinfo.h.
53732         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53733         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53734         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53735         * modules/regex (FILES): Remove m4/codeset.m4.
53736         (Depends-on): Add localcharset.  Remove strcase.
53737
53738 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53739
53740         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53741         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53742
53743 2007-02-13  Bruno Haible  <bruno@clisp.org>
53744
53745         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53746         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53747
53748 2007-02-12  Bruno Haible  <bruno@clisp.org>
53749
53750         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53751         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53752         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53753         time warning rather than a link error.
53754
53755 2007-02-12  Bruno Haible  <bruno@clisp.org>
53756
53757         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53758         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53759         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53760
53761 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53762
53763         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53764         args, not 2.
53765
53766 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53767
53768         New module 'time', so that apps can include <time.h> as per
53769         POSIX and GNU instead of separate include files like time_r.h
53770         and timegm.h.  This implementation tries out a simpler approach
53771         for replacing decls in standard include files (as compared to
53772         the string module), somewhat as an experiment.
53773
53774         * config/srclist.txt: Comment out mktime.c for now.
53775         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53776         since it doesn't apply any more.  Use generic wording instead.
53777         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53778         'time'.
53779         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53780         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53781         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53782         Don't include <sys/types.h>; no longer needed since we assume C89.
53783         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53784         * lib/strftime.c: Likewise.
53785         * lib/time_r.c: Likewise.
53786         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53787         * lib/nanosleep.c: Include <time.h> first, to check interface.
53788         * lib/strptime.c: Likewise.
53789         * lib/time_r.c: Likewise.
53790         * lib/timegm.c: Likewise.
53791         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53792         needed.
53793         * lib/timegm.c: Don't include timegm.h; no longer needed.
53794         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53795         time.h now handles any problems in that area.
53796         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53797         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53798         that time.h defines struct timespec.
53799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53800         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53801         handles that.
53802         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53803         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53804         needed.  Set REPLACE_LOCALTIME.
53805         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53806         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53807         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53808         nanosleep; time_h.m4 now does that.  Don't require
53809         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53810         module handles this now.
53811         * modules/getdate (Depends-on): Remove timespec.  Add time.
53812         * modules/nanosleep (Depends-on): Likewise.
53813         * modules/stat-time (Depends-on): Likewise.
53814         * modules/nanosleep (Include): Include time.h, not timespec.h.
53815         * modules/strptime (Files): Remove lib/strptime.h.
53816         (Depends-on): Add extensions, time.
53817         (Include): Include time.h, not strptime.h.
53818         * modules/time_r (Files): Remove lib/time_r.h.
53819         (Depends-on): Add time.
53820         (Include): Include time.h, not time_r.h.
53821         * modules/timegm: Likewise.
53822         * modules/timespec (Description): Now does timespec-related decls
53823         of our own, instead of struct timespec itself.
53824         (Depends-on): Add time; remove extensions.
53825         (Maintainer): Add self.
53826         * modules/utimecmp (Depends-on): Add time; remove timespec.
53827         * modules/utimens (Depends-on): Likewise.
53828         * modules/xnanosleep (Depends-on): Likewise.
53829
53830 2007-02-11  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/c-strstr.c: Include allocsa.h.
53833         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53834         * lib/c-strcasestr.c: Include allocsa.h.
53835         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53836         * lib/strcasestr.c: Include allocsa.h.
53837         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53838         * lib/mbsstr.c: Include allocsa.h.
53839         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53840         allocsa/freesa instead of malloc/free.
53841         * lib/mbscasestr.c: Include allocsa.h.
53842         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53843         allocsa/freesa instead of malloc/free.
53844         * modules/c-strstr (Depends-on): Add allocsa.
53845         * modules/c-strcasestr (Depends-on): Likewise.
53846         * modules/strcasestr (Depends-on): Likewise.
53847         * modules/mbsstr (Depends-on): Likewise.
53848         * modules/mbscasestr (Depends-on): Likewise.
53849
53850 2007-02-11  Bruno Haible  <bruno@clisp.org>
53851
53852         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53853
53854         * modules/mbsspn-tests: New file.
53855         * tests/test-mbsspn.sh: New file.
53856         * tests/test-mbsspn.c: New file.
53857
53858 2007-02-11  Bruno Haible  <bruno@clisp.org>
53859
53860         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53861
53862         * modules/mbspbrk-tests: New file.
53863         * tests/test-mbspbrk.sh: New file.
53864         * tests/test-mbspbrk.c: New file.
53865
53866 2007-02-11  Bruno Haible  <bruno@clisp.org>
53867
53868         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53869         unneeded cast.
53870
53871         * modules/mbscspn-tests: New file.
53872         * tests/test-mbscspn.sh: New file.
53873         * tests/test-mbscspn.c: New file.
53874
53875 2007-02-11  Bruno Haible  <bruno@clisp.org>
53876
53877         * modules/mbscasecmp-tests: New file.
53878         * tests/test-mbscasecmp.sh: New file.
53879         * tests/test-mbscasecmp.c: New file.
53880
53881 2007-02-11  Bruno Haible  <bruno@clisp.org>
53882
53883         Ensure O(n) worst-case complexity of mbscasestr.
53884         * lib/mbscasestr.c: Include stdbool.h.
53885         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53886         functions.
53887         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53888         the bookkeeping indicates that it's worth it.
53889         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53890
53891         * modules/mbscasestr-tests: New file.
53892         * tests/test-mbscasestr1.c: New file.
53893         * tests/test-mbscasestr2.sh: New file.
53894         * tests/test-mbscasestr2.c: New file.
53895         * tests/test-mbscasestr3.sh: New file.
53896         * tests/test-mbscasestr3.c: New file.
53897         * tests/test-mbscasestr4.sh: New file.
53898         * tests/test-mbscasestr4.c: New file.
53899         * m4/locale-tr.m4: New file.
53900
53901 2007-02-11  Bruno Haible  <bruno@clisp.org>
53902
53903         Ensure O(n) worst-case complexity of mbsstr.
53904         * lib/mbsstr.c: Include stdbool.h.
53905         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53906         functions.
53907         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53908         bookkeeping indicates that it's worth it.
53909         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53910
53911         * modules/mbsstr-tests: New file.
53912         * tests/test-mbsstr1.c: New file.
53913         * tests/test-mbsstr2.sh: New file.
53914         * tests/test-mbsstr2.c: New file.
53915         * tests/test-mbsstr3.sh: New file.
53916         * tests/test-mbsstr3.c: New file.
53917         * m4/locale-fr.m4: New file.
53918
53919 2007-02-11  Bruno Haible  <bruno@clisp.org>
53920
53921         * lib/mbsrchr.c (mbsrchr): Fix bug.
53922
53923         * modules/mbsrchr-tests: New file.
53924         * tests/test-mbsrchr.sh: New file.
53925         * tests/test-mbsrchr.c: New file.
53926
53927 2007-02-11  Bruno Haible  <bruno@clisp.org>
53928
53929         * lib/mbschr.c (mbschr): Fix bug.
53930
53931         * modules/mbschr-tests: New file.
53932         * tests/test-mbschr.sh: New file.
53933         * tests/test-mbschr.c: New file.
53934         * m4/locale-zh.m4: New file.
53935
53936 2007-02-11  Bruno Haible  <bruno@clisp.org>
53937
53938         Support for copying multibyte string iterators.
53939         * lib/mbiter.h: Include <string.h>.
53940         (mbiter_multi_copy): New function.
53941         (mbi_copy): New macro.
53942         * lib/mbuiter.h: Include <string.h>.
53943         (mbuiter_multi_copy): New function.
53944         (mbui_copy): New macro.
53945
53946 2007-02-11  Bruno Haible  <bruno@clisp.org>
53947
53948         New module mbslen.
53949         * modules/mbslen: New file.
53950         * lib/mbslen.c: New file.
53951         * lib/string_.h (mbslen): New declaration.
53952         * m4/mbslen.m4: New file.
53953         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53954         GNULIB_MBSLEN.
53955         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53956         * MODULES.html.sh (Internationalization functions): Add mbslen.
53957
53958 2007-02-11  Bruno Haible  <bruno@clisp.org>
53959
53960         Ensure O(n) worst-case complexity of strcasestr substitute.
53961         * lib/strcasestr.c: Include stdbool.h.
53962         (knuth_morris_pratt): New function.
53963         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53964         bookkeeping indicates that it's worth it.
53965         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53966
53967         * modules/strcasestr-tests: New file.
53968         * tests/test-strcasestr.c: New file.
53969
53970 2007-02-11  Bruno Haible  <bruno@clisp.org>
53971
53972         Ensure O(n) worst-case complexity of c_strcasestr.
53973         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53974         (knuth_morris_pratt): New function.
53975         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53976         the bookkeeping indicates that it's worth it.
53977         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53978
53979         * modules/c-strcasestr-tests: New file.
53980         * tests/test-c-strcasestr.c: New file.
53981
53982 2007-02-11  Bruno Haible  <bruno@clisp.org>
53983
53984         Ensure O(n) worst-case complexity of c_strstr.
53985         * lib/c-strstr.c: Include stdbool.h, string.h.
53986         (knuth_morris_pratt): New function.
53987         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53988         bookkeeping indicates that it's worth it.
53989         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53990
53991         * lib/c-strstr.c: Complete rewrite for maintainability.
53992
53993         * modules/c-strstr-tests: New file.
53994         * tests/test-c-strstr.c: New file.
53995
53996 2007-02-11  Bruno Haible  <bruno@clisp.org>
53997
53998         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53999         5.2.1 and earlier, whereby \055 was treated just like the range
54000         delimiter '-'.
54001         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54002
54003 2007-02-08  Bruno Haible  <bruno@clisp.org>
54004
54005         * modules/regex (Depends-on): Add stdbool.
54006         Reported by Dalibor Topic <robilad@kaffe.org>.
54007
54008 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54009
54010         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54011         Prefer returning from main to exiting from it.
54012         Remove unnecessary parens after sizeof.
54013
54014 2007-02-05  Bruno Haible  <bruno@clisp.org>
54015
54016         New module mbssep.
54017         * modules/mbssep: New file.
54018         * lib/mbssep.c: New file.
54019         * lib/string_.h (strsep): Add a conditional link warning.
54020         (mbssep): New declaration.
54021         * m4/mbssep.m4: New file.
54022         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54023         GNULIB_MBSSEP.
54024         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54025         * MODULES.html.sh (Internationalization functions): Add mbssep.
54026
54027 2007-02-05  Bruno Haible  <bruno@clisp.org>
54028
54029         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54030         Optimize search in case of 1 delimiter.
54031
54032 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54033
54034         * lib/acl.h: Include sys/types.h before sys/acl.h.
54035
54036 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54037
54038         Merge upstream fix for glibc bugzilla #3957:
54039
54040         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54041
54042         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54043         bit for RE_HAT_LISTS_NOT_NEWLINE.
54044         (build_charclass_op): Remove bogus comment.
54045
54046 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54047
54048         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54049
54050 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54051
54052         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54053         * lib/memmem.c [!defined _LIBC]: Include config.h.
54054
54055 2007-02-04  Bruno Haible  <bruno@clisp.org>
54056
54057         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54058         warning message.
54059
54060 2007-02-04  Bruno Haible  <bruno@clisp.org>
54061
54062         New module mbstok_r.
54063         * modules/mbstok_r: New file.
54064         * lib/mbstok_r.c: New file.
54065         * lib/string_.h (strtok_r): Change argument names to match the
54066         comments. Add a conditional link warning.
54067         (mbstok_r): New declaration.
54068         * m4/mbstok_r.m4: New file.
54069         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54070         GNULIB_MBSTOK_R.
54071         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54072         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54073
54074 2007-02-04  Bruno Haible  <bruno@clisp.org>
54075
54076         New module mbsspn.
54077         * modules/mbsspn: New file.
54078         * lib/mbsspn.c: New file.
54079         * lib/string_.h (strspn): Add a conditional link warning.
54080         (mbsspn): New declaration.
54081         * m4/mbsspn.m4: New file.
54082         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54083         GNULIB_MBSSPN.
54084         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54085         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54086
54087 2007-02-04  Bruno Haible  <bruno@clisp.org>
54088
54089         New module mbspbrk.
54090         * modules/mbspbrk: New file.
54091         * lib/mbspbrk.c: New file.
54092         * lib/string_.h (strpbrk): Add a conditional link warning.
54093         (mbspbrk): New declaration.
54094         * m4/mbspbrk.m4: New file.
54095         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54096         GNULIB_MBSPBRK.
54097         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54098         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54099
54100 2007-02-04  Bruno Haible  <bruno@clisp.org>
54101
54102         New module mbscspn.
54103         * modules/mbscspn: New file.
54104         * lib/mbscspn.c: New file.
54105         * lib/string_.h (strcspn): Add a conditional link warning.
54106         (mbscspn): New declaration.
54107         * m4/mbscspn.m4: New file.
54108         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54109         GNULIB_MBSCSPN.
54110         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54111         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54112
54113 2007-02-04  Bruno Haible  <bruno@clisp.org>
54114
54115         New module mbscasestr, reduced goal of strcasestr.
54116         * modules/mbscasestr: New file.
54117         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54118         (mbscasestr): Renamed from strcasestr.
54119         * lib/strcasestr.c: Don't include mbuiter.h.
54120         (strcasestr): Remove support for multibyte locales.
54121         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54122         Change the conditional link warning.
54123         (mbscasestr): New declaration.
54124         * m4/mbscasestr.m4: New file.
54125         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54126         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54127         REPLACE_STRCASESTR.
54128         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54130         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54131         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54132         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54133         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54134         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54135         (Depends-on): Remove mbuiter.
54136         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54137
54138 2007-02-04  Bruno Haible  <bruno@clisp.org>
54139
54140         Simplify handling of strncasecmp.
54141         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54142         the conditional link warning.
54143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54144         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54145         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54146         * modules/strcase (configure.ac): Don't invoke
54147         gl_STRING_MODULE_INDICATOR.
54148         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54149
54150 2007-02-04  Bruno Haible  <bruno@clisp.org>
54151
54152         New module mbscasecmp, reduced goal of strcasecmp.
54153         * modules/mbscasecmp: New file.
54154         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54155         (mbscasecmp): Renamed from strcasecmp.
54156         * lib/strcasecmp.c: Don't include mbuiter.h.
54157         (strcasecmp): Remove support for multibyte locales.
54158         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54159         Change the conditional link warning.
54160         (mbscasecmp): New declaration.
54161         * m4/mbscasecmp.m4: New file.
54162         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54163         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54164         REPLACE_STRCASECMP.
54165         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54166         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54167         GNULIB_MBSCASECMP.
54168         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54169         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54170         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54171         (Depends-on): Remove mbuiter.
54172         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54173
54174 2007-02-04  Bruno Haible  <bruno@clisp.org>
54175
54176         New module mbsstr. Remove module strstr.
54177         * modules/mbsstr: New file.
54178         * modules/strstr: Remove file.
54179         * lib/mbsstr.c: Renamed from lib/strstr.c.
54180         (mbsstr): Renamed from strstr.
54181         * lib/string_.h (strstr): Remove declaration. Change the conditional
54182         link warning.
54183         (mbsstr): New declaration.
54184         * m4/mbsstr.m4: New file.
54185         * m4/strstr.m4: Remove file.
54186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54187         REPLACE_STRSTR.
54188         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54189         Don't initialize GNULIB_STRSTR.
54190         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54191         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54192         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54193         (Support for systems lacking ANSI C 89): Remove strstr.
54194
54195 2007-02-04  Bruno Haible  <bruno@clisp.org>
54196
54197         New module mbsrchr.
54198         * modules/mbsrchr: New file.
54199         * lib/mbsrchr.c: New file.
54200         * lib/string_.h (strrchr): Add a conditional link warning.
54201         (mbsrchr): New declaration.
54202         * m4/mbsrchr.m4: New file.
54203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54204         GNULIB_MBSRCHR.
54205         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54206         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54207
54208 2007-02-04  Bruno Haible  <bruno@clisp.org>
54209
54210         New module mbschr.
54211         * modules/mbschr: New file.
54212         * lib/mbschr.c: New file.
54213         * lib/string_.h (strchr): Add a conditional link warning.
54214         (mbschr): New declaration.
54215         * m4/mbschr.m4: New file.
54216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54217         GNULIB_MBSCHR.
54218         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54219         * MODULES.html.sh (Internationalization functions): Add mbschr.
54220
54221 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54222
54223         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54224
54225         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54226
54227 2007-02-04  Bruno Haible  <bruno@clisp.org>
54228
54229         New module description section 'configure.ac-early'.
54230         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54231         (func_get_autoconf_early_snippet): New function.
54232         (func_import, func_create_testdir): Use it. Remove special cases for
54233         modules 'extensions' and 'lock'.
54234         * modules/extensions (configure.ac-early): Require
54235         gl_USE_SYSTEM_EXTENSIONS.
54236         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54237
54238 2007-02-04  Bruno Haible  <bruno@clisp.org>
54239
54240         Make use of gcj-4.3's -fsource and -ftarget option.
54241         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54242         and if so try the options -fsource and -ftarget.
54243         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54244         source_version, ftarget_option, target_version arguments.
54245         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54246         (is_envjavac_oldgcj_14_14_usable): Renamed from
54247         is_envjavac_gcj_14_14_usable.
54248         (is_envjavac_oldgcj_14_13_usable): Renamed from
54249         is_envjavac_gcj_14_13_usable.
54250         (is_gcj_present): Update.
54251         (is_gcj_43, is_gcj43_usable): New functions.
54252         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54253         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54254         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54255         try the options -fsource and -ftarget.
54256
54257 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54258
54259         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54260         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54261         larger value.
54262
54263 2007-02-03  Jim Meyering  <jim@meyering.net>
54264
54265         Give tools a better chance to allocate space for very large buffers.
54266         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54267
54268         Make pwd and readlink work also when run with an unreadable parent dir
54269         on systems with openat support.
54270         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54271         provided getcwd function, even when we have openat support.
54272         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54273
54274 2007-02-02  Bruno Haible  <bruno@clisp.org>
54275
54276         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54277         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54278         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54279         portability problems if one of these functions is only used on specific
54280         platforms.
54281         Reported by Paul Eggert.
54282
54283 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54284
54285         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54286         is causing more trouble than it's curing.
54287         * lib/regex_internal.h (__mempcpy): Remove.
54288         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54289         (and make the code a tad smaller to boot).
54290         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54291
54292 2007-02-02  Jim Meyering  <jim@meyering.net>
54293
54294         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54295         section, not in the Makefile.am: one.
54296
54297 2007-02-02  Eric Blake  <ebb9@byu.net>
54298
54299         * lib/strchrnul.c: Always include config.h first.
54300
54301         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54302         gnulib strstr is not necessary here.
54303
54304 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54305
54306         * m4/socklen.m4: Fix typo.
54307
54308 2007-02-02  Eric Blake  <ebb9@byu.net>
54309
54310         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54311         * modules/netinet_in (Makefile.am): Likewise.
54312
54313 2007-02-01  Bruno Haible  <bruno@clisp.org>
54314
54315         * lib/string_.h (GL_LINK_WARNING): New macro.
54316         (strcasecmp, strstr, strcasestr): If provided by the system,
54317         conditionally define as a macro that leads to a warning instead of to
54318         an error.
54319         (strncasecmp): Conditionally define as a macro that leads to a warning.
54320
54321 2007-02-01  Karl Berry  <karl@gnu.org>
54322
54323         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54324
54325 2007-02-01  Bruno Haible  <bruno@clisp.org>
54326
54327         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54328         renamings.
54329
54330 2007-02-01  Eric Blake  <ebb9@byu.net>
54331
54332         * modules/regex (Depends-on): Revert dependence on mempcpy.
54333         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54334         module's definition of mempcpy.
54335         Reported by Paul Eggert.
54336
54337 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54338
54339         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54340         the symbol XYZ before redefining it.  This fixes a problem with
54341         programs that don't use XYZ, when compiled on systems that define
54342         XYZ to something else.
54343
54344 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54345
54346         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54347         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54348         writeable to group or other and (2) is intended to have a special
54349         mode bit that is set or cleared.  In such a case, the directory
54350         should be neither group- nor other-writeable until the special
54351         mode bits are right.
54352
54353 2007-01-31  Eric Blake  <ebb9@byu.net>
54354
54355         * modules/mountlist (Depends-on): Add strstr.
54356
54357         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54358         bug.
54359         * modules/string (Makefile.am): Remove redundant replacement.
54360         * modules/regex (Depends-on): Add mempcpy.
54361
54362 2007-01-31  Bruno Haible  <bruno@clisp.org>
54363
54364         New module description field 'Link'.
54365         * gnulib-tool (func_usage): Document --extract-link-directive.
54366         (sed_extract_prog): Recognize 'Link' directive.
54367         (func_get_link_directive): New function.
54368         (func_import): Show summary of link directives.
54369         Handle --extract-link-directive option.
54370         * modules/acl (Link): New section.
54371         * modules/clock-time (Link): New section.
54372         * modules/euidaccess (Link): New section.
54373         * modules/gettext (Link): New section.
54374         * modules/iconv (Link): New section.
54375         * modules/lock (Link): New section.
54376         * modules/nanosleep (Link): New section.
54377         * modules/readline (Link): New section.
54378
54379 2007-01-27  Bruno Haible  <bruno@clisp.org>
54380
54381         Enforce the use of gnulib modules for unportable <string.h> functions.
54382         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54383         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54384         (gl_HEADER_STRING_H_BODY): Require it.
54385         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54386         the symbol XYZ to one that gives a link error.
54387         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54388         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54389         * modules/mempcpy (configure.ac): Likewise.
54390         * modules/memrchr (configure.ac): Likewise.
54391         * modules/stpcpy (configure.ac): Likewise.
54392         * modules/stpncpy (configure.ac): Likewise.
54393         * modules/strcase (configure.ac): Likewise.
54394         * modules/strcasestr (configure.ac): Likewise.
54395         * modules/strchrnul (configure.ac): Likewise.
54396         * modules/strdup (configure.ac): Likewise.
54397         * modules/strndup (configure.ac): Likewise.
54398         * modules/strnlen (configure.ac): Likewise.
54399         * modules/strpbrk (configure.ac): Likewise.
54400         * modules/strsep (configure.ac): Likewise.
54401         * modules/strstr (configure.ac): Likewise.
54402         * modules/strtok_r (configure.ac): Likewise.
54403
54404 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54405
54406         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54407
54408 2007-01-30  Jim Meyering  <jim@meyering.net>
54409
54410         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54411
54412 2007-01-29  Bruno Haible  <bruno@clisp.org>
54413
54414         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54415         * lib/execute.c: Likewise.
54416         * lib/pipe.c: Likewise.
54417         * lib/printf-args.h: Likewise.
54418         * lib/printf-args.c: Likewise.
54419         * lib/printf-parse.c: Likewise.
54420         * lib/vasnprintf.c: Likewise.
54421
54422 2007-01-29  Eric Blake  <ebb9@byu.net>
54423
54424         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54425         declaration.
54426
54427 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54428
54429         * lib/strptime.h (strptime): Use 'restrict' for args where
54430         POSIX requires this.
54431         * lib/strptime.c (strptime): Likewise.
54432         Change license notice from LGPL to GPL, since gnulib-tool will
54433         change this as needed.
54434         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54435         defined.
54436         Include "strptime.h" first, to check interface.
54437         Do not #undef _LIBC and _NL_CURRENT.
54438         Do not include <stdlib.h>; no longer needed.
54439         Include "time_r.h" and declare ptime_locale_status
54440         only if _LIBC is not defined.
54441         (__P): Remove unused macro.
54442         (match_string): Bring back glibc version, but use it only if _LIBC
54443         is defined.
54444         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54445         Remove unnecessary assertion and abort() call.
54446         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54447         * m4/strptime.m4: Fix serial number comment.
54448         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54449         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54450         (Depends-on): Add time_r.
54451
54452 2007-01-29  Bruno Haible  <bruno@clisp.org>
54453
54454         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54455         strptime.
54456         * modules/strptime (Depends-on): Add stdbool.
54457         * lib/strptime.h: Include <time.h> always. Add comments.
54458
54459 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54460
54461         * modules/strptime: New file.
54462         * lib/strptime.h: New file.
54463         * lib/strptime.c: New file.
54464         * m4/strptime.m4: New file.
54465
54466 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54467
54468         * MODULES.html.sh: New module mpsort.
54469         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54470
54471         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54472         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54474         All uses changed.
54475         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54476         All uses changed.
54477         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54478         to _Restrict_.
54479         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54480         the parameter matches the prototype.
54481
54482 2007-01-28  Jim Meyering  <jim@meyering.net>
54483
54484         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54485         sys/time.h here, reverting that part of the previous patch:
54486         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54487
54488 2007-01-28  Bruno Haible  <bruno@clisp.org>
54489
54490         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54491         value of $(SYS_TIME_H).
54492         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54493         remove it conditionally, too. [added by Jim Meyering]
54494         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54495         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54496         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54497         GETTIMEOFDAY_REPLACEMENT to 1.
54498
54499 2007-01-28  Bruno Haible  <bruno@clisp.org>
54500
54501         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54502         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54503         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54504         Set UNISTD_H instead of UNISTD_H2.
54505         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54506
54507 2007-01-28  Bruno Haible  <bruno@clisp.org>
54508
54509         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54510         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54511
54512 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54513
54514         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54515         (func_create_testdir): Ensure C locale for `grep' and `tr'
54516         character ranges.
54517         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54518         ACLOCAL_AMFLAGS parsing state machine.
54519
54520 2007-01-27  Bruno Haible  <bruno@clisp.org>
54521
54522         * modules/unistr/base: Update.
54523
54524 2007-01-27  Bruno Haible  <bruno@clisp.org>
54525
54526         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54527         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54528         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54529         modules/unistr/u32-mbtouc.
54530         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54531         * lib/unistr.h: Update.
54532         * lib/linebreak.c: Update.
54533         * modules/unistr/u32-mbtouc: Renamed from
54534         modules/unistr/u32-mbtouc-safe.
54535         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54536         * lib/unistr.h: Update.
54537         * lib/unistr/u32-to-u8.c: Update.
54538         * lib/unistr/u32-to-u16.c: Update.
54539
54540 2007-01-27  Bruno Haible  <bruno@clisp.org>
54541
54542         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54543         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54544         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54545         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54546         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54547         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54548         modules/unistr/u16-mbtouc.
54549         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54550         * lib/unistr.h: Update.
54551         * lib/linebreak.c: Update.
54552         * modules/linebreak: Update.
54553         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54554         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54555         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54556         * modules/unistr/u16-mbtouc: Renamed from
54557         modules/unistr/u16-mbtouc-safe.
54558         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54559         * lib/unistr.h: Update.
54560         * lib/unistr/u16-to-u8.c: Update.
54561         * modules/unistr/u16-to-u8: Update.
54562         * lib/unistr/u16-to-u32.c: Update.
54563         * modules/unistr/u16-to-u32: Update.
54564
54565 2007-01-27  Bruno Haible  <bruno@clisp.org>
54566
54567         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54568         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54569         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54570         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54571         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54572         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54573         modules/unistr/u8-mbtouc.
54574         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54575         * lib/unistr.h: Update.
54576         * lib/striconveh.c: Update.
54577         * modules/striconveh: Update.
54578         * lib/linebreak.c: Update.
54579         * modules/linebreak: Update.
54580         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54581         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54582         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54583         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54584         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54585         * lib/unistr.h: Update.
54586         * lib/striconveh.c: Update.
54587         * modules/striconveh: Update.
54588         * lib/unistr/u8-to-u16.c: Update.
54589         * modules/unistr/u8-to-u16: Update.
54590         * lib/unistr/u8-to-u32.c: Update.
54591         * modules/unistr/u8-to-u32: Update.
54592
54593 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54594
54595         Sync from Libtool.
54596         * lib/argz.c: Do not include strings.h nor memory.h, include
54597         string.h unconditionally.  Patch by Simon Josefsson.
54598
54599 2007-01-27  Bruno Haible  <bruno@clisp.org>
54600
54601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54602         from gl_HEADER_STRING_H_BODY.
54603         (gl_HEADER_STRING_H_BODY): Require it.
54604         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54605         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54606         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54607         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54608         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54609         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54611         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54612         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54613         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54614         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54615         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54616         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54617         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54618         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54619
54620 2007-01-27  Bruno Haible  <bruno@clisp.org>
54621
54622         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54623         check_PROGRAMS into noinst_PROGRAMS.
54624         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54625         check_PROGRAMS in this case.
54626         (func_import): Set for_test to false.
54627         (func_create_testdir): Set for_test to true.
54628
54629 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54630             Bruno Haible  <bruno@clisp.org>
54631
54632         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54633         (Depends-on): Add string.
54634         (Includes): Use <string.h> instead of strcasestr.h.
54635         * modules/string (Makefile.am): Also substitute the value of
54636         REPLACE_STRCASESTR.
54637         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54638         assume strcasestr is declared in <string.h> not <strings.h>. Also
54639         set REPLACE_STRCASESTR.
54640         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54641         REPLACE_STRCASESTR.
54642         * lib/strcasestr.h: Remove file.
54643         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54644         * lib/string_.h (strcasestr): New declaration.
54645
54646 2007-01-27  Bruno Haible  <bruno@clisp.org>
54647
54648         * lib/string_.h: Use 'extern'.
54649
54650 2007-01-27  Jim Meyering  <jim@meyering.net>
54651
54652         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54653         of set-but-not-used local, "q".
54654
54655         * lib/mempcpy.c: Include <config.h> before <string.h>.
54656         This fixes a compilation error on HP-UX, due to the system's
54657         "restrict"-using mempcpy prototype.
54658
54659 2007-01-26  Bruno Haible  <bruno@clisp.org>
54660
54661         Small optimization.
54662         * lib/javacomp.c: Include c-strstr.h.
54663          (is_envjavac_gcj): Use c_strstr instead of strstr.
54664         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54665
54666 2007-01-26  Bruno Haible  <bruno@clisp.org>
54667
54668         * MODULES.html.sh (Unicode string functions): Add the new modules.
54669
54670         * modules/uniconv/u32-strconv-to-locale: New file.
54671         * lib/uniconv/u32-strconv-to-locale.c: New file.
54672
54673         * modules/uniconv/u16-strconv-to-locale: New file.
54674         * lib/uniconv/u16-strconv-to-locale.c: New file.
54675
54676         * modules/uniconv/u8-strconv-to-locale: New file.
54677         * lib/uniconv/u8-strconv-to-locale.c: New file.
54678
54679         * modules/uniconv/u32-strconv-from-locale: New file.
54680         * lib/uniconv/u32-strconv-from-locale.c: New file.
54681
54682         * modules/uniconv/u16-strconv-from-locale: New file.
54683         * lib/uniconv/u16-strconv-from-locale.c: New file.
54684
54685         * modules/uniconv/u8-strconv-from-locale: New file.
54686         * lib/uniconv/u8-strconv-from-locale.c: New file.
54687
54688         * modules/uniconv/u32-strconv-to-enc: New file.
54689         * lib/uniconv/u32-strconv-to-enc.c: New file.
54690         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54691         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54692
54693         * modules/uniconv/u16-strconv-to-enc: New file.
54694         * lib/uniconv/u16-strconv-to-enc.c: New file.
54695         * lib/uniconv/u-strconv-to-enc.h: New file.
54696         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54697         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54698
54699         * modules/uniconv/u8-strconv-to-enc: New file.
54700         * lib/uniconv/u8-strconv-to-enc.c: New file.
54701         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54702         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54703
54704         * modules/uniconv/u32-strconv-from-enc: New file.
54705         * lib/uniconv/u32-strconv-from-enc.c: New file.
54706         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54707         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54708
54709         * modules/uniconv/u16-strconv-from-enc: New file.
54710         * lib/uniconv/u16-strconv-from-enc.c: New file.
54711         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54712         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54713
54714         * modules/uniconv/u8-strconv-from-enc: New file.
54715         * lib/uniconv/u8-strconv-from-enc.c: New file.
54716         * lib/uniconv/u-strconv-from-enc.h: New file.
54717         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54718         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54719
54720         * modules/uniconv/u32-conv-from-enc: New file.
54721         * lib/uniconv/u32-conv-from-enc.c: New file.
54722         * modules/uniconv/u32-conv-from-enc-tests: New file.
54723         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54724
54725         * modules/uniconv/u16-conv-from-enc: New file.
54726         * lib/uniconv/u16-conv-from-enc.c: New file.
54727         * lib/uniconv/u-conv-from-enc.h: New file.
54728         * modules/uniconv/u16-conv-from-enc-tests: New file.
54729         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54730
54731         * modules/uniconv/u8-conv-from-enc: New file.
54732         * lib/uniconv/u8-conv-from-enc.c: New file.
54733         * modules/uniconv/u8-conv-from-enc-tests: New file.
54734         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54735
54736         * modules/uniconv/base: New file.
54737         * lib/uniconv.h: New file.
54738
54739 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54740
54741         * doc/gnulib-tool.texi (Initial import): Update to match current
54742         behavior with strdup module.
54743         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54744         * lib/memmem.h: Remove; all uses removed.  This is now done
54745         by <string.h>.
54746         * lib/mempcpy.h: Likewise.
54747         * lib/memrchr.h: Likewise.
54748         * lib/stpcpy.h: Likewise.
54749         * lib/stpncpy.h: Likewise.
54750         * lib/strcase.h: Likewise.
54751         * lib/strchrnul.h: Likewise.
54752         * lib/strdup.h: Likewise.
54753         * lib/strndup.h: Likewise.
54754         * lib/strnlen.h: Likewise.
54755         * lib/strpbrk.h: Likewise.
54756         * lib/strsep.h: Likewise.
54757         * lib/strstr.h: Likewise.
54758         * lib/strtok_r.h: Likewise.
54759         * lib/string_.h: New file.
54760         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54761         Rely on <string.h> instead.
54762         * lib/canon-host.c: Likewise.
54763         * lib/chdir-long.c: Likewise.
54764         * lib/concatpath.c: Likewise.
54765         * lib/exclude.c: Likewise.
54766         * lib/fchdir.c: Likewise.
54767         * lib/getaddrinfo.c: Likewise.
54768         * lib/getcwd.c: Likewise.
54769         * lib/getsubopt.c: Likewise.
54770         * lib/glob.c: Likewise.
54771         * lib/hard-locale.c: Likewise.
54772         * lib/iconvme.c: Likewise.
54773         * lib/javacomp.c: Likewise.
54774         * lib/mempcpy.c: Likewise.
54775         * lib/memrchr.c: Likewise.
54776         * lib/regex_internal.h: Likewise.
54777         * lib/stpncpy.c: Likewise.
54778         * lib/strcasecmp.c: Likewise.
54779         * lib/strchrnul.c: Likewise.
54780         * lib/strdup.c: Likewise.
54781         * lib/striconv.c: Likewise.
54782         * lib/striconveh.c: Likewise.
54783         * lib/striconveha.c: Likewise.
54784         * lib/strncasecmp.c: Likewise.
54785         * lib/strndup.c: Likewise.
54786         * lib/strnlen.c: Likewise.
54787         * lib/strsep.c: Likewise.
54788         * lib/strstr.c: Likewise.
54789         * lib/strtok_r.c: Likewise.
54790         * lib/userspec.c: Likewise.
54791         * lib/w32spawn.h: Likewise.
54792         * lib/xstrndup.c: Likewise.
54793         * lib/mountlist.c (strstr): Remove decl.
54794         * m4/string_h.m4: New file.
54795         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54796         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54797         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54798         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54799         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54800         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54801         Set REPLACE_STRCASECMP if necessary.
54802         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54803         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54804         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54805         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54806         HAVE_DECL_STRDUP if necessary.
54807         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54808         since gl_FUNC_STRNDUP does that now.
54809         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54810         Check for decl here...
54811         (gl_PREREQ_STRNLEN): ... not here.
54812         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54813         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54814         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54815         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54816         necessary.
54817         * modules/string: New file.
54818         * modules/memmem (Files): Remove special-purpose include file.
54819         (Depends-on): Add string.
54820         (Include): Include <string.h>, not the removed file.
54821         * modules/mempcpy: Likewise.
54822         * modules/memrchr: Likewise.
54823         * modules/stpcpy: Likewise.
54824         * modules/stpncpy: Likewise.
54825         * modules/strcase: Likewise.
54826         * modules/strchrnul: Likewise.
54827         * modules/strdup: Likewise.
54828         * modules/strndup: Likewise.
54829         * modules/strnlen: Likewise.
54830         * modules/strpbrk: Likewise.
54831         * modules/strsep: Likewise.
54832         * modules/strstr: Likewise.
54833         * modules/strtok_r: Likewise.
54834         * tests/test-dirname.c: Don't include "strdup.h", since
54835         <string.h> now suffices.
54836         * tests/test-memmem.c: Don't include "memmem.h", since
54837         <string.h> now suffices.
54838
54839 2007-01-25  Bruno Haible  <bruno@clisp.org>
54840
54841         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54842         *resultp is 0.
54843
54844         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54845         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54846         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54847         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54848
54849         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54850         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54851         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54852         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54853         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54854         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54855
54856 2007-01-24  Bruno Haible  <bruno@clisp.org>
54857
54858         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54859         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54860         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54861         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54862         gl_FUNC_FTS_CORE.
54863         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54864         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54865         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54866         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54867         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54868         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54869         gl_FUNC_FCHOWNAT.
54870         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54871         gl_FUNC_STRFTIME.
54872         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54873         Reported by Ralf Wildenhues.
54874
54875 2007-01-24  Bruno Haible  <bruno@clisp.org>
54876
54877         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54878         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54879         gl_GETADDRINFO.
54880         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54881         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54882         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54883
54884 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54885
54886         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54887         Don't use 'exit'; just return from 'main'.
54888         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54889
54890         * lib/fnmatch_.h: Readjust white space and comments to match
54891         glibc, to avoid spurious diffs.
54892
54893 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54894
54895         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54896         2004-12-01 change by Jakub Jelinek, since this code won't compile
54897         if !LIBC.  Problem reported by Bob Proulx.
54898
54899 2007-01-23  Bruno Haible  <bruno@clisp.org>
54900
54901         * lib/striconveh.c: Include c-strcaseeq.h.
54902         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54903         * modules/striconveh (Depends-on): Add c-strcaseeq.
54904
54905 2007-01-23  Bruno Haible  <bruno@clisp.org>
54906
54907         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54908
54909         * modules/c-strcaseeq: New file.
54910         * lib/c-strcaseeq.h: New file.
54911
54912         * modules/streq: New file.
54913         * lib/streq.h: New file.
54914
54915 2007-01-23  Bruno Haible  <bruno@clisp.org>
54916
54917         * modules/striconveha-tests: New file.
54918         * tests/test-striconveha.c: New file.
54919
54920         * lib/striconveha.h: Include <stdbool.h>.
54921         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54922         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54923         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54924         (mem_iconveha): New function.
54925         (str_iconveha_notranslit): Renamed from str_iconveha.
54926         (str_iconveha): New function.
54927         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54928         c-strcase.
54929
54930 2007-01-23  Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54933         encodings without forgiving before trying any encoding with handler.
54934         (str_iconveha): Try all encodings without forgiving before trying any
54935         encoding with handler.
54936
54937 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54938
54939         Import the following changes from libc.
54940
54941         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54942
54943         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54944
54945         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54946
54947         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54948         normal_bracket label.
54949
54950         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54951
54952         [BZ #361]
54953         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54954         to normal_bracket after fetching the next character.
54955
54956 2007-01-22  Bruno Haible  <bruno@clisp.org>
54957
54958         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54959         argument.
54960         * lib/striconveh.c (iconv_carefully_1): New function.
54961         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54962         argument.
54963         (str_cd_iconveh): Update.
54964         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54965         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54966         * tests/test-striconveh.c (MAGIC): New macro.
54967         (new_offsets): New function.
54968         (main): Test call with and without offsets.
54969
54970 2007-01-22  Bruno Haible  <bruno@clisp.org>
54971
54972         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54973         * modules/sys_select (Makefile.am): Likewise.
54974         * modules/sys_socket (Makefile.am): Likewise.
54975         * modules/sys_time (Makefile.am): Likewise.
54976
54977 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54978
54979         * modules/gettimeofday (License): Change from GPL to LGPL, since
54980         gettimeofday is a library function.
54981
54982 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54983
54984         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54985
54986 2007-01-21  Bruno Haible  <bruno@clisp.org>
54987
54988         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54989
54990 2007-01-21  Bruno Haible  <bruno@clisp.org>
54991
54992         * modules/striconveha: New file.
54993         * lib/striconveha.h: New file.
54994         * lib/striconveha.c: New file.
54995         * MODULES.html.sh (Internationalization functions): Add striconveha.
54996         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54997         string.
54998         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54999
55000 2007-01-21  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55003         * lib/striconveh.c (str_iconveh): Likewise.
55004
55005 2007-01-21  Bruno Haible  <bruno@clisp.org>
55006
55007         * lib/striconveh.h (mem_iconveh): New declaration.
55008         * lib/striconveh.c (mem_iconveh): New function.
55009         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55010
55011 2007-01-21  Bruno Haible  <bruno@clisp.org>
55012
55013         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55014
55015         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55016         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55017         original result buffer.
55018         (str_cd_iconveh): Update.
55019         * tests/test-striconveh.c (main): Update.
55020
55021         * lib/striconv.h (mem_cd_iconv): Change specification.
55022         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55023         result buffer.
55024         (str_cd_iconv): Update.
55025         * tests/test-striconv.c (main): Update.
55026
55027 2007-01-21  Bruno Haible  <bruno@clisp.org>
55028
55029         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55030
55031 2007-01-20  Jim Meyering  <jim@meyering.net>
55032
55033         * lib/userspec.c (parse_with_separator): If a user or group string
55034         starts with "+", skip the corresponding name-to-ID look-up, since
55035         such a look-up must fail: user and group names may not include "+".
55036
55037 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55038
55039         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55040         since we now assume the sys_time module.
55041         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55042         check for sys/time.h; no longer needed.
55043         * modules/poll (Depends-on): Depend on sys_time.
55044
55045 2007-01-18  Bruno Haible  <bruno@clisp.org>
55046
55047         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55048         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55049
55050         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55051         gettimeofday.
55052
55053         * tests/test-gettimeofday.c: Include <time.h>.
55054         (dummy): Remove variable.
55055
55056         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55057         gl_HEADER_SYS_TIME_H.
55058         (gl_HEADER_SYS_TIME_H): New macro.
55059
55060         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55061         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55062         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55063         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55064         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55065         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55066         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55067         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55068         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55069         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55070         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55071
55072         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55073         last change; it caused a compilation error when cross-compiling to
55074         Cygwin.
55075
55076 2007-01-18  Jim Meyering  <jim@meyering.net>
55077
55078         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55079         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55080         than the race-prone "test -d sys || mkdir sys".
55081         (configure.ac): Use AC_PROG_MKDIR_P.
55082         * modules/sys_select: Likewise.
55083         * modules/sys_socket: Likewise.
55084         * modules/sys_time: Likewise.
55085
55086 2007-01-18  Eric Blake  <ebb9@byu.net>
55087
55088         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55089         replace gettimeofday.
55090         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55091         name, to avoid infinite recursion.
55092
55093 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55096         module sys_time.
55097         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55098         assume timespec.h defines struct timeval.
55099         * lib/settime.c: Likewise.
55100         * lib/utimens.c: Likewise.
55101         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55102         since we now assume the gettimeofday module.
55103         * lib/tempname.c (__gen_tempname): Likewise.
55104         * lib/gettimeofday.h: Remove.
55105         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55106         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55107         Include <time.h>, for 'time()'.
55108         (localtime_buffer_addr): Also use this workaround if
55109         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55110         to simplify the uses.  All uses changed.
55111         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55112         that #undef is inside {}, and 'const' follows type name consistently.
55113         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55114         (gettimeofday): Do not use the maximum possible value for
55115         tv->tv_usec, since that might break usages other than ls.c.
55116         Instead, we'll leave ls.c alone.  This undoes today's patch
55117         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55118         we've never observed the problem but might as well keep the
55119         canary.
55120         * lib/nanosleep.c: Include timespec.h first, for interface check.
55121         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55122         now assume the sys_time module.
55123         * lib/tempname.c: Likewise.
55124         * lib/timespec.h: Likewise.
55125         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55126         needed.
55127         * lib/strftime.c: Likewise.
55128         * lib/timespec.h: Likewise.
55129         * lib/posixtm.c: Include posixtm.h first, for interface check.
55130         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55131         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55132         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55133         * lib/sys_time_.h: New file.
55134         * lib/timespec.h (struct timespec): Use long int, not long.
55135         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55136         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55137         Remove obsolescent call to AC_HEADER_TIME.
55138         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55139         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55140         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55141         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55142         Likewise.
55143         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55144         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55145         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55146         into the sys_time module.  Check for gettimeofday just once.
55147         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55148         for gettimeofday signature to just check the signature.  Merely
55149         compile it, since linking doesn't test signature.  Improve test for
55150         whether gettimeofday.o is actually needed.
55151         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55152         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55153         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55154         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55155         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55156         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55157         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55158         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55159         than worrying about sys/time.h.
55160         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55161         Don't bother worrying about TIME_WITH_SYS_TIME.
55162         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55163         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55164         * m4/sys_time_h.m4: New file.
55165         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55166         Don't include sys/time.h.  Return from main rather than exiting.
55167         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55168         all uses changed.
55169         * modules/gethrxtime (Depends-on): Add sys_time.
55170         * modules/gettime (Depends-on): Likewise.
55171         * modules/gettimeofday (Depends-on): Likewise.
55172         * modules/nanosleep (Depends-on): Likewise.
55173         * modules/settime (Depends-on): Likewise.
55174         * modules/tempname (Depends-on): Likewise.
55175         * modules/utimens (Depends-on): Likewise.
55176         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55177         (Include): Change back to <sys/time.h>.
55178         (Maintainer): Add self.
55179         * modules/sys_time: New file.
55180         * modules/tempname (Depends-on): Add gettimeofday.
55181         * tests/test-gettimeofday.c: Include <sys/time.h>
55182         rather than gettimeofday.h.
55183
55184 2007-01-17  Bruno Haible  <bruno@clisp.org>
55185
55186         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55187         the license default to GPL.
55188         (func_create_testdir): Don't complain if a module is LGPL and its
55189         tests module depends on GPLed modules.
55190
55191 2007-01-17  Bruno Haible  <bruno@clisp.org>
55192
55193         * lib/gettimeofday.c (gettimeofday): Add code for the case
55194         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55195         maximum possible value for tv->tv_usec, rather than the minimum one.
55196
55197 2005-10-08  Martin Lambers  <marlam@marlam.de>
55198 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55199 2007-01-16  Bruno Haible  <bruno@clisp.org>
55200
55201         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55202         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55203         gl_FUNC_GETTIMEOFDAY.
55204         (Include): Add gettimeofday.h.
55205         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55206         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55207         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55208         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55209         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55210         * lib/gettimeofday.h: New file.
55211         * lib/gettimeofday.c: Include <sys/timeb.h>.
55212         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55213         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55214         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55215         fall back on time().
55216
55217         * tests/test-gettimeofday.c: New file.
55218         * modules/gettimeofday-tests: New file.
55219
55220 2007-01-16  Eric Blake  <ebb9@byu.net>
55221
55222         * modules/fnmatch (Depends-on): Depend on wchar.
55223         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55224         * m4/fnmatch.m4: Likewise.
55225         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55226         * m4/mbchar.m4: Likewise.
55227         * modules/mbswidth (Depends-on): Depend on wchar.
55228         * lib/mbswidth.c: Assume <wchar.h>.
55229         * m4/mbswidth.m4: Likewise.
55230         * modules/quotearg (Depends-on): Depend on wchar.
55231         * lib/quotearg.c: Assume <wchar.h>.
55232         * m4/quotearg.m4: Likewise.
55233         * modules/regex (Depends-on): Depend on wchar.
55234         * lib/regex_internal.h: Assume <wchar.h>.
55235         * m4/regex.m4: Likewise.
55236         * modules/stdint (Depends-on): Depend on wchar.
55237         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55238         * m4/stdint.m4: Likewise.
55239         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55240         * modules/strftime (Depends-on): Depend on wchar.
55241         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55242         * modules/strtol (Depends-on): Depend on wchar.
55243         * lib/strtol.c: Assume <wchar.h>.
55244         * modules/wcwidth (Depends-on): Depend on wchar.
55245         * lib/wcwidth.h: Assume <wchar.h>.
55246         * m4/wcwidth.m4: Likewise.
55247
55248 2007-01-16  Bruno Haible  <bruno@clisp.org>
55249
55250         * modules/csharpexec-script: New, created from...
55251         * modules/csharpexec: ... this.
55252
55253 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55254
55255         * modules/javaexec-script: New, created from...
55256         * modules/javaexec: ... this.
55257
55258 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55259
55260         * modules/poll (Dependencies): Add sys_select.
55261
55262 2007-01-15  Jim Meyering  <jim@meyering.net>
55263
55264         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55265         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55266         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55267         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55268
55269 2007-01-15  Bruno Haible  <bruno@clisp.org>
55270
55271         * modules/striconveh: New file.
55272         * lib/striconveh.h: New file.
55273         * lib/striconveh.c: New file.
55274         * MODULES.html.sh (Internationalization functions): Add striconveh.
55275
55276         * modules/striconveh-tests: New file.
55277         * tests/test-striconveh.c: New file.
55278
55279 2007-01-15  Bruno Haible  <bruno@clisp.org>
55280
55281         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55282         not from GNU libiconv or GNU libc.
55283
55284 2007-01-15  Bruno Haible  <bruno@clisp.org>
55285
55286         * doc/gnulib-intro.texi (Copyright): Explain the different license
55287         terms for module descriptions, autoconf macros, tests, documentation.
55288
55289 2007-01-14  Bruno Haible  <bruno@clisp.org>
55290
55291         * modules/striconv-tests: New file.
55292         * tests/test-striconv.c: New file.
55293
55294 2007-01-14  Bruno Haible  <bruno@clisp.org>
55295
55296         * modules/iconv-tests: New file.
55297         * tests/test-iconv.c: New file.
55298
55299 2007-01-14  Bruno Haible  <bruno@clisp.org>
55300
55301         * gnulib-tool (func_get_license): For test modules, use the license of
55302         the main module.
55303
55304 2007-01-14  Bruno Haible  <bruno@clisp.org>
55305
55306         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55307         if iconv is found to exist.
55308
55309 2007-01-14  Bruno Haible  <bruno@clisp.org>
55310
55311         * modules/c-ctype-tests: New file.
55312         * tests/test-c-ctype.c: New file.
55313
55314 2007-01-14  Bruno Haible  <bruno@clisp.org>
55315
55316         * modules/binary-io-tests: New file.
55317         * tests/test-binary-io.sh: New file.
55318         * tests/test-binary-io.c: New file.
55319
55320 2007-01-14  Bruno Haible  <bruno@clisp.org>
55321
55322         * modules/array-oset-tests: New file.
55323         * tests/test-array_oset.c: New file.
55324
55325 2007-01-14  Bruno Haible  <bruno@clisp.org>
55326
55327         * modules/array-list-tests: New file.
55328         * tests/test-array_list.c: New file.
55329
55330 2007-01-14  Bruno Haible  <bruno@clisp.org>
55331
55332         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55333         and make.
55334         Reported by Simon Josefsson in
55335         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55336
55337 2007-01-14  Bruno Haible  <bruno@clisp.org>
55338
55339         * modules/allocsa-tests: New file.
55340         * tests/test-allocsa.c: New file.
55341
55342 2007-01-14  Bruno Haible  <bruno@clisp.org>
55343
55344         * modules/fchdir (Depends-on): Add absolute-header.
55345         * modules/unistd (Depends-on): Likewise.
55346
55347 2006-12-30  Bruno Haible  <bruno@clisp.org>
55348
55349         * modules/fchdir: New file.
55350         * modules/unistd (Files): Add lib/unistd_.h.
55351         (Makefile.am): Generate unistd.h from unistd_.h.
55352         * lib/fchdir.c: New file.
55353         * lib/dirent_.h: New file.
55354         * lib/unistd_.h: New file.
55355         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55356         * m4/fchdir.m4: New file.
55357         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55358         (gl_HEADER_UNISTD): Invoke it.
55359         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55360         function.
55361         * lib/backupfile.c (opendir, closedir): Undefine.
55362         * lib/chown.c (open, close): Undefine.
55363         * lib/clean-temp.c (open, close): Undefine.
55364         * lib/copy-file.c (open, close): Undefine.
55365         * lib/execute.c (open, close): Undefine.
55366         * lib/fsusage.c (open, close): Undefine.
55367         * lib/gc-gnulib.c (open, close): Undefine.
55368         * lib/getcwd.c (opendir, closedir): Undefine.
55369         * lib/glob.c (opendir, closedir): Undefine.
55370         * lib/javacomp.c (open, close): Undefine.
55371         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55372         * lib/openat-proc.c (open, close): Undefine.
55373         * lib/pagealign_alloc.c (open, close): Undefine.
55374         * lib/pipe.c (open, close): Undefine.
55375         * lib/progreloc.c (open, close): Undefine.
55376         * lib/savedir.c (opendir, closedir): Undefine.
55377         * lib/utime.c (open, close): Undefine.
55378         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55379
55380 2007-01-10  Bruno Haible  <bruno@clisp.org>
55381
55382         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55383
55384 2007-01-12  Eric Blake  <ebb9@byu.net>
55385
55386         Provide a robust <wchar.h>.  Further simplifications are now
55387         possible in other modules, but not included here.
55388         * modules/wchar: New module.
55389         * m4/wchar.m4: New file.
55390         * lib/wchar_.h: Likewise.
55391         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55392         of the new module.
55393         * MODULES.html.sh (Extended multibyte and wide character utilities):
55394         New section.
55395
55396 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55397
55398         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55399         to a reasonable default for memory allocation.
55400         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55401         file system that reports garbage st_size values for symlinks.
55402         Problem reported by Liyang Hu.
55403
55404 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55405
55406         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55407         Emacs .#* auto-save files).
55408
55409 2007-01-11  Bruno Haible  <bruno@clisp.org>
55410
55411         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55412         directory.
55413
55414 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55415
55416         Use @...@ consistently in lib/wctype_.h.
55417         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55418         on it being set to 1 or 0.
55419         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55420         go back to AC_SUBSTing it.
55421         * modules/wctype (Makefile.am): Undo previous change.
55422
55423 2007-01-10  Eric Blake  <ebb9@byu.net>
55424
55425         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55426         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55427         * modules/wctype (Makefile.am): Likewise.
55428         Reported by Chris McGuire.
55429
55430 2007-01-10  Jim Meyering  <jim@meyering.net>
55431
55432         fts.c: a small readability/maintainability improvement
55433         * lib/fts.c (fts_read): Make this code slightly more readable and
55434         maintainable by hoisting the "sp->fts_cur = p" assignments to
55435         immediately follow the statements that set P.  Derived from
55436         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55437
55438 2007-01-10  Eric Blake  <ebb9@byu.net>
55439
55440         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55441         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55442         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55443         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55444         Reported by Chris McGuire.
55445
55446 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55447
55448         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55449         in sed script.
55450
55451 2007-01-09  Bruno Haible  <bruno@clisp.org>
55452
55453         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55454         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55455         variables.
55456         (func_module): Use them.
55457
55458 2007-01-09  Bruno Haible  <bruno@clisp.org>
55459
55460         * modules/unistr/base: New file.
55461         * lib/unistr.h: New file.
55462
55463         * modules/unistr/u8-to-u16: New file.
55464         * lib/unistr/u8-to-u16.c: New file.
55465
55466         * modules/unistr/u8-to-u32: New file.
55467         * lib/unistr/u8-to-u32.c: New file.
55468
55469         * modules/unistr/u16-to-u8: New file.
55470         * lib/unistr/u16-to-u8.c: New file.
55471
55472         * modules/unistr/u16-to-u32: New file.
55473         * lib/unistr/u16-to-u32.c: New file.
55474
55475         * modules/unistr/u32-to-u8: New file.
55476         * lib/unistr/u32-to-u8.c: New file.
55477
55478         * modules/unistr/u32-to-u16: New file.
55479         * lib/unistr/u32-to-u16.c: New file.
55480
55481         * modules/unistr/u8-check: New file.
55482         * modules/unistr/u16-check: New file.
55483         * modules/unistr/u32-check: New file.
55484         * lib/unistr/u8-check.c: New file.
55485         * lib/unistr/u16-check.c: New file.
55486         * lib/unistr/u32-check.c: New file.
55487
55488         * modules/unistr/u8-chr: New file.
55489         * modules/unistr/u16-chr: New file.
55490         * modules/unistr/u32-chr: New file.
55491         * lib/unistr/u8-chr.c: New file.
55492         * lib/unistr/u16-chr.c: New file.
55493         * lib/unistr/u32-chr.c: New file.
55494
55495         * modules/unistr/u8-cmp: New file.
55496         * modules/unistr/u16-cmp: New file.
55497         * modules/unistr/u32-cmp: New file.
55498         * lib/unistr/u8-cmp.c: New file.
55499         * lib/unistr/u16-cmp.c: New file.
55500         * lib/unistr/u32-cmp.c: New file.
55501
55502         * modules/unistr/u8-cpy: New file.
55503         * modules/unistr/u16-cpy: New file.
55504         * modules/unistr/u32-cpy: New file.
55505         * lib/unistr/u8-cpy.c: New file.
55506         * lib/unistr/u16-cpy.c: New file.
55507         * lib/unistr/u32-cpy.c: New file.
55508         * lib/unistr/u-cpy.h: New file.
55509
55510         * modules/unistr/u8-cpy-alloc: New file.
55511         * modules/unistr/u16-cpy-alloc: New file.
55512         * modules/unistr/u32-cpy-alloc: New file.
55513         * lib/unistr/u8-cpy-alloc.c: New file.
55514         * lib/unistr/u16-cpy-alloc.c: New file.
55515         * lib/unistr/u32-cpy-alloc.c: New file.
55516         * lib/unistr/u-cpy-alloc.h: New file.
55517
55518         * modules/unistr/u8-endswith: New file.
55519         * modules/unistr/u16-endswith: New file.
55520         * modules/unistr/u32-endswith: New file.
55521         * lib/unistr/u8-endswith.c: New file.
55522         * lib/unistr/u16-endswith.c: New file.
55523         * lib/unistr/u32-endswith.c: New file.
55524         * lib/unistr/u-endswith.h: New file.
55525
55526         * modules/unistr/u8-mblen: New file.
55527         * modules/unistr/u16-mblen: New file.
55528         * modules/unistr/u32-mblen: New file.
55529         * lib/unistr/u8-mblen.c: New file.
55530         * lib/unistr/u16-mblen.c: New file.
55531         * lib/unistr/u32-mblen.c: New file.
55532
55533         * modules/unistr/u8-mbtouc: New file.
55534         * modules/unistr/u16-mbtouc: New file.
55535         * modules/unistr/u32-mbtouc: New file.
55536         * lib/unistr/u8-mbtouc.c: New file.
55537         * lib/unistr/u16-mbtouc.c: New file.
55538         * lib/unistr/u32-mbtouc.c: New file.
55539
55540         * modules/unistr/u8-mbtouc-safe: New file.
55541         * modules/unistr/u16-mbtouc-safe: New file.
55542         * modules/unistr/u32-mbtouc-safe: New file.
55543         * lib/unistr/u8-mbtouc-safe.c: New file.
55544         * lib/unistr/u16-mbtouc-safe.c: New file.
55545         * lib/unistr/u32-mbtouc-safe.c: New file.
55546
55547         * modules/unistr/u8-move: New file.
55548         * modules/unistr/u16-move: New file.
55549         * modules/unistr/u32-move: New file.
55550         * lib/unistr/u8-move.c: New file.
55551         * lib/unistr/u16-move.c: New file.
55552         * lib/unistr/u32-move.c: New file.
55553         * lib/unistr/u-move.h: New file.
55554
55555         * modules/unistr/u8-next: New file.
55556         * modules/unistr/u16-next: New file.
55557         * modules/unistr/u32-next: New file.
55558         * lib/unistr/u8-next.c: New file.
55559         * lib/unistr/u16-next.c: New file.
55560         * lib/unistr/u32-next.c: New file.
55561
55562         * modules/unistr/u8-prev: New file.
55563         * modules/unistr/u16-prev: New file.
55564         * modules/unistr/u32-prev: New file.
55565         * lib/unistr/u8-prev.c: New file.
55566         * lib/unistr/u16-prev.c: New file.
55567         * lib/unistr/u32-prev.c: New file.
55568
55569         * modules/unistr/u8-set: New file.
55570         * modules/unistr/u16-set: New file.
55571         * modules/unistr/u32-set: New file.
55572         * lib/unistr/u8-set.c: New file.
55573         * lib/unistr/u16-set.c: New file.
55574         * lib/unistr/u32-set.c: New file.
55575         * lib/unistr/u-set.h: New file.
55576
55577         * modules/unistr/u8-startswith: New file.
55578         * modules/unistr/u16-startswith: New file.
55579         * modules/unistr/u32-startswith: New file.
55580         * lib/unistr/u8-startswith.c: New file.
55581         * lib/unistr/u16-startswith.c: New file.
55582         * lib/unistr/u32-startswith.c: New file.
55583         * lib/unistr/u-startswith.h: New file.
55584
55585         * modules/unistr/u8-stpcpy: New file.
55586         * modules/unistr/u16-stpcpy: New file.
55587         * modules/unistr/u32-stpcpy: New file.
55588         * lib/unistr/u8-stpcpy.c: New file.
55589         * lib/unistr/u16-stpcpy.c: New file.
55590         * lib/unistr/u32-stpcpy.c: New file.
55591         * lib/unistr/u-stpcpy.h: New file.
55592
55593         * modules/unistr/u8-stpncpy: New file.
55594         * modules/unistr/u16-stpncpy: New file.
55595         * modules/unistr/u32-stpncpy: New file.
55596         * lib/unistr/u8-stpncpy.c: New file.
55597         * lib/unistr/u16-stpncpy.c: New file.
55598         * lib/unistr/u32-stpncpy.c: New file.
55599         * lib/unistr/u-stpncpy.h: New file.
55600
55601         * modules/unistr/u8-strcat: New file.
55602         * modules/unistr/u16-strcat: New file.
55603         * modules/unistr/u32-strcat: New file.
55604         * lib/unistr/u8-strcat.c: New file.
55605         * lib/unistr/u16-strcat.c: New file.
55606         * lib/unistr/u32-strcat.c: New file.
55607         * lib/unistr/u-strcat.h: New file.
55608
55609         * modules/unistr/u8-strchr: New file.
55610         * modules/unistr/u16-strchr: New file.
55611         * modules/unistr/u32-strchr: New file.
55612         * lib/unistr/u8-strchr.c: New file.
55613         * lib/unistr/u16-strchr.c: New file.
55614         * lib/unistr/u32-strchr.c: New file.
55615
55616         * modules/unistr/u8-strcmp: New file.
55617         * modules/unistr/u16-strcmp: New file.
55618         * modules/unistr/u32-strcmp: New file.
55619         * lib/unistr/u8-strcmp.c: New file.
55620         * lib/unistr/u16-strcmp.c: New file.
55621         * lib/unistr/u32-strcmp.c: New file.
55622
55623         * modules/unistr/u8-strcpy: New file.
55624         * modules/unistr/u16-strcpy: New file.
55625         * modules/unistr/u32-strcpy: New file.
55626         * lib/unistr/u8-strcpy.c: New file.
55627         * lib/unistr/u16-strcpy.c: New file.
55628         * lib/unistr/u32-strcpy.c: New file.
55629         * lib/unistr/u-strcpy.h: New file.
55630
55631         * modules/unistr/u8-strcspn: New file.
55632         * modules/unistr/u16-strcspn: New file.
55633         * modules/unistr/u32-strcspn: New file.
55634         * lib/unistr/u8-strcspn.c: New file.
55635         * lib/unistr/u16-strcspn.c: New file.
55636         * lib/unistr/u32-strcspn.c: New file.
55637         * lib/unistr/u-strcspn.h: New file.
55638
55639         * modules/unistr/u8-strdup: New file.
55640         * modules/unistr/u16-strdup: New file.
55641         * modules/unistr/u32-strdup: New file.
55642         * lib/unistr/u8-strdup.c: New file.
55643         * lib/unistr/u16-strdup.c: New file.
55644         * lib/unistr/u32-strdup.c: New file.
55645         * lib/unistr/u-strdup.h: New file.
55646
55647         * modules/unistr/u8-strlen: New file.
55648         * modules/unistr/u16-strlen: New file.
55649         * modules/unistr/u32-strlen: New file.
55650         * lib/unistr/u8-strlen.c: New file.
55651         * lib/unistr/u16-strlen.c: New file.
55652         * lib/unistr/u32-strlen.c: New file.
55653         * lib/unistr/u-strlen.h: New file.
55654
55655         * modules/unistr/u8-strmblen: New file.
55656         * modules/unistr/u16-strmblen: New file.
55657         * modules/unistr/u32-strmblen: New file.
55658         * lib/unistr/u8-strmblen.c: New file.
55659         * lib/unistr/u16-strmblen.c: New file.
55660         * lib/unistr/u32-strmblen.c: New file.
55661
55662         * modules/unistr/u8-strmbtouc: New file.
55663         * modules/unistr/u16-strmbtouc: New file.
55664         * modules/unistr/u32-strmbtouc: New file.
55665         * lib/unistr/u8-strmbtouc.c: New file.
55666         * lib/unistr/u16-strmbtouc.c: New file.
55667         * lib/unistr/u32-strmbtouc.c: New file.
55668
55669         * modules/unistr/u8-strncat: New file.
55670         * modules/unistr/u16-strncat: New file.
55671         * modules/unistr/u32-strncat: New file.
55672         * lib/unistr/u8-strncat.c: New file.
55673         * lib/unistr/u16-strncat.c: New file.
55674         * lib/unistr/u32-strncat.c: New file.
55675         * lib/unistr/u-strncat.h: New file.
55676
55677         * modules/unistr/u8-strncmp: New file.
55678         * modules/unistr/u16-strncmp: New file.
55679         * modules/unistr/u32-strncmp: New file.
55680         * lib/unistr/u8-strncmp.c: New file.
55681         * lib/unistr/u16-strncmp.c: New file.
55682         * lib/unistr/u32-strncmp.c: New file.
55683
55684         * modules/unistr/u8-strncpy: New file.
55685         * modules/unistr/u16-strncpy: New file.
55686         * modules/unistr/u32-strncpy: New file.
55687         * lib/unistr/u8-strncpy.c: New file.
55688         * lib/unistr/u16-strncpy.c: New file.
55689         * lib/unistr/u32-strncpy.c: New file.
55690         * lib/unistr/u-strncpy.h: New file.
55691
55692         * modules/unistr/u8-strnlen: New file.
55693         * modules/unistr/u16-strnlen: New file.
55694         * modules/unistr/u32-strnlen: New file.
55695         * lib/unistr/u8-strnlen.c: New file.
55696         * lib/unistr/u16-strnlen.c: New file.
55697         * lib/unistr/u32-strnlen.c: New file.
55698         * lib/unistr/u-strnlen.h: New file.
55699
55700         * modules/unistr/u8-strpbrk: New file.
55701         * modules/unistr/u16-strpbrk: New file.
55702         * modules/unistr/u32-strpbrk: New file.
55703         * lib/unistr/u8-strpbrk.c: New file.
55704         * lib/unistr/u16-strpbrk.c: New file.
55705         * lib/unistr/u32-strpbrk.c: New file.
55706         * lib/unistr/u-strpbrk.h: New file.
55707
55708         * modules/unistr/u8-strrchr: New file.
55709         * modules/unistr/u16-strrchr: New file.
55710         * modules/unistr/u32-strrchr: New file.
55711         * lib/unistr/u8-strrchr.c: New file.
55712         * lib/unistr/u16-strrchr.c: New file.
55713         * lib/unistr/u32-strrchr.c: New file.
55714
55715         * modules/unistr/u8-strspn: New file.
55716         * modules/unistr/u16-strspn: New file.
55717         * modules/unistr/u32-strspn: New file.
55718         * lib/unistr/u8-strspn.c: New file.
55719         * lib/unistr/u16-strspn.c: New file.
55720         * lib/unistr/u32-strspn.c: New file.
55721         * lib/unistr/u-strspn.h: New file.
55722
55723         * modules/unistr/u8-strstr: New file.
55724         * modules/unistr/u16-strstr: New file.
55725         * modules/unistr/u32-strstr: New file.
55726         * lib/unistr/u8-strstr.c: New file.
55727         * lib/unistr/u16-strstr.c: New file.
55728         * lib/unistr/u32-strstr.c: New file.
55729         * lib/unistr/u-strstr.h: New file.
55730
55731         * modules/unistr/u8-strtok: New file.
55732         * modules/unistr/u16-strtok: New file.
55733         * modules/unistr/u32-strtok: New file.
55734         * lib/unistr/u8-strtok.c: New file.
55735         * lib/unistr/u16-strtok.c: New file.
55736         * lib/unistr/u32-strtok.c: New file.
55737         * lib/unistr/u-strtok.h: New file.
55738
55739         * modules/unistr/u8-uctomb: New file.
55740         * modules/unistr/u16-uctomb: New file.
55741         * modules/unistr/u32-uctomb: New file.
55742         * lib/unistr/u8-uctomb.c: New file.
55743         * lib/unistr/u16-uctomb.c: New file.
55744         * lib/unistr/u32-uctomb.c: New file.
55745
55746         * MODULES.html.sh (Unicode string functions): Add the new modules.
55747
55748 2007-01-08  Bruno Haible  <bruno@clisp.org>
55749
55750         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55751         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55752         subdirectories.
55753
55754 2007-01-08  Karl Berry  <karl@gnu.org>
55755
55756         * doc/error.texi: mention that main() fns must set program_name
55757         when progname is used.
55758
55759 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55760
55761         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55762         WCTYPE_H is empty, for the benefit of builds from non-distclean
55763         directories.  Problem reported by Eric Blake in
55764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55765
55766 2007-01-08  Bruno Haible  <bruno@clisp.org>
55767
55768         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55769         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55770         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55771         PROVIDE_CANONICALIZE_FILENAME_MODE.
55772         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55773
55774 2007-01-08  Bruno Haible  <bruno@clisp.org>
55775
55776         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55777         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55778         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55779         * lib/fts.c: Likewise.
55780         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55781
55782 2006-12-25  Bruno Haible  <bruno@clisp.org>
55783
55784         * modules/utf8-ucs4-safe: New file.
55785         * lib/utf8-ucs4-safe.h: New file.
55786         * lib/unistr/utf8-ucs4-safe.c: New file.
55787
55788         * modules/utf16-ucs4-safe: New file.
55789         * lib/utf16-ucs4-safe.h: New file.
55790         * lib/unistr/utf16-ucs4-safe.c: New file.
55791
55792         * MODULES.html.sh (Unicode string functions): Add the new modules.
55793
55794 2007-01-08  Bruno Haible  <bruno@clisp.org>
55795
55796         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55797         (Depends-on): Add unitypes.
55798         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55799         (u8_mbtouc_aux): Move out to separate file.
55800         (u8_mbtouc): Use ucs4_t, uint8_t types.
55801         * lib/unistr/utf8-ucs4.c: New file.
55802
55803         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55804         (Depends-on): Add unitypes.
55805         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55806         (u16_mbtouc_aux): Move out to separate file.
55807         (u16_mbtouc): Use ucs4_t, uint16_t types.
55808         * lib/unistr/utf16-ucs4.c: New file.
55809
55810         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55811         (Depends-on): Add unitypes.
55812         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55813         (u8_uctomb_aux): Move out to separate file.
55814         (u8_uctomb): Use ucs4_t, uint8_t types.
55815         * lib/unistr/ucs4-utf8.c: New file.
55816
55817         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55818         (Depends-on): Add unitypes.
55819         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55820         (u16_uctomb_aux): Move out to separate file.
55821         (u16_uctomb): Use ucs4_t, uint16_t types.
55822         * lib/unistr/ucs4-utf16.c: New file.
55823
55824 2006-12-25  Bruno Haible  <bruno@clisp.org>
55825
55826         * modules/unitypes: New file.
55827         * lib/unitypes.h: New file.
55828         * MODULES.html.sh (func_all_modules): New section "Unicode string
55829         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55830         this section. Add unitypes.
55831
55832 2007-01-08  Bruno Haible  <bruno@clisp.org>
55833
55834         Avoid variable names that conflict with those from libtool.
55835         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55836         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55837         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55838         library_names_spec to acl_library_names_spec, hardcode_* to
55839         acl_hardcode_*.
55840         Reported by Ralf Wildenhues.
55841
55842 2007-01-08  Bruno Haible  <bruno@clisp.org>
55843
55844         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55845         definition.
55846         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55847         definition.
55848         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55849         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55850         definition.
55851         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55852         definition.
55853         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55854         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55855         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55856         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55857         definition.
55858         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55859         definition.
55860         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55861         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55862         GC_USE_<algorithm>.
55863         * lib/gc-libgcrypt.c: Likewise.
55864         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55865         * modules/gc-arctwo (configure.ac): Likewise.
55866         * modules/gc-des (configure.ac): Likewise.
55867         * modules/gc-hmac-md5 (configure.ac): Likewise.
55868         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55869         * modules/gc-md2 (configure.ac): Likewise.
55870         * modules/gc-md4 (configure.ac): Likewise.
55871         * modules/gc-md5 (configure.ac): Likewise.
55872         * modules/gc-random (configure.ac): Likewise.
55873         * modules/gc-rijndael (configure.ac): Likewise.
55874         * modules/gc-sha1 (configure.ac): Likewise.
55875
55876 2007-01-08  Bruno Haible  <bruno@clisp.org>
55877
55878         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55879         macro definition.
55880         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55881         definition.
55882         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55883         definition.
55884         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55885         * modules/fcntl-safer (configure.ac): Likewise.
55886         * modules/fopen-safer (configure.ac): Likewise.
55887         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55888         GNULIB_FWRITEERROR macro definition.
55889
55890 2007-01-08  Bruno Haible  <bruno@clisp.org>
55891
55892         * m4/gnulib-common.m4: New file.
55893         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55894         (func_get_filelist): Add m4/gnulib-common.m4.
55895
55896 2007-01-08  Bruno Haible  <bruno@clisp.org>
55897
55898         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55899         command.
55900
55901 2007-01-08  Jim Meyering  <jim@meyering.net>
55902
55903         Use a more robust test for a "can't happen" condition.
55904         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55905         narrowed the st_size value.  Presuming the "can't happen" condition
55906         is true, that narrowing could conceivably convert an invalid st_size
55907         value into a valid one.  Instead, use a change based on Matthew
55908         Woehlke's original patch.
55909
55910         Slight readability improvement: use an assert-like macro
55911         in place of literal "abort ()" uses.
55912         * lib/fts.c (fts_assert): Define.
55913         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55914         Use this macro instead of a bare 'abort'.
55915
55916 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55917
55918         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55919         simply work around them.
55920         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55921         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55922         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55923         declaring.
55924         Don't bother to define as macros, since the standard doesn't require it.
55925         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55926         longer worry about IRIX 5.3.
55927         (HAVE_WCTYPE_CTMP_BUG): Remove.
55928
55929 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55930
55931         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55932         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55933         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55934         Problems reported by Georg Schwarz for IRIX 5.3.
55935
55936         * gnulib-tool (autoconf_minversion): Take the maximum version number
55937         found, not the minimum.  Problem reported by James Youngman.
55938
55939 2007-01-03  Karl Berry  <karl@gnu.org>
55940
55941         * doc/error.texi: new file, explaining interaction with progname.
55942         * doc/gnulib.texi: include it.  Update copyright.
55943
55944 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55945
55946         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55947         AC_CANONICAL_HOST, to improve autobuild outputs.
55948
55949 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55950             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55951
55952         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55953         sockets, server sockets, and other file descriptors.  Count errors
55954         to compute the return value.  Reorder the code a bit to be easier
55955         to follow.  Don't set event bits that were not requested (except
55956         POLLERR and POLLHUP).
55957
55958 2007-01-01  Bruno Haible  <bruno@clisp.org>
55959
55960         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55961
55962 2007-01-03  Jim Meyering  <jim@meyering.net>
55963
55964         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55965
55966 2007-01-02  Bruno Haible  <bruno@clisp.org>
55967
55968         * modules/settime (Include): Require timespec.h.
55969         * modules/nanosleep (Include): Likewise.
55970
55971 2007-01-01  Bruno Haible  <bruno@clisp.org>
55972
55973         * gnulib-tool (func_emit_copyright_notice): Bump year.
55974         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55975
55976 2007-01-01  Bruno Haible  <bruno@clisp.org>
55977
55978         Improve support for OpenBSD.
55979         * build-aux/config.rpath (libname_spec): Export.
55980         (library_names_spec): New variable. Export.
55981         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55982         library_names_spec from the config.rpath output. Locate shared library
55983         through the name pattern in library_names_spec.
55984
55985 2007-01-01  Eric Blake  <ebb9@byu.net>
55986
55987         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55988
55989 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55990
55991         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55992         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55993         assume the C locale, and avoid an "eval" that could cause trouble.
55994         Problem with SORT reported by Bob Proulx.
55995
55996         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55997         Define.  Trivial patch from Henning Nielsen Lund, originally
55998         sent to bug-grep@gnu.org today.
55999
56000 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56001
56002         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56003         struct stat.  Problem reported by Henning Nielsen Lund.
56004         * lib/acl.c: Include acl.h first, to check interface.  Don't
56005         bother to include sys/types.h and sys/stat.h again.
56006
56007 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56008
56009         Import the following change from libc; problem reported by
56010         Sven Verdoolaege.
56011
56012         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56013
56014         [BZ #1373]
56015         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56016
56017 2006-12-28  Jim Meyering  <jim@meyering.net>
56018
56019         * build-aux/announce-gen: Do not assume that the package
56020         builds any of tar.gz, tar.bz2, and .xdelta files.
56021         Suggestion from Simon Josefsson.
56022
56023 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56024
56025         * modules/announce-gen: New file.
56026
56027 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56028
56029         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56030         handles its gotchas now.
56031         * lib/mbswidth.c: Likewise.
56032         * lib/wcwidth.h: Likewise.
56033         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56034         and iswcntrl; the wctype module does this stuff now.
56035         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56037         * modules/mbchar (Depends-on): Add wctype.
56038         * modules/mbswidth (Depends-on): Likewise.
56039         * modules/wcwidth (Depends-on): Likewise.
56040
56041 2006-12-27  Eric Blake  <ebb9@byu.net>
56042
56043         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56044         module uses more than what <wctype.h> is required to provide.
56045
56046 2006-12-26  Eric Blake  <ebb9@byu.net>
56047
56048         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56049
56050 2006-12-26  Eric Blake  <ebb9@byu.net>
56051
56052         * modules/absolute-header: New module.
56053         * modules/fcntl (Depends-on): Depend on it.
56054         * modules/inttypes (Depends-on): Likewise.
56055         * modules/stdint (Depends-on): Likewise.
56056         * modules/sys_stat (Depends-on): Likewise.
56057         * modules/wctype (Depends-on): Likewise.
56058         * MODULES.html.sh (Support for building libraries and
56059         executables): Document it.
56060
56061 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56062
56063         * gnulib-tool (SED): Remove, undoing previous change.
56064         The problem was that it broke coreutils on Solaris, because
56065         "sed --posix" leaked into a makefile.
56066         (sed): New alias, if 'alias' and GNU sed.
56067
56068 2006-12-24  Jim Meyering  <jim@meyering.net>
56069
56070         Work around an fchownat bug in glibc-2.4:
56071         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56072         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56073         in spite of the -P option.
56074         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56075         New macros.
56076         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56077         * modules/openat (Files): Add lib/fchownat.c.
56078         * lib/openat.c (fchownat): Don't define here.  Move to...
56079         * lib/fchownat.c: ...this new file.
56080
56081 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56082
56083         Fix bug reported by Bruno Haible in
56084         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56085         where quotearg.c didn't compile on Mac OS X 10.2 because it
56086         lacks <wchar.h> and wint_t.
56087         * lib/wctype_.h (__wctype_wint_t): New type.
56088         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56089         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56090         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56091         Arg is now of type __wctype_wint_t, not wint_t.
56092         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56093         substitute HAVE_WINT_T.
56094         * modules/wctype (Files): Add m4/wint_t.m4.
56095         (wctype.h): Substitute HAVE_WINT_T.
56096
56097 2006-12-23  Bruno Haible  <bruno@clisp.org>
56098
56099         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56100
56101 2006-12-23  Bruno Haible  <bruno@clisp.org>
56102
56103         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56104         S_ISLNK.
56105         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56106         mingw.
56107
56108 2006-12-22  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/copy-file.c: Include acl.h.
56111         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56112         Close the file descriptors only after being done with copy_acl.
56113         * modules/copy-file (Depends-on): Add acl.
56114
56115 2006-12-22  Bruno Haible  <bruno@clisp.org>
56116
56117         * gnulib-tool (SED): New variable.
56118         Use $SED instead of sed everywhere.
56119
56120 2006-12-22  Bruno Haible  <bruno@clisp.org>
56121
56122         * modules/no-c++: New file.
56123         * m4/no-c++.m4: New file.
56124         * MODULES.html.sh (Support for building libraries and executables):
56125         Add no-c++.
56126
56127 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56128
56129         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56130         Include <limits.h>, and use its INT_MAX to rewrite the
56131         j loop so that it does not overflow 'int'.  Problem reported by
56132         Ralf Wildenhues in
56133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56134         Play it safe by shifting left by 1 rather than multiplying by 2,
56135         as GCC is less likely to optimize this away when the value
56136         is signed (when it assumes overflow leads to undefined behavior).
56137         Also, don't assume time_t uses two's complement.
56138
56139 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56140
56141         * MODULES.html.sh: New module wctype.
56142         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56143         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56144         <wctype.h>, since the new wctype module should fix this.
56145         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56146         the wctype module should arrange for it.
56147         * lib/regex_internal.h: Likewise.
56148         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56149         since the wctype module should handle this now.
56150         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56151         * modules/fnmatch (Depends-on): Add wctype.
56152         * modules/quotearg (Depends-on): Likewise.
56153         * modules/regex (Depends-on): Likewise.
56154
56155 2006-12-19  Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56158         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56159
56160 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56161
56162         * modules/savewd (Depends-on): Fix dependency on fcntl.
56163
56164 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56165
56166         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56167         conforms to C99, rather than relying on the user's environment
56168         setting of STDINT_H.
56169
56170 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56171         and Eric Blake  <ebb9@byu.net>
56172
56173         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56174         This is more consistent with the other defines here.
56175         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56176         Port to z/OS.  Problem reported by Paul Gilmartin.
56177         Change local vars to use gl_ prefix rather than ac_.
56178         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56179         with other defines.
56180         * modules/double-slash-root: New module.
56181         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56182         (Depends-on): Add double-slash-root.
56183         * MODULES.html.sh (File system functions): Mention new module.
56184
56185 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56186
56187         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56188         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56189         This is for the benefit of gzip, which doesn't do i18n.
56190
56191 2006-12-12  Jim Meyering  <jim@meyering.net>
56192
56193         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56194         Reported by Andreas Schwab <schwab@suse.de>.
56195
56196 2006-12-12  Bruno Haible  <bruno@clisp.org>
56197
56198         Merge these changes.
56199         2006-09-05  Bruno Haible  <bruno@clisp.org>
56200         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56201         iconv_alloc succeeded.
56202         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56203         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56204         test for " && dest " at the end - dest is always != NULL there. Call
56205         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56206         with 2xNULL arguments, also to flush the state storage. Handle the
56207         IRIX iconv behaviour. Realloc the final result, to throw away unused
56208         memory.
56209
56210 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56211
56212         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56213         and fchmodat unconditionally, since glibc 2.4 has them.
56214         Problem reported by Arkadiusz Miskiewicz.
56215
56216 2006-12-10  Bruno Haible  <bruno@clisp.org>
56217
56218         * gnulib-tool (func_import): Show the include files only for those
56219         modules that are copied and specified.
56220         Reported by Karl Berry.
56221
56222 2006-12-08  Jim Meyering  <jim@meyering.net>
56223
56224         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56225         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56226
56227         * build-aux/announce-gen: Add two new options, both optional:
56228         --bootstrap-tools=TOOL_LIST
56229               a comma-separated list of tools, e.g.,
56230               autoconf,automake,bison,gnulib
56231         --gnulib-snapshot-date=DATE
56232               if gnulib is in the bootstrap tool list,
56233               then report this as the snapshot date.
56234               If not specified, use the current date/time.
56235               If you specify a date here, be sure it's UTC.
56236
56237 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56238
56239         * tests/test-argp-2.sh: Fix test to match actual output.
56240         (func_compare): Fix sed script to be portable.
56241
56242 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56243
56244         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56245         workaround for this case.  It is not autoconfigured now; offhand
56246         it's hard to see how to autoconfigure it.
56247
56248 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56249
56250         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56251         a directory that is about to be chowned.  Such a directory's
56252         initial file permissions should permit the owner only and this
56253         should not be changed until after the chown, since the group and
56254         other bits would be incorrect if they granted permission before
56255         the chown.
56256
56257         Fix porting problem for iswctype reported by Georg Schwarz in:
56258         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56259         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56260         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56261         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56262         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56263
56264 2006-12-03  Jim Meyering  <jim@meyering.net>
56265
56266         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56267         p->fts_statp may not yet be defined.
56268         (fts_read): Instead, set it in the caller, once p->fts_statp is
56269         sure to be defined, and corresponds to a top-level directory.
56270         This bug made du -x fail.  Here's the coreutils test case:
56271         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56272         Reported by Mike Frysinger.
56273
56274 2006-12-01  Jim Meyering  <jim@meyering.net>
56275
56276         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56277         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56278         Reported by Simon Josefsson.
56279
56280 2006-11-30  Jim Meyering  <jim@meyering.net>
56281
56282         * m4/warning.m4: Use the all-permissive copyright notice
56283         recommended by RMS (rather than LGPL).
56284         * m4/vararrays.m4: Likewise.
56285         * m4/flexmember.m4: Likewise.
56286
56287 2006-11-29  Bruno Haible  <bruno@clisp.org>
56288
56289         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56290         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56291         using +=.
56292         Reported by Simon Josefsson <simon@josefsson.org>.
56293
56294 2006-11-28  James Youngman <jay@gnu.org>
56295
56296         * README: Advise users that they might find the bug-gnulib@gnu.org
56297         and autotools-announce@gnu.org mailing lists useful.
56298
56299 2006-11-28  Bruno Haible  <bruno@clisp.org>
56300
56301         * m4/ptrdiff_max.m4: Remove file.
56302
56303 2006-11-21  Bruno Haible  <bruno@clisp.org>
56304
56305         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56306         _AC_COMPUTE_INT.
56307         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56308         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56309         _AC_COMPUTE_INT.
56310         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56311         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56312         _AC_COMPUTE_INT.
56313         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56314
56315 2006-11-28  Jim Meyering  <jim@meyering.net>
56316
56317         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56318         warning from "gcc -Wshadow" about shadowing the builtin.
56319
56320 2006-11-27  Bruno Haible  <bruno@clisp.org>
56321
56322         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): 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-27  Bruno Haible  <bruno@clisp.org>
56327             Paul Eggert  <eggert@cs.ucla.edu>
56328
56329         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56330
56331 2006-11-26  Bruno Haible  <bruno@clisp.org>
56332
56333         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56334         noinst_LTLIBRARIES.
56335
56336 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56337             Bruno Haible  <bruno@clisp.org>
56338
56339         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56340         if compiling with "gcc -ansi".
56341
56342 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56343
56344         Fix some incompatibilities with gcc -ansi -pedantic.
56345         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56346         if compiling pedantically with GCC, unless it's C99 or later.
56347         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56348         it mishandles gcc -ansi -pedantic as well.
56349         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56350         if gcc -pedantic.
56351         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56352         initializers for struct if -pedantic, unless it's C99 or later.
56353
56354 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56355
56356         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56357         Don't close an fd more than once. Identical atimes indicate
56358         success, not failure.
56359
56360 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56361
56362         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56363
56364 2006-11-23  Jim Meyering  <jim@meyering.net>
56365
56366         * build-aux/announce-gen: New file.  From coreutils.
56367
56368 2006-11-22  Jim Meyering  <jim@meyering.net>
56369
56370         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56371         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56372         (fts_read): Use a temporary to narrow the overused st_size member
56373         before using it in a switch statement.  Reported by Matthew Woehlke.
56374
56375         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56376         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56377
56378 2006-11-20  Bruno Haible  <bruno@clisp.org>
56379
56380         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56381         changequote instead of pairs of brackets.
56382         Reported by Andreas Schwab <schwab@suse.de>.
56383
56384 2006-11-21  Jim Meyering  <jim@meyering.net>
56385
56386         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56387         so as to remain compatible with older compilers.
56388         Patch from Michael Deutschmann.
56389
56390 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56391
56392         * MODULES.html.sh (File system functions): Add openat.
56393
56394         * lib/openat.h (rpl_fstatat): New macro, if
56395         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56396         (fstatat): Define to rpl_fstatat under the same conditions,
56397         unless COMPILING_FSTATAT.
56398         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56399         seems to have the bug.
56400         * lib/fstatat.c: New file.
56401         * modules/openat (Files): Add it.
56402
56403 2006-11-20  Bruno Haible  <bruno@clisp.org>
56404
56405         * Makefile: New file.
56406
56407 2006-11-20  Jim Meyering  <jim@meyering.net>
56408
56409         The beginnings of syntax-related checks for gnulib.
56410         * lib/Makefile: New file.
56411         * lib/t-idcache: New script.  Ensure that the two halves of
56412         idcache.c stay in sync.
56413
56414         * lib/idcache.c: Adjust comments in user- and group- portions to
56415         be more accurate, and to be consistent with one another.
56416
56417 2006-11-20  Jim Meyering  <jim@meyering.net>
56418
56419         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56420         continue using the flexible array member (thus, this module performs
56421         half as many malloc calls), with the addition that...
56422         (getgroup, getuser): Consistently record a non-match via an empty
56423         "name" string, and map an empty string match to a NULL return value.
56424         * modules/idcache (Depends-on): Re-add flexmember.
56425
56426         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56427         (getuidbyname, getgroup, getgidbyname): Likewise.
56428
56429         Use cleaner syntax: NULL rather than 0.
56430         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56431
56432 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56433
56434         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56435         It mishandled the case where the group was missing.
56436         Problem reported by Greg Schafer.
56437         * modules/idcache: Likewise.
56438
56439 2006-11-18  Jim Meyering  <jim@meyering.net>
56440
56441         * check-module (%exempt_header): Add exception for some
56442         conditionally-included headers.
56443
56444         * modules/i-ring (Depends-on): Add verify.
56445         (License): Change to LGPL.
56446
56447 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56448
56449         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56450         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56451         and inttostr.h.  Use snprintf rather than uinttostr, so that
56452         LGPLed code doesn't depend on GPLed.
56453
56454 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56455
56456         * modules/inline (License): Change from GPL to LGPL.
56457
56458 2006-11-17  Jim Meyering  <jim@meyering.net>
56459
56460         * modules/d-type (License): Switch to LGPL.
56461
56462 2006-11-15  Bruno Haible  <bruno@clisp.org>
56463
56464         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56465
56466 2006-11-15  Eric Blake  <ebb9@byu.net>
56467
56468         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56469         the module dependency.
56470
56471 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56472             Bruno Haible  <bruno@clisp.org>
56473
56474         * gnulib-tool (func_create_testdir): Add license consistency check.
56475
56476 2006-11-15  Eric Blake  <ebb9@byu.net>
56477
56478         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56479         random "(cached)" in configure output.
56480
56481 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56482
56483         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56484         test for conforming inttypes.h is both announced and cached.
56485
56486         * MODULES.html.sh (seen_modules, seen_files): New variables.
56487         (func_module): Rewrite to use a few less gnulib-tool and sed
56488         invocations.  Avoid a couple of quadratic algorithms for ...
56489         (missed_modules, missed_files): ... these, with ...
56490         (func_append, func_tmpdir): ... these new functions, from
56491         gnulib-tool.  Analogously, install traps for cleanup.
56492
56493         * tests/test-gc.c (main): Remove unused variables.
56494         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56495
56496 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56497
56498         * modules/inttostr (License): Change to LGPL.
56499
56500 2006-11-14  Eric Blake  <ebb9@byu.net>
56501
56502         * modules/tempname (License): Change to LGPL.
56503
56504 2006-11-14  Eric Blake  <ebb9@byu.net>
56505
56506         * doc/functions.texi (Function Portability): *printf functions on
56507         Cygwin now understand all POSIX size specifiers.
56508
56509 2006-11-14  Bruno Haible  <bruno@clisp.org>
56510
56511         * modules/c-ctype (License): Change to LGPL.
56512
56513 2006-11-12  Bruno Haible  <bruno@clisp.org>
56514
56515         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56516         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56517         for GNOME libraries, for which the include files are installed in
56518         subdirectories of $prefix/include.
56519
56520 2006-11-12  Bruno Haible  <bruno@clisp.org>
56521
56522         * m4/lib-link.m4: Require at least autoconf-2.54.
56523         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56524         name to underscores for the --with option.
56525
56526 2006-11-13  Bruno Haible  <bruno@clisp.org>
56527
56528         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56529         the tests directory.
56530         Reported by Ralf Wildenhues.
56531
56532 2006-11-13  Bruno Haible  <bruno@clisp.org>
56533
56534         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56535         (func_emit_initmacro_end): Undo the override here.
56536         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56537         Works around the famous automake error in coreutils.
56538
56539 2006-11-13  Eric Blake  <ebb9@byu.net>
56540
56541         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56542         element, not its node.
56543
56544 2006-11-12  Bruno Haible  <bruno@clisp.org>
56545
56546         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56547         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56548
56549 2006-11-12  Bruno Haible  <bruno@clisp.org>
56550
56551         * gnulib-tool: New option --local-symlink.
56552         (func_usage): Document it.
56553         (lsymbolic): New variable.
56554         (func_import, func_create_testdir): If --symlink was not specified,
56555         test whether --local-symlink was specified and the file comes from
56556         the local_gnulib_dir.
56557
56558 2006-11-12  Bruno Haible  <bruno@clisp.org>
56559
56560         * gnulib-tool (func_ln): New function.
56561         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56562
56563 2006-11-12  Bruno Haible  <bruno@clisp.org>
56564
56565         Finish support for source files in subdirectories.
56566         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56567         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56568         AUTOMAKE_OPTIONS.
56569         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56570
56571 2006-11-12  Bruno Haible  <bruno@clisp.org>
56572
56573         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56574         EXTRA_lib_SOURCES augmentation.
56575         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56576
56577 2006-11-12  Jim Meyering  <jim@meyering.net>
56578
56579         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56580         file descriptors.  This also averts a failure on systems with
56581         native openat support when a traversed directory lacks "x" access.
56582         * lib/fts_.h: Include "i-ring.h"
56583         (struct FTS) [fts_fd_ring]: New member.
56584         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56585         (FCHDIR): Add parentheses.
56586         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56587         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56588         When descending, rather than simply closing the previous
56589         fts_cwd_fd value, push that file descriptor onto the ring.
56590         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56591         (fts_open): Initialize the new fd_ring member.
56592         (fts_close): Clear the ring.
56593         (fts_safe_changedir): When possible, use our new fd_ring to skip
56594         the diropen and fstat and dev/ino comparison that would normally
56595         accompany a virtual `chdir ("..")'.
56596
56597         * modules/fts (Depends-on): Add i-ring.
56598         * modules/i-ring: New module.
56599         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56600         * m4/i-ring.m4: New file.
56601
56602 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56603
56604         * gnulib-tool (func_create_testdir): Fix replacement of
56605         `build-aux' in configure.ac.  Run autotools in gltests
56606         subdirectory.
56607         (func_create_testdir, func_create_megatestdir, test): There is
56608         no need for '--force' in most autotool invocations in a new
56609         tree.  Actually fail the whole test if any of the tools, or the
56610         configure or make stages fail.
56611
56612         Sync from Automake.
56613         * build-aux/gnupload: Revert last change.  Add pointer to upload
56614         instructions of the GNU Maintenance Instructions.
56615         Suggestion by Karl Berry.
56616
56617 2006-11-10  Jim Meyering  <jim@meyering.net>
56618
56619         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56620
56621 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56622
56623         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56624         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56625         (bind_textdomain_codeset) [! ENABLE_NLS]:
56626         Evaluate all the arguments.  That way, callers get compatible behavior
56627         if the arguments have side effects.  Also, it avoids some GCC
56628         diagnostics in some cases; Joel E. Denny reported problems when Bison
56629         was configured with --enable-gcc-warnigs.
56630
56631 2006-11-10  Jim Meyering  <jim@meyering.net>
56632
56633         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56634         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56635         account.
56636
56637 2006-11-10  Jim Meyering  <jim@meyering.net>
56638
56639         * modules/inline: New file/module.
56640         * modules/xalloc (Files): Remove m4/inline.m4.
56641         (Depends-on): Add inline, instead.
56642         * modules/oset: Likewise.
56643         * modules/list: Likewise.
56644
56645 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56646
56647         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56648         Problem reported by Matthew Woehlke.
56649
56650 2006-11-09  Bruno Haible  <bruno@clisp.org>
56651
56652         * lib/tempname.c (gen_tempname): Remove variant that invokes
56653         __gen_tempname.
56654         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56655         __gen_tempname.
56656
56657 2006-11-08  Bruno Haible  <bruno@clisp.org>
56658
56659         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56660         to 'yes' instead of 'cross-compiling'.
56661
56662 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56663
56664         * lib/quotearg.h (quotearg_free): New decl.
56665         * lib/quotearg.c (quotearg_free): New function.
56666         (slot0, nslots, slotvec0, slotvec):
56667         Now file-scope so that quotearg_free can get at them.
56668
56669 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56670
56671         Sync from Automake.
56672         * build-aux/gnupload: Add missing 'gnu' to example URL.
56673         Report by Karl Berry.
56674
56675 2006-11-08  Bruno Haible  <bruno@clisp.org>
56676
56677         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56678         Suggested by Paul Eggert.
56679
56680 2006-11-08  Jim Meyering  <jim@meyering.net>
56681
56682         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56683         It's already included if !_LIBC.
56684         (fts_safe_changedir): Add a comment.
56685
56686 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56687
56688         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56689         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56690         Matthew Woehlke.
56691
56692         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56693         definitions up, to avoid colliding with change below.
56694         (static_inline) [HAVE_INLINE]: New macro.
56695         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56696         Provide extern decls when !HAVE_INLINE.  Do not define unless
56697         static_inline is defined, either by us or by xmalloc.c.  Use
56698         static_inline rather than static inline.
56699         (XCALLOC): Optimize sizeof(T) = 1 case.
56700         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56701
56702 2006-11-07  Bruno Haible  <bruno@clisp.org>
56703
56704         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56705         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56706         AC_C_INLINE.
56707         * modules/xalloc (Files): Add m4/inline.m4.
56708
56709 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56710
56711         * README: Fix typo.
56712         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56713         (Miscellanous Notes): ...from this.
56714
56715 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56716
56717         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56718         Mention that offsetof should be used instead of sizeof.
56719         From Bruno Haible.
56720
56721 2006-11-07  Bruno Haible  <bruno@clisp.org>
56722
56723         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56724
56725 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56726
56727         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56728         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56729         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56730         (gl_tree_add_before, gl_tree_add_after):
56731         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56732         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56733         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56734         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56735         (gl_linked_add_after, gl_linked_add_at): Likewise.
56736         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56737         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56738         (gl_tree_add_before, gl_tree_add_after): Likewise.
56739         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56740         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56741         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56742
56743 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56744
56745         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56746
56747 2006-11-06  Bruno Haible  <bruno@clisp.org>
56748
56749         * m4/inline.m4: New file.
56750         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56751         * modules/list (Files): Add m4/inline.m4.
56752         * modules/oset (Files): Likewise.
56753
56754 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56755
56756         * lib/idcache.c: Include <stddef.h>, for offsetof.
56757         (struct userid.name): Change from char * to a flexible array member.
56758         All uses changed.
56759         * modules/idcache (Depends-on): Add flexmember.
56760
56761         * MODULES.html.sh (Core language properties): New module flexmember.
56762         * modules/flexmember, m4/flexmember.m4: New files.
56763
56764         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56765         inline functions that are identical with the old xnmalloc_inline,
56766         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56767         that we can avoid some unnecessary integer multiplications and
56768         divisions in the common case where the element size is known at
56769         compile time.
56770         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56771         needed.
56772         (xnboundedmalloc): Remove.
56773         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56774         arguments, for consistency with rest of this header.
56775         (xcharalloc): Rewrite using XNMALLOC.
56776         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56777         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56778         versions have been moved to lib/xalloc.h and renamed to be the
56779         non-*_inline versions.
56780         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56781         and xnrealloc functions, since those functions are now inline and
56782         now call us.
56783         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56784         renaming described above.
56785         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56786         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56787         captures the dependency in AC_C_INLINE.
56788
56789         New module canonicalize-lgpl, proposed by Charles Wilson in
56790         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56791         with a few small changes afterwards.
56792         * MODULES.html.sh (File system functions): New module
56793         canonicalize-lgpl.
56794         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56795         and canonicalize_file_name.
56796         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56797         * modules/canonicalize-lgpl: New files.
56798
56799 2006-11-05  Bruno Haible  <bruno@clisp.org>
56800
56801         * gnulib-tool (func_import, func_create_testdir): Create directories
56802         also for files in subdirectories of lib/.
56803
56804 2006-11-05  Bruno Haible  <bruno@clisp.org>
56805
56806         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56807         ANSI C compliant.
56808
56809 2006-11-03  Bruno Haible  <bruno@clisp.org>
56810
56811         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56812         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56813         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56814         (xnboundedmalloc): New inline function.
56815         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56816         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56817         xmalloc.
56818         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56819         xmalloc.
56820         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56821         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56822         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56823         xmalloc.
56824         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56825         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56826         xmalloc.
56827         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56828         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56829         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56830         xmalloc.
56831         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56832         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56833         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56834         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56835         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56836         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56837         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56838
56839 2006-11-03  Bruno Haible  <bruno@clisp.org>
56840
56841         * lib/c-ctype.h [C++]: Define functions without name mangling.
56842         * lib/fwriteerror.h [C++]: Likewise.
56843         * lib/gcd.h [C++]: Likewise.
56844         * lib/linebreak.h [C++]: Likewise.
56845
56846 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56847
56848         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56849         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56850         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56851         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56852         Check for functions and headers just once.
56853         Check for declaration of canonicalize_file_name.
56854         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56855
56856 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56857
56858         * gnulib-tool (func_import): Fix typo in actioncmd.
56859
56860 2006-11-02  Bruno Haible  <bruno@clisp.org>
56861
56862         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56863         newline sequence in the Makefile.am snippet as a space, like "make"
56864         does.
56865         Reported by Roger Persson <perrog@gmail.com>.
56866
56867 2006-11-01  Bruno Haible  <bruno@clisp.org>
56868
56869         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56870         already declared in <string.h>.
56871         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56872
56873 2006-11-01  Bruno Haible  <bruno@clisp.org>
56874
56875         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56876         * lib/strcase.h: Include <string.h>.
56877         (strcasecmp): Define to rpl_strcasecmp here.
56878
56879 2006-11-01  Bruno Haible  <bruno@clisp.org>
56880
56881         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56882
56883 2006-11-01  Eric Blake  <ebb9@byu.net>
56884
56885         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56886
56887         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56888
56889 2006-10-29  Bruno Haible  <bruno@clisp.org>
56890
56891         Make it compile in C++ mode.
56892         * lib/full-write.c (full_rw): Add a cast.
56893
56894 2006-11-01  Bruno Haible  <bruno@clisp.org>
56895
56896         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56897         be POSIX compliant.
56898         Reported by Roger Persson <perrog@gmail.com>.
56899
56900 2006-11-01  Eric Blake  <ebb9@byu.net>
56901
56902         * lib/getopt_.h: Fix comments.
56903
56904 2006-10-31  Eric Blake  <ebb9@byu.net>
56905
56906         * modules/tmpdir (Depends-on): Add sys_stat.
56907         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56908         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56909         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56910         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56911         tempname.
56912
56913 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56914
56915         Avoid some C++ diagnostics reported by Bruno Haible.
56916         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56917         xmalloc.
56918         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56919         (struct slotvec): Move to top level.
56920         (quotearg_n_options): Rewrite to avoid xmalloc.
56921         * lib/xalloc.h (xcharalloc): New function.
56922         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56923         [defined __cplusplus]: Add function template that provides result
56924         type propagation.  This part of the change is from Bruno Haible.
56925
56926 2006-10-29  Bruno Haible  <bruno@clisp.org>
56927
56928         Make it compile in C++ mode.
56929         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56930         * lib/strnlen1.c (strnlen1): Cast memchr result.
56931         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56932         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56933         (create_temp_dir): Rename local variable 'template'.
56934         (compile_csharp_using_sscli): Add cast.
56935         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56936         * lib/findprog.c (find_in_path): Likewise.
56937         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56938         * lib/wait-process.c (register_slave_subprocess): Likewise.
56939
56940 2006-10-22  Bruno Haible  <bruno@clisp.org>
56941
56942         * modules/tsearch: New file.
56943         * lib/tsearch.h: New file.
56944         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56945         * m4/tsearch.m4: New file.
56946         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56947
56948 2006-10-29  Eric Blake  <ebb9@byu.net>
56949
56950         * lib/arcfour.c: Assume config.h.
56951         * lib/arctwo.c: Likewise.
56952         * lib/base64.c: Likewise.
56953         * lib/check-version.c: Likewise.
56954         * lib/crc.c: Likewise.
56955         * lib/des.c: Likewise.
56956         * lib/gc-gnulib.c: Likewise.
56957         * lib/gc-libgcrypt.c: Likewise.
56958         * lib/gc-pbkdf2-sha1.c: Likewise.
56959         * lib/getaddrinfo.c: Likewise.
56960         * lib/getdelim.c: Likewise.
56961         * lib/getline.c: Likewise.
56962         * lib/hmac-md5.c: Likewise.
56963         * lib/hmac-sha1.c: Likewise.
56964         * lib/iconvme.c: Likewise.
56965         * lib/md2.c: Likewise.
56966         * lib/md4.c: Likewise.
56967         * lib/memxor.c: Likewise.
56968         * lib/read-file.c: Likewise.
56969         * lib/readline.c: Likewise.
56970         * lib/rijndael-alg-fst.c: Likewise.
56971         * lib/rijndael-api-fst.c: Likewise.
56972         * lib/xgetdomainname.c: Likewise.
56973
56974 2006-10-28  Eric Blake  <ebb9@byu.net>
56975
56976         * lib/xstrndup.c: Assume config.h.
56977
56978 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56979
56980         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56981         stat-macros.h is now for our own macros, whereas stat_h is for
56982         macros in the <sys/stat.h> name space.
56983         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56984         (STAT_MACROS_H): Remove.
56985         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56986         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56987         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56988         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56989         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56990         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56991         Move these macros to ...
56992         * lib/stat_.h: here.  Don't include stat-macros.h.
56993         * lib/canonicalize.c: Don't include stat-macros.h.
56994         * lib/chown.c: Likewise.
56995         * lib/euidaccess.c: Likewise.
56996         * lib/file-type.c: Likewise.
56997         * lib/filemode.c: Likewise.
56998         * lib/glob.c: Likewise.
56999         * lib/isapipe.c: Likewise.
57000         * lib/lchown.c: Likewise.
57001         * lib/lstat.c: Likewise.
57002         * lib/mkdir-p.c: Likewise.
57003         * lib/rmdir.c: Likewise.
57004         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57005         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57006         unless mkdir isn't declared, to speed up 'configure'.
57007         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57008         would define all the S_* symbols.
57009         * modules/canonicalize (Depends-on):
57010         Depend on sys_stat, not stat-macros.
57011         * modules/chown: Likewise.
57012         * modules/euidaccess: Likewise.
57013         * modules/filemode: Likewise.
57014         * modules/file-type: Likewise.
57015         * modules/glob: Likewise.
57016         * modules/isapipe: Likewise.
57017         * modules/lchown: Likewise.
57018         * modules/lstat: Likewise.
57019         * modules/mkancesdirs: Likewise.
57020         * modules/rmdir: Likewise.
57021         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57022         * modules/modechange: Likewise.
57023         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57024         (configure.ac): Remove gl_STAT_MACROS.
57025         * modules/sys_stat (Depends-on): Remove stat-macros.
57026
57027 2006-10-27  Bruno Haible  <bruno@clisp.org>
57028
57029         * m4/signed.m4: Remove file.
57030         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57031         invocation.
57032         * modules/vasnprintf (Files): Remove m4/signed.m4.
57033
57034 2006-10-27  Bruno Haible  <bruno@clisp.org>
57035
57036         Update to GNU gettext 0.16.
57037         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57038         m4/inttypes-h.m4, m4/signed.m4.
57039         * m4/gettext.m4: Update to GNU gettext 0.16.
57040         * m4/intl.m4: New file, from GNU gettext.
57041         * m4/intldir.m4: New file, from GNU gettext.
57042         * config/srclist.txt: Update
57043
57044 2006-10-27  Eric Blake  <ebb9@byu.net>
57045
57046         * MODULES.html.sh: Document tempname.
57047         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57048         dependencies.
57049         (Files): Move lib/tempname.c...
57050         * modules/tempname: ...to this new module.
57051         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57052         (gl_PREREQ_TEMPNAME): Move...
57053         * m4/tempname.m4: ...to this new file.
57054         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57055         * modules/sys_stat (Depends-on): Add stat-macros.
57056         * lib/stat_.h (includes): Pick up stat macros.
57057         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57058         if stat macros are broken.
57059         * lib/tempname.c (includes): No need to include "stat-macros.h".
57060         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57061         (direxists, __path_search) [!_LIBC]: Don't compile these in
57062         gnulib; the tmpdir module covers that.
57063         * lib/tempname.h: New file.
57064
57065 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57066
57067         * COPYING: Explain how gnulib-tool converts licence headers.
57068         Almost all wording by Eric Blake.
57069
57070 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57071
57072         * lib/mbchar.h (is_basic_table): Make read-only.
57073         * lib/mbchar.c (is_basic_table): Likewise.
57074         Reported by John Darrington.
57075
57076 2006-10-25  Bruno Haible  <bruno@clisp.org>
57077
57078         * lib/progname.h (set_program_name): Undefine before defining.
57079
57080 2006-10-25  Bruno Haible  <bruno@clisp.org>
57081
57082         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57083         false for non-gcc C++ compilers.
57084         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57085
57086 2006-10-24  Bruno Haible  <bruno@clisp.org>
57087
57088         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57089         iconv implementations like Irix iconv.
57090
57091 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57092
57093         * modules/vararrays: New file.
57094         * m4/vararrays.m4: New file, taken from diffutils.
57095         * MODULES.html.sh: New module vararrays.
57096
57097 2006-10-24  Karl Berry  <karl@gnu.org>
57098
57099         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57100         Don't call GNU Unix.
57101
57102 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57103
57104         * users.txt: Add Libtool.
57105
57106         Sync from Libtool:
57107
57108         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57111         to gnulib's policy of including config.h unconditionally.
57112
57113 2006-10-24  Bruno Haible  <bruno@clisp.org>
57114
57115         * modules/wcwidth (Files): Add m4/wint_t.m4.
57116         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57117         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57118
57119 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57120
57121         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57122         to pacify GCC with some -W flags enabled.  Problem reported by
57123         Bruno Haible.
57124
57125 2006-10-24  Jim Meyering  <jim@meyering.net>
57126
57127         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57128         Reported by Karl Berry.
57129
57130 2006-10-23  Bruno Haible  <bruno@clisp.org>
57131
57132         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57133
57134 2006-10-24  Bruno Haible  <bruno@clisp.org>
57135
57136         * lib/gl_list.h: Use C comment style, not C++ comment style.
57137
57138 2006-10-23  Eric Blake  <ebb9@byu.net>
57139
57140         * lib/getaddrinfo.c (includes): Add missing include.
57141
57142 2006-10-23  Bruno Haible  <bruno@clisp.org>
57143             Paul Eggert  <eggert@cs.ucla.edu>
57144
57145         Ability to rename obstack_free.
57146         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57147         obstack_free.
57148         (obstack_free): Invoke the __obstack_free macro.
57149         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57150
57151 2006-10-23  Bruno Haible  <bruno@clisp.org>
57152             Paul Eggert  <eggert@cs.ucla.edu>
57153
57154         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57155         __argc, __argv from the declaration. (They are defined as macros on
57156         mingw.)
57157
57158 2006-10-22  Bruno Haible  <bruno@clisp.org>
57159
57160         * doc/gnulib-intro.texi: New file.
57161         * doc/gnulib.texi: Include it.
57162
57163 2006-10-21  Bruno Haible  <bruno@clisp.org>
57164
57165         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57166         "Introduction", "Miscellanous Notes", "Particular Modules".
57167
57168 2006-10-21  Bruno Haible  <bruno@clisp.org>
57169
57170         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57171         Change mostlyclean-local rule to avoid sh syntax error from bash
57172         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57173
57174 2006-10-23  Jim Meyering  <jim@meyering.net>
57175
57176         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57177         in place of snprintf.
57178
57179         * modules/inttostr (Files): Add lib/uinttostr.c.
57180         * lib/uinttostr.c (inttostr): New file/function.
57181         * lib/inttostr.h (uinttostr): Declare.
57182         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57183         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57184         Add uinttostr.
57185         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57186
57187 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57188
57189         * lib/canonicalize.c (ELOOP): Define if not already defined.
57190         Problem reported by Bruno Haible in
57191         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57192
57193 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57194
57195         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57196         Problem reported by Perry Smith and Ville Laurikari.
57197
57198         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57199         uses.
57200
57201 2006-10-19  Bruno Haible  <bruno@clisp.org>
57202
57203         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57204         for mingw.
57205
57206 2006-10-19  Bruno Haible  <bruno@clisp.org>
57207
57208         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57209         Needed for mingw.
57210
57211 2006-10-19  Bruno Haible  <bruno@clisp.org>
57212
57213         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57214
57215 2006-10-19  Bruno Haible  <bruno@clisp.org>
57216
57217         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57218         it.
57219
57220 2006-10-19  Bruno Haible  <bruno@clisp.org>
57221
57222         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57223         invocation.
57224
57225 2006-10-19  Bruno Haible  <bruno@clisp.org>
57226
57227         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57228         mountlist by default.
57229
57230 2006-10-16  Bruno Haible  <bruno@clisp.org>
57231
57232         * lib/c-strstr.c: Include c-strstr.h.
57233
57234 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57235
57236         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57237         in a slash.
57238
57239 2006-10-18  Bruno Haible  <bruno@clisp.org>
57240
57241         * lib/lock.h [C++]: Wrap definitions in extern "C".
57242
57243 2006-10-18  Bruno Haible  <bruno@clisp.org>
57244
57245         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57246         gl_LIBOBJS list.
57247
57248 2006-10-18  Bruno Haible  <bruno@clisp.org>
57249
57250         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57251
57252 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57253
57254         * lib/xstrtol.h: Include gettext.h.
57255         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57256         Problem reported by Eric Blake.
57257         * modules/xstrtol (Depends-on): Add gettext-h.
57258
57259 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57260
57261         * lib/strftime.c (advance): New macro.
57262         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57263         incomplete type, so you can't add 0 to it.  Problem and patch
57264         reported by Eelco Dolstra for dietlibc.
57265
57266 2006-10-18  Jim Meyering  <jim@meyering.net>
57267
57268         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57269         type for a local, and rename it: s/up/user_proc/.
57270
57271 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57272
57273         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57274         READ_UTMP_USER_PROCESS.
57275         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57276
57277 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57278
57279         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57280         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57281
57282 2006-10-17  Eric Blake  <ebb9@byu.net>
57283
57284         * lib/sigprocmask.c (sigprocmask): Fix typo.
57285
57286         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57287
57288         * modules/clean-temp (Makefile.am): Don't add to make output...
57289         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57290         config.h.
57291
57292 2006-10-17  Bruno Haible  <bruno@clisp.org>
57293
57294         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57295         differently if DEFAULT_TEXT_DOMAIN is set.
57296
57297 2006-10-16  Bruno Haible  <bruno@clisp.org>
57298
57299         * lib/clean-temp.c: Include fwriteerror.h.
57300
57301 2006-10-16  Bruno Haible  <bruno@clisp.org>
57302
57303         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57304
57305 2006-10-16  Bruno Haible  <bruno@clisp.org>
57306
57307         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57308         * lib/sigprocmask.h: Include <sys/types.h>.
57309         (sigset_t): Use the system's definition if present.
57310
57311 2006-10-17  Eric Blake  <ebb9@byu.net>
57312
57313         * lib/xvasprintf.c (includes): Assume config.h.
57314         * lib/xasprintf.c (includes): Likewise.
57315
57316 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57319         at least as wide as intmax_t.
57320
57321 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57322
57323         (Imported from Automake.)
57324         * build-aux/gnupload: Update to version 1.1 of directive file.
57325
57326 2006-10-16  Eric Blake  <ebb9@byu.net>
57327
57328         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57329         match Automake 1.10a.
57330
57331 2006-10-14  Bruno Haible  <bruno@clisp.org>
57332
57333         * modules/sigprocmask: New file.
57334         * lib/sigprocmask.h: New file.
57335         * lib/sigprocmask.c: New file.
57336         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57337         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57338         request sigprocmask.o.
57339         (gl_PREREQ_SIGPROCMASK): New macro.
57340         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57341         (Depends-on): Add sigprocmask.
57342         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57343         gt_SIGNALBLOCKING. Test for 'raise' only once.
57344         * lib/fatal-signal.c: Include sigprocmask.h.
57345         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57346         unblock_fatal_signals): Define always.
57347         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57348         sigprocmask.
57349
57350 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57351
57352         Sync from Automake.
57353         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57354         which incorrectly sets the mode of an existing destination
57355         directory.  In some cases the unpatched install-sh could do the
57356         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57357         system.  We hope this is rare in practice, but it's clearly worth
57358         fixing.  Problem reported by Alex Unleashed in
57359         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57360         Also, don't bother to check for -m bugs unless we're using -m;
57361         suggested by Stepan Kasal.
57362
57363 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57364
57365         Sync from Automake.
57366         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57367         `-c' flag, so they appear at the same position as in %FASTDEP%
57368         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57369         which ignores unknown options only after the first non-option.
57370         Bug report against M4 by Nelson H. F. Beebe.
57371
57372 2006-10-13  Jim Meyering  <jim@meyering.net>
57373
57374         Fix a bug in yesterday's change.
57375         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57376         p->fts_statp->st_dev would be used uninitialized.
57377         Ensures that we always call fts_stat on the very first entry.
57378         Miklos Szeredi reported that find -xdev stopped working.
57379
57380 2006-10-12  Bruno Haible  <bruno@clisp.org>
57381
57382         * gnulib-tool (func_get_automake_snippet): Append an automatically
57383         computed EXTRA_DIST augmentation.
57384         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57385         * modules/alloca-opt (Makefile.am): Likewise.
57386         * modules/allocsa (Makefile.am): Likewise.
57387         * modules/arcfour (Makefile.am): Likewise.
57388         * modules/arctwo (Makefile.am): Likewise.
57389         * modules/argmatch (Makefile.am): Likewise.
57390         * modules/argz (Makefile.am): Likewise.
57391         * modules/atexit (Makefile.am): Likewise.
57392         * modules/backupfile (Makefile.am): Likewise.
57393         * modules/byteswap (Makefile.am): Likewise.
57394         * modules/c-strtod (Makefile.am): Likewise.
57395         * modules/c-strtold (Makefile.am): Likewise.
57396         * modules/calloc (Makefile.am): Likewise.
57397         * modules/canon-host (Makefile.am): Likewise.
57398         * modules/canonicalize (Makefile.am): Likewise.
57399         * modules/chdir-long (Makefile.am): Likewise.
57400         * modules/chdir-safer (Makefile.am): Likewise.
57401         * modules/check-version (Makefile.am): Likewise.
57402         * modules/chown (Makefile.am): Likewise.
57403         * modules/cloexec (Makefile.am): Likewise.
57404         * modules/close-stream (Makefile.am): Likewise.
57405         * modules/closeout (Makefile.am): Likewise.
57406         * modules/crc (Makefile.am): Likewise.
57407         * modules/csharpexec (Makefile.am): Likewise.
57408         * modules/cycle-check (Makefile.am): Likewise.
57409         * modules/des (Makefile.am): Likewise.
57410         * modules/dev-ino (Makefile.am): Likewise.
57411         * modules/dirfd (Makefile.am): Likewise.
57412         * modules/dirname (Makefile.am): Likewise.
57413         * modules/dup2 (Makefile.am): Likewise.
57414         * modules/eealloc (Makefile.am): Likewise.
57415         * modules/error (Makefile.am): Likewise.
57416         * modules/euidaccess (Makefile.am): Likewise.
57417         * modules/exclude (Makefile.am): Likewise.
57418         * modules/exitfail (Makefile.am): Likewise.
57419         * modules/fcntl-safer (Makefile.am): Likewise.
57420         * modules/fcntl (Makefile.am): Likewise.
57421         * modules/file-type (Makefile.am): Likewise.
57422         * modules/fileblocks (Makefile.am): Likewise.
57423         * modules/filemode (Makefile.am): Likewise.
57424         * modules/filenamecat (Makefile.am): Likewise.
57425         * modules/fnmatch (Makefile.am): Likewise.
57426         * modules/fopen-safer (Makefile.am): Likewise.
57427         * modules/fpending (Makefile.am): Likewise.
57428         * modules/fprintftime (Makefile.am): Likewise.
57429         * modules/free (Makefile.am): Likewise.
57430         * modules/fsusage (Makefile.am): Likewise.
57431         * modules/ftruncate (Makefile.am): Likewise.
57432         * modules/fts (Makefile.am): Likewise.
57433         * modules/gc-arcfour (Makefile.am): Likewise.
57434         * modules/gc-des (Makefile.am): Likewise.
57435         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57436         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57437         * modules/gc-md4 (Makefile.am): Likewise.
57438         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57439         * modules/gc-sha1 (Makefile.am): Likewise.
57440         * modules/gc (Makefile.am): Likewise.
57441         * modules/getaddrinfo (Makefile.am): Likewise.
57442         * modules/getcwd (Makefile.am): Likewise.
57443         * modules/getdelim (Makefile.am): Likewise.
57444         * modules/getdomainname (Makefile.am): Likewise.
57445         * modules/getgroups (Makefile.am): Likewise.
57446         * modules/gethostname (Makefile.am): Likewise.
57447         * modules/gethrxtime (Makefile.am): Likewise.
57448         * modules/getline (Makefile.am): Likewise.
57449         * modules/getloadavg (Makefile.am): Likewise.
57450         * modules/getlogin_r (Makefile.am): Likewise.
57451         * modules/getndelim2 (Makefile.am): Likewise.
57452         * modules/getopt (Makefile.am): Likewise.
57453         * modules/getpagesize (Makefile.am): Likewise.
57454         * modules/getpass-gnu (Makefile.am): Likewise.
57455         * modules/getpass (Makefile.am): Likewise.
57456         * modules/getsubopt (Makefile.am): Likewise.
57457         * modules/gettime (Makefile.am): Likewise.
57458         * modules/gettimeofday (Makefile.am): Likewise.
57459         * modules/getugroups (Makefile.am): Likewise.
57460         * modules/getusershell (Makefile.am): Likewise.
57461         * modules/glob (Makefile.am): Likewise.
57462         * modules/group-member (Makefile.am): Likewise.
57463         * modules/hard-locale (Makefile.am): Likewise.
57464         * modules/hash (Makefile.am): Likewise.
57465         * modules/hmac-md5 (Makefile.am): Likewise.
57466         * modules/hmac-sha1 (Makefile.am): Likewise.
57467         * modules/human (Makefile.am): Likewise.
57468         * modules/idcache (Makefile.am): Likewise.
57469         * modules/imaxabs (Makefile.am): Likewise.
57470         * modules/imaxdiv (Makefile.am): Likewise.
57471         * modules/inet_ntop (Makefile.am): Likewise.
57472         * modules/inet_pton (Makefile.am): Likewise.
57473         * modules/intprops (Makefile.am): Likewise.
57474         * modules/inttostr (Makefile.am): Likewise.
57475         * modules/inttypes (Makefile.am): Likewise.
57476         * modules/isapipe (Makefile.am): Likewise.
57477         * modules/javaversion (Makefile.am): Likewise.
57478         * modules/lchmod (Makefile.am): Likewise.
57479         * modules/lchown (Makefile.am): Likewise.
57480         * modules/localcharset (Makefile.am): Likewise.
57481         * modules/long-options (Makefile.am): Likewise.
57482         * modules/lstat (Makefile.am): Likewise.
57483         * modules/malloc (Makefile.am): Likewise.
57484         * modules/mathl (Makefile.am): Likewise.
57485         * modules/mbchar (Makefile.am): Likewise.
57486         * modules/md2 (Makefile.am): Likewise.
57487         * modules/md4 (Makefile.am): Likewise.
57488         * modules/md5 (Makefile.am): Likewise.
57489         * modules/memcasecmp (Makefile.am): Likewise.
57490         * modules/memchr (Makefile.am): Likewise.
57491         * modules/memcmp (Makefile.am): Likewise.
57492         * modules/memcoll (Makefile.am): Likewise.
57493         * modules/memcpy (Makefile.am): Likewise.
57494         * modules/memmem (Makefile.am): Likewise.
57495         * modules/memmove (Makefile.am): Likewise.
57496         * modules/mempcpy (Makefile.am): Likewise.
57497         * modules/memrchr (Makefile.am): Likewise.
57498         * modules/memset (Makefile.am): Likewise.
57499         * modules/memxor (Makefile.am): Likewise.
57500         * modules/mkancesdirs (Makefile.am): Likewise.
57501         * modules/mkdir-p (Makefile.am): Likewise.
57502         * modules/mkdir (Makefile.am): Likewise.
57503         * modules/mkdtemp (Makefile.am): Likewise.
57504         * modules/mkstemp (Makefile.am): Likewise.
57505         * modules/mktime (Makefile.am): Likewise.
57506         * modules/modechange (Makefile.am): Likewise.
57507         * modules/mountlist (Makefile.am): Likewise.
57508         * modules/nanosleep (Makefile.am): Likewise.
57509         * modules/obstack (Makefile.am): Likewise.
57510         * modules/openat (Makefile.am): Likewise.
57511         * modules/pagealign_alloc (Makefile.am): Likewise.
57512         * modules/pathmax (Makefile.am): Likewise.
57513         * modules/physmem (Makefile.am): Likewise.
57514         * modules/poll (Makefile.am): Likewise.
57515         * modules/posixtm (Makefile.am): Likewise.
57516         * modules/posixver (Makefile.am): Likewise.
57517         * modules/putenv (Makefile.am): Likewise.
57518         * modules/quote (Makefile.am): Likewise.
57519         * modules/quotearg (Makefile.am): Likewise.
57520         * modules/raise (Makefile.am): Likewise.
57521         * modules/read-file (Makefile.am): Likewise.
57522         * modules/readline (Makefile.am): Likewise.
57523         * modules/readlink (Makefile.am): Likewise.
57524         * modules/readtokens (Makefile.am): Likewise.
57525         * modules/readutmp (Makefile.am): Likewise.
57526         * modules/realloc (Makefile.am): Likewise.
57527         * modules/regex (Makefile.am): Likewise.
57528         * modules/rename-dest-slash (Makefile.am): Likewise.
57529         * modules/rename (Makefile.am): Likewise.
57530         * modules/rijndael (Makefile.am): Likewise.
57531         * modules/rmdir (Makefile.am): Likewise.
57532         * modules/rpmatch (Makefile.am): Likewise.
57533         * modules/safe-read (Makefile.am): Likewise.
57534         * modules/safe-write (Makefile.am): Likewise.
57535         * modules/same-inode (Makefile.am): Likewise.
57536         * modules/same (Makefile.am): Likewise.
57537         * modules/save-cwd (Makefile.am): Likewise.
57538         * modules/savedir (Makefile.am): Likewise.
57539         * modules/setenv (Makefile.am): Likewise.
57540         * modules/settime (Makefile.am): Likewise.
57541         * modules/sha1 (Makefile.am): Likewise.
57542         * modules/sig2str (Makefile.am): Likewise.
57543         * modules/snprintf (Makefile.am): Likewise.
57544         * modules/stat-macros (Makefile.am): Likewise.
57545         * modules/stat-time (Makefile.am): Likewise.
57546         * modules/stdbool (Makefile.am): Likewise.
57547         * modules/stdint (Makefile.am): Likewise.
57548         * modules/stdlib-safer (Makefile.am): Likewise.
57549         * modules/stpcpy (Makefile.am): Likewise.
57550         * modules/stpncpy (Makefile.am): Likewise.
57551         * modules/strcase (Makefile.am): Likewise.
57552         * modules/strcasestr (Makefile.am): Likewise.
57553         * modules/strchrnul (Makefile.am): Likewise.
57554         * modules/strcspn (Makefile.am): Likewise.
57555         * modules/strdup (Makefile.am): Likewise.
57556         * modules/strerror (Makefile.am): Likewise.
57557         * modules/strftime (Makefile.am): Likewise.
57558         * modules/strndup (Makefile.am): Likewise.
57559         * modules/strnlen (Makefile.am): Likewise.
57560         * modules/strpbrk (Makefile.am): Likewise.
57561         * modules/strsep (Makefile.am): Likewise.
57562         * modules/strstr (Makefile.am): Likewise.
57563         * modules/strtod (Makefile.am): Likewise.
57564         * modules/strtoimax (Makefile.am): Likewise.
57565         * modules/strtok_r (Makefile.am): Likewise.
57566         * modules/strtol (Makefile.am): Likewise.
57567         * modules/strtoll (Makefile.am): Likewise.
57568         * modules/strtoul (Makefile.am): Likewise.
57569         * modules/strtoull (Makefile.am): Likewise.
57570         * modules/strtoumax (Makefile.am): Likewise.
57571         * modules/strverscmp (Makefile.am): Likewise.
57572         * modules/sys_socket (Makefile.am): Likewise.
57573         * modules/sys_stat (Makefile.am): Likewise.
57574         * modules/sysexits (Makefile.am): Likewise.
57575         * modules/time_r (Makefile.am): Likewise.
57576         * modules/timegm (Makefile.am): Likewise.
57577         * modules/timespec (Makefile.am): Likewise.
57578         * modules/tmpfile-safer (Makefile.am): Likewise.
57579         * modules/trim (Makefile.am): Likewise.
57580         * modules/unistd-safer (Makefile.am): Likewise.
57581         * modules/unlinkdir (Makefile.am): Likewise.
57582         * modules/unlocked-io (Makefile.am): Likewise.
57583         * modules/userspec (Makefile.am): Likewise.
57584         * modules/utime (Makefile.am): Likewise.
57585         * modules/utimecmp (Makefile.am): Likewise.
57586         * modules/utimens (Makefile.am): Likewise.
57587         * modules/vasnprintf (Makefile.am): Likewise.
57588         * modules/vasprintf (Makefile.am): Likewise.
57589         * modules/vsnprintf (Makefile.am): Likewise.
57590         * modules/xalloc (Makefile.am): Likewise.
57591         * modules/xgetcwd (Makefile.am): Likewise.
57592         * modules/xnanosleep (Makefile.am): Likewise.
57593         * modules/xreadlink (Makefile.am): Likewise.
57594         * modules/xstrtod (Makefile.am): Likewise.
57595         * modules/xstrtol (Makefile.am): Likewise.
57596         * modules/xstrtold (Makefile.am): Likewise.
57597         * modules/yesno (Makefile.am): Likewise.
57598         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57599
57600 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57601
57602         * modules/error (Makefile.am): Distribute files through
57603         EXTRA_DIST, not lib_SOURCES.
57604
57605 2006-10-12  Eric Blake  <ebb9@byu.net>
57606
57607         * modules/error (Makefile.am): Distribute files in /lib.
57608         * modules/obstack (Makefile.am): Likewise.
57609
57610 2006-10-12  Bruno Haible  <bruno@clisp.org>
57611
57612         * modules/acl (Makefile.am): Distribute all files in lib/ through
57613         EXTRA_DIST.
57614         * modules/arcfour (Makefile.am): Likewise.
57615         * modules/arctwo (Makefile.am): Likewise.
57616         * modules/argmatch (Makefile.am): Likewise.
57617         * modules/argz (Makefile.am): Likewise.
57618         * modules/atexit (Makefile.am): Likewise.
57619         * modules/backupfile (Makefile.am): Likewise.
57620         * modules/c-strtod (Makefile.am): Likewise.
57621         * modules/c-strtold (Makefile.am): Likewise.
57622         * modules/calloc (Makefile.am): Likewise.
57623         * modules/canon-host (Makefile.am): Likewise.
57624         * modules/canonicalize (Makefile.am): Likewise.
57625         * modules/chdir-long (Makefile.am): Likewise.
57626         * modules/chdir-safer (Makefile.am): Likewise.
57627         * modules/check-version (Makefile.am): Likewise.
57628         * modules/chown (Makefile.am): Likewise.
57629         * modules/cloexec (Makefile.am): Likewise.
57630         * modules/close-stream (Makefile.am): Likewise.
57631         * modules/closeout (Makefile.am): Likewise.
57632         * modules/crc (Makefile.am): Likewise.
57633         * modules/cycle-check (Makefile.am): Likewise.
57634         * modules/des (Makefile.am): Likewise.
57635         * modules/dirfd (Makefile.am): Likewise.
57636         * modules/dirname (Makefile.am): Likewise.
57637         * modules/dup2 (Makefile.am): Likewise.
57638         * modules/euidaccess (Makefile.am): Likewise.
57639         * modules/exclude (Makefile.am): Likewise.
57640         * modules/exitfail (Makefile.am): Likewise.
57641         * modules/fcntl-safer (Makefile.am): Likewise.
57642         * modules/file-type (Makefile.am): Likewise.
57643         * modules/fileblocks (Makefile.am): Likewise.
57644         * modules/filemode (Makefile.am): Likewise.
57645         * modules/filenamecat (Makefile.am): Likewise.
57646         * modules/fnmatch (Makefile.am): Likewise.
57647         * modules/fopen-safer (Makefile.am): Likewise.
57648         * modules/fpending (Makefile.am): Likewise.
57649         * modules/fprintftime (Makefile.am): Likewise.
57650         * modules/free (Makefile.am): Likewise.
57651         * modules/fsusage (Makefile.am): Likewise.
57652         * modules/ftruncate (Makefile.am): Likewise.
57653         * modules/fts (Makefile.am): Likewise.
57654         * modules/gc (Makefile.am): Likewise.
57655         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57656         * modules/getaddrinfo (Makefile.am): Likewise.
57657         * modules/getcwd (Makefile.am): Likewise.
57658         * modules/getdelim (Makefile.am): Likewise.
57659         * modules/getdomainname (Makefile.am): Likewise.
57660         * modules/getgroups (Makefile.am): Likewise.
57661         * modules/gethostname (Makefile.am): Likewise.
57662         * modules/gethrxtime (Makefile.am): Likewise.
57663         * modules/getline (Makefile.am): Likewise.
57664         * modules/getloadavg (Makefile.am): Likewise.
57665         * modules/getlogin_r (Makefile.am): Likewise.
57666         * modules/getopt (Makefile.am): Likewise.
57667         * modules/getpass (Makefile.am): Likewise.
57668         * modules/getpass-gnu (Makefile.am): Likewise.
57669         * modules/getsubopt (Makefile.am): Likewise.
57670         * modules/gettime (Makefile.am): Likewise.
57671         * modules/gettimeofday (Makefile.am): Likewise.
57672         * modules/getugroups (Makefile.am): Likewise.
57673         * modules/getusershell (Makefile.am): Likewise.
57674         * modules/glob (Makefile.am): Likewise.
57675         * modules/group-member (Makefile.am): Likewise.
57676         * modules/hard-locale (Makefile.am): Likewise.
57677         * modules/hash (Makefile.am): Likewise.
57678         * modules/hmac-md5 (Makefile.am): Likewise.
57679         * modules/hmac-sha1 (Makefile.am): Likewise.
57680         * modules/human (Makefile.am): Likewise.
57681         * modules/idcache (Makefile.am): Likewise.
57682         * modules/imaxabs (Makefile.am): Likewise.
57683         * modules/imaxdiv (Makefile.am): Likewise.
57684         * modules/inet_ntop (Makefile.am): Likewise.
57685         * modules/inet_pton (Makefile.am): Likewise.
57686         * modules/inttostr (Makefile.am): Likewise.
57687         * modules/isapipe (Makefile.am): Likewise.
57688         * modules/lchown (Makefile.am): Likewise.
57689         * modules/long-options (Makefile.am): Likewise.
57690         * modules/lstat (Makefile.am): Likewise.
57691         * modules/malloc (Makefile.am): Likewise.
57692         * modules/mathl (Makefile.am): Likewise.
57693         * modules/mbchar (Makefile.am): Likewise.
57694         * modules/md2 (Makefile.am): Likewise.
57695         * modules/md4 (Makefile.am): Likewise.
57696         * modules/md5 (Makefile.am): Likewise.
57697         * modules/memcasecmp (Makefile.am): Likewise.
57698         * modules/memchr (Makefile.am): Likewise.
57699         * modules/memcmp (Makefile.am): Likewise.
57700         * modules/memcoll (Makefile.am): Likewise.
57701         * modules/memcpy (Makefile.am): Likewise.
57702         * modules/memmem (Makefile.am): Likewise.
57703         * modules/memmove (Makefile.am): Likewise.
57704         * modules/mempcpy (Makefile.am): Likewise.
57705         * modules/memrchr (Makefile.am): Likewise.
57706         * modules/memset (Makefile.am): Likewise.
57707         * modules/memxor (Makefile.am): Likewise.
57708         * modules/mkancesdirs (Makefile.am): Likewise.
57709         * modules/mkdir (Makefile.am): Likewise.
57710         * modules/mkdir-p (Makefile.am): Likewise.
57711         * modules/mkdtemp (Makefile.am): Likewise.
57712         * modules/mkstemp (Makefile.am): Likewise.
57713         * modules/mktime (Makefile.am): Likewise.
57714         * modules/modechange (Makefile.am): Likewise.
57715         * modules/mountlist (Makefile.am): Likewise.
57716         * modules/nanosleep (Makefile.am): Likewise.
57717         * modules/openat (Makefile.am): Likewise.
57718         * modules/pagealign_alloc (Makefile.am): Likewise.
57719         * modules/physmem (Makefile.am): Likewise.
57720         * modules/poll (Makefile.am): Likewise.
57721         * modules/posixtm (Makefile.am): Likewise.
57722         * modules/posixver (Makefile.am): Likewise.
57723         * modules/putenv (Makefile.am): Likewise.
57724         * modules/quote (Makefile.am): Likewise.
57725         * modules/quotearg (Makefile.am): Likewise.
57726         * modules/raise (Makefile.am): Likewise.
57727         * modules/read-file (Makefile.am): Likewise.
57728         * modules/readline (Makefile.am): Likewise.
57729         * modules/readlink (Makefile.am): Likewise.
57730         * modules/readtokens (Makefile.am): Likewise.
57731         * modules/readutmp (Makefile.am): Likewise.
57732         * modules/realloc (Makefile.am): Likewise.
57733         * modules/regex (Makefile.am): Likewise.
57734         * modules/rename (Makefile.am): Likewise.
57735         * modules/rename-dest-slash (Makefile.am): Likewise.
57736         * modules/rijndael (Makefile.am): Likewise.
57737         * modules/rmdir (Makefile.am): Likewise.
57738         * modules/rpmatch (Makefile.am): Likewise.
57739         * modules/safe-read (Makefile.am): Likewise.
57740         * modules/safe-write (Makefile.am): Likewise.
57741         * modules/same (Makefile.am): Likewise.
57742         * modules/save-cwd (Makefile.am): Likewise.
57743         * modules/savedir (Makefile.am): Likewise.
57744         * modules/setenv (Makefile.am): Likewise.
57745         * modules/settime (Makefile.am): Likewise.
57746         * modules/sha1 (Makefile.am): Likewise.
57747         * modules/sig2str (Makefile.am): Likewise.
57748         * modules/snprintf (Makefile.am): Likewise.
57749         * modules/stdlib-safer (Makefile.am): Likewise.
57750         * modules/stpcpy (Makefile.am): Likewise.
57751         * modules/stpncpy (Makefile.am): Likewise.
57752         * modules/strcase (Makefile.am): Likewise.
57753         * modules/strcasestr (Makefile.am): Likewise.
57754         * modules/strchrnul (Makefile.am): Likewise.
57755         * modules/strcspn (Makefile.am): Likewise.
57756         * modules/strdup (Makefile.am): Likewise.
57757         * modules/strerror (Makefile.am): Likewise.
57758         * modules/strftime (Makefile.am): Likewise.
57759         * modules/strndup (Makefile.am): Likewise.
57760         * modules/strnlen (Makefile.am): Likewise.
57761         * modules/strpbrk (Makefile.am): Likewise.
57762         * modules/strsep (Makefile.am): Likewise.
57763         * modules/strstr (Makefile.am): Likewise.
57764         * modules/strtod (Makefile.am): Likewise.
57765         * modules/strtoimax (Makefile.am): Likewise.
57766         * modules/strtok_r (Makefile.am): Likewise.
57767         * modules/strtol (Makefile.am): Likewise.
57768         * modules/strtoll (Makefile.am): Likewise.
57769         * modules/strtoul (Makefile.am): Likewise.
57770         * modules/strtoull (Makefile.am): Likewise.
57771         * modules/strtoumax (Makefile.am): Likewise.
57772         * modules/strverscmp (Makefile.am): Likewise.
57773         * modules/time_r (Makefile.am): Likewise.
57774         * modules/timegm (Makefile.am): Likewise.
57775         * modules/tmpfile-safer (Makefile.am): Likewise.
57776         * modules/unistd-safer (Makefile.am): Likewise.
57777         * modules/unlinkdir (Makefile.am): Likewise.
57778         * modules/userspec (Makefile.am): Likewise.
57779         * modules/utime (Makefile.am): Likewise.
57780         * modules/utimecmp (Makefile.am): Likewise.
57781         * modules/utimens (Makefile.am): Likewise.
57782         * modules/vasnprintf (Makefile.am): Likewise.
57783         * modules/vasprintf (Makefile.am): Likewise.
57784         * modules/vsnprintf (Makefile.am): Likewise.
57785         * modules/xalloc (Makefile.am): Likewise.
57786         * modules/xgetcwd (Makefile.am): Likewise.
57787         * modules/xnanosleep (Makefile.am): Likewise.
57788         * modules/xreadlink (Makefile.am): Likewise.
57789         * modules/xstrtod (Makefile.am): Likewise.
57790         * modules/xstrtol (Makefile.am): Likewise.
57791         * modules/xstrtold (Makefile.am): Likewise.
57792         * modules/yesno (Makefile.am): Likewise.
57793
57794 2006-10-12  Jim Meyering  <jim@meyering.net>
57795
57796         * m4/getloadavg.m4: Revert the change below.
57797
57798         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57799         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57800         fail with a symlink, which is what coreutils' ./bootstrap now
57801         creates by default.
57802
57803 2006-10-12  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57806         mingw.
57807         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57808         MSVC and mingw explicitly.
57809
57810 2006-10-11  Simon Josefsson  <jas@extundo.com>
57811             Bruno Haible  <bruno@clisp.org>
57812
57813         Add support for multiple gnulib-tool invocations in the scope of a
57814         single configure.ac file.
57815         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57816         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57817         with the same contents as the _LIBADD variable.
57818         (func_emit_initmacro_start, func_emit_initmacro_end,
57819         func_emit_initmacro_done): New functions.
57820         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57821         gl_LIBOBJS and gl_LTLIBOBJS.
57822
57823 2006-10-11  Bruno Haible  <bruno@clisp.org>
57824
57825         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57826         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57827         autoreconf. Instead, invoke autopoint explicitly but move back the
57828         *.m4 files from gnulib.
57829
57830 2006-10-11  Bruno Haible  <bruno@clisp.org>
57831
57832         * gnulib-tool (func_usage): Make module names after --create-testdir
57833         optional.
57834         (func_create_testdir): If no module was specified, use nearly all
57835         modules.
57836
57837 2006-10-12  Jim Meyering  <jim@meyering.net>
57838
57839         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57840         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57841         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57842         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57843         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57844         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57845         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57846         (fts_set_stat_required): New function.
57847         (fts_open): Defer the calls to fts_stat, if possible or requested.
57848         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57849         into fts_stat itself.
57850         (fts_read): Perform any required (deferred) fts_stat call.
57851         (fts_build): Likewise, for the directory we're about to open and read.
57852         In the readdir loop, carefully decide whether each entry will require
57853         an eventual call to fts_stat, using dirent.d_type info if available.
57854         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57855         a command line argument into this function.  Update all callers.
57856         Map a return value of FTS_DOT to FTS_D for a command line argument.
57857         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57858         Thanks to Miklos Szeredi for his tenacity and for the initial
57859         bug report about "find" failing on a FUSE-based file system.
57860
57861         * lib/fts.c (fts_open): Use consistent indentation.
57862
57863 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57864
57865         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57866         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57867         reported by Jim Meyering.  All uses of cache variables renamed
57868         to match Autoconf's.
57869         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57870         the other one.
57871
57872         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57873         Fix misspelling in diagnostic.
57874
57875 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57876
57877         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57878         defined.  Problem reported by Matthew Woehlke.
57879
57880         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57881         Add support for Tandem NonStop R series.
57882         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57883         Use new macro.
57884
57885         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57886         (has_trailing_slash): Omit size arg; all callers changed.
57887         Omit 'inline', since it doesn't help performance and we'd
57888         need to configure it.
57889         Don't count //, ///, etc. as having a trailing slash.
57890         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57891         (rpl_rename_dest_slash): On failure, use rename's errno rather
57892         than (in some cases) an incorrect or junk errno.
57893         Simplify code by removing need to compute length; this does
57894         cause it to make two passes instead of one over the file name,
57895         but it's worth it.
57896
57897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57898         change, since Autoconf's version may no longer be appropriate now
57899         that we are using CVS Autoconf's version.  Add support for Tandem.
57900
57901 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57902             Bruno Haible  <bruno@clisp.org>
57903
57904         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57905         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57906         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57907         gl_AC_TYPE_LONG_LONG.
57908
57909         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57910         instead of HAVE_LONG_LONG.
57911         * lib/printf-args.c (printf_fetchargs): Likewise.
57912         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57913         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57914         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57915         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57916         gl_AC_TYPE_LONG_LONG.
57917
57918 2006-10-11  Bruno Haible  <bruno@clisp.org>
57919
57920         * m4/longlong.m4: Add comments.
57921         * m4/ulonglong.m4: Likewise.
57922
57923 2006-10-10  Bruno Haible  <bruno@clisp.org>
57924
57925         Make it possible to #define stpcpy, strdup to aliases.
57926         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57927         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57928
57929 2006-10-10  Bruno Haible  <bruno@clisp.org>
57930
57931         Make it possible to #define gcd to an alias.
57932         * lib/gcd.c: Include config.h.
57933
57934 2006-10-10  Bruno Haible  <bruno@clisp.org>
57935
57936         Make it possible to #define c_isascii to an alias.
57937         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57938         defined. Undefine the macros before defining them, to avoid gcc
57939         warnings.
57940         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57941         define NO_C_CTYPE_MACROS early.
57942
57943 2006-10-10  Bruno Haible  <bruno@clisp.org>
57944
57945         Make it possible to #define set_program_name to an alias.
57946         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57947         ENABLE_RELOCATABLE early.
57948
57949 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57950
57951         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57952         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57953         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57954         More generally, don't assume that 64-bit signed int is available
57955         if unsigned int is, and vice versa.
57956         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57957         unsigned symbols, not on their signed counterparts.
57958         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57959         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57960         (UINT64_C, UINTMAX_C):
57961         Likewise.
57962         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57963         unsigned counterparts.
57964         (Have_long_long, Unsigned): New macros.
57965         (Int): Renamed from INT.
57966         (strtoimax): Use the new macros.
57967         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57968         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57969         * modules/inttypes (inttypes.h): Substitute
57970         HAVE_UNSIGNED_LONG_LONG_INT.
57971         * modules/stdint (stdint.h): Likewise.
57972         (Files): Add m4/ulonglong.m4.
57973
57974 2006-10-10  Bruno Haible  <bruno@clisp.org>
57975
57976         Fix a gcc -Wshadow warning.
57977         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57978         to 'bucket'.
57979         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57980         gl_linked_indexof_from_to): Likewise.
57981         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57982         Likewise.
57983         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57984         Likewise.
57985         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57986         Reported by Eric Blake.
57987
57988 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57989
57990         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57991         for NetBSD.  Problem reported by Bruno Haible.
57992
57993 2006-10-09  Jim Meyering  <jim@meyering.net>
57994
57995         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57996         Patch from Bruno Haible.
57997
57998 2006-10-09  Jim Meyering  <jim@meyering.net>
57999
58000         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58001         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58002         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58003
58004 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58005
58006         Don't include <config.h> twice; this doesn't work in some cases,
58007         e.g., when config.h has "#define intmax_t long long int" and
58008         we include <config.h>, <inttypes.h>, <config.h> in that order.
58009         Problem reported by Matthew Woehlke in:
58010         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58011         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58012         * lib/fts-cycle.c: Don't include config.h.
58013         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58014         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58015         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58016         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58017         inttypes.h.
58018         * lib/xstrtoumax.c: Likewise.
58019         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58020         __strtol and the like, so that this module is more like its siblings.
58021         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58022         Remove; no longer needed now that we assume gnulib inttypes.h.
58023
58024 2006-10-08  Bruno Haible  <bruno@clisp.org>
58025
58026         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58027         option.
58028
58029 2006-10-07  Jim Meyering  <jim@meyering.net>
58030
58031         * modules/inttypes (inttypes.h): Revert what seems to have been
58032         an inadvertent part of today's change: use "|", not "/" in the
58033         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58034
58035 2006-10-07  Bruno Haible  <bruno@clisp.org>
58036
58037         * modules/sublist: New file.
58038
58039 2006-10-07  Bruno Haible  <bruno@clisp.org>
58040
58041         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58042         * modules/argz (argz.h): Likewise.
58043         * modules/arpa_inet (arpa/inet.h): Likewise.
58044         * modules/byteswap (byteswap.h): Likewise.
58045         * modules/configmake (configmake.h): Likewise.
58046         * modules/fcntl (fcntl.h): Likewise.
58047         * modules/fnmatch (fnmatch.h): Likewise.
58048         * modules/getopt (getopt.h): Likewise.
58049         * modules/glob (glob.h): Likewise.
58050         * modules/inttypes (inttypes.h): Likewise.
58051         * modules/netinet_in (netinet/in.h): Likewise.
58052         * modules/poll (poll.h): Likewise.
58053         * modules/stdbool (stdbool.h): Likewise.
58054         * modules/stdint (stdint.h): Likewise.
58055         * modules/sys_select (sys/select.h): Likewise.
58056         * modules/sys_socket (sys/socket.h): Likewise.
58057         * modules/sys_stat (sys/stat.h): Likewise.
58058         * modules/sysexits (sysexits.h): Likewise.
58059         * modules/unistd (unistd.h): Likewise.
58060         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58061         Add a "DO NOT EDIT" comment to the generated file.
58062         (func_import): Likewise for gnulib-comp.m4.
58063
58064 2006-10-07  Bruno Haible  <bruno@clisp.org>
58065
58066         * lib/gl_sublist.h: New file.
58067         * lib/gl_sublist.c: New file.
58068
58069 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58070
58071         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58072         name (relative to the original working directory) and the file
58073         name component (relative to the temporary working directory).  All
58074         callers changed.
58075         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58076         * lib/mkdir-p.c (make_dir_parents): Likewise.
58077         * lib/mkdir-p.h (make_dir_parents): Likewise.
58078
58079 2006-10-06  Eric Blake  <ebb9@byu.net>
58080
58081         Define several macros for use by the clean-temp module.
58082         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58083         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58084         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58085
58086         * lib/clean-temp.h (close_stream_temp): New declaration.
58087         * lib/clean-temp.c (includes): Pull in headers according to what
58088         other modules are in use.
58089         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58090
58091 2006-10-06  Bruno Haible  <bruno@clisp.org>
58092
58093         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58094         instead of fopen, fwriteerror.
58095
58096 2006-10-06  Bruno Haible  <bruno@clisp.org>
58097
58098         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58099         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58100         int.
58101         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58102         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58103         Return an error indicator.
58104         Suggested by Eric Blake.
58105
58106 2006-10-06  Bruno Haible  <bruno@clisp.org>
58107
58108         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58109         Reported by Eric Blake.
58110
58111 2006-10-06  Bruno Haible  <bruno@clisp.org>
58112
58113         * modules/closeout (Description): Mention stderr too.
58114
58115 2006-10-06  Bruno Haible  <bruno@clisp.org>
58116         and Paul Eggert  <eggert@cs.ucla.edu>
58117
58118         * lib/closeout.c (close_stdout): Also close stderr.
58119         * lib/closeout.h: Update comment.
58120
58121 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58122
58123         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58124         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58125         * lib/dirchownmod.c: Include lchown.h.
58126         * lib/lchown.c: Don't include files that lchown.h now includes.
58127         Don't declare chown, since lchown.h now does that.
58128         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58129         (lchown): Define to rpl_chown if lchown is declared but
58130         does not exist.  Declare using a prototype if lchown is not
58131         declared.  Add a copyright notice.
58132         * lib/mkstemp.h: Include <unistd.h>.
58133         * lib/openat.c: Include lchown.h.
58134
58135         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58136         we now test for that separately.
58137         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58138         rather than O_NOFOLLOW, when testing whether it's possible to
58139         avoid a race condition reliably.
58140         * lib/savewd.c (savewd_chdir): Likewise.
58141
58142         Remove macros that are no longer needed now that stdint.h is
58143         reliable.
58144         * lib/fsusage.c (UINTMAX_MAX): Remove.
58145         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58146         * lib/utimecmp.c (SIZE_MAX): Remove.
58147
58148         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58149
58150         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58151         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58152         O_NOATIME works.
58153
58154 2006-10-05  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/gl_list.h (gl_sortedlist_search_from_to,
58157         gl_sortedlist_indexof_from_to): New declarations.
58158         (gl_list_implementation): New fields sortedlist_search_from_to,
58159         sortedlist_indexof_from_to.
58160         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58161         inline functions.
58162         * lib/gl_list.c (gl_sortedlist_search_from_to,
58163         gl_sortedlist_indexof_from_to): New functions.
58164         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58165         function.
58166         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58167         (gl_array_sortedlist_search_from_to): New function.
58168         (gl_array_list_implementation): Update.
58169         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58170         function.
58171         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58172         (gl_carray_sortedlist_search_from_to): New function.
58173         (gl_carray_list_implementation): Update.
58174         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58175         gl_linked_sortedlist_indexof_from_to): New functions.
58176         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58177         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58178         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58179         gl_tree_sortedlist_indexof_from_to): New functions.
58180         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58181         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58182         Update.
58183         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58184         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58185         Update.
58186
58187 2006-10-05  Bruno Haible  <bruno@clisp.org>
58188
58189         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58190         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58191         (struct gl_list_implementation): Add fields search_from_to,
58192         indexof_from_to. Remove fields search, indexof.
58193         (gl_list_search): Use the search_from_to method.
58194         (gl_list_search_from, gl_list_search_from_to): New functions.
58195         (gl_list_indexof): Use the indexof_from_to method.
58196         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58197         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58198         (gl_list_search_from, gl_list_search_from_to): New functions.
58199         (gl_list_indexof): Use the indexof_from_to method.
58200         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58201         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58202         gl_array_indexof. Add start_index, end_index arguments.
58203         (gl_array_search_from_to): Renamed from gl_array_search. Add
58204         start_index, end_index arguments.
58205         (gl_array_remove, gl_array_list_implementation): Update.
58206         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58207         gl_carray_indexof. Add start_index, end_index arguments.
58208         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58209         start_index, end_index arguments.
58210         (gl_carray_remove, gl_carray_list_implementation): Update.
58211         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58212         gl_linked_search. Add start_index, end_index arguments.
58213         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58214         start_index, end_index arguments.
58215         (gl_linked_remove): Update.
58216         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58217         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58218         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58219         field to 'size_t'.
58220         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58221         gl_tree_search. Add start_index, end_index arguments.
58222         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58223         start_index, end_index arguments.
58224         (gl_tree_remove): Update.
58225         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58226         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58227         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58228         function.
58229         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58230         gl_tree_search. Add start_index, end_index arguments.
58231         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58232         start_index, end_index arguments.
58233         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58234         Update.
58235         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58236
58237 2006-10-05  Bruno Haible  <bruno@clisp.org>
58238
58239         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58240
58241         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58242         fwriteerror_temp): New declarations.
58243         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58244         (descriptors): New variable.
58245         (cleanup): First, close the descriptors.
58246         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58247         fclose_temp, fwriteerror_temp): New functions.
58248
58249 2006-10-04  Jim Meyering  <jim@meyering.net>
58250
58251         * lib/fts.c (fts_open): Tiny comment change.
58252
58253 2006-10-04  Bruno Haible  <bruno@clisp.org>
58254
58255         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58256         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58257         gl_LOCK_BODY.
58258         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58259         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58260         gl_LOCK_EARLY_BODY.
58261         (gl_LOCK): Require gl_LOCK_BODY.
58262
58263 2006-10-04  Bruno Haible  <bruno@clisp.org>
58264
58265         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58266         (gl_oset_search_atleast): New declaration.
58267         (struct gl_oset_implementation): Add field 'search_atleast'.
58268         (gl_oset_search_atleast): New inline function.
58269         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58270         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58271         (gl_array_oset_implementation): Update.
58272         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58273         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58274         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58275
58276 2006-10-04  Bruno Haible  <bruno@clisp.org>
58277
58278         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58279
58280 2006-10-03  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58283         from gl_avltreehash_list_implementation.
58284
58285 2006-10-03  Bruno Haible  <bruno@clisp.org>
58286
58287         * lib/gl_oset.c (gl_oset_add): Fix return type.
58288
58289 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58290
58291         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58292
58293 2006-10-02  Eric Blake  <ebb9@byu.net>
58294
58295         * modules/strnlen (Depends-on): Add extensions.
58296
58297 2006-10-02  Eric Blake  <ebb9@byu.net>
58298
58299         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58300         definition in 2.60+.
58301
58302 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58303
58304         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58305         checks.
58306
58307 2006-10-02  Bruno Haible  <bruno@clisp.org>
58308
58309         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58310         to the AUTOMAKE_OPTIONS.
58311         Reported by Jim Meyering.
58312
58313 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         Work around bug in Solaris 10 /proc file system:
58316         /proc/self/fd/NNN/.. isn't the parent directory of
58317         the directory whose file descriptor is NNN.  This needs to
58318         be worked around at run time, not compile time, since a
58319         program might be built on Solaris 8, where things work, and
58320         run on Solaris 10.
58321         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58322         to use the following interface instead:
58323         (OPENAT_BUFFER_SIZE): New macro.
58324         (openat_proc_name): New function.
58325         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58326         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58327         Likewise.
58328         * lib/openat-proc.c: New file.
58329         * modules/openat (Files): Add lib/openat-proc.c.
58330         (Depends-on): Add same-inode, stdbool.
58331         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58332
58333 2006-09-29  Bruno Haible  <bruno@clisp.org>
58334
58335         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58336         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58337         argument. Set stdout_closed before testing for ferror, not after.
58338         (fwriteerror, fwriteerror_no_ebadf): New functions.
58339
58340 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58341
58342         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58343
58344 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58345
58346         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58347         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58348
58349 2006-09-28  Jim Meyering  <jim@meyering.net>
58350
58351         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58352         Include <unistd.h>.
58353
58354 2006-09-28  Bruno Haible  <bruno@clisp.org>
58355
58356         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58357         * modules/linkedhash-list (Depends-on): Likewise.
58358         * modules/rbtreehash-list (Depends-on): Likewise.
58359
58360 2006-09-28  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/strndup.h: Simplify the redefinition of strndup.
58363         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58364         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58365
58366 2006-09-28  Bruno Haible  <bruno@clisp.org>
58367
58368         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58369         * lib/gl_linkedhash_list.c: Likewise.
58370         * lib/gl_rbtreehash_list.c: Likewise.
58371
58372 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58373
58374         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58375         getaddrinfo.
58376
58377         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58378         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58379         it causes <stdio_ext.h> to cause a compile-time error.
58380         Problem reported by Nelson H. F. Beebe.
58381         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58382         of HAVE_DECL___PENDING.
58383
58384         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58385         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58386         declaration.
58387
58388 2006-09-27  Jim Meyering  <jim@meyering.net>
58389
58390         This file could end up with a definition for a function
58391         named __strndup, rather than rpl_strndup on a system with
58392         incomplete weak_alias support.
58393         * lib/strndup.c (strndup): Rename from __strndup.
58394         Remove #defines that used to map __strndup to strndup.
58395         Don't use K&R prototypes.
58396         Remove LIBC-related code, since this file is not sync'd with glibc.
58397         * lib/strndup.h: Revamp, accordingly.
58398         * m4/strndup.m4: Modernize.
58399
58400 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58401
58402         * modules/savewd (Depends-on): Add 'raise'.
58403         * lib/savewd.c: Include <signal.h>, for 'raise'.
58404
58405 2006-09-26  Jim Meyering  <jim@meyering.net>
58406
58407         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58408         when we detect Darwin 8.7.0's acl_get_file bug.
58409         Rearrange to perform the new (below) run-test while $LIBS
58410         contains any acl-related library.  Set USE_ACL at the end.
58411         (gl_ACL_GET_FILE): New function.
58412
58413 2006-09-26  Eric Blake  <ebb9@byu.net>
58414
58415         * lib/verror.c: Include <config.h> unconditionally.
58416
58417 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58418
58419         * modules/clock-time (Maintainer): Add self.
58420         * modules/getlogin_r (Depends-on): Add extensions.
58421
58422 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58423
58424         * modules/clock-time: New module.
58425         * modules/nanosleep (Depends-on): Add clock-time.
58426         * modules/gethrxtime (Depends-on): Likewise.
58427         * modules/gettime (Depends-on): Likewise.
58428         * modules/settime (Depends-on): Likewise.
58429
58430         * modules/fts-lgpl: Depend on openat.
58431         * modules/mkancesdirs: Depend on savewd.
58432         * modules/mkdir-p: Likewise.
58433
58434 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58435
58436         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58437
58438         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58439         `gl_have_arbitrary_file_name_length_limit' to
58440         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58441         actually works between configure runs.
58442
58443 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58444             Bruno Haible  <bruno@clisp.org>
58445
58446         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58447
58448 2006-09-25  Jim Meyering  <jim@meyering.net>
58449
58450         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58451         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58452
58453 2006-09-25  Eric Blake  <ebb9@byu.net>
58454
58455         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58456         exec's in 2006-09-18 patch when shuffling fds.
58457
58458 2006-09-25  Bruno Haible  <bruno@clisp.org>
58459
58460         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58461         Reported by Jim Meyering.
58462
58463 2006-09-24  Jim Meyering  <jim@meyering.net>
58464
58465         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58466         compare a pointer against a literal "0".  That caused failures with
58467         at least HP-UX's hpcc.
58468
58469 2006-09-22  Simon Josefsson  <jas@extundo.com>
58470
58471         * modules/gc-sha1:
58472         * modules/gc-md4:
58473         * modules/gc-hmac-sha1:
58474         * modules/gc-hmac-md5:
58475         * modules/gc-des:
58476         * modules/gc-arcfour: Distribute more files.
58477
58478 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58479
58480         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58481         (gl_linked_iterator_from_to): Initialize struct completely.
58482         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58483         (gl_tree_iterator_from_to): Likewise
58484         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58485         * lib/gl_array_list.c [lint] (gl_array_iterator)
58486         (gl_array_iterator_from_to): Likewise.
58487         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58488         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58489         (gl_carray_iterator_from_to): Likewise.
58490
58491         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58492         * lib/md4.c (md4_process_block): Remove unused variable.
58493         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58494         parentheses for clarity.
58495
58496 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58497
58498         * modules/bison-i18n (Depends-on): Add gettext.
58499
58500 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58501
58502         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58503         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58504         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58505         also add missing comma that caused broken test.
58506         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58507         stdlib.h, for `abort'.
58508         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58509         variables.
58510         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58511         include unistd.h if present, for `rmdir'.
58512         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58513         variables.
58514         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58515         in the process include standard headers for prototypes.
58516         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58517         gets declared on GNU/Linux.
58518         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58519         unistd.h, for `rmdir'.
58520         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58521
58522         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58523         always true.
58524         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58525
58526         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58527
58528 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58529
58530         * gnulib-tool (func_version): Create output all at once.  This
58531         may help avoid triggering unnecessary SIGPIPEs, and at any
58532         rate it doesn't hurt.
58533
58534 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58535             Bruno Haible  <bruno@clisp.org>
58536
58537         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58538         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58539         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58540
58541         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58542         (gl_FUNC_VASPRINTF): Invoke it.
58543
58544 2006-09-22  Bruno Haible  <bruno@clisp.org>
58545
58546         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58547         getloadavg.c as first argument.
58548
58549 2006-09-22  Bruno Haible  <bruno@clisp.org>
58550
58551         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58552         at the beginning of the gl_INIT macro.
58553         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58554         gl_GETLOADAVG.
58555
58556 2006-09-22  Bruno Haible  <bruno@clisp.org>
58557
58558         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58559         module.
58560         Suggested by Ralf Wildenhues.
58561
58562 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58563
58564         Import this patch from libc:
58565
58566         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58567
58568         * lib/regex_internal.c (re_string_reconstruct): Handle
58569         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58570         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58571         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58572         re_string_context_at.
58573
58574         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58575         now requires it.
58576         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58577         gl_REGEX now does it for us.
58578         (gl_REGEX): Add test taken from
58579         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58580
58581         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58582         Check that large offsets work.  Modernize Autoconf usages.
58583         Prefer "yes" to mean a good thing rather than a bad.
58584         Don't put "#define mkstemp" in config.h, as this might interfere
58585         with standard system headers that "#define mkstemp mkstemp64".
58586
58587         * modules/mkstemp (Depends-on): Add extensions, so that
58588         mkstemp is visible on some platforms.
58589         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58590         (Include): Change to "mkstemp.h" from <stdlib.h>.
58591         (Files): Add mkstemp.h.
58592
58593         * lib/mkstemp.h: New file, since some standard headers
58594         #define mkstemp.
58595         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58596         Include "mkstemp.h".
58597         Make the _LIBC code resemble glibc original more,
58598         e.g., use K&R style.
58599         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58600         (mkstemp): Remove, since mkstemp.h does this for us.
58601         * lib/stdlib--.h: Include mkstemp.h.
58602
58603         Import this patch from libc:
58604
58605         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58606
58607         * lib/tempname.c (__gen_tempname): Change attempts_min
58608         into a macro.  Use preprocessor to decide how to initialize
58609         attempts [Coverity CID 67].
58610
58611 2006-09-20  Bruno Haible  <bruno@clisp.org>
58612
58613         * lib/mkdtemp.c: Import from libc.
58614         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58615                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58616                 attempts_min into a macro.  Use preprocessor to decide how to
58617                 initialize attempts [Coverity CID 67].
58618         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58619                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58620                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58621
58622 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58623
58624         * gnulib-tool (func_exit): New function, to allow to pass the
58625         exit status portably through the trap.  Use everywhere.
58626         (--help, --version): Signal a write error.
58627         (trap): catch SIGPIPE, for write errors.
58628         Exit at the end of the trap, with the correct exit status.
58629
58630 2006-09-19  Karl Berry  <karl@gnu.org>
58631
58632         * doc/gnulib.texi: note about the license texinfo files.
58633
58634 2006-09-19  Eric Blake  <ebb9@byu.net>
58635
58636         * gnulib-tool: Avoid space-tab.
58637
58638 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58639
58640         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58641         that prevented coreutils 6.1 from building.  Problem reported
58642         by Petter Reinholdtsen.
58643
58644 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58645
58646         * gnulib-tool (avoidlist): Fix typo that broke options like
58647         --avoid=lock that are used by coreutils bootstrap.
58648
58649 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58650
58651         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58652         more systematically.
58653
58654 2006-09-18  Jim Meyering  <jim@meyering.net>
58655
58656         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58657
58658 2006-09-18  Bruno Haible  <bruno@clisp.org>
58659
58660         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58661
58662 2006-09-18  Bruno Haible  <bruno@clisp.org>
58663
58664         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58665         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58666         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58667         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58668         * m4/gettext.m4: Require autoconf >= 2.52.
58669         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58670         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58671         of gl_cv_header_inttypes_h.
58672
58673 2006-09-18  Bruno Haible  <bruno@clisp.org>
58674
58675         * lib/javaversion.c: Include configmake.h.
58676
58677 2006-09-18  Bruno Haible  <bruno@clisp.org>
58678
58679         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58680         avoid that the while loops be executed in a subshell.
58681
58682 2006-09-18  Bruno Haible  <bruno@clisp.org>
58683
58684         * MODULES.html.sh (func_module): Break long lines.
58685         Suggested by Bruce Korb <bkorb@gnu.org>.
58686
58687 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58688
58689         Speed up by a factor of 1.12.
58690         * gnulib-tool (nl): New variable.
58691         (func_import): Rewrite include directive extraction to only read each
58692         directive once.
58693
58694 2006-09-17  Bruno Haible  <bruno@clisp.org>
58695
58696         * modules/javaversion (Makefile.am): Remove DEFS setting.
58697         (Depends-on): Add configmake, for PKGDATADIR definition.
58698
58699 2006-09-17  Bruno Haible  <bruno@clisp.org>
58700
58701         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58702
58703 2006-09-17  Bruno Haible  <bruno@clisp.org>
58704
58705         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58706         (func_modules_transitive_closure, func_modules_add_dummy,
58707         func_modules_to_filelist, func_import, func_create_testdir,
58708         func_create_megatestdir, ...): Use it wherever possible.
58709         Suggested by Ralf Wildenhues.
58710
58711 2006-09-16  Karl Berry  <karl@gnu.org>
58712
58713         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58714         to avoid sectioning errors.
58715         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58716         [ifinfo]: blank line after @center-ed titles.
58717         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58718         Spell FSF address consistently with others.
58719         (These changes approved by rms.)
58720
58721 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58722
58723         Speed up by a factor of 1.61.
58724         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58725         already checked module names again.
58726
58727 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58728
58729         Speed up by a factor of 1.13.
58730         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58731         for new_files, and the input to func_add_or_update.
58732
58733 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58734
58735         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58736         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58737
58738 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58739
58740         * modules/mkancesdirs (Depends-on): Add fcntl.
58741         * modules/savewd: New file.
58742         * MODULES.html.sh (File system functions): Add savewd.
58743
58744         * modules/configmake (Makefile.am): Add support for the
58745         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58746
58747 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         * m4/savewd.m4: New file.
58750
58751 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58752
58753         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58754         (dirchownmod): New arg FD.  All callers changed.
58755         Use FD rather than opening the directory ourself, as opening is
58756         now the caller's responsibility.
58757         * lib/dirchownmod.h: Likewise.
58758         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58759         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58760         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58761         (test_dir): Remove.
58762         (mkancesdirs): Return length of prefix of FILE that has already
58763         been made, or -2 if there is a child doing the work.  Redo
58764         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58765         ".", and treat ".." specially since it might stray back into
58766         already-created areas.  Use a subprocess if necessary.  New arg
58767         WD; all users changed.  MAKE_DIR function should now return 1
58768         if it creates a directory that is not readable.  Return -2 if
58769         a child process is spun off.
58770         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58771         Adjust signature to match code.
58772         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58773         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58774         all users changed.
58775         * lib/savewd.c, lib/savewd.h: New files.
58776
58777 2006-09-15  Jim Meyering  <jim@meyering.net>
58778
58779         * modules/rename-dest-slash: New module.
58780         * MODULES.html.sh (posix_compat): Add it here.
58781
58782         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58783
58784 2006-09-15  Jim Meyering  <jim@meyering.net>
58785
58786         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58787         file.
58788
58789         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58790
58791 2006-09-15  Jim Meyering  <jim@meyering.net>
58792
58793         * lib/rename-dest-slash.c (has_trailing_slash): Use
58794         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58795         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58796         test before testing whether SRC is a directory.
58797         Suggestions from Bruno Haible.
58798
58799         Avoid a warning about an unused variable.
58800         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58801         into the #ifdef block where it's used.
58802
58803         * lib/rename-dest-slash.c: New file.
58804
58805 2006-09-14  Bruno Haible  <bruno@clisp.org>
58806
58807         * lib/allocsa.c: Include <config.h> unconditionally.
58808         * lib/asnprintf.c: Likewise.
58809         * lib/asprintf.c: Likewise.
58810         * lib/c-strcasecmp.c: Likewise.
58811         * lib/c-strcasestr.c: Likewise.
58812         * lib/c-strncasecmp.c: Likewise.
58813         * lib/c-strstr.c: Likewise.
58814         * lib/classpath.c: Likewise.
58815         * lib/clean-temp.c: Likewise.
58816         * lib/concatpath.c: Likewise.
58817         * lib/copy-file.c: Likewise.
58818         * lib/csharpcomp.c: Likewise.
58819         * lib/csharpexec.c: Likewise.
58820         * lib/execute.c: Likewise.
58821         * lib/fatal-signal.c: Likewise.
58822         * lib/findprog.c: Likewise.
58823         * lib/fwriteerror.c: Likewise.
58824         * lib/gl_array_list.c: Likewise.
58825         * lib/gl_array_oset.c: Likewise.
58826         * lib/gl_avltree_list.c: Likewise.
58827         * lib/gl_avltree_oset.c: Likewise.
58828         * lib/gl_avltreehash_list.c: Likewise.
58829         * lib/gl_carray_list.c: Likewise.
58830         * lib/gl_linked_list.c: Likewise.
58831         * lib/gl_linkedhash_list.c: Likewise.
58832         * lib/gl_list.c: Likewise.
58833         * lib/gl_oset.c: Likewise.
58834         * lib/gl_rbtree_list.c: Likewise.
58835         * lib/gl_rbtree_oset.c: Likewise.
58836         * lib/gl_rbtreehash_list.c: Likewise.
58837         * lib/imaxabs.c: Likewise.
58838         * lib/imaxdiv.c: Likewise.
58839         * lib/javacomp.c: Likewise.
58840         * lib/javaexec.c: Likewise.
58841         * lib/javaversion.c: Likewise.
58842         * lib/linebreak.c: Likewise.
58843         * lib/localcharset.c: Likewise.
58844         * lib/lock.c: Likewise.
58845         * lib/mbchar.c: Likewise.
58846         * lib/mbswidth.c: Likewise.
58847         * lib/mkdtemp.c: Likewise.
58848         * lib/pipe.c: Likewise.
58849         * lib/printf-args.c: Likewise.
58850         * lib/printf-parse.c: Likewise.
58851         * lib/progname.c: Likewise.
58852         * lib/progreloc.c: Likewise.
58853         * lib/readlink.c: Likewise.
58854         * lib/sh-quote.c: Likewise.
58855         * lib/stpcpy.c: Likewise.
58856         * lib/stpncpy.c: Likewise.
58857         * lib/strcasecmp.c: Likewise.
58858         * lib/strcasestr.c: Likewise.
58859         * lib/strcspn.c: Likewise.
58860         * lib/striconv.c: Likewise.
58861         * lib/strncasecmp.c: Likewise.
58862         * lib/strnlen1.c: Likewise.
58863         * lib/strstr.c: Likewise.
58864         * lib/strtok_r.c: Likewise.
58865         * lib/tls.c: Likewise.
58866         * lib/tmpdir.c: Likewise.
58867         * lib/unicodeio.c: Likewise.
58868         * lib/unsetenv.c: Likewise.
58869         * lib/vasnprintf.c: Likewise.
58870         * lib/vasprintf.c: Likewise.
58871         * lib/wait-process.c: Likewise.
58872         * lib/xallocsa.c: Likewise.
58873         * lib/xsetenv.c: Likewise.
58874         * lib/xstriconv.c: Likewise.
58875
58876 2006-09-13  Simon Josefsson  <jas@extundo.com>
58877
58878         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58879         that internally, suggested by Ralf Wildenhues
58880         <Ralf.Wildenhues@gmx.de>.
58881
58882 2006-09-13  Simon Josefsson  <jas@extundo.com>
58883
58884         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58885         @LIBOBJS@.
58886         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58887
58888 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58889
58890         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58891         longer worry about uses that don't define HAVE_CONFIG_H.
58892         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58893         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58894         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58895         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58896         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58897         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58898         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58899         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58900         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58901         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58902         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58903         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58904         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58905         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58906         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58907         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58908         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58909         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58910         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58911         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58912         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58913         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58914         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58915         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58916         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58917         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58918         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58919         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58920         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58921         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58922         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58923         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58924         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58925         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58926         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58927         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58928         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58929         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58930         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58931         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58932         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58933         Likewise.
58934
58935 2006-09-13  Eric Blake  <ebb9@byu.net>
58936
58937         * lib/getopt.c: Fix typo in last commit.
58938
58939 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58940
58941         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58942         dgettext.
58943
58944 2006-09-12  Jim Meyering  <jim@meyering.net>
58945
58946         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58947         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58948         Reported by Nelson H. F. Beebe.
58949
58950 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58951
58952         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58953         program_invocation_name and program_invocation_short_name are
58954         initialized.
58955         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58956         and program_invocation_short_name to argp.h, so they are visible
58957         to user programs.
58958         * lib/argp.h: Likewise
58959
58960 2006-09-10  Bruno Haible  <bruno@clisp.org>
58961
58962         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58963         m4/inttypes_h.m4, m4/uintmax_t.m4.
58964
58965 2006-09-10  Bruno Haible  <bruno@clisp.org>
58966
58967         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58968         gl_AC_TYPE_UINTMAX_T.
58969
58970 2006-09-10  Bruno Haible  <bruno@clisp.org>
58971
58972         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58973
58974 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58975
58976         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58977         convention.  Text proposed by Bruno Haible.
58978         (struct argp_option): Document the use of N_() wrappers.
58979
58980         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58981         '\v', and translate the two parts separately, instead of feeding
58982         the whole string to gettext.  This allows to exclude
58983         '\v' from the strings visible to the translator by writing doc
58984         strings as N_("..") "\v" N_("..").
58985
58986 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58987
58988         * config/srclist.txt: Undo latest change; the bug was fixed.
58989
58990 2006-09-09  Bruno Haible  <bruno@clisp.org>
58991
58992         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58993         assignments if building a library without libtool.
58994         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58995         in func_emit_lib_Makefile_am.
58996         (func_import): When building a static library libfoo.a, arrange to
58997         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58998         (func_create_testdir): Likewise.
58999         * modules/gc (configure.ac, Makefile.am): If building statically,
59000         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59001         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59002         * modules/striconv (configure.ac, Makefile.am): Likewise.
59003         Based on a suggestion by Ralf Wildenhues.
59004
59005 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59006
59007         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59008         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59009         Also:
59010
59011         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59012         Add year_2050_test to catch glibc bug 2821
59013         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59014
59015         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59016         Prefer #ifdef to #if.
59017
59018         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59019         Return from 'main' instead of calling 'exit'.
59020
59021 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59022
59023         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59024         returned the maximum time_t value rather than (time_t) -1.
59025         Problem originally reported by William Bardwell
59026         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59027
59028         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59029         Moved to here ...
59030         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59031         ... from here.
59032
59033 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59034
59035         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59036         2821 is fixed.
59037
59038 2006-09-08  Jim Meyering  <jim@meyering.net>
59039
59040         Don't make generated files read-only.  That would bother too many
59041         people.  However, do retain the ability to work when targets are
59042         read-only: remove the destination and temporary files before writing
59043         them (when generated via sed or echo), or by using the -f option for
59044         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59045         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59046         * modules/byteswap, modules/configmake, modules/fcntl:
59047         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59048         * modules/localcharset, modules/netinet_in, modules/poll:
59049         * modules/stdbool, modules/stdint, modules/sys_select:
59050         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59051
59052 2006-09-08  Jim Meyering  <jim@meyering.net>
59053
59054         Avoid new build failure on FreeBSD 6.0.
59055         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59056         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59057         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59058
59059 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59060
59061         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59062
59063 2006-09-07  Jim Meyering  <jim@meyering.net>
59064
59065         Fix global typo in last change: use chmod u-w, not chmod u-x.
59066         Spotted by Paul Eggert and Bruce Korb.
59067         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59068         * modules/byteswap, modules/configmake, modules/fcntl:
59069         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59070         * modules/localcharset, modules/netinet_in, modules/poll:
59071         * modules/stdbool, modules/stdint, modules/sys_select:
59072         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59073
59074 2006-09-06  Jim Meyering  <jim@meyering.net>
59075
59076         Make generated files be read-only.
59077         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59078         Ensure that each generated file is now read-only.
59079         * modules/argz: Likewise.
59080         * modules/arpa_inet: Likewise.
59081         * modules/byteswap: Likewise.
59082         * modules/configmake: Likewise.
59083         * modules/fcntl: Likewise.
59084         * modules/fnmatch: Likewise.
59085         * modules/getopt: Likewise.
59086         * modules/glob: Likewise.
59087         * modules/inttypes: Likewise.
59088         * modules/netinet_in: Likewise.
59089         * modules/poll: Likewise.
59090         * modules/stdbool: Likewise.
59091         * modules/stdint: Likewise.
59092         * modules/sys_select: Likewise.
59093         * modules/sys_socket: Likewise.
59094         * modules/sys_stat: Likewise.
59095         * modules/sysexits: Likewise.
59096         * modules/localcharset: Same as above, but continue using temporary
59097         file named "t-$@" (why different?) rather than the "$@-t" used
59098         everywhere else.
59099
59100         * modules/sysexits (Makefile.am): Replace literal occurrences
59101         of "sysexit.h" more readable, and more consistent, "$@".
59102
59103 2006-09-06  Bruno Haible  <bruno@clisp.org>
59104
59105         * modules/striconv: New file.
59106         * modules/xstriconv: New file.
59107         * MODULES.html.sh (Internationalization functions): Add striconv,
59108         xstriconv.
59109
59110 2006-09-06  Bruno Haible  <bruno@clisp.org>
59111
59112         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59113         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59114         not using libtool correctly.
59115
59116 2006-09-06  Bruno Haible  <bruno@clisp.org>
59117
59118         * lib/striconv.h: New file.
59119         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59120         iconvstring.c.
59121         * lib/xstriconv.h: New file.
59122         * lib/xstriconv.c: New file.
59123
59124 2006-09-06  Bruno Haible  <bruno@clisp.org>
59125
59126         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59127         lib_..._LDFLAGS.
59128
59129 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59130
59131         * lib/argz_.h: Sync from Libtool.
59132
59133         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59134                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59135
59136         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59137
59138 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59139
59140         * modules/trim: New file.
59141
59142 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59143
59144         * lib/trim.h: New file.
59145         * lib/trim.c: New file.
59146
59147 2006-09-05  Bruno Haible  <bruno@clisp.org>
59148
59149         * MODULES.html.sh (String handling): Add trim.
59150
59151 2006-09-04  Karl Berry  <karl@gnu.org>
59152
59153         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59154         until next release.
59155
59156 2006-09-03  Bruno Haible  <bruno@clisp.org>
59157
59158         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59159         correctly.
59160
59161 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59162
59163         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59164         not gl_GETLOADAVG.  Omit unneeded semicolons.
59165         Problems reported by Ralf Wildenhues in
59166         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59167         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59168         at the end, which is the usual gnulib style.
59169
59170         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59171         of doing all the work ourselves.
59172         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59173         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59174
59175 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59176
59177         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59178         Problem reported by Ralf Wildenhues in
59179         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59180
59181         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59182         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59183
59184 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59185
59186         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59187         yesterday's patch by changing test -n to test -z.
59188
59189 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59190
59191         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59192         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59193         the former is now obsolescent.
59194
59195         * modules/chdir-long (Depends-on): Add fcntl.
59196
59197 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59198
59199         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59200         obsolescent, and programs should use gnulib instead.
59201         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59202         but with prefixes changed.
59203
59204 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59205
59206         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59207         or stdbool.h, because they might not exist while configuring.
59208
59209         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59210         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59211         does that for us.
59212         (O_DIRECTORY): Remove.
59213
59214 2006-08-31  Eric Blake  <ebb9@byu.net>
59215
59216         * gnulib-tool: Don't let emacs change spaces to TAB.
59217
59218 2006-08-31  Bruno Haible  <bruno@clisp.org>
59219
59220         * gnulib-tool: When calling func_import more than once, do it in a
59221         subshell.
59222         Reported by Eric Blake <ebb9@byu.net>.
59223
59224 2006-08-31  Bruno Haible  <bruno@clisp.org>
59225
59226         * gnulib-tool (nl): Remove variable.
59227         (sed_transform_lib_file): Use more robust test for config-h module.
59228         (func_import): Fix typo in 2006-08-25 patch.
59229
59230 2006-08-31  Bruno Haible  <bruno@clisp.org>
59231
59232         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59233         specified, augment Makefile.am variables instead of assigning them.
59234
59235 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59236
59237         Work around a bug in both the Linux and SunOS 64-bit kernels:
59238         nanosleep mishandles sleeps for longer than 2**31 seconds.
59239         Problem reported by Frank v Waveren in
59240         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59241         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59242         Check for nanosleep bug.
59243         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59244
59245 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59246
59247         Work around a bug in both the Linux and SunOS 64-bit kernels:
59248         nanosleep mishandles sleeps for longer than 2**31 seconds.
59249         Problem reported by Frank v Waveren in
59250         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59251         * lib/nanosleep.c (BILLION): New constant.
59252         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59253         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59254         implementation.
59255
59256 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59257
59258         * modules/nanosleep (Depends-on): Add gettime.
59259
59260 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59261         and Simon Josefsson  <jas@extundo.com>
59262         and Oskar Liljeblad  <oskar@osk.mine.nu>
59263
59264         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59265         * gnulib-tool (func_import): New license type 'unmodifiable license
59266         text'.
59267         * modules/fdl: Use it.  Longer description.
59268         * module/gpl, module/lgpl: New files.
59269
59270 2006-08-30  Jim Meyering  <jim@meyering.net>
59271
59272         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59273         shadowing the parameter.
59274
59275 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59276
59277         Sync from Libtool:
59278
59279         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59280
59281         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59282         sharing with gnulib.  Report by Eric Blake.
59283
59284 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59285
59286         * modules/isapipe: New file.
59287         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59288
59289 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59290
59291         * modules/configmake (Makefile.am): Add a comment, and omit
59292         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59293         by Bruno Haible.
59294
59295 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59296
59297         * m4/isapipe.m4: New file.
59298
59299 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59300
59301         * lib/isapipe.c, lib/isapipe.h: New files.
59302
59303 2006-08-29  Jim Meyering  <jim@meyering.net>
59304
59305         * modules/configmake (Makefile.am): Make configmake.h depend on
59306         Makefile.  Otherwise, a stale configmake.h could hang around.
59307
59308 2006-08-29  Eric Blake  <ebb9@byu.net>
59309
59310         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59311         resolution of upstream bug 3044.
59312
59313 2006-08-29  Bruno Haible  <bruno@clisp.org>
59314
59315         * modules/localcharset (Depends-on): Add configmake.
59316         (Makefile.am): Remove setting of LIBDIR through DEFS.
59317
59318 2006-08-29  Bruno Haible  <bruno@clisp.org>
59319
59320         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59321         defined.
59322
59323 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59324
59325         * modules/fcntl: New file.
59326         * modules/chdir-safer (Depends-on): Add fcntl.
59327         * modules/fts: Likewise.
59328         * modules/mkdir-p: Likewise.
59329
59330         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59331         This undoes the most recent change, since we're now addressing the
59332         problem in a different way.
59333
59334         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59335         into output, since the output might be called Makefile.am even
59336         if $makefile_name is something different.
59337         (func_import): Use $makefile_am rather than
59338         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59339         empty.
59340
59341         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59342
59343 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59344
59345         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59346         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59347         recent change to stdint.m4, since we're now addressing the problem in a
59348         different way.
59349
59350 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59351
59352         * m4/fcntl_h.m4: New file.
59353
59354 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59355
59356         * lib/fcntl_.h: New file.
59357         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59358         the fcntl module.
59359         * lib/dirchownmod.c: Likewise.
59360         * lib/fts.c: Likewise.
59361
59362         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59363         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59364         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59365         just before including <inttypes.h>, to avoid circular inclusion.
59366
59367 2006-08-28  Jim Meyering  <jim@meyering.net>
59368
59369         * doc/visibility.texi: Actually read and correct the grammar of the
59370         sentence affected by yesterday's change.
59371
59372 2006-08-28  Eric Blake  <ebb9@byu.net>
59373
59374         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59375         needs wrapper.
59376
59377 2006-08-28  Eric Blake  <ebb9@byu.net>
59378
59379         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59380
59381 2006-08-28  Eric Blake  <ebb9@byu.net>
59382
59383         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59384
59385 2006-08-28  Bruno Haible  <bruno@clisp.org>
59386
59387         * modules/c-strstr: New file, from GNU gettext.
59388         * MODULES.html.sh (String handling): Add c-strstr.
59389
59390 2006-08-28  Bruno Haible  <bruno@clisp.org>
59391
59392         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59393         macros.
59394         Reported by Eric Blake.
59395
59396 2006-08-28  Bruno Haible  <bruno@clisp.org>
59397
59398         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59399         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59400         * lib/vasprintf.c: Include errno.h, limits.h.
59401         (EOVERFLOW): New fallback definition.
59402         (vasprintf): Test here whether the string length is > INT_MAX.
59403         * lib/vsnprintf.c: Include errno.h, limits.h.
59404         (EOVERFLOW): New fallback definition.
59405         (vsnprintf): Fix bug when generated string was too long for the buffer.
59406         Test here whether the string length is > INT_MAX.
59407
59408 2006-08-28  Bruno Haible  <bruno@clisp.org>
59409
59410         * lib/inttypes_.h (SCNX*): Remove definitions.
59411         Reported by Eric Blake.
59412
59413 2006-08-28  Bruno Haible  <bruno@clisp.org>
59414
59415         * lib/c-strstr.h: New file, from GNU gettext.
59416         * lib/c-strstr.c: New file, from GNU gettext.
59417
59418 2006-08-28  Bruno Haible  <bruno@clisp.org>
59419
59420         * gnulib-tool: Reorder some statements.
59421
59422 2006-08-28  Bruno Haible  <bruno@clisp.org>
59423
59424         * gnulib-tool: New option --makefile-name.
59425         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59426         $makefile_name.
59427         (func_import): Write $makefile_name to the cache file, and read it from
59428         there unless explicitly specified. Use $makefile_name as file name
59429         instead of Makefile.am. Adjust the recommendations accordingly.
59430
59431 2006-08-28  Bruno Haible  <bruno@clisp.org>
59432
59433         * gnulib-tool (func_verify_module): Check against misapplying patch.
59434
59435 2006-08-28  Bruno Haible  <bruno@clisp.org>
59436
59437         * gnulib-tool (func_relativize, func_relconcat): New functions.
59438         Give an error if --local-dir is given with --update.
59439         Remove trailing slashes from $local_gnulib_dir.
59440         (func_import): Store the relativized $local_gnulib_dir in
59441         gnulib-cache.m4, and read it from there if not specified explicitly.
59442
59443 2006-08-28  Bruno Haible  <bruno@clisp.org>
59444
59445         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59446         is the current directory. Respect also $local_gnulib_dir.
59447
59448 2006-08-28  Bruno Haible  <bruno@clisp.org>
59449             Simon Josefsson  <jas@extundo.com>
59450
59451         BeOS portability.
59452         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59453
59454 2006-08-27  Jim Meyering  <jim@meyering.net>
59455
59456         * doc/visibility.texi: Remove duplicate word: "pointer".
59457
59458 2006-08-26  Bruno Haible  <bruno@clisp.org>
59459
59460         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59461         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59462         (Makefile.am): Create inttypes.h from inttypes_.h.
59463         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59464
59465         * modules/imaxabs: New file.
59466
59467         * modules/imaxdiv: New file.
59468
59469 2006-08-26  Bruno Haible  <bruno@clisp.org>
59470
59471         * m4/inttypes.m4: New file.
59472         * m4/_inttypes_h.m4: Remove file.
59473         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59474         PRI_MACROS_BROKEN.
59475         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59476
59477         * m4/imaxabs.m4: New file.
59478
59479         * m4/imaxdiv.m4: New file.
59480
59481 2006-08-26  Bruno Haible  <bruno@clisp.org>
59482
59483         * lib/inttypes_.h: New file.
59484         * lib/inttypes.h: Remove file.
59485         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59486
59487         * lib/imaxabs.c: New file.
59488
59489         * lib/imaxdiv.c: New file.
59490
59491 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59492
59493         New config-h module, so that "make" output needn't be cluttered
59494         by -DHAVE_CONFIG_H.
59495         * MODULES.html.sh (Support for building libraries and executables):
59496         Add config-h.
59497         * modules/config-h: New file.
59498         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59499         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59500         the config-h module is used.
59501
59502         New configmake module, so that "make" output needn't be cluttered
59503         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59504         * MODULES.html.sh (Support for building libraries and executables):
59505         Add configmake.
59506         * modules/configmake: New file.
59507
59508 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59509
59510         * m4/config-h.m4: New file.
59511
59512 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59513
59514         * config/srclist.txt: Add elisp-comp.
59515
59516 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59517
59518         * MODULES.html.sh (Support for building libraries and executables):
59519         Add elisp-comp.
59520         * build-aux/elisp-comp: New file.
59521         * modules/elisp-comp: New file.
59522
59523 2006-08-24  Bruno Haible  <bruno@clisp.org>
59524
59525         * gnulib-tool (func_create_testdir): Use non-default values of
59526         sourcebase and m4base.
59527
59528 2006-08-24  Bruno Haible  <bruno@clisp.org>
59529
59530         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59531         HTML structure.
59532
59533 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         * modules/openat (Depends-on): Add lchown.
59536
59537 2006-08-23  Bruno Haible  <bruno@clisp.org>
59538
59539         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59540         of gl_LOCK_EARLY instead of gl_LOCK.
59541
59542 2006-08-23  Bruno Haible  <bruno@clisp.org>
59543
59544         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59545         on OSF/1 to no.
59546         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59547
59548 2006-08-23  Bruno Haible  <bruno@clisp.org>
59549
59550         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59551         as unusable.
59552
59553         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59554         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59555         (gl_LOCK): New macro.
59556
59557 2006-08-22  Simon Josefsson  <jas@extundo.com>
59558
59559         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59560         to md5 module.
59561
59562 2006-08-22  Simon Josefsson  <jas@extundo.com>
59563
59564         * MODULES.html.sh: Add "Support for maintaining and release
59565         projects".
59566
59567         * build-aux/gnupload: New file, from coreutils.
59568
59569 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         Avoid the need for AC_LIBSOURCES in m4 macros.
59572         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59573         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59574         * modules/check-version (EXTRA_DIST): Add check-version.h.
59575         * modules/crc (EXTRA_DIST): Add crc.h.
59576         * modules/des (EXTRA_DIST): Add des.h.
59577         * modules/gc (EXTRA_DIST): Add gc.h.
59578         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59579         * modules/getline (EXTRA_DIST): Add getline.h.
59580         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59581         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59582         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59583         * modules/md2 (EXTRA_DIST): Add md2.h.
59584         * modules/md4 (EXTRA_DIST): Add md4.h.
59585         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59586         * modules/read-file (EXTRA_DIST): Add read-file.h.
59587         * modules/readline (EXTRA_DIST): Add readline.h.
59588         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59589         rijndael-api-fst.h.
59590
59591 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59592
59593         * m4/rijndael.m4 (gl_ARCFOUR):
59594         * m4/arctwo.m4 (gl_ARCTWO):
59595         * m4/check-version.m4 (gl_CHECK_VERSION):
59596         * m4/crc.m4 (gl_CRC):
59597         * m4/des.m4 (gl_DES):
59598         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59599         * m4/gc.m4 (gl_GC):
59600         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59601         * m4/getline.m4 (gl_FUNC_GETLINE):
59602         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59603         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59604         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59605         * m4/md2.m4 (gl_MD2):
59606         * m4/md4.m4 (gl_MD4):
59607         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59608         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59609         * m4/readline.m4 (gl_FUNC_READLINE):
59610         * m4/rijndael.m4 (gl_RIJNDAEL):
59611         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59612         to get the necessary .h files and whatnot.
59613
59614 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59615
59616         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59617         gnulib rather than the other way around.
59618         * config/srclistvars.sh (COREUTILS): Remove.
59619
59620 2006-08-22  Jim Meyering  <jim@meyering.net>
59621
59622         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59623
59624         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59625
59626 2006-08-22  Eric Blake  <ebb9@byu.net>
59627
59628         * modules/regexprops-generic: New file.
59629         * MODULES.html.sh (Support for building documentation): List it.
59630
59631 2006-08-22  Eric Blake  <ebb9@byu.net>
59632
59633         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59634         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59635         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59636         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59637
59638 2006-08-22  Bruno Haible  <bruno@clisp.org>
59639
59640         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59641         and lib_LTLIBRARIES like the other lib_* variables.
59642
59643 2006-08-22  Bruno Haible  <bruno@clisp.org>
59644
59645         * build-aux/x-to-1.in: New file, from GNU gettext.
59646
59647 2006-08-22  Bruno Haible  <bruno@clisp.org>
59648
59649         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59650         <utmpx.h> exists.
59651
59652 2006-08-22  Bruno Haible  <bruno@clisp.org>
59653
59654         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59655         <utmpx.h> exists.
59656
59657 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59658
59659         BeOS portability.
59660         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59661         exist.
59662         Problem reported by Bruno Haible.
59663
59664 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         Avoid the need for AC_LIBSOURCES in m4 macros.
59667         * modules/acl (EXTRA_DIST): Add acl.h.
59668         * modules/argmatch (Files): Add m4/argmatch.m4.
59669         (configure.ac): Add gl_ARGMATCH.
59670         (EXTRA_DIST): Renamed from lib_SOURCES, for
59671         consistency with the other modules.  Remove argmatch.c.
59672         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59673         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59674         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59675         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59676         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59677         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59678         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59679         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59680         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59681         * modules/closeout (EXTRA_DIST): Add closeout.h.
59682         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59683         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59684         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59685         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59686         dirname.h; remove basename.c and stripslash.c.
59687         * modules/exclude (EXTRA_DIST): Add exclude.h.
59688         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59689         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59690         * modules/file-type (EXTRA_DIST): Add file-type.h.
59691         * modules/filemode (EXTRA_DIST): Add filemode.h.
59692         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59693         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59694         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59695         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59696         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59697         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59698         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59699         * modules/getdate (EXTRA_DIST): Add getdate.c.
59700         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59701         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59702         * modules/getpass (EXTRA_DIST): Add getpass.h.
59703         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59704         * modules/group-member (EXTRA_DIST): Add group-member.h.
59705         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59706         * modules/hash (EXTRA_DIST): Add hash.h.
59707         * modules/human (EXTRA_DIST): Add human.h.
59708         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59709         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59710         * modules/lchown (EXTRA_DIST): Add lchown.h.
59711         * modules/long-options (EXTRA_DIST): Add long-options.h.
59712         * modules/lstat (EXTRA_DIST): Add lstat.h.
59713         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59714         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59715         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59716         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59717         * modules/memxor (EXTRA_DIST): Add memxor.h.
59718         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59719         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59720         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59721         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59722         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59723         * modules/physmem (EXTRA_DIST): Add physmem.h.
59724         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59725         * modules/posixver (EXTRA_DIST): Add posixver.h.
59726         * modules/quote (EXTRA_DIST): Add quote.h.
59727         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59728         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59729         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59730         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59731         regex_internal.h regexec.c.
59732         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59733         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59734         * modules/same (EXTRA_DIST): Add same.h.
59735         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59736         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59737         * modules/savedir (EXTRA_DIST): Add savedir.h.
59738         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59739         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59740         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59741         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59742         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59743         * modules/strdup (EXTRA_DIST): Add strdup.h.
59744         * modules/strftime (EXTRA_DIST): Add strftime.h.
59745         * modules/strndup (EXTRA_DIST): Add strndup.h.
59746         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59747         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59748         * modules/time_r (EXTRA_DIST): Add time_r.h.
59749         * modules/timespec (EXTRA_DIST): Add timespec.h.
59750         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59751         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59752         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59753         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59754         * modules/userspec (EXTRA_DIST): Add userspec.h.
59755         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59756         * modules/utimens (EXTRA_DIST): Add utimens.h.
59757         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59758         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59759         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59760         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59761         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59762         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59763         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59764         * modules/yesno (EXTRA_DIST): Add yesno.h.
59765
59766 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59767
59768         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59769
59770         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59771         * m4/dev-ino.m4, same-inode.m4: Remove.
59772
59773         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59774         * m4/acl.m4 (AC_FUNC_ACL):
59775         * m4/backupfile.m4 (gl_BACKUPFILE):
59776         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59777         * m4/canon-host.m4 (gl_CANON_HOST):
59778         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59779         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59780         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59781         * m4/cloexec.m4 (gl_CLOEXEC):
59782         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59783         * m4/closeout.m4 (gl_CLOSEOUT):
59784         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59785         * m4/dirname.m4 (gl_DIRNAME):
59786         * m4/exclude.m4 (gl_EXCLUDE):
59787         * m4/exitfail.m4 (gl_EXITFAIL):
59788         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59789         * m4/file-type.m4 (gl_FILE_TYPE):
59790         * m4/filemode.m4 (gl_FILEMODE):
59791         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59792         * m4/fpending.m4 (gl_FUNC_FPENDING):
59793         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59794         * m4/fts.m4 (gl_FUNC_FTS):
59795         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59796         * m4/getdate.m4 (gl_GETDATE):
59797         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59798         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59799         * m4/getpass.m4 (gl_FUNC_GETPASS):
59800         * m4/gettime.m4 (gl_GETTIME):
59801         * m4/getugroups.m4 (gl_GETUGROUPS):
59802         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59803         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59804         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59805         * m4/hash.m4 (gl_HASH):
59806         * m4/idcache.m4 (gl_IDCACHE):
59807         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59808         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59809         * m4/long-options.m4 (gl_LONG_OPTIONS):
59810         * m4/lstat.m4 (gl_FUNC_LSTAT):
59811         * m4/md5.m4 (gl_MD5):
59812         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59813         * m4/memcoll.m4 (gl_MEMCOLL):
59814         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59815         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59816         * m4/memxor.m4 (gl_MEMXOR):
59817         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59818         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59819         * m4/modechange.m4 (gl_MODECHANGE):
59820         * m4/mountlist.m4 (gl_MOUNTLIST):
59821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59822         * m4/openat.m4 (gl_FUNC_OPENAT):
59823         * m4/pathmax.m4 (gl_PATHMAX):
59824         * m4/physmem.m4 (gl_PHYSMEM):
59825         * m4/posixtm.m4 (gl_POSIXTM):
59826         * m4/posixver.m4 (gl_POSIXVER):
59827         * m4/quote.m4 (gl_QUOTE):
59828         * m4/quotearg.m4 (gl_QUOTEARG):
59829         * m4/readtokens.m4 (gl_READTOKENS):
59830         * m4/readutmp.m4 (gl_READUTMP):
59831         * m4/regex.m4 (gl_REGEX):
59832         * m4/safe-read.m4 (gl_SAFE_READ):
59833         * m4/safe-write.m4 (gl_SAFE_WRITE):
59834         * m4/same.m4 (gl_SAME):
59835         * m4/save-cwd.m4 (gl_SAVE_CWD):
59836         * m4/savedir.m4 (gl_SAVEDIR):
59837         * m4/settime.m4 (gl_SETTIME):
59838         * m4/sha1.m4 (gl_SHA1):
59839         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59840         * m4/stat-macros.m4 (gl_STAT_MACROS):
59841         * m4/stat-time.m4 (gl_STAT_TIME):
59842         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59843         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59844         * m4/strdup.m4 (gl_FUNC_STRDUP):
59845         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59846         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59847         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59848         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59849         * m4/time_r.m4 (gl_TIME_R):
59850         * m4/timespec.m4 (gl_TIMESPEC):
59851         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59852         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59853         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59854         * m4/userspec.m4 (gl_USERSPEC):
59855         * m4/utimecmp.m4 (gl_UTIMECMP):
59856         * m4/utimens.m4 (gl_UTIMENS):
59857         * m4/xalloc.m4 (gl_XALLOC):
59858         * m4/xgetcwd.m4 (gl_XGETCWD):
59859         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59860         * m4/xreadlink.m4 (gl_XREADLINK):
59861         * m4/xstrtod.m4 (gl_XSTRTOD):
59862         * m4/yesno.m4 (gl_YESNO):
59863         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59864         to get the necessary .h files and whatnot.
59865
59866 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59867             Bruno Haible  <bruno@clisp.org>
59868
59869         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59870         /bin/sh understanding of '!' conditional negation.
59871
59872 2006-08-21  Jim Meyering  <jim@meyering.net>
59873
59874         * modules/openat (Depends-on): Really alphabetize.
59875
59876         * modules/acl (Depends-on): Add error and quote.
59877
59878         * check-module (find_included_lib_files): Add at-func.c to the
59879         ok-to-include-more-than-once white list.
59880
59881         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59882
59883 2006-08-21  Bruno Haible  <bruno@clisp.org>
59884
59885         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59886         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59887         Reported by Martin Lambers <marlam@marlam.de>.
59888
59889 2006-08-21  Bruno Haible  <bruno@clisp.org>
59890
59891         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59892         specify an installation location, don't emit a noinst_LIBRARIES or
59893         noinst_LTLIBRARIES assignment.
59894
59895 2006-08-21  Bruno Haible  <bruno@clisp.org>
59896
59897         BeOS portability.
59898         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59899         BeOS has mbrtowc() but no <wctype.h>.
59900
59901 2006-08-21  Bruno Haible  <bruno@clisp.org>
59902
59903         BeOS portability.
59904         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59905         exist.
59906
59907 2006-08-21  Bruno Haible  <bruno@clisp.org>
59908
59909         BeOS portability.
59910         * lib/mbchar.h: Include <wctype.h> only if it exists.
59911
59912 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59913
59914         Remove files that are no longer needed by their respective modules.
59915         * m4/obstack.m4: Remove.
59916         * m4/strerror_r.m4: Remove.
59917         * m4/uint32_t.m4: Remove.
59918         * m4/uintptr_t.m4: Remove.
59919         * m4/ullong_max.m4: Remove.
59920         * m4/xstrtoimax.m4: Remove.
59921         * m4/xstrtoumax.m4: Remove.
59922
59923         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59924         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59925         dependencies now capture this.
59926
59927         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59928         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59929         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59930         * m4/human.m4 (gl_HUMAN): Likewise.
59931         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59932         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59933
59934         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59935
59936         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59937         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59938         stdint.
59939         * m4/human.m4 (gl_HUMAN): Likewise.
59940         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59941         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59942         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59943         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59944         * m4/xstrtol (gl_XSTRTOL): Likewise.
59945
59946         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59947         AC_TYPE_LONG_LONG_INT.
59948         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59949         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59950         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59951         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59952
59953         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59954         on stdbool.
59955
59956         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59957         (gl_PREREQ_XSTRTOUL): Remove.
59958
59959         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59960
59961         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59962         mode.
59963
59964 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59965
59966         Add and change modules to make it easier for coreutils to use
59967         gnulib-tool.
59968         * modules/backupfile (Files): Remove m4/d-ino.m4.
59969         (Depends-on): Add d-ino.
59970         * modules/cycle-check (Depends-on): Add stdint.
59971         (lib_SOURCES): Add cycle-check.h.
59972         * modules/d-ino: New module.
59973         * modules/d-type: New module.
59974         * modules/error (Files): Remove m4/strerror_r.m4.
59975         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59976         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59977         m4/inttypes_h.m4, m4/uintmax_t.m4.
59978         (Depends-on): Add stdint.
59979         (lib_SOURCES): Add fsusage.h.
59980         * modules/getcwd (Files): Remove d-ino.m4.
59981         (Depends-on): Add d-ino.
59982         * modules/getndelim2 (Depends-on): Add stdint.
59983         * modules/glob (Files): Remove m4/d-type.m4.
59984         (Depends-on): Add d-type.
59985         * modules/host-os: New module.
59986         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59987         m4/inttypes_h.m4, m4/uintmax_t.m4.
59988         * Depends-on: Add stdint.
59989         (lib_SOURCES): Add human.h.
59990         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59991         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59992         m4/uintmax_t.m4, m4/ulonglong.m4.
59993         (Depends-on): Add stdint.
59994         (EXTRA_DIST): Add inttostr.h.
59995         * modules/lchmod: New module.
59996         * modules/link-follow: New module.
59997         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59998         (Depends-on): Add lchmod.
59999         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60000         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60001         (Depends-on): Add stdint.
60002         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60003         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60004         (Depends-on): Add stdint.
60005         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60006         * modules/perl: New module.
60007         * modules/regex (Depends-on): Add stdint.
60008         * modules/rmdir-errno: New module.
60009         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60010         m4/intmax_t.m4.
60011         (Depends-on): Add stdint.
60012         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60013         m4/uintmax_t.m4.
60014         (Depends-on): Add stdint.
60015         * modules/unlink-busy: New module.
60016         * modules/utimecmp (Depends-on): Add stdint.
60017         * modules/uptime: New module.
60018         * modules/winsz-ioctl: New module.
60019         * modules/winsz-termios: New module.
60020         * modules/xnanosleep (Depends-on): Add nanosleep.
60021         * modules/ullong_max: Remove.
60022         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60023         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60024         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60025         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60026         (Depends-on): Add inttypes.
60027         (lib_SOURCES): Add xstrtol.h.
60028         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60029         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60030         * MODULES.html.sh: Move 'assert' into the assert section.
60031         Move 'dummy' into the linking section.
60032         Remove ullong_max.
60033         Add section for compatibility checks for POSIX:2001 functions,
60034         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60035         winsz-ioctl, and winsz-termios into it.
60036         Add lchmod.
60037         Add top-level Misc section and put host-os, perl, and uptime
60038         into it.
60039
60040 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60041
60042         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60043         now assume the stdint module.  Do not include inttypes.h.
60044         * lib/fsusage.h: Likewise.
60045         * lib/getndelim2.c: Likewise.
60046         * lib/human.h: Likewise.
60047         * lib/inttostr.h: Likewise.
60048         * lib/obstack.c: Likewise.
60049         * lib/regex_internal.h: Likewise.
60050         * lib/tempname.c: Likewise.
60051         * lib/utimecmp.c: Likewise.
60052         * lib/xstrtol.h: Likewise.
60053
60054         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60055
60056         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60057         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60058         * lib/xtime.h: Likewise.
60059
60060 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60061
60062         * modules/openat (Files): Add lib/fchmodat.c.
60063         Fixes problem reported by Jay Youngman.
60064
60065 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60066
60067         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60068         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60069
60070 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60071             Bruno Haible  <bruno@clisp.org>
60072
60073         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60074         and is a script that invokes bison. Tighten the code. Add comments.
60075
60076 2006-08-18  Jim Meyering  <jim@meyering.net>
60077
60078         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60079         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60080         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60081         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60082
60083 2006-08-18  Bruno Haible  <bruno@clisp.org>
60084
60085         * modules/bison-i18n: New file.
60086         * MODULES.html.sh (Internationalization functions): Add it.
60087
60088 2006-08-18  Bruno Haible  <bruno@clisp.org>
60089
60090         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60091         sys/statvfs.h. When getmntinfo was found, check its declaration and
60092         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60093
60094 2006-08-18  Bruno Haible  <bruno@clisp.org>
60095
60096         * m4/bison-i18n.m4: New file, from bison.
60097
60098 2006-08-18  Bruno Haible  <bruno@clisp.org>
60099
60100         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60101         (ME_DUMMY): Treat "kernfs" as a dummy.
60102         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60103
60104 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60105
60106         Update from coreutils.
60107
60108         2006-08-15  Jim Meyering  <jim@meyering.net>
60109
60110         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60111
60112         2006-01-17  Jim Meyering  <jim@meyering.net>
60113
60114         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60115
60116         2006-01-11  Jim Meyering  <jim@meyering.net>
60117
60118         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60119         Check for the lchmod function.
60120
60121 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60122
60123         Update from coreutils.
60124
60125         * lib/__fpending.h: Add copyright notice.
60126         * lib/fprintftime.h: Likewise.
60127         * lib/savedir.c: Use (C) in copyright notice.
60128         * lib/savedir.h: Likewise.
60129
60130         2006-08-15  Jim Meyering  <jim@meyering.net>
60131
60132         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60133         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60134         in support of the EXPECTED_ERRNO macro.
60135         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60136         definitions.  Instead, define the appropriate symbols and include
60137         "at-func.c".
60138         * lib/mkdirat.c (mkdirat): Likewise.
60139         * lib/fchmodat.c (fchmodat): Likewise.
60140         (ENOSYS): Remove definition.
60141         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60142         it.  Don't include "unistd--.h" -- it wasn't ever used.
60143
60144         2006-01-17  Jim Meyering  <jim@meyering.net>
60145
60146         Rewrite fts.c not to change the current working directory,
60147         by using openat, fstatat, fdopendir, etc..
60148
60149         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60150         (HAVE_OPENAT_SUPPORT): Define.
60151         [_LIBC] (fchdir): Don't undef or define; no longer used.
60152         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60153         Now, this `function' always succeeds, and consumes its file descriptor
60154         parameter -- so callers must not close such FDs.  Update callers.
60155         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60156         (diropen): Add parameter, SP.  Adjust all callers.
60157         Implement using diropen_fd, rather than open.
60158         (fts_open): Initialize new member, fts_cwd_fd.
60159         Remove fts_rft-setting code.
60160         (fts_close): Close fts_cwd_fd, if necessary.
60161         (__opendir2): Define in terms of opendir or opendirat,
60162         depending on whether the FST_NOCHDIR flag is set.
60163         (fts_build): Since fts_safe_changedir consumes its FD, and since
60164         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60165         and close the dup'd file descriptor upon failure.
60166         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60167         (fts_safe_changedir): Tweak semantics to reflect that this function
60168         now calls cwd_advance_fd and hence consumes its FD argument.
60169         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60170         [struct FTS] (fts_rft): Remove now-unused member.
60171         [struct FTS] (fts_cycle.state): Improve comment.
60172
60173         * lib/openat.c (openat_needs_fchdir): New function.
60174         * lib/openat.h (openat_needs_fchdir): Declare it.
60175
60176 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60177
60178         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60179         Problem and fix reported by Pádraig Brady in
60180         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60181
60182 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60183
60184         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60185
60186 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60187
60188         * lib/memcoll.c (memcoll): Optimize for the common case where the
60189         arguments are bytewise equal.
60190
60191 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60192
60193         * doc/regexprops-generic.texi: Add a copyright notice.
60194
60195 2006-08-15  Bruno Haible  <bruno@clisp.org>
60196
60197         * modules/tmpdir (License): Change to LGPL.
60198
60199 2006-08-15  Bruno Haible  <bruno@clisp.org>
60200
60201         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60202         module.
60203
60204 2006-08-14  Simon Josefsson  <jas@extundo.com>
60205
60206         * config/srclist.txt: Add gnupload.
60207
60208 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         Change copyright notice from LGPL 2 to GPL 2, since that's the
60211         standard form used in the gnulib repository.
60212         * tests/test-lock.c: Likewise.
60213         * tests/test-stdint.c: Likewise.
60214         * tests/test-tls.c: Likewise.
60215
60216         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60217         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60218         Add copyright notice.
60219
60220         * check-module: Add copyright notice.  Output a copyright
60221         notice if "--version" is specified.
60222         * modules/COPYING: New file.
60223         * tests/test-getaddrinfo.c: Add copyright notice.
60224         * tests/test-verify.c: Likewise.
60225
60226 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         Change copyright notice from LGPL 2 to GPL 2, since that's the
60229         standard form used in the gnulib repository.
60230         * lib/lock.c: LGPL -> GPL.
60231         * lib/lock.h: Likewise.
60232         * lib/strnlen1.c: Likewise.
60233         * lib/strnlen1.h: Likewise.
60234         * lib/tls.c: Likewise.
60235         * lib/tls.h: Likewise.
60236         * lib/tmpdir.c: Likewise.
60237
60238         * lib/TODO: Remove; this belongs only in coreutils.
60239
60240 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60241
60242         Add copyright notices to long-enough files that lack them, since
60243         otherwise the files aren't clearly free.  Use the same notice that
60244         getdate.texi already uses.
60245         * doc/alloca-opt.texi: Add copyright notice.
60246         * doc/alloca.texi: Likewise.
60247         * doc/ctime.texi: Likewise.
60248         * doc/functions.texi: Likewise.
60249         * doc/gcd.texi: Likewise.
60250         * doc/gnulib-tool.texi: Likewise.
60251         * doc/inet_ntoa.texi: Likewise.
60252         * doc/visibility.texi: Likewise.
60253
60254         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60255         * doc/quote.texi: Add copyright notice.
60256
60257         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60258         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60259         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60260         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60261         is now obsolete, and give a pointer to the Sun list.
60262         Add copyright notice.
60263
60264 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60265
60266         * config/srclistvars.sh: Add copyright notice.
60267
60268 2006-08-14  Eric Blake  <ebb9@byu.net>
60269
60270         Import the following change from libc:
60271
60272         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60273
60274         Upstream bug 2997.
60275         * lib/misc/error.c: Add space between program name and message if file
60276         name is missing.
60277
60278 2006-08-12  Karl Berry  <karl@gnu.org>
60279
60280         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60281         remove, these originate in gnulib now.
60282
60283 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60284
60285         * doc/Makefile (standards.info standards.html standards.dvi):
60286         Also depend on make-stds.texi.
60287
60288 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60289
60290         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60291         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60292
60293         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60294         in wchar_t.  Problem reported by Eric Blake.
60295
60296         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60297         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60298         Also, help the compiler to keep LEN in a register.
60299
60300 2006-08-11  Eric Blake  <ebb9@byu.net>
60301
60302         * users.txt: Sort.  Add tar.
60303
60304 2006-08-11  Bruno Haible  <bruno@clisp.org>
60305
60306         * users.txt: New file.
60307
60308 2006-08-11  Bruno Haible  <bruno@clisp.org>
60309
60310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60311         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60312
60313 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60314
60315         * modules/snprintf (Depends-on): Remove minmax.
60316         (Maintainer): Add self and Bruno.
60317
60318 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60319
60320         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60321         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60322         (EOVERFLOW): Define if the system does not.
60323         Do not include "minmax.h"; it wasn't used.
60324         (snprintf): Don't assume size_t promotes to an unsigned type.
60325         Fix bug when generated string was too long for the buffer: the
60326         buffer's contents are supposed to be the initial prefix of the
60327         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60328         exceeds INT_MAX; do the check ourselves.
60329
60330         Import the following changes from libc:
60331
60332         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60333
60334         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60335         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60336         set wc to the byte which couldn't be converted.
60337         (re_string_reconstruct): Don't clear valid_raw_len before calling
60338         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60339         tip_context using re_string_context_at.
60340
60341         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60342
60343         * lib/posix/regex.h: g++ still cannot handled [restrict].
60344
60345         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60346
60347         * lib/posix/regex.h: Remove special handling for VMS.
60348
60349 2006-08-10  Jim Meyering  <jim@meyering.net>
60350
60351         * modules/same-inode: New module.
60352         * modules/dev-ino: New module.
60353         * modules/cycle-check: Depend on these modules, rather than simply
60354         including their .h files.
60355         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60356         required via m4/cycle-check.m4.
60357         * modules/same: Depend on new same-inode module, rather than
60358         including same-inode.h.
60359         * modules/chdir-safer: New file.
60360
60361         * modules/chown (Depends-on): Add stat-macros.
60362
60363 2006-08-10  Jim Meyering  <jim@meyering.net>
60364
60365         * m4/cycle-check.m4: New file.
60366         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60367         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60368
60369 2006-08-10  Eric Blake  <ebb9@byu.net>
60370
60371         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60372         in from original proposal.
60373
60374 2006-08-10  Eric Blake  <ebb9@byu.net>
60375         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60376
60377         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60378         namespace.
60379
60380 2006-08-10  Bruno Haible  <bruno@clisp.org>
60381
60382         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60383         as well.
60384
60385 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60386
60387         Sync from coreutils.
60388
60389         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60390
60391         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60392         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60393
60394 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60395
60396         * modules/restrict: Remove; no longer needed now that we assume
60397         Autoconf 2.59 or later.
60398         * MODULES.html.sh: Remove 'restrict'.
60399         * modules/argp (Depends-on): Remove 'restrict'.
60400         * modules/base64 (Depends-on): Likewise.
60401         * modules/gc (Depends-on): Likewise.
60402         * modules/getaddrinfo (Depends-on): Likewise.
60403         * modules/glob (Depends-on): Likewise.
60404         * modules/inet_ntop (Depends-on): Likewise.
60405         * modules/inet_pton (Depends-on): Likewise.
60406         * modules/memxor (Depends-on): Likewise.
60407         * modules/regex (Depends-on): Likewise.
60408         * modules/strtok_r (Depends-on): Likewise.
60409         * modules/time_r (Depends-on): Likewise.
60410
60411 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60412
60413         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60414         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60415         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60416         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60417         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60418         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60419         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60420         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60421
60422         Merge from coreutils.
60423         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60424         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60425         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60426         * m4/time_r.m4 (gl_TIME_R): Likewise.
60427
60428 2006-08-09  Karl Berry  <karl@gnu.org>
60429
60430         * config/srclist.txt: no more gettext-tools, per Bruno.
60431
60432 2006-08-08  Eric Blake  <ebb9@byu.net>
60433
60434         * modules/verror: New module.
60435         * MODULES.html.sh: Document it.
60436
60437 2006-08-08  Eric Blake  <ebb9@byu.net>
60438
60439         * lib/verror.h, lib/verror.c: New files.
60440
60441 2006-08-08  Eric Blake  <ebb9@byu.net>
60442
60443         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60444         verror_at_line output complies with GNU Coding Standards even when
60445         file is NULL.
60446
60447 2006-08-07  Bruno Haible  <bruno@clisp.org>
60448
60449         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60450         versions of AIX.
60451         Reported by Ralf Wildenhues.
60452
60453 2006-08-07  Bruno Haible  <bruno@clisp.org>
60454
60455         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60456         in an AC_DEFUN. Needed so that the autoconf snippets can use
60457         AC_REQUIRE.
60458
60459 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60460
60461         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60462         Initialize pkgdata_DATA.
60463         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60464         overriding it.
60465
60466 2006-08-06  Eric Blake  <ebb9@byu.net>
60467
60468         * lib/error.h: Fold in some upstream changes from glibc.
60469         * lib/error.c: Likewise.
60470
60471 2006-08-04  Bruno Haible  <bruno@clisp.org>
60472
60473         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60474         Make the mostlyclean-local rule depend on mostlyclean-generic.
60475         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60476
60477 2006-07-31  Bruno Haible  <bruno@clisp.org>
60478
60479         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60480         <stdlib.h>, <string.h>.
60481
60482 2006-07-30  Bruno Haible  <bruno@clisp.org>
60483
60484         * modules/readlink (License): Change to LGPL.
60485
60486 2006-07-30  Bruno Haible  <bruno@clisp.org>
60487
60488         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60489         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60490         set PKGDATADIR to point to it.
60491
60492 2006-07-30  Bruno Haible  <bruno@clisp.org>
60493
60494         * modules/csharpexec (configure.ac): Comment out macro invocation.
60495         * modules/javaexec (configure.ac): Likewise.
60496         * modules/javacomp-script (configure.ac): Likewise.
60497
60498         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60499
60500 2006-07-30  Bruno Haible  <bruno@clisp.org>
60501
60502         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60503         linked-list.
60504
60505 2006-07-30  Bruno Haible  <bruno@clisp.org>
60506
60507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60508
60509 2006-07-30  Bruno Haible  <bruno@clisp.org>
60510
60511         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60512         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60513         get removed.
60514
60515 2006-07-29  Bruno Haible  <bruno@clisp.org>
60516
60517         Make it possible for gnulib-tool to work with locally modified or
60518         augmented gnulib repositories.
60519         * gnulib-tool (func_usage): Document --local-dir option.
60520         (local_gnulib_dir): New variable.
60521         Handle --local-dir option.
60522         (func_lookup_file): New function.
60523         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60524         (func_get_description, func_get_filelist, func_get_description,
60525         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60526         func_get_automake_snippet, func_get_include_directive,
60527         func_get_license, func_get_maintainer): Use func_lookup_file.
60528         (func_import, func_create_testdir): Use func_lookup_file.
60529
60530 2006-07-29  Bruno Haible  <bruno@clisp.org>
60531
60532         * modules/setenv (Depends-on): Add unistd.
60533
60534 2006-07-29  Bruno Haible  <bruno@clisp.org>
60535
60536         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60537
60538 2006-07-29  Bruno Haible  <bruno@clisp.org>
60539
60540         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60541
60542 2006-07-29  Bruno Haible  <bruno@clisp.org>
60543
60544         * gnulib-tool (import, update): If there is no Makefile.am, look at
60545         aclocal.m4, instead of bailing out.
60546
60547 2006-07-29  Bruno Haible  <bruno@clisp.org>
60548
60549         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60550         Categorize the options by when they are useful.
60551
60552 2006-07-29  Bruno Haible  <bruno@clisp.org>
60553
60554         * gnulib-tool (func_usage): Document option --no-libtool.
60555         Handle option --no-libtool.
60556         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60557         for changed semantics of $libtool variable.
60558         (func_import): Likewise. If libtool is not used, show this through
60559         an option --no-libtool.
60560         (func_create_testdir): Update.
60561
60562 2006-07-29  Bruno Haible  <bruno@clisp.org>
60563
60564         * gnulib-tool (func_import): Extend error message about missing
60565         --doc-base.
60566
60567 2006-07-29  Bruno Haible  <bruno@clisp.org>
60568
60569         * gnulib-tool (func_import): Don't create the $docbase directory if
60570         there is no file to store there.
60571
60572 2006-07-29  Bruno Haible  <bruno@clisp.org>
60573
60574         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60575         relevant, look for configure.ac there, not in the current directory.
60576         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60577
60578 2006-07-29  Bruno Haible  <bruno@clisp.org>
60579
60580         * gnulib-tool (SORT): New variable.
60581         (func_usage): Undocument --assume-autoconf option.
60582         Remove --assume-autoconf option handling.
60583         (autoconf_minversion): Determine from the contents of configure.ac.
60584         (func_import): Remove autoconf_minversion handling.
60585         Suggested by Eric Blake.
60586
60587 2006-07-29  Bruno Haible  <bruno@clisp.org>
60588
60589         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60590
60591 2006-07-29  Bruno Haible  <bruno@clisp.org>
60592
60593         * config/srclist.txt (*setenv.[ch]): Remove rules.
60594
60595 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60596
60597         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60598
60599 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60600
60601         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60602         arpa/inet.h.
60603
60604 2006-07-28  Simon Josefsson  <jas@extundo.com>
60605
60606         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60607         * modules/inet_pton (Depends-on): Likewise.
60608
60609 2006-07-28  Simon Josefsson  <jas@extundo.com>
60610
60611         * m4/netinet_in_h.m4: New file.
60612
60613 2006-07-28  Simon Josefsson  <jas@extundo.com>
60614
60615         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60616         #include's.
60617
60618 2006-07-28  Simon Josefsson  <jas@extundo.com>
60619
60620         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60621         #include's.
60622
60623 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60624
60625         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60626         setgid on directories only if they set these bits.
60627         * lib/modechange.h: Remove obsolete comment about masks.
60628
60629 2006-07-28  Eric Blake  <ebb9@byu.net>
60630
60631         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60632         macro expansion.
60633
60634 2006-07-28  Bruno Haible  <bruno@clisp.org>
60635
60636         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60637
60638 2006-07-28  Bruno Haible  <bruno@clisp.org>
60639
60640         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60641
60642 2006-07-28  Bruno Haible  <bruno@clisp.org>
60643
60644         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60645         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60646         Define fallbacks.
60647         Avoids link error on FreeBSD 4.x.
60648         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60649
60650         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60651         encoding.
60652         * lib/mbswidth.c (iswcntrl): Likewise.
60653
60654 2006-07-27  Bruno Haible  <bruno@clisp.org>
60655
60656         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60657         test.
60658
60659 2006-07-27  Bruno Haible  <bruno@clisp.org>
60660
60661         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60662         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60663         defined.
60664
60665 2006-07-26  Eric Blake  <ebb9@byu.net>
60666
60667         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60668
60669 2006-07-26  Eric Blake  <ebb9@byu.net>
60670
60671         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60672         like mingw that lack mkstemp.
60673         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60674         avoid compilation warning on mingw.
60675
60676 2006-07-26  Bruno Haible  <bruno@clisp.org>
60677
60678         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60679         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60680         INT_FAST*_MIN, INTPTR_MIN.
60681
60682 2006-07-25  Bruno Haible  <bruno@clisp.org>
60683
60684         * modules/version-etc (Depends-on): Add stdarg.
60685
60686 2006-07-25  Bruno Haible  <bruno@clisp.org>
60687
60688         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60689         complex commands.
60690
60691 2006-07-25  Bruno Haible  <bruno@clisp.org>
60692
60693         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60694         defined in <stdarg.h> or config.h.
60695
60696 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60697
60698         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60699         (gl_STDIO_SAFER): Remove.
60700
60701 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60702
60703         * MODULES.html.sh (File stream based Input/Output):
60704         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60705         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60706         * modules/fopen-safer, modules/tmpfile-safer: New files.
60707         * modules/stdio-safer: Remove.
60708
60709 2006-07-24  Bruno Haible  <bruno@clisp.org>
60710
60711         * modules/tmpdir: New file.
60712         * MODULES.html.sh (File system functions): Add it.
60713
60714 2006-07-24  Bruno Haible  <bruno@clisp.org>
60715
60716         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60717         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60718
60719 2006-07-24  Bruno Haible  <bruno@clisp.org>
60720
60721         * modules/clean-temp: New file.
60722
60723 2006-07-24  Bruno Haible  <bruno@clisp.org>
60724
60725         * m4/tmpdir.m4: New file, from GNU gettext.
60726
60727 2006-07-24  Bruno Haible  <bruno@clisp.org>
60728
60729         * lib/tmpdir.h: New file, from GNU gettext.
60730         * lib/tmpdir.c: New file, from GNU gettext.
60731
60732 2006-07-24  Bruno Haible  <bruno@clisp.org>
60733
60734         * lib/clean-temp.h: New file, from GNU gettext.
60735         * lib/clean-temp.c: New file, from GNU gettext.
60736
60737 2006-07-23  Eric Blake  <ebb9@byu.net>
60738
60739         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60740         (Depends-on): Add binary-io.
60741
60742 2006-07-23  Eric Blake  <ebb9@byu.net>
60743
60744         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60745
60746 2006-07-23  Eric Blake  <ebb9@byu.net>
60747
60748         * lib/tmpfile-safer.c: New file.
60749         * lib/stdio-safer.h (fopen_safer): Add prototype.
60750         * lib/stdio--.h (tmpfile): Make safer.
60751
60752 2006-07-23  Bruno Haible  <bruno@clisp.org>
60753
60754         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60755         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60756         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60757         gl_linked_remove_at): Use it.
60758
60759 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60760         and Simon Josefsson <jas@extundo.com>
60761
60762         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60763
60764         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60765
60766 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60767
60768         * modules/close-stream: New file.
60769         * modules/closeout (Description): Make it clear that it exits
60770         with a diagnostic on error.
60771         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60772         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60773
60774 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60775
60776         * m4/close-stream.m4: New file.
60777
60778 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         * lib/close-stream.c, lib/close-stream.h: New files.
60781
60782 2006-07-22  Bruno Haible  <bruno@clisp.org>
60783
60784         Merge from GNU gettext 0.15.
60785
60786         2006-05-01  Bruno Haible  <bruno@clisp.org>
60787
60788                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60789
60790         2006-07-22  Bruno Haible  <bruno@clisp.org>
60791
60792                 * modules/javaversion: New file.
60793                 * MODULES.html.sh (Java): Add javaversion.
60794
60795         2006-03-12  Bruno Haible  <bruno@clisp.org>
60796
60797                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60798
60799         2005-12-04  Bruno Haible  <bruno@clisp.org>
60800
60801                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60802                 (untested).
60803
60804         2006-06-21  Bruno Haible  <bruno@clisp.org>
60805
60806                 Avoid warnings from recent versions of mcs.
60807                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60808                 -o, -L, -r any more. Use options documented since mcs-1.0
60809                 instead. Similarly for -g.
60810
60811         2005-12-04  Bruno Haible  <bruno@clisp.org>
60812
60813                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60814                 .resources, not .resource.
60815
60816         2005-07-09  Bruno Haible  <bruno@clisp.org>
60817
60818                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60819                 add a .dll suffix.
60820                 Reported by Mark Junker <mjscod@gmx.de>.
60821
60822         2006-07-22  Bruno Haible  <bruno@clisp.org>
60823
60824                 * modules/gettext: Upgrade to gettext-0.15.
60825                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60826                 m4/visibility.m4.
60827                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60828
60829 2006-07-22  Bruno Haible  <bruno@clisp.org>
60830
60831         Merge from GNU gettext 0.15.
60832
60833         2006-03-25  Bruno Haible  <bruno@clisp.org>
60834
60835                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60836
60837         2006-07-21  Bruno Haible  <bruno@clisp.org>
60838
60839                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60840                 "1.1".
60841
60842         2006-05-09  Bruno Haible  <bruno@clisp.org>
60843
60844                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60845                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60846                 for the conftestver execution.
60847
60848         2006-05-01  Bruno Haible  <bruno@clisp.org>
60849
60850                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60851                 optional target-version argument. Verify that the compiler
60852                 groks source of the specified source-version, or add -source
60853                 option as necessary. Verify that the compiler produces
60854                 bytecode in the specified target-version, or add -target and
60855                 -source options as necessary. Make the result of the test
60856                 available as variable CONF_JAVAC. Also log error output in
60857                 config.log.
60858
60859         2006-03-11  Bruno Haible  <bruno@clisp.org>
60860
60861                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60862
60863         2006-05-09  Bruno Haible  <bruno@clisp.org>
60864
60865                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60866                 CLASSPATH_SEPARATOR to a semicolon.
60867
60868         2006-03-12  Bruno Haible  <bruno@clisp.org>
60869
60870                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60871                 available as variable CONF_JAVA, for subsequent autoconf
60872                 tests. Also log error output in config.log.
60873
60874         2006-07-19  Bruno Haible  <bruno@clisp.org>
60875
60876                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60877                 that getline works on glibc2 systems. Needed to avoid trouble
60878                 in relocatable.c.
60879                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60880
60881         2005-12-04  Bruno Haible  <bruno@clisp.org>
60882
60883                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60884                 launcher (untested).
60885
60886         2005-12-04  Bruno Haible  <bruno@clisp.org>
60887
60888                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60889
60890         2006-07-22  Bruno Haible  <bruno@clisp.org>
60891
60892                 * gettext.m4: Update from GNU gettext-0.15.
60893                 * nls.m4: Likewise.
60894                 * po.m4: Likewise.
60895                 * inttypes-pri.m4: Likewise.
60896                 * inttypes-h.m4: Renamed from inttypes.m4.
60897                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60898
60899 2006-07-22  Bruno Haible  <bruno@clisp.org>
60900
60901         Merge from GNU gettext 0.15.
60902
60903         2005-07-05  Bruno Haible  <bruno@clisp.org>
60904
60905                 * printf-args.c (printf_fetchargs): Work around broken
60906                 definition of wint_t on mingw.
60907
60908         2005-02-12  Bruno Haible  <bruno@clisp.org>
60909
60910                 * xallocsa.h: Add extern "C" for C++.
60911
60912         2006-05-17  Bruno Haible  <bruno@clisp.org>
60913
60914                 Cygwin portability.
60915                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60916
60917         2006-04-30  Bruno Haible  <bruno@clisp.org>
60918
60919                 * progreloc.c: Include <mach-o/dyld.h> if available.
60920                 (find_executable): Use _NSGetExecutablePath when possible.
60921
60922         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60923
60924                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60925                 function.
60926
60927         2005-12-29  Bruno Haible  <bruno@clisp.org>
60928
60929                 * progreloc.c (set_program_name_and_installdir): Fix
60930                 compilation error.
60931
60932         2005-12-04  Bruno Haible  <bruno@clisp.org>
60933
60934                 Cygwin portability.
60935                 * progreloc.c: Include <windows.h> also on Cygwin.
60936                 (find_executable): Add support for Cygwin.
60937                 (set_program_name_and_installdir): Handle also platforms with
60938                 nonempty EXEEXT.
60939
60940         2006-07-11  Bruno Haible  <bruno@clisp.org>
60941
60942                 * javacomp.c: Fix a comment.
60943                 Reported by Jim Meyering.
60944
60945         2006-04-30  Bruno Haible  <bruno@clisp.org>
60946
60947                 * javacomp.h (compile_java_class): Add source_version,
60948                 target_version arguments.
60949                 * javacomp.c: Rewritten to choose only a compiler that
60950                 respects the specified source_version and target_version.
60951
60952         2006-06-27  Bruno Haible  <bruno@clisp.org>
60953
60954                 Assume correct S_ISDIR macro.
60955                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60956
60957         2006-07-22  Bruno Haible  <bruno@clisp.org>
60958
60959                 * javaversion.h: New file, from GNU gettext.
60960                 * javaversion.c: New file, from GNU gettext.
60961                 * javaversion.java: New file, from GNU gettext.
60962                 * javaversion.class: New file, from GNU gettext.
60963
60964         2006-05-17  Bruno Haible  <bruno@clisp.org>
60965
60966                 Cygwin portability.
60967                 * javaexec.c (execute_java_class): Test for jview program
60968                 also on Cygwin.
60969
60970         2006-04-09  Bruno Haible  <bruno@clisp.org>
60971
60972                 * fatal-signal.c: Don't include string.h.
60973                 (at_fatal_signal): Use a copying loop instead of memcpy.
60974
60975         2005-12-04  Bruno Haible  <bruno@clisp.org>
60976
60977                 * csharpexec.c: Add support for 'clix' launcher (untested).
60978                 (execute_csharp_using_sscli): New function.
60979                 (execute_csharp_program): Call it.
60980
60981         2006-06-21  Bruno Haible  <bruno@clisp.org>
60982
60983                 Avoid warnings from recent versions of mcs.
60984                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60985                 -o, -L, -r any more. Use options documented since mcs-1.0
60986                 instead. Similarly for -g.
60987
60988         2005-07-09  Bruno Haible  <bruno@clisp.org>
60989
60990                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60991                 add a .dll suffix.
60992                 Reported by Mark Junker <mjscod@gmx.de>.
60993
60994         2006-06-17  Bruno Haible  <bruno@clisp.org>
60995
60996                 * config.charset: Update for NetBSD 3.0.
60997
60998         2006-05-17  Bruno Haible  <bruno@clisp.org>
60999
61000                 Cygwin portability.
61001                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61002
61003         2006-05-16  Bruno Haible  <bruno@clisp.org>
61004
61005                 * localcharset.c [CYGWIN]: Include <windows.h>.
61006                 (get_charset_aliases): For Cygwin, return the same CPxxx
61007                 aliases list as under WIN32.
61008                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61009                 the environment variables. Fall back to GetACP().
61010
61011         2006-04-05  Bruno Haible  <bruno@clisp.org>
61012
61013                 * config.charset: Update Juan Manuel Guerrero's address.
61014
61015         2005-02-12  Bruno Haible  <bruno@clisp.org>
61016
61017                 * allocsa.h: Add extern "C" for C++.
61018
61019         2005-02-10  Bruno Haible  <bruno@clisp.org>
61020
61021                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61022                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61023
61024         2006-07-22  Bruno Haible  <bruno@clisp.org>
61025
61026                 * gettext.h: Update to GNU gettext-0.15.
61027
61028 2006-07-22  Bruno Haible  <bruno@clisp.org>
61029
61030         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61031         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61032         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61033
61034 2006-07-21  Eric Blake  <ebb9@byu.net>
61035
61036         * modules/stdlib-safer: New file.
61037         * MODULES.html.sh (File stream based Input/Output): Add
61038         stdlib-safer.
61039
61040 2006-07-21  Eric Blake  <ebb9@byu.net>
61041
61042         * lib/stdlib-safer.h: New file from coreutils, required by
61043         stdlib--.h.
61044
61045 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61046
61047         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61048
61049 2006-07-20  Bruno Haible  <bruno@clisp.org>
61050
61051         * gnulib-tool: Recognize new option --assume-autoconf.
61052         (autoconf_minversion): New variable.
61053         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61054
61055 2006-07-20  Bruno Haible  <bruno@clisp.org>
61056
61057         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61058
61059 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61060
61061         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61062         Reindent and repaginate.
61063
61064 2006-07-19  Derek Price  <derek@ximbiot.com>
61065
61066         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61067         Correct grammar.
61068
61069 2006-07-17  Bruno Haible  <bruno@clisp.org>
61070
61071         * modules/list: New file.
61072         * modules/array-list: New file.
61073         * modules/carray-list, modules/carray-list-tests: New files.
61074         * modules/linked-list, modules/linked-list-tests: New files.
61075         * modules/avltree-list, modules/avltree-list-tests: New files.
61076         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61077         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61078         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61079         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61080         * modules/oset: New file.
61081         * modules/array-oset: New file.
61082         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61083         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61084         * tests/test-carray_list.c: New file.
61085         * tests/test-linked_list.c: New file.
61086         * tests/test-avltree_list.c: New file.
61087         * tests/test-rbtree_list.c: New file.
61088         * tests/test-linkedhash_list.c: New file.
61089         * tests/test-avltreehash_list.c: New file.
61090         * tests/test-rbtreehash_list.c: New file.
61091         * tests/test-avltree_oset.c: New file.
61092         * tests/test-rbtree_oset.c: New file.
61093         * MODULES.html.sh (Container data structures): New section.
61094
61095 2006-07-17  Bruno Haible  <bruno@clisp.org>
61096
61097         * m4/gl_list.m4: New file.
61098
61099 2006-07-17  Bruno Haible  <bruno@clisp.org>
61100
61101         * lib/gl_list.h: New file.
61102         * lib/gl_list.c: New file.
61103         * lib/gl_array_list.h: New file.
61104         * lib/gl_array_list.c: New file.
61105         * lib/gl_carray_list.h: New file.
61106         * lib/gl_carray_list.c: New file.
61107         * lib/gl_linked_list.h: New file.
61108         * lib/gl_linked_list.c: New file.
61109         * lib/gl_anylinked_list1.h: New file.
61110         * lib/gl_anylinked_list2.h: New file.
61111         * lib/gl_avltree_list.h: New file.
61112         * lib/gl_avltree_list.c: New file.
61113         * lib/gl_anyavltree_list1.h: New file.
61114         * lib/gl_anyavltree_list2.h: New file.
61115         * lib/gl_rbtree_list.h: New file.
61116         * lib/gl_rbtree_list.c: New file.
61117         * lib/gl_anyrbtree_list1.h: New file.
61118         * lib/gl_anyrbtree_list2.h: New file.
61119         * lib/gl_anytree_list1.h: New file.
61120         * lib/gl_anytree_list2.h: New file.
61121         * lib/gl_linkedhash_list.h: New file.
61122         * lib/gl_linkedhash_list.c: New file.
61123         * lib/gl_anyhash_list1.h: New file.
61124         * lib/gl_anyhash_list2.h: New file.
61125         * lib/gl_avltreehash_list.h: New file.
61126         * lib/gl_avltreehash_list.c: New file.
61127         * lib/gl_rbtreehash_list.h: New file.
61128         * lib/gl_rbtreehash_list.c: New file.
61129         * lib/gl_anytreehash_list1.h: New file.
61130         * lib/gl_anytreehash_list2.h: New file.
61131
61132         * lib/gl_oset.h: New file.
61133         * lib/gl_oset.c: New file.
61134         * lib/gl_array_oset.h: New file.
61135         * lib/gl_array_oset.c: New file.
61136         * lib/gl_avltree_oset.h: New file.
61137         * lib/gl_avltree_oset.c: New file.
61138         * lib/gl_rbtree_oset.h: New file.
61139         * lib/gl_rbtree_oset.c: New file.
61140         * lib/gl_anytree_oset.h: New file.
61141
61142 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61143
61144         * m4/mkancesdirs.m4: New file.
61145         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61146         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61147         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61148         it.
61149
61150 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61151
61152         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61153         * lib/mkancesdirs.h: New files.
61154         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61155         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61156         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61157         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61158         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61159         callers changed.  Revamp internals significantly, by not
61160         attempting to create directories that are temporarily more
61161         permissive than the final results.  Do not attempt to use
61162         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61163         This removes some race conditions, fixes some bugs, and simplifies
61164         things.  Use new dirchownmod function to do owner and mode changes.
61165         * lib/mkdir-p.h: Likewise.
61166         * lib/modechange.c (octal_to_mode): New function.
61167         (struct mode_change): New member mentioned.
61168         (make_node_op_equals): New arg mentioned.  All callers changed.
61169         (mode_compile): Keep track of which mode bits the user has explicitly
61170         mentioned.
61171         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61172         New arg PMODE_BITS, to keep track of which mode bits the user
61173         mentioned; it treats S_ISUID and S_ISGID speciall.
61174         All callers changed.
61175         * lib/modechange.h: Likewise.
61176
61177 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61178
61179         * MODULES.html.sh: Add mkancestors.
61180         * modules/mkancesdirs: New module.
61181         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61182         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61183         The chdir-safer and afs files are now orphans; I'll remove them
61184         unless someone speaks up.
61185         Add lib/dirchownmod.c, lib/dirchownmod.h.
61186         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61187         Add lchown, mkancesdirs.
61188         (Maintainer): Add self.
61189
61190 2006-07-15  Karl Berry  <karl@gnu.org>
61191
61192         * gnulib-tool: help message wording/arrangement.
61193
61194 2006-07-14  Simon Josefsson  <jas@extundo.com>
61195
61196         * doc/gnulib.texi (Libtool and Windows): New section.
61197
61198 2006-07-12  Simon Josefsson  <jas@extundo.com>
61199
61200         * modules/gendocs (License): Fix license, approved by Karl.
61201
61202 2006-07-12  Eric Blake  <ebb9@byu.net>
61203
61204         * MODULES.html.sh: Add gendocs.
61205
61206 2006-07-11  Eric Blake  <ebb9@byu.net>
61207
61208         * modules/fdl: New module, to install doc/fdl.texi.
61209         * MODULES.html.sh: Add new section for documentation modules.
61210         * gnulib-tool: Avoid space-tab.
61211         (--doc-base): New option, to manage files from doc.
61212
61213 2006-07-11  Eric Blake  <ebb9@byu.net>
61214
61215         * m4/absolute-header.m4: Fix comments to match recent change.
61216
61217 2006-07-11  Eric Blake  <ebb9@byu.net>
61218
61219         * gnulib-tool: List --doc-base before --tests-base.
61220
61221 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61222
61223         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61224
61225 2006-07-11  Bruno Haible  <bruno@clisp.org>
61226
61227         * README: Mention where to put documentation.
61228
61229 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61230
61231         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61232
61233 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61234
61235         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61236         to stdint.m4.
61237
61238 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61239
61240         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61241         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61242         "no/such/file/stdint.h" when there is no such file, so that
61243         the resulting C code can be parsed by dodgy compilers.
61244         Problems reported by Bob Proulx.
61245
61246 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61247
61248         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61249         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61250         macros into the GNU _D_EXACT_NAMLEN.
61251         * lib/savedir.c:  Likewise.
61252         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61253
61254 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61255         and Paul Eggert  <eggert@cs.ucla.edu>
61256
61257         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61258         * m4/savedir.m4:
61259         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61260         macros into the GNU _D_EXACT_NAMLEN.
61261
61262 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61263
61264         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61265         around the absolute name, to work around a problem with the HP-UX
61266         11.23 native C compiler, reported by Bob Proulx.
61267
61268 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61269
61270         * doc/maintain.texi, make-stds.texi: Sync from
61271         <http://savannah.gnu.org/projects/gnustandards>.
61272
61273 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61274
61275         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61276
61277 2006-07-09  Jim Meyering  <jim@meyering.net>
61278
61279         * m4/glob.m4: Remove a doubled word in a comment.
61280
61281 2006-07-09  Jim Meyering  <jim@meyering.net>
61282
61283         * lib/argp-pv.c: Remove a doubled word in a comment.
61284         * lib/check-version.c (check_version): Likewise.
61285         * lib/javacomp.c (compile_java_class): Likewise.
61286
61287 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61288
61289         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61290         for the benefit of people using Autoconf 2.60.  If you want to
61291         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61292         (or m4/onceonly.m4, if pre-2.57) manually.
61293
61294 2006-07-08  Jim Meyering  <jim@meyering.net>
61295
61296         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61297         comment.
61298         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61299         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61300         comment.
61301
61302 2006-07-08  Jim Meyering  <jim@meyering.net>
61303
61304         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61305
61306 2006-07-07  Simon Josefsson  <jas@extundo.com>
61307
61308         * tests/test-crc.c: Change expected crc value, the test vector
61309         were probably computed using the old broken crc.c?
61310
61311 2006-07-06  Simon Josefsson  <jas@extundo.com>
61312
61313         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61314         now the canonical place for the M4 file).
61315
61316         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61317         from the sys_socket dependency now.
61318
61319         * modules/inet_pton (Files): Ditto.
61320
61321         * modules/inet_ntop (Files): Ditto.
61322
61323 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61324
61325         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61326         not gl_PREREQ_GETUSERSHELL.
61327
61328 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61329
61330         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61331         with only one argument, for Autoconf 2.60.
61332         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61333         expand to nothing, so add a shell command to avoid syntax error.
61334         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61335
61336 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61337
61338         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61339
61340 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61341
61342         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61343         no longer needed.  Check for isblank decl.
61344         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61345         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61346         of existence.
61347
61348 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61349
61350         * lib/getloadavg.c: Use __VMS, not VMS.
61351         * lib/getopt.c: Likewise.
61352         * lib/getpagesize.h: Likewise.
61353         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61354         and probably does not work.
61355
61356 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61357
61358         * lib/.cppi-disable: Add wcwidth.
61359         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61360         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61361         (ISGRAPH): Remove.  All uses changed to isgraph.
61362         (FOLD) [!defined _LIBC]: Remove special case.
61363         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61364         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61365         HAVE_ISBLANK.
61366         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61367         case.
61368
61369 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61370
61371         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61372         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61373         brackets.  Other minor changes to suppress some compiler
61374         warnings.
61375
61376 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61377         and Paul Eggert  <eggert@cs.ucla.edu>
61378
61379         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61380         of invoking obsolescent AC_HEADER_DIRENT macro.
61381         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61382         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61383         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61384         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61385         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61386         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61387         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61388         * m4/readdir.m4: Remove; no longer needed.
61389
61390 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61391         and Paul Eggert  <eggert@cs.ucla.edu>
61392
61393         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61394         Don't worry about this obsolete case any more.
61395         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61396         directories.
61397         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61398         worry about this obsolete case any more.
61399         * lib/fts.c: Likewise.
61400         * lib/getcwd.c: Likewise.
61401         * lib/glob.h: Likewise.
61402         * lib/savedir.c: Likewise.
61403
61404 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61405
61406         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61407         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61408         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61409         needed.
61410         All uses removed.
61411         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61412         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61413         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61414         needed.
61415         * m4/getdate.m4 (gl_GETDATE): Likewise.
61416         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61417         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61418         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61419         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61420         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61421         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61422         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61423         needed.
61424
61425 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61426
61427         * lib/memcasecmp.c: Include <limits.h>.
61428         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61429         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61430         Don't assume isdigit succeeds only on '0' through '9'.
61431
61432 2006-07-05  Eric Blake  <ebb9@byu.net>
61433
61434         * modules/getaddrinfo (Depends-on): Add snprintf.
61435
61436 2006-07-05  Eric Blake  <ebb9@byu.net>
61437
61438         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61439         to avoid 'header present but could not be compiled' on cygwin.
61440
61441 2006-07-05  Eric Blake  <ebb9@byu.net>
61442
61443         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61444         missing from netdb.h.
61445         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61446
61447 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61448
61449         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61450         no longer needed.
61451         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61452         * m4/getdate.m4 (gl_GETDATE): Likewise.
61453         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61454         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61455         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61456         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61457         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61458
61459 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61460
61461         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61462         All uses of is_space replaced by isspace.
61463         * lib/exit.h: Don't talk about STDC_HEADERS.
61464         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61465         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61466         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61467         replaced by isprint etc.
61468         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61469         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61470         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61471         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61472         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61473         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61474
61475 2006-07-05  Bruno Haible  <bruno@clisp.org>
61476
61477         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61478         the function exists, before testing against AIX.
61479         Reported by Martin Lambers <marlam@marlam.de>.
61480
61481 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61482
61483         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61484         From Mark D. Baushke.
61485
61486 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61487
61488         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61489         to the absolute name, not just one, to bypass Sun C 5.8's
61490         "warning: #include of /usr/include/... may be non-portable".
61491
61492 2006-07-04  Eric Blake  <ebb9@byu.net>
61493
61494         * modules/dirname-tests: New test module.
61495         * tests/test-dirname.c: New file, replacing dirname.c
61496         TEST_DIRNAME section that was recently deleted.
61497
61498 2006-07-04  Bruno Haible  <bruno@clisp.org>
61499
61500         Assume ANSI C header files and <ctype.h> functions.
61501         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61502         (mbsnwidth): Use isprint, iscntrl instead.
61503
61504 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61505
61506         Merge from coreutils.
61507         * MODULES.html.sh: Add xstrtold.
61508         * modules/xstrtold: New file.
61509         * modules/cycle-check (Files): Add lib/same-inode.h.
61510         * modules/dirname (Files): Add m4/double-slash-root.m4.
61511         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61512         * modules/mkdir-p (Files): Add lib/same-inode.h.
61513         * modules/same (Files): Add lib/same-inode.h.
61514
61515 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61516
61517         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61518         This is to keep the terminology clean; POSIX talks about
61519         "absolute pathnames", not "full pathnames", but the GNU
61520         Coding Standards say to use "path" for something else;
61521         so use "absolute" to keep both sides happy.
61522         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61523         Set gl_absolute_header, not gl_full_header_path.
61524         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61525         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61526         All uses changed.
61527
61528         Merge from coreutils.
61529
61530         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61531
61532         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61533         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61534         want to require the building of c-strtod.o.
61535         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61536         needs -lm directly.
61537         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61538
61539         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61540
61541         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61542         --as-needed option if available.  Problem reported by Albert Chin in
61543         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61544         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61545         cc merely issues a bunch of annoying warnings for --as-needed
61546         (this problem was reported by Bob Proulx).  Also, try linking with
61547         -lm to detect a bug in binutils 2.16 (this problem was reported
61548         by Ralf Wildenhues).
61549
61550         2006-06-18  Jim Meyering  <jim@meyering.net>
61551
61552         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61553         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61554         macro.
61555         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61556         also check for glibc-2.4's abort-inducing bug.
61557
61558         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61559         Low-probability clean-up should be to use rmdir to get rid of
61560         the just-created directory, not unlink.
61561
61562         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61563         configure fail, and request a bug report to inform us about it.
61564         Add a comment that, barring reports to the contrary, in 2007 we'll
61565         assume ftruncate is universally available.
61566
61567         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61568
61569         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61570
61571         2006-03-12  Jim Meyering  <jim@meyering.net>
61572
61573         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61574         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61575         * m4/same.m4 (gl_SAME): Likewise.
61576         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61577
61578         2006-03-11  Eric Blake  <ebb9@byu.net>
61579
61580         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61581         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61582         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61583         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61584
61585 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61586
61587         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61588         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61589         reported by Mark D. Baushke, one in
61590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61591
61592         Merge from coreutils.
61593
61594         * lib/.cppi-disable: Add stdint_.h.
61595         * lib/.cvsignore: Add stdint.h.
61596
61597         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61598
61599         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61600         both double and long double versions.
61601         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61602         * lib/xstrtold.c: New file.
61603         * lib/xstrtod.h (xstrtold): New decl.
61604
61605         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61606
61607         * lib/filemode.c (setst): Remove.
61608         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61609         (arguably) clearer, and the generated code is a bit smaller on my
61610         Debian GNU/Linux stable x86 host.
61611
61612         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61613
61614         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61615         Assume that filemode.h includes sys/types.h and sys/stat.h.
61616         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61617         (ftypelet): Reorder to put common cases first, for efficiency.
61618         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61619         to do 'M'.
61620         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61621         of 10, for compatibility with FreeBSD.  All callers changed.
61622         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61623         types that can't be deduced solely from st_mode.  First arg is now a
61624         const pointer.
61625         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61626         (strmode): Renamed from mode_string.
61627         (filemodestring): New decl.
61628         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61629         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61630         needed.
61631         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61632
61633         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61634
61635         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61636         fsusage.h now does that.  Include fsusage.h first, to test interface.
61637         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61638         at most one method (the old code could have generated decls that
61639         didn't conform to C89, not that this was ever exercised).
61640         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61641
61642         2006-03-19  Jim Meyering  <jim@meyering.net>
61643
61644         Work even in a chroot where d_ino values for entries in "/"
61645         don't match the stat.st_ino values for the same names.
61646         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61647         number, iterate through all entries again, using lstat instead.
61648         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61649         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61650
61651         * lib/getcwd.c (__getcwd): Clarify a comment.
61652         Use memcpy in place of a call to strcpy.
61653
61654         2006-03-12  Jim Meyering  <jim@meyering.net>
61655
61656         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61657         matches that of the current directory (which we're about to chdir ".."
61658         out of), then save the dev-ino of the parent, instead.
61659
61660         * lib/same-inode.h (SAME_INODE): New file/macro.
61661         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61662         Include "same-inode.h", instead.
61663         * lib/same.c: Likewise.
61664         * lib/cycle-check.h: Include "same-inode.h".
61665         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61666         * lib/cycle-check.c (SAME_INODE): Remove definition.
61667         * lib/root-dev-ino.h: Include "same-inode.h".
61668
61669         2006-03-11  Eric Blake  <ebb9@byu.net>
61670
61671         * lib/same.c (same_name): s/base_name/last_component/
61672         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61673         * lib/filenamecat.c (file_name_concat): Likewise.
61674
61675         2006-03-11  Eric Blake  <ebb9@byu.net>,
61676                     Paul Eggert  <eggert@cs.ucla.edu>
61677
61678         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61679         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61680         drive prefix.
61681         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61682         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61683         (last_component): New method.
61684         * lib/dirname.c (dir_len): Determine when drive letters need a
61685         subsequent slash.  Preserve // when it is special.
61686         (dir_name): Don't append dot when drive letter is absolute.
61687         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61688         * lib/basename.c (base_name): New semantics - malloc the result.
61689         Preserve // when it is special.  Preserve relative files that look
61690         like drive letters.
61691         (base_len): Preserve // when it is special.
61692         (last_component): New method, similar to old base_name semantics.
61693         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61694         base_name.  Strip redundant slashes from ///.
61695
61696 2006-07-03  Jim Meyering  <jim@meyering.net>
61697
61698         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61699         macro is used before the first cycle_check call.
61700
61701 2006-07-03  Eric Blake  <ebb9@byu.net>
61702
61703         * modules/dirname (Depends-on): Add xstrndup.
61704
61705 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61706
61707         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61708         test cases, so that config.log is a bit easier to follow.
61709
61710 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61711
61712         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61713         both are 64 bits, since this seems to be the tradition, and this
61714         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61715         we ever run into a host that prefers long long to long in this
61716         case, we'll need another configure-time test.  Problem reported by
61717         Jim Meyering.
61718
61719 2006-07-02  Eric Blake  <ebb9@byu.net>
61720
61721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61722
61723 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61724
61725         * modules/inttypes (Depends-on): No longer depends on stdint.
61726         * modules/stdint (Description): Say more about assumptions.
61727         Say that the fast types might differ.  Say macros are used.
61728         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61729         (Makefile.am): Revise list of substituted symbols to match
61730         new stdint.m4.
61731         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61732         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61733         * tests/test-stdint.c (verify_same_types)
61734         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61735         the code conforms to C99/C89.
61736         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61737         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61738
61739 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61740
61741         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61742         but fix a bug, by requiring at least 64 bits.
61743         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61744         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61745         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61746         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61747
61748         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61749         changes.  Make 2.59 a prerequisite.  Check and substitute for
61750         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61751         inttypes.h.  Do not use special include files; just use the
61752         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61753         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61754         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61755         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61756         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61757         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61758         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61759         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61760         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61761         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61762         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61763         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61764         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61765         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61766         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61767         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61768         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61769         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61770         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61771         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61772         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61773         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61774         not check for things that C99 does not require, e.g., int8_t.  If
61775         a test isn't needed unless <stdint.h> isn't working, and is
61776         unlikely to be needed for any other reason, then don't do it
61777         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61778         size_t, since we assume C89 freestanding at least.  Do not check
61779         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61780         the right thing even if the types are not defined.  Instead use:
61781         (gl_STDINT_TYPE_PROPERTIES): New macro.
61782         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61783         testing whether <sys/types.h> clashes, as Autoconf does this for
61784         us now.  All uses removed.
61785         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61786         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61787         (gl_CHECK_TYPE_SAME):
61788         Remove; no longer needed.
61789         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61790         exists, since we'll return 0 anyway in that case.
61791         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61792
61793 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61794
61795         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61796         possible collision with system files.
61797         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61798         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61799         WCHAR_MIN and WCHAR_MAX in this case.
61800         (<stddef.h>): Do not include; no longer needed.
61801         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61802         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61803         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61804         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61805         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61806         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61807         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61808         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61809         !defined(__c99))]: Include in this case too, since it's harmless
61810         now.
61811         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61812         dangerous to do so.
61813         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61814         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61815         (_STDINT_MIN, _STDINT_MAX): New macros.
61816         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61817         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61818         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61819         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61820         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61821         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61822         macros, not typedefs; this simplifies things quite a bit.
61823         Use long int for all types narrower than int64_t.
61824         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61825         Define in terms of long long int or int64_t or long int,
61826         not int64_t or int32_t.  This saves some compile-time testing.
61827         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61828         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61829         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61830         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61831         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61832         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61833         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61834         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61835         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61836         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61837         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61838         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61839         undef any previous version and define our own version, for
61840         simplicity and consistency with the new macros for types.
61841         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61842         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61843         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61844         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61845         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61846         @WINT_T_SUFFIX@ to keep things simple here.
61847         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61848         Simplify by assuming typical 8/16/32/64 host, since we're
61849         already doing that elsewhere anyway.
61850         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61851         and assume long long int is 64 bits if available.  This
61852         speeds up 'configure'.
61853
61854 2006-07-01  Eric Blake  <ebb9@byu.net>
61855
61856         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61857         Reported by Andreas Buening.
61858
61859 2006-07-01  Eric Blake  <ebb9@byu.net>
61860
61861         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61862
61863 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61864
61865         * lib/getaddrinfo.c: fixed typo
61866
61867 2006-06-29  Jim Meyering  <jim@meyering.net>
61868
61869         * modules/strftime (Maintainer): Add my name, since with the
61870         FPRINTFTIME changes strftime.c has forked from glibc.
61871
61872 2006-06-29  Eric Blake  <ebb9@byu.net>
61873
61874         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61875
61876 2006-06-29  Eric Blake  <ebb9@byu.net>
61877
61878         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61879
61880 2006-06-29  Eric Blake  <ebb9@byu.net>
61881
61882         * lib/stat_.h: New file.
61883
61884 2006-06-29  Eric Blake  <ebb9@byu.net>
61885
61886         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61887         unused static function.
61888
61889 2006-06-29  Eric Blake  <ebb9@byu.net>
61890
61891         * doc/functions.texi (Function Portability): Document missing lstat
61892         on mingw.
61893
61894 2006-06-29  Eric Blake  <ebb9@byu.net>
61895
61896         * MODULES.html.sh: Add sys_stat.
61897         * modules/sys_stat: New module.
61898         * modules/mkstemp (Depends-on): Add sys_stat.
61899
61900 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61901
61902         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61903
61904 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61905
61906         * m4/c-bs-a.m4: Removed.
61907
61908 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61909
61910         * lib/strftime.c: Assume strftime() exists.
61911
61912 2006-06-29  Derek Price  <derek@ximbiot.com>
61913
61914         * modules/c-bs-a: Removed - \a is C89.
61915         * MODULES.html.sh: Remove c-bs-a.
61916
61917 2006-06-29  Bruno Haible  <bruno@clisp.org>
61918
61919         * modules/wcwidth (License): Change to LGPL.
61920
61921 2006-06-28  Simon Josefsson  <jas@extundo.com>
61922
61923         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61924         on _WIN32.
61925
61926         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61927         getnameinfo.
61928
61929 2006-06-28  Simon Josefsson  <jas@extundo.com>
61930
61931         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61932
61933 2006-06-28  Simon Josefsson  <jas@extundo.com>
61934
61935         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61936         functions there.  It will succeed on Windows XP, but on Windows
61937         2000 and (presumably) earlier, it will fail, and use the internal
61938         re-implementation.
61939         (use_win32_p): New function.
61940         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61941         Support AI_NUMERICSERV to disable getservbyname.
61942         (getnameinfo): New function, only supports
61943         NI_NUMERICHOST|NI_NUMERICSERV for now.
61944
61945         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61946         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61947         getnameinfo.
61948
61949 2006-06-28  Eric Blake  <ebb9@byu.net>
61950
61951         * modules/wcwidth: New file.
61952         * modules/mbchar (Depends-on): Add wcwidth.
61953         * modules/mbswidth (Depends-on): Add wcwidth.
61954         * MODULES.html.sh: Add wcwidth.
61955
61956 2006-06-28  Eric Blake  <ebb9@byu.net>
61957
61958         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61960
61961 2006-06-28  Eric Blake  <ebb9@byu.net>
61962
61963         * lib/xvasprintf.h: Fix comments.
61964
61965 2006-06-28  Eric Blake  <ebb9@byu.net>
61966
61967         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61968         * lib/mbswidth.c (wcwidth): Move from here...
61969         * lib/wcwidth.h: ...to this new file.
61970
61971 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61972
61973         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61974
61975         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61976         it's obsolete.
61977         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61978
61979 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61980
61981         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61982         Autoconf 2.60 says this stuff was obsolete.
61983
61984 2006-06-28  Bruno Haible  <bruno@clisp.org>
61985
61986         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61987
61988 2006-06-28  Bruno Haible  <bruno@clisp.org>
61989
61990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61991         gt_TYPE_WCHAR_T.
61992
61993 2006-06-28  Bruno Haible  <bruno@clisp.org>
61994
61995         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61996         declaration for wcwidth.
61997         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61998
61999 2006-06-28  Bruno Haible  <bruno@clisp.org>
62000
62001         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62002         (mkdir): Define using _mkdir.
62003
62004 2006-06-28  Bruno Haible  <bruno@clisp.org>
62005
62006         * lib/getaddrinfo.h: Fix POSIX URL.
62007         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62008         _WIN32.
62009         (use_win32_p): Make static.
62010         (getaddrinfo): Reject service name if it is empty or does not consist
62011         solely of decimal digits, or if its value is > 65535.
62012         (getnameinfo): Remove useless casts.
62013
62014 2006-06-27  Simon Josefsson  <jas@extundo.com>
62015
62016         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62017         Eggert and Martin Lambers.
62018
62019 2006-06-27  Simon Josefsson  <jas@extundo.com>
62020
62021         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62022         Eggert and Martin Lambers.
62023
62024 2006-06-27  Bruno Haible  <bruno@clisp.org>
62025
62026         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62027         result to 0, not to empty.
62028         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62029
62030 2006-06-27  Bruno Haible  <bruno@clisp.org>
62031
62032         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62033
62034 2006-06-26  Simon Josefsson  <jas@extundo.com>
62035
62036         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62037         present.
62038
62039 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62040
62041         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62042         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62043         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62044
62045 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62046
62047         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62048
62049 2006-06-26  Bruno Haible  <bruno@clisp.org>
62050
62051         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62052
62053 2006-06-26  Bruno Haible  <bruno@clisp.org>
62054
62055         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62056
62057 2006-06-26  Bruno Haible  <bruno@clisp.org>
62058
62059         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62060         SGI C compiler in pre-C99 mode.
62061         Suggested by Mark D. Baushke and Larry Jones.
62062
62063 2006-06-26  Bruno Haible  <bruno@clisp.org>
62064
62065         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62066         WCHAR_MAX.
62067         Reported by Mark D. Baushke and Larry Jones.
62068
62069 2006-06-26  Bruno Haible  <bruno@clisp.org>
62070
62071         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62072         in pre-C99 mode.
62073         Suggested by Mark D. Baushke and Larry Jones.
62074
62075 2006-06-23  Simon Josefsson  <jas@extundo.com>
62076             Bruno Haible  <bruno@clisp.org>
62077
62078         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62079         Emit mostlyclean-local rule.
62080         (func_emit_tests_Makefile_am): Likewise.
62081         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62082
62083 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62084
62085         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62086
62087 2006-06-23  Bruno Haible  <bruno@clisp.org>
62088
62089         * tests/test-stdint.c: Update to match ISO C 99 Technical
62090         Corrigendum 1.
62091
62092 2006-06-23  Bruno Haible  <bruno@clisp.org>
62093
62094         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62095
62096 2006-06-23  Bruno Haible  <bruno@clisp.org>
62097
62098         * lib/stdint_.h: Treat IRIX like OpenBSD.
62099
62100 2006-06-23  Bruno Haible  <bruno@clisp.org>
62101
62102         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62103         ISO C 99 Technical Corrigendum 1.
62104
62105 2006-06-22  Simon Josefsson  <jas@extundo.com>
62106
62107         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62108         MinGW.
62109
62110 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62111
62112         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62113         needed.  Some compiler complained about some of them.  Problem reported
62114         by Larry Jones in
62115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62116
62117 2006-06-21  Simon Josefsson  <jas@extundo.com>
62118
62119         * tests/test-getaddrinfo.c: New file.
62120
62121         * modules/getaddrinfo-tests: New file.
62122
62123         * MODULES.html.sh: Add inet_pton.
62124
62125         * modules/inet_pton: New file.
62126
62127 2006-06-21  Simon Josefsson  <jas@extundo.com>
62128
62129         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62130         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62131         of using the (limited) gnulib implementation on Windows XP.
62132
62133         * m4/inet_pton.m4: New file.
62134
62135 2006-06-21  Simon Josefsson  <jas@extundo.com>
62136
62137         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62138         variable.
62139
62140         * lib/socket_.h: Don't define WINVER.
62141
62142         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62143         slightly modified to work in gnulib.
62144
62145 2006-06-21  Simon Josefsson  <jas@extundo.com>
62146
62147         * doc/gnulib.texi (Windows sockets): Add.
62148
62149 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62150
62151         * lib/read-file.c (fread_file): Start with buffer allocation of
62152         0 bytes rather than 1 byte; this simplifies the code.
62153         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62154         code to free buffer and save/restore errno.
62155         (internal_read_file): Remove unused local.
62156
62157 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62158
62159         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62160         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62161         Problem reported by Denis Excoffier in
62162         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62163
62164 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62165
62166         * modules/sys_socket, modules/socklen: Include sys/types since
62167         FreeBSD 4.x's sys/socket.h needs it.
62168
62169 2006-06-19  Simon Josefsson  <jas@extundo.com>
62170
62171         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62172
62173 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62174
62175         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62176
62177 2006-06-19  Bruno Haible  <bruno@clisp.org>
62178
62179         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62180         and FULL_PATH_INTTYPES_H in angle brackets.
62181         Reported by Mark D. Baushke <mdb@gnu.org>.
62182
62183 2006-06-17  Eric Blake  <ebb9@byu.net>
62184
62185         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62186         errno.
62187
62188 2006-06-17  Bruno Haible  <bruno@clisp.org>
62189
62190         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62191         <sys/inttypes.h>.
62192
62193 2006-06-17  Bruno Haible  <bruno@clisp.org>
62194
62195         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62196         whether errno is declared. Assume <errno.h> declares errno.
62197
62198 2006-06-17  Bruno Haible  <bruno@clisp.org>
62199
62200         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62201
62202 2006-06-17  Bruno Haible  <bruno@clisp.org>
62203
62204         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62205         problem on Solaris 2.5.1.
62206
62207 2006-06-16  Eric Blake  <ebb9@byu.net>
62208
62209         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62210         * lib/unicodeio.c [!defined errno]: Likewise.
62211         * lib/strtol.c [!defined errno]: Likewise.
62212         * lib/strtod.c [!defined errno]: Likewise.
62213
62214 2006-06-15  Eric Blake  <ebb9@byu.net>
62215
62216         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62217
62218 2006-06-15  Eric Blake  <ebb9@byu.net>
62219
62220         * config/srclist.txt (ssize_t.m4): Lose sync.
62221
62222 2006-06-15  Bruno Haible  <bruno@clisp.org>
62223
62224         * modules/stdint (Files): Include m4/full-header-path.m4,
62225         m4/size_max.m4, m4/wchar_t.m4.
62226         (Makefile.am): Many more substitutions.
62227         * modules/stdint-tests: New file.
62228         * tests/test-stdint.c: New file.
62229
62230 2006-06-15  Bruno Haible  <bruno@clisp.org>
62231
62232         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62233         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62234         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62235         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62236         gl_CHECK_TYPE_SAME): New macros.
62237
62238 2006-06-15  Bruno Haible  <bruno@clisp.org>
62239
62240         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62241
62242 2006-06-15  Bruno Haible  <bruno@clisp.org>
62243
62244         * lib/stdint_.h: Rewritten to be fully auto-configured.
62245         Fixes bug on HP-UX/IA64.
62246
62247 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62248
62249         * lib/getdate.y (__attribute__): Don't define if already defined.
62250         Problem reported by Larry Jones.
62251         * lib/utimens.c (__attribute__): Likewise.
62252
62253 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62254
62255         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62256         reported by Andreas Schwab.
62257
62258 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62259             Bruno Haible  <bruno@clisp.org>
62260
62261         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62262         check for the declaration of strnlen and a run test that exposes the
62263         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62264         rpl_strndup.
62265
62266 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62267             Bruno Haible  <bruno@clisp.org>
62268
62269         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62270
62271 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62272
62273         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62274         compile test, for Tru64 4.0D.
62275
62276 2006-05-28  Karl Berry  <karl@gnu.org>
62277
62278         * config/srclist.txt (printf-args.c): lose sync.
62279
62280 2006-05-26  Martin Lambers  <marlam@marlam.de>
62281
62282         * lib/getpass.c: Updates the test for the native W32 API, and adds
62283         missing includes, thus fixing compilation warnings.
62284
62285 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62286
62287         * lib/exclude.c (exclude_fnmatch): New function.
62288         (excluded_file_name): Call exclude_fnmatch.
62289         * lib/exclude.h (excluded_file_name): New prototype
62290
62291 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62292
62293         * lib/tempname.c (small_open, large_open): New macros.
62294         (__open, __open64) [!_LIBC]: Remove.
62295         (__gen_tempname): Use small_open and large_open instead of __open
62296         and __open64.  This fixes a portability bug on HP-UX 11.11i
62297         reported by Simon Wing-Tang in
62298         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62299
62300 2006-05-24  Bruno Haible  <bruno@clisp.org>
62301
62302         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62303         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62304         Reported by Thorsten Maerz <torte@netztorte.de> via
62305         Aaron Stone <aaron@serendipity.cx>.
62306
62307 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62308
62309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62310         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62311         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62312         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62313         not really conditional on the cache.
62314         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62315
62316 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62317
62318         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62319         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62320         (my_usleep): Don't mishandle maximum value.
62321
62322 2006-05-19  Jim Meyering  <jim@meyering.net>
62323
62324         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62325
62326 2006-05-17  Bruno Haible  <bruno@clisp.org>
62327
62328         Cygwin portability.
62329         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62330
62331 2006-05-17  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/stdint_.h: Fix recognition of Cygwin.
62334
62335 2006-05-15  Bruno Haible  <bruno@clisp.org>
62336
62337         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62338         on libtool patch by Ralf Wildenhues.
62339
62340 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62341
62342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62343         test for C99 conformance; (bool) 0.5 is an integer constant
62344         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62345         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62346
62347 2006-05-11  Simon Josefsson  <jas@extundo.com>
62348
62349         * m4/xvasprintf.m4: Fix obvious typo.
62350
62351 2006-05-11  Jim Meyering  <jim@meyering.net>
62352
62353         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62354         James Lemley.
62355
62356 2006-05-10  Simon Josefsson  <jas@extundo.com>
62357
62358         * lib/md4.c: Typo fix, update copyright years.
62359         (K1, K2): Don't use L because it turn computations into 64-bit on
62360         64-bit platforms.
62361
62362 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62363
62364         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62365         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62366         unwanted sign propagation, e.g., on hosts with 64-bit int.
62367         There still are some problems with reeelly weird theoretical hosts
62368         (e.g., 33-bit int) but it's not worth worrying about now.
62369         * lib/sha1.c (rol): Likewise.
62370         (K1, K2, K3, K4): Remove unnecessary L suffix.
62371
62372 2006-05-10  Bruno Haible  <bruno@clisp.org>
62373
62374         * lib/des.c: Cast to avoid warnings.
62375
62376 2006-05-09  Bruno Haible  <bruno@clisp.org>
62377
62378         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62379         (Depends-on): Depend also on xsize, stdarg.
62380         (configure.ac): Add gl_XVASPRINTF.
62381
62382 2006-05-09  Bruno Haible  <bruno@clisp.org>
62383
62384         * m4/xvasprintf.m4: New file.
62385
62386 2006-05-09  Bruno Haible  <bruno@clisp.org>
62387
62388         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62389         (EOVERFLOW): Define fallback value.
62390         (xstrcat): New function.
62391         (xvasprintf): Recognize the special case of a string concatenation.
62392
62393 2006-05-08  Eric Blake  <ebb9@byu.net>
62394
62395         * gnulib-tool (func_version): Base copyright year on CVS date.
62396         (func_emit_copyright_notice): New function.
62397         (func_emit_lib_Makefile_am): Use it.
62398         (func_emit_tests_Makefile_am): Likewise.
62399         (func_import): Likewise.
62400
62401 2006-05-08  Bruno Haible  <bruno@clisp.org>
62402
62403         * modules/stdarg: New file.
62404         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62405
62406 2006-05-08  Bruno Haible  <bruno@clisp.org>
62407
62408         * m4/stdarg.m4: New file, from GNU gettext.
62409
62410 2006-05-08  Bruno Haible  <bruno@clisp.org>
62411
62412         * config/srclist.txt (build-aux/config.rpath): different from latest
62413         release.
62414
62415 2006-05-08  Bruno Haible  <bruno@clisp.org>
62416
62417         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62418
62419 2006-05-05  Jim Meyering  <jim@meyering.net>
62420
62421         * m4/warning.m4: New file, derived from bison's file by the same name.
62422
62423 2006-05-03  Bruno Haible  <bruno@clisp.org>
62424
62425         * lib/stdint_.h: Shorter URL.
62426         * lib/inttypes.h: Likewise.
62427
62428 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62429
62430         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62431
62432 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62433
62434         * lib/verify.h: Document the internals better.  Most of this change
62435         was written by Bruno Haible.
62436
62437 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62438
62439         * doc/verify.texi: New file, partly based on a proposal by
62440         Bruno Haible.
62441
62442 2006-05-02  Bruno Haible  <bruno@clisp.org>
62443
62444         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62445         test from here...
62446         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62447
62448 2006-04-29  Bruno Haible  <bruno@clisp.org>
62449
62450         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62451         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62452
62453 2006-04-29  Bruno Haible  <bruno@clisp.org>
62454
62455         * gnulib-tool: Make --update option actually work.
62456
62457 2006-04-29  Bruno Haible  <bruno@clisp.org>
62458
62459         * doc/gcd.texi: New file.
62460         * doc/gnulib.texi: Include it.
62461
62462 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62463
62464         * lib/getdate.y (get_date): When adding relative date, start with the
62465         initial time, not with the result of the first mktime call.
62466
62467 2006-04-25  Bruno Haible  <bruno@clisp.org>
62468
62469         * gnulib-tool (func_import): Output the include directives in three
62470         blocks, sorted separately.
62471         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62472
62473 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62474
62475         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62476         to define main with arguments, for C++.  Reported by Eric Blake.
62477         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62478         Prefer 'int main ()' to 'int main (void)', for C++.
62479         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62480         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62481         for 'main', for C99 and C++.
62482
62483 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62484
62485         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62486         Don't assume that exit status -1 is valid.
62487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62488         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62489         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62490         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62491         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62492         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62493         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62494         functions can be used without declaring them, or that you can
62495         exit with status -1.
62496         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62497
62498 2006-04-24  Karl Berry  <karl@gnu.org>
62499
62500         * config/srclist.txt (longdouble.m4): sync lost.
62501
62502 2006-04-24  Eric Blake  <ebb9@byu.net>
62503
62504         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62505
62506 2006-04-24  Bruno Haible  <bruno@clisp.org>
62507
62508         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62509         poll() implementation in AIX.
62510         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62511
62512 2006-04-24  Bruno Haible  <bruno@clisp.org>
62513
62514         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62515         assigned exactly once.
62516
62517 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62518             Bruno Haible  <bruno@clisp.org>
62519
62520         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62521         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62522         for AM_CPPFLAGS.
62523
62524 2006-04-23  Bruno Haible  <bruno@clisp.org>
62525
62526         * modules/copy-file: Depend on unistd.
62527         * modules/execute: Likewise.
62528         * modules/fatal-signal: Likewise.
62529         * modules/findprog: Likewise.
62530         * modules/mkdtemp : Likewise.
62531         * modules/pipe: Likewise.
62532         * modules/wait-process: Likewise.
62533
62534 2006-04-23  Bruno Haible  <bruno@clisp.org>
62535
62536         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62537         condition was already detected.
62538         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62539
62540 2006-04-23  Bruno Haible  <bruno@clisp.org>
62541
62542         * lib/copy-file.c: Include <unistd.h> unconditionally.
62543         * lib/execute.c: Likewise.
62544         * lib/fatal-signal.c: Likewise.
62545         * lib/findprog.c: Likewise.
62546         * lib/mkdtemp.c: Likewise.
62547         * lib/pipe.h: Likewise.
62548         * lib/pipe.c: Likewise.
62549         * lib/wait-process.h: Likewise.
62550
62551 2006-04-23  Bruno Haible  <bruno@clisp.org>
62552
62553         * gnulib-tool (func_usage): Fix --import description. Document
62554         --update.
62555         (func_import): Create temporary file in a temporary directory, if
62556         --dry-run is specified. Silence errors from 'grep' when there are no
62557         m4 files in $m4dir.
62558         (func_create_testdir): Silence errors from 'grep' when there are no
62559         m4 files in $m4dir.
62560         Reported by Karl Berry <karl@freefriends.org>.
62561
62562 2006-04-20  Bruno Haible  <bruno@clisp.org>
62563
62564         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62565         one argument, so that the code will be portable to Autoconf 2.60.
62566         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62567         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62568         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62569
62570 2006-04-19  Derek Price  <derek@ximbiot.com>
62571             Eric Blake  <ebb9@byu.net>
62572
62573         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62574         rather than "/full/path.h".  Update comment to match.  Shorten &
62575         generalize m4_translit call via AS_TR_CPP.
62576
62577 2006-04-19  Derek Price  <derek@ximbiot.com>
62578             Eric Blake  <ebb9@byu.net>
62579
62580         * lib/inttypes.h: Correct grammar in comment.
62581
62582 2006-04-18  Derek Price  <derek@ximbiot.com>
62583             Paul Eggert  <eggert@cs.ucla.edu>
62584
62585         * modules/inttypes: New file.
62586         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62587
62588 2006-04-18  Derek Price  <derek@ximbiot.com>
62589             Paul Eggert  <eggert@cs.ucla.edu>
62590
62591         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62592         New files.
62593
62594 2006-04-18  Derek Price  <derek@ximbiot.com>
62595             Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * lib/inttypes.h: New file.
62598         * lib/strtoimax.c: Assume <inttypes.h>.
62599
62600 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62601
62602         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62603         isn't mounted.  Problem reported by Kir Kolyshkin.
62604
62605 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62606
62607         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62608         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62609         Derek R. Price.
62610         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62611         implementation.
62612
62613 2006-04-12  Eric Blake  <ebb9@byu.net>
62614
62615         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62616         is now done automatically by the corresponding Autoconf macro.
62617
62618 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62619
62620         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62621         time_r.h.
62622
62623 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62624
62625         Merge regex changes from libc, removing some of our
62626         POSIX-conformance changes that were rejected and redoing them in a
62627         less-intrusive way.
62628
62629         * lib/regcomp.c (re_compile_internal, init_dfa):
62630         Length arg is now size_t, not Idx.  All uses changed.
62631         (peek_token): Forward decl now says internal_function.
62632         (__re_error_msgid, __re_error_msgid_idx):
62633         Now static rather than extern with attribute_hidden.
62634         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62635         For some reason libc prefers K&R style defns for external functions.
62636         (regerror) [!defined _LIBC]: Likewise.
62637         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62638         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62639         (build_range_exp, build_collating_symbol):
62640         Use K&R-style defn.
62641         (re_compile_fastmap): Use '\0' to memset, not 0.
62642         (utf8_sb_map): Make the calculations more obvious.
62643         (init_dfa, parse_bracket_exp, build_charclass_op):
62644         Call calloc and cast result, as glibc does.
62645         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62646         (build_range_exp, build_collating_symbol):
62647         Now internal functions.
62648
62649         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62650
62651         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62652         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62653         Don't depend on VMS; depend on __VMS instead, for POSIX
62654         namespace cleanness.
62655         (regoff_t): Define to ssize_t, not long int.
62656
62657         Remove the REG_ macros named below.  Instead, make the old names
62658         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62659         __USE_GNU_REGEX.
62660         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62661         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62662         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62663         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62664         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62665         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62666         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62667         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62668         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62669         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62670         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62671         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62672         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62673         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62674         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62675         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62676         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62677         (REG_NREGS):
62678         Remove.  All uses replaced by the old RE_* names.
62679         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62680         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62681         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62682         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62683         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62684         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62685         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62686         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62687         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62688         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62689         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62690         Don't bother having these macros be independent of each others'
62691         values, since they no longer exist in the POSIX name space.
62692
62693         Rename the following member names back to their old names,
62694         unless !__USE_GNU_REGEX.  All uses changed back.
62695         (buffer): Renamed from re_buffer.
62696         (allocated): Renamed from re_allocated.
62697         (used): Renamed from re_used.
62698         (syntax): Renamed from re_syntax.
62699         (fastmap): Renamed from re_fastmap.
62700         (translate): Renamed from re_translate.
62701         (can_be_null): Renamed from re_can_be_null.
62702         (regs_allocated): Renamed from re_regs_allocated.
62703         (fastmap_accurate): Renamed from re_fastmap_accurate.
62704         (no_sub): Renamed from re_no_sub.
62705         (not_bol): Renamed from re_not_bol.
62706         (not_eol): Renamed from re_not_eol.
62707         (newline_anchor): Renamed from re_newline_anchor.
62708         (num_regs): Renamed from rm_num_regs.
62709         (start): Renamed from rm_start.
62710         (end): Renamed from rm_end.
62711
62712         (free_state): Move up a bit.
62713
62714         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62715         #define to be empty.
62716         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62717         when that is what is intended.
62718         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62719         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62720         (MAX): New macro.
62721         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62722         All uses changed back to re_malloc, etc.  It's now the caller's
62723         responsibility to check for overflow; all callers changed.
62724         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62725         (re_x2nrealloc): Remove.
62726         (free_state): Remove decl.
62727
62728         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62729         (re_set_registers, re_exec):
62730         Use K&R-style defn.
62731
62732         2006-01-31  Roland McGrath  <roland@redhat.com>
62733
62734         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62735         Reported by Mike Frysinger <vapier@gentoo.org>.
62736
62737         2006-01-15  Andreas Jaeger  <aj@suse.de>
62738
62739         [BZ #1950]
62740         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62741         build_wcs_upper_buffer change.
62742         (build_wcs_upper_buffer): Change return type.
62743
62744         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62745
62746         * lib/regex_internal.h: Include <stdint.h> if available.
62747
62748         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62749
62750         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62751
62752         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62753
62754         * lib/regcomp.c: Adjust for changed secondary hash function.
62755
62756         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62757
62758         * lib/regex.h: Pretty printing.
62759         Clean up namespace a bit.
62760
62761         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62762
62763         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62764         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62765
62766         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62767                     Ulrich Drepper  <drepper@redhat.com>
62768
62769         [BZ #1302]
62770         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62771         changed.
62772         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62773
62774         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62775
62776         [BZ #281]
62777         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62778         * lib/regcomp.c: Remove unnecessary uses of
62779         unsigned RE_TRANSLATE_TYPE.
62780         * lib/regex_internal.h: Likewise.
62781         * lib/regex_internal.c: Likewise.
62782         * lib/regexec.c: Likewise.
62783         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62784
62785         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62786
62787         * lib/regexec.c (find_recover_state): Remove unnecessary
62788         initialization.
62789         (transit_state_bkref): Make DFA a const pointer.
62790         (get_subexp): Likewise.
62791         (check_arrival): Likewise.
62792         (update_cur_sifted_state): Likewise.
62793         (re_search_internal): Likewise.
62794         (prune_impossible_nodes): Likewise.
62795         (acquire_init_state_context): Likewise.
62796         (proceed_next_node): Likewise.
62797         (set_regs): Likewise.
62798         (free_fail_stack_return): Likewise.
62799         (check_arrival_expand_ecl): Mark DFA parameter as const.
62800         (check_arrival_expand_ecl_sub): Likewise.
62801         (check_subexp_limits): Likewise.
62802         (sub_epsilon_src_nodes):  Likewise.
62803         (add_epsilon_src_nodes):  Likewise.
62804         (merge_state_array): Likewise.
62805         (update_regs): Likewise.
62806         (build_trtable): Likewise.
62807         (sift_states_backward): Mark MCTX parameter as const.
62808         (build_sifted_states): Likewise.
62809         (update_cur_sifted_state): Likewise.
62810         (sift_states_mkref): Likewise.
62811         (check_arrival_expand_ecl): Mark eclosure as const.
62812         (check_dst_limits_calc_pos_1): Likewise.
62813         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62814         pointer.
62815
62816         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62817
62818         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62819         (transit_state_sb): Likewise.
62820         (transit_state_mb): Likewise.
62821         (sift_states_iter_mb): Likewise.
62822         (check_arrival_add_next_nodes): Likewise.
62823         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62824         [_LIBC] (re_search_2_stub): Use mempcpy.
62825
62826         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62827         mbrtowc for very simple UTF-8 case.
62828
62829         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62830         a pointer-to-const.
62831         (re_acquire_state_context): Likewise.
62832         * lib/regex_internal.h: Adjust prototypes.
62833
62834         * lib/regex.c: Prevent using C++ compilers.
62835
62836         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62837         (re_acquire_state_context): Likewise.
62838
62839 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62840
62841         * modules/regex (Depends-on): Add ssize_t.
62842
62843 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62846         translation table.
62847
62848 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62849
62850         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62851
62852 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62853             Bruno Haible  <bruno@clisp.org>
62854
62855         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62856         <sys/types.h> and <inttypes.h>.
62857
62858 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62859
62860         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62861         `__error_t_defined', so argp.h will not typedef the former.
62862
62863 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62864
62865         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62866         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62867         glibc names.  Even if glibc is changed to conform to POSIX, the
62868         traditional names will be available anyway, since regex depends on
62869         the extensions module.  Also, fix a longstanding typo in the
62870         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62871         reported by Emanuele Giaquinta.  Also, change sense of cached
62872         variable, so that the message makes sense.
62873
62874 2006-03-24  Simon Josefsson  <jas@extundo.com>
62875
62876         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62877         including some doc fixes.
62878         (base64_encode_alloc): Fix +1 bug on allocation failures.
62879
62880 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62881
62882         * lib/base64.c (base64_encode): Do not read past end of array with
62883         unsanitized input on systems with CHAR_BIT > 8.
62884
62885 2006-03-24  Eric Blake  <ebb9@byu.net>
62886
62887         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62888
62889 2006-03-22  Karl Berry  <karl@gnu.org>
62890
62891         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62892         * config/srclistvars.sh (COREUTILS): new var.
62893
62894 2006-03-17  Jim Meyering  <jim@meyering.net>
62895
62896         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62897         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62898
62899 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62900
62901         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62902         no longer needs it.  Instead, check that regoff_t is as least
62903         as wide as ptrdiff_t.
62904
62905         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62906         so that our regex.h stays compatible with the installed regex.
62907         This is helpful for installers who configure --without-included-regex.
62908         Problem reported by Emanuele Giaquinta.
62909
62910 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62911
62912         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62913         Typedef to long int, not to off_, as POSIX will likely change
62914         in that direction.
62915
62916 2006-03-15  Eric Blake  <ebb9@byu.net>
62917
62918         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62919
62920 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62921
62922         * lib/argp-help.c (validate_uparams): Fix typo
62923         * lib/argp-parse.c (argp_default_options): Consistently begin help
62924         messages with a lowercase letter.
62925
62926 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62927
62928         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62929         overrun buffers and shouldn't be used (much as gets shouldn't be
62930         used).
62931         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62932
62933 2006-03-08  Simon Josefsson  <jas@extundo.com>
62934
62935         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62936         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62937
62938 2006-03-08  Simon Josefsson  <jas@extundo.com>
62939
62940         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62941         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62942
62943 2006-03-08  Simon Josefsson  <jas@extundo.com>
62944
62945         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62946         signal that configure disabled the device.
62947
62948 2006-03-08  Simon Josefsson  <jas@extundo.com>
62949
62950         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62951         languages.
62952
62953 2006-03-07  Simon Josefsson  <jas@extundo.com>
62954
62955         * modules/getopt (Depends-on): Add unistd.
62956
62957         * modules/unistd: New file.
62958
62959 2006-03-07  Simon Josefsson  <jas@extundo.com>
62960
62961         * modules/gc-random: New file.
62962
62963 2006-03-07  Simon Josefsson  <jas@extundo.com>
62964
62965         * m4/unistd_h.m4: New file.
62966
62967 2006-03-07  Simon Josefsson  <jas@extundo.com>
62968
62969         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62970         test to be side-effect free by storing the result in the cache
62971         variable gl_cv_lib_readline, and moving the assignment of
62972         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62973         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62974
62975 2006-03-07  Simon Josefsson  <jas@extundo.com>
62976
62977         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62978         error on missing devices (the functions will return an error).
62979
62980         * m4/gc.m4: Move random stuff to gc-random.m4
62981
62982 2006-03-07  Simon Josefsson  <jas@extundo.com>
62983
62984         * lib/unistd_.h: New file.
62985
62986 2006-03-07  Simon Josefsson  <jas@extundo.com>
62987
62988         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62989
62990 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62991
62992         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62993         Problem reported by Juan Manuel Guerrero.
62994
62995 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62996
62997         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62998         the unistd module.
62999         * lib/getlogin_r.c: Likewise.
63000         * lib/getlogin_r.h: Likewise.
63001         * lib/glob.c: Likewise.
63002         * lib/pagealign_alloc.c: Likewise.
63003         * lib/unistd_.h: Remove; no longer needed.
63004
63005 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63006
63007         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63008         Add unistd.
63009         * modules/c-stack (Depends-on): Add unistd.
63010         * modules/getlogin_r: Likewise.
63011         * modules/glob: Likewise.
63012         * modules/pagealign_alloc: Likewise.
63013         * modules/unistd (Files): Remove lib/unistd_.h.
63014         (EXTRA_DIST): Remove.
63015         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63016         need unistd_.h.
63017         (MOSTLYCLEANFILES): Remove unistd.h-t.
63018
63019 2006-03-03  Simon Josefsson  <jas@extundo.com>
63020
63021         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63022
63023 2006-03-03  Simon Josefsson  <jas@extundo.com>
63024
63025         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63026         libidn and bison.
63027
63028 2006-03-03  Simon Josefsson  <jas@extundo.com>
63029
63030         * build-aux/maint.mk: Add indent target.
63031
63032 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63033
63034         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63035         our replacement poll.h in any case, to avoid a differing
63036         declaration from a system header.  Seen on AIX.
63037
63038 2006-03-01  Simon Josefsson  <jas@extundo.com>
63039
63040         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63041         <kasal@ucw.cz>.
63042
63043 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63044
63045         * modules/gettime (Depends-on): Add extensions module.
63046         * modules/nanosleep (Depends-on): Likewise.
63047         * modules/settime (Depends-on): Likewise.
63048
63049 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63050
63051         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63052         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63053         pedantically.
63054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63055         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63056
63057         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63058         not "==".  Reported by Ralf Wildenhues.
63059
63060 2006-03-01  Karl Berry  <karl@gnu.org>
63061
63062         * doc/Copyright/request-*: new files, synced from gnuorg.
63063
63064 2006-03-01  Karl Berry  <karl@gnu.org>
63065
63066         * config/srclist.txt (Copyright/*): new entries.
63067
63068 2006-02-28  Simon Josefsson  <jas@extundo.com>
63069
63070         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63071
63072 2006-02-27  Simon Josefsson  <jas@extundo.com>
63073
63074         * lib/base64.h: Indent #define's.  From Jim Meyering
63075         <jim@meyering.net>.
63076
63077 2006-02-27  Jim Meyering  <jim@meyering.net>
63078
63079         Revert the change of 2006-02-24, so these files can continue
63080         to be sync'd from gettext.
63081         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63082         of `config.h'.
63083
63084 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63085
63086         * modules/intprops: New file.
63087         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63088         Add intprops.
63089         * modules/getloadavg (Files): Remove lib/intprops.h.
63090         (Depends-on): Add intprops.
63091         * modules/human: Likewise.
63092         * modules/inttostr: Likewise.
63093         * modules/openat: Likewise.
63094         * modules/sig2str: Likewise.
63095         * modules/userspec: Likewise.
63096         * modules/utimecmp: Likewise.
63097         * modules/xnanosleep: Likewise.
63098         * modules/xstrtol: Likewise.
63099
63100 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63101
63102         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63103         * modules/lock-tests (TESTS): Use $(EXEEXT).
63104         * modules/tls-tests: Likewise.
63105         * modules/argp-tests: Likewise.
63106         (check_PROGRAMS): New var, replacing...
63107         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63108
63109 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63110
63111         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63112         `config.h'.
63113
63114 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63115
63116         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63117
63118 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63119
63120         Sync from coreutils.
63121         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63122         gl_CHDIR_SAFER.
63123
63124 2006-02-22  Jim Meyering  <jim@meyering.net>
63125
63126         Sync from coreutils.
63127         * m4/chdir-safer.m4: New file.
63128
63129 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63130
63131         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63132         AT_FDCWD exceeds INT_MAX.
63133         * lib/openat.h (AT_FDCWD): Likewise.
63134
63135 2006-02-17  Eric Blake  <address@hidden>
63136
63137         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63138
63139 2006-02-16  Simon Josefsson  <jas@extundo.com>
63140
63141         * modules/getaddrinfo (Depends-on): Add sys_socket.
63142
63143 2006-02-15  Simon Josefsson  <jas@extundo.com>
63144
63145         * build-aux/maint.mk: Add dsyntax-check rule.
63146
63147 2006-02-15  Eric Blake  <ebb9@byu.net>
63148
63149         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63150         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63151         'present but cannot compile' warnings on cygwin.
63152         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63153         use ws2tcpip.h if sys/socket.h works.
63154         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63155         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63156
63157 2006-02-14  Simon Josefsson  <jas@extundo.com>
63158
63159         * modules/maintainer-makefile (Files): Rename.
63160
63161         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63162         and (the local) Makefile.cfg to maint-cfg.mk.
63163
63164         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63165         to the latter.
63166
63167         * modules/maintainer-makefile: New module.
63168
63169         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63170         severaly stripped to make it possible to build it up from scratch
63171         with reliable tests.
63172
63173         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63174         fixes to permit overriding the default actions when configure and
63175         makefile are not available.
63176
63177 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63178
63179         Sync from coreutils.
63180         * modules/lstat (Depends-on): Don't depend on xalloc.
63181         (License): Change from GPL to LGPL, since this is now simply a
63182         replacement for a libc function.
63183
63184 2006-02-14  Jim Meyering  <jim@meyering.net>
63185
63186         Sync from coreutils.
63187
63188         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63189         failure on deficient systems, and simplify gnulib lgpl dependencies.
63190         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63191         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63192
63193         * lib/xalloc-die.c: Remove unused definition of N_.
63194
63195 2006-02-14  Jim Meyering  <jim@meyering.net>
63196
63197         Sync from coreutils.
63198         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63199         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63200         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63201         double-quote uses of that variable, to accommodate the rare case in
63202         which getmntent is available in none of the libraries checked.  This
63203         happens at least on FreeBSD 5.0.
63204
63205 2006-02-13  Simon Josefsson  <jas@extundo.com>
63206
63207         * gnulib-tool (Usage): Fix --import, from
63208         karl@freefriends.org (Karl Berry).
63209
63210 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63211
63212         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63213
63214 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63215
63216         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63217         "autoupdate" on 2005-12-12.
63218
63219 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63220
63221         * modules/closeout (Depends-on): Remove atexit.
63222
63223 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63224
63225         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63226         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63227
63228 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63231         __EXTENSIONS__ if this causes compilation to fail.  Problem
63232         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63233         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63234
63235 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63236
63237         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63238         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63239         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63240         All uses changed.
63241
63242 2006-01-26  Simon Josefsson  <jas@extundo.com>
63243
63244         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63245         prototype is visible on mingw32.
63246
63247         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63248         for mingw32.
63249
63250         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63251         mingw32).
63252
63253 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63254
63255         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63256         attempt to open for write; this always fails, at least on POSIX
63257         hosts.  This reinstates the 2006-01-09 change, which was
63258         inadvertently removed.
63259
63260 2006-01-26  Bruno Haible  <bruno@clisp.org>
63261
63262         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63263         Reported by Paul Eggert.
63264
63265 2006-01-26  Bruno Haible  <bruno@clisp.org>
63266             Paul Eggert  <eggert@cs.ucla.edu>
63267
63268         * lib/stdbool_.h (_Bool)
63269         [(! (defined __cplusplus || defined __BEOS__)
63270           && !defined __GNUC__
63271           && !(defined __HP_cc || defined __xlc__
63272                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63273                || defined __sgi))]:
63274         #define to signed char in these cases too; this simplifies
63275         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63276         etc., separately) and makes it more conservative.
63277
63278 2006-01-25  Simon Josefsson  <jas@extundo.com>
63279
63280         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63281         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63282         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63283
63284 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63285
63286         * lib/argp-namefrob.h: Bugfix. Remove stray #
63287
63288 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63289
63290         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63291         so that we test the test.
63292         Check for yet another HP-UX cc bug involving *bool |= bool.
63293
63294 2006-01-25  Karl Berry  <karl@gnu.org>
63295
63296         * config/srclist.txt (vasnprintf.c): sync lost.
63297
63298 2006-01-25  Jim Meyering  <jim@meyering.net>
63299
63300         Sync from the stable (b5) branch of coreutils:
63301
63302         * lib/fts.c (fts_children): Don't let close() clobber errno from
63303         failed fchdir().
63304
63305         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63306         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63307         a dangling symlink.  That can also happen at least for ELOOP.
63308         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63309         FYI, this bug predates the inclusion of fts.c in coreutils.
63310
63311         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63312         in their own block, so pre-c99 compilers don't object.
63313
63314         Avoid the double-free (first in fts_read, second in fts_close) that
63315         would occur when an `active' directory is made inaccessible (e.g.,
63316         via chmod a-x) during a traversal.
63317         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63318         before returning.  Reproduce this failure by
63319         mkdir -p a/b; cd a; chmod a-x . b
63320         Reported by Stavros Passas.
63321
63322 2006-01-25  Jim Meyering  <jim@meyering.net>
63323
63324         * lib/fileblocks.c: Remove more useless parentheses.
63325         * lib/readutmp.h: Likewise.
63326
63327 2006-01-25  Bruno Haible  <bruno@clisp.org>
63328
63329         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63330         warnings.
63331         Reported by Paul Eggert.
63332
63333 2006-01-25  Bruno Haible  <bruno@clisp.org>
63334
63335         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63336         rid of a trap command. For Solaris sh.
63337         Reported by Mark D. Baushke <mdb@gnu.org>.
63338
63339 2006-01-24  Simon Josefsson  <jas@extundo.com>
63340
63341         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63342         Bruno.
63343
63344 2006-01-24  Karl Berry  <karl@gnu.org>
63345
63346         * config/srclist.txt (argp-namefrob.h): sync lost.
63347
63348 2006-01-24  Jim Meyering  <jim@meyering.net>
63349
63350         * modules/openat (Files): Add lib/intprops.h.
63351         From Mark D. Baushke.
63352
63353 2006-01-24  Jim Meyering  <jim@meyering.net>
63354
63355         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63356         Reported by Mark D. Baushke.
63357
63358 2006-01-24  Jim Meyering  <jim@meyering.net>
63359
63360         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63361
63362 2006-01-24  Bruno Haible  <bruno@clisp.org>
63363
63364         * modules/strnlen (Maintainer): Change from glibc to all.
63365
63366 2006-01-24  Bruno Haible  <bruno@clisp.org>
63367
63368         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63369         Patch by Paul Eggert.
63370
63371 2006-01-24  Bruno Haible  <bruno@clisp.org>
63372
63373         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63374         already has it.
63375         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63376         2005-11-26.
63377
63378         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63379         'signed char' to avoid problems with the built-in _Bool type.
63380         Reported by Paul Eggert on 2005-11-26.
63381
63382 2006-01-24  Bruno Haible  <bruno@clisp.org>
63383
63384         * gnulib-tool (func_import): Avoid constructing complicated sed
63385         expressions inside backquote.
63386         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63387
63388 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63389
63390         These changes imported from libc.
63391         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63392         test and two separate function calls.
63393         * lib/strndup.c (__strndup): Add libc_hidden_def.
63394
63395 2006-01-23  Simon Josefsson  <jas@extundo.com>
63396
63397         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63398         Remove the test_*_SOURCES variable: automake infers it by default.
63399         * modules/tls-tests: Likewise.
63400
63401 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63402
63403         Work around porting bugs reported by Dieter in
63404         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63405         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63406         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63407         Include "getopt.h" first, to check interface.
63408         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63409         !HAVE_DECL_GETENV.
63410         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63411         (__strndup): Revert to K&R-style function dfns, the glibc style.
63412         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63413         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63414         Include strnlen.h first, to get prototype properly.
63415         (strnlen): Renamed from __strnlen.
63416         Remove weak alias.
63417
63418 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63421
63422 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63423
63424         * config/srclist.txt: Adjust to reflect glibc reorganization.
63425         This affects only comments.
63426
63427 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63428
63429          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63430          Reported by Bruce Korb <bkorb@gnu.org>.
63431
63432 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63433
63434         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63435         to pacify gcc -Wswitch-default.
63436
63437 2006-01-22  Bruno Haible  <bruno@clisp.org>
63438
63439         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63440         temporary buffer for sprintf, take into account the precision also
63441         for 'd', 'i', 'u', 'o', 'x', 'X'.
63442
63443 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63444
63445         * modules/argp-tests: New module
63446         * tests/test-argp.c: New file
63447         * tests/test-argp-2.sh: New file
63448
63449 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63450
63451         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63452         (__argp_base_name): Removed
63453         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63454         typo.
63455         (__argp_base_name): Provide macro definition or extern declaration
63456         depending on the configuration
63457
63458 2006-01-20  Simon Josefsson  <jas@extundo.com>
63459
63460         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63461
63462 2006-01-20  Simon Josefsson  <jas@extundo.com>
63463
63464         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63465
63466 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63467
63468         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63469         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63470         Suggested by Bruno Haible.
63471
63472 2006-01-20  Karl Berry  <karl@gnu.org>
63473
63474         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63475         until changes propagate, I guess.
63476
63477 2006-01-19  Simon Josefsson  <jas@extundo.com>
63478
63479         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63480
63481 2006-01-19  Simon Josefsson  <jas@extundo.com>
63482
63483         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63484
63485 2006-01-19  Simon Josefsson  <jas@extundo.com>
63486
63487         * gnulib-tool: Set check_PROGRAMS.
63488
63489         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63490         modules/des-tests, modules/gc-arcfour-tests,
63491         modules/gc-arctwo-tests, modules/gc-des-tests,
63492         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63493         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63494         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63495         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63496         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63497         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63498         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63499         test_*_SOURCES.
63500
63501 2006-01-18  Simon Josefsson  <jas@extundo.com>
63502
63503         * modules/socklen (Depends-on): Depend on sys_socket.
63504
63505 2006-01-18  Simon Josefsson  <jas@extundo.com>
63506
63507         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63508         modules/des-tests, modules/gc-arcfour-tests,
63509         modules/gc-arctwo-tests, modules/gc-des-tests,
63510         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63511         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63512         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63513         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63514         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63515         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63516         $(EXEEXT) to automake TESTS variable, for mingw32.
63517
63518 2006-01-17  Simon Josefsson  <jas@extundo.com>
63519
63520         * modules/socklen (Include): Need sys/socket.h.
63521
63522 2006-01-17  Bruno Haible  <bruno@clisp.org>
63523
63524         * modules/ssize_t (Include): Add <sys/types.h>.
63525
63526 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63527
63528         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63529         it's not portable and it doesn't work with cross-compiles.
63530         Problem reported by Bruno Haible.  Fix missing-$ typo in
63531         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63532         -zignore from being used with Sun's C compiler.
63533
63534 2006-01-12  Simon Josefsson  <jas@extundo.com>
63535
63536         * lib/base64.c: Fix warning, reported by Bruno Haible
63537         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63538
63539 2006-01-12  Bruno Haible  <bruno@clisp.org>
63540
63541         * modules/ldd: New file.
63542         * build-aux/ldd.sh.in: New file.
63543         * MODULES.html.sh (Support for building libraries and executables): Add
63544         ldd.
63545
63546 2006-01-12  Bruno Haible  <bruno@clisp.org>
63547
63548         * m4/ldd.m4: New file.
63549
63550 2006-01-12  Bruno Haible  <bruno@clisp.org>
63551
63552         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63553         endless loop while replacing $auxdir with build-aux.
63554
63555 2006-01-11  Simon Josefsson  <jas@extundo.com>
63556
63557         * lib/stdint_.h (SIZE_MAX): Add missing (.
63558
63559 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63560
63561         Sync from coreutils.
63562         * lib/md5.c: Fix commentary typos.
63563         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63564         * lib/md5.h (__attribute__): Remove; unused.
63565         * lib/sha1.c: Fix commentary to match md5 better.
63566         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63567         so that we don't need to worry about alignment.  All uses changed.
63568         This merges the 2005-10-28 md5 change into sha1.
63569
63570 2006-01-11  Jim Meyering  <jim@meyering.net>
63571
63572         Sync from coreutils.
63573         * lib/md5.c (OP): Fix spacing.
63574
63575 2006-01-11  Bruno Haible  <bruno@clisp.org>
63576
63577         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63578         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63579         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63580
63581 2006-01-11  Bruno Haible  <bruno@clisp.org>
63582
63583         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63584         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63585         the "early" section as well.
63586
63587 2006-01-11  Bruno Haible  <bruno@clisp.org>
63588
63589         Avoid "ar: no archive members specified" error on MacOS X.
63590         * gnulib-tool (func_modules_add_dummy): New function.
63591         (func_import, func_create_testdir): Invoke it.
63592
63593 2006-01-11  Bruno Haible  <bruno@clisp.org>
63594
63595         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63596         with $auxdir in AC_CONFIG_FILES statements.
63597
63598 2006-01-11  Bruno Haible  <bruno@clisp.org>
63599
63600         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63601         Initialize also noinst_HEADERS to empty.
63602
63603 2006-01-11  Bruno Haible  <bruno@clisp.org>
63604
63605         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63606         variables.
63607         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63608         autoreconf.
63609
63610 2006-01-11  Bruno Haible  <bruno@clisp.org>
63611
63612         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63613         overridable by the user.
63614         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63615
63616 2006-01-10  Simon Josefsson  <jas@extundo.com>
63617
63618         * modules/sys_socket: New file.
63619
63620 2006-01-10  Simon Josefsson  <jas@extundo.com>
63621
63622         * m4/sys_socket_h.m4: New file.
63623
63624 2006-01-10  Simon Josefsson  <jas@extundo.com>
63625
63626         * lib/socket_.h: New file.
63627
63628 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63629
63630         * modules/readutmp (Maintainer): Add myself.
63631
63632 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63633
63634         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63635         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63636         People who are still concerned with buggy memcmp implementations
63637         can invoke gl_FUNC_MEMCMP themselves.
63638
63639 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63640
63641         * lib/regex_internal.h (BITSET_WORD_BITS):
63642         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63643         preprocessor mishandles large unsigned values as if they were signed.
63644         Problem reported by Claudio Fontana in
63645         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63646
63647 2006-01-10  Jim Meyering  <jim@meyering.net>
63648
63649         Avoid the double-free (first in fts_read, second in fts_close) that
63650         would occur when an `active' directory is made inaccessible (e.g.,
63651         via chmod a-x) during a traversal.
63652         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63653         before returning.  Reproduce this failure by
63654         mkdir -p a/b; cd a; chmod a-x . b
63655         Reported by Stavros Passas.
63656
63657         Sync from coreutils.
63658         * lib/sha1.c: Tweak grammar in a comment.
63659
63660 2006-01-10  Jim Meyering  <jim@meyering.net>
63661
63662         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63663         Patch by Joerg Sonnenberger.
63664
63665 2006-01-10  Bruno Haible  <bruno@clisp.org>
63666
63667         * modules/readutmp: Depend on module free.
63668         * modules/strtok_r: Depend on module restrict.
63669
63670 2006-01-10  Bruno Haible  <bruno@clisp.org>
63671
63672         * modules/gettext (configure.ac): Add an invocation of
63673         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63674
63675 2006-01-10  Bruno Haible  <bruno@clisp.org>
63676
63677         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63678         Reported by Werner Lemberg <wl@gnu.org>.
63679
63680 2006-01-10  Bruno Haible  <bruno@clisp.org>
63681
63682         * lib/localcharset.c: Update from GNU gettext.
63683
63684 2006-01-10  Bruno Haible  <bruno@clisp.org>
63685
63686         * lib/argp.h (__const): Remove macro. Use const instead.
63687         * lib/argp-fmtstream.h (__const): Likewise.
63688         * lib/glob_.h (__const): Remove macro.
63689         * lib/glob-libc.h: Use const instead of __const.
63690
63691 2006-01-10  Bruno Haible  <bruno@clisp.org>
63692
63693         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63694         variable.
63695         Needed to avoid an automake error regarding the 'gettext' module.
63696
63697 2006-01-09  Simon Josefsson  <jas@extundo.com>
63698
63699         * modules/inet_ntop (Depends-on): Add restrict.
63700
63701 2006-01-09  Simon Josefsson  <jas@extundo.com>
63702
63703         * modules/gc-rijndael-tests (License): Put under LGPL.
63704
63705         * modules/gc-des-tests (License): Likewise.
63706
63707         * modules/gc-arcfour-tests (License): Likewise.
63708
63709         * modules/gc-arctwo-tests (License): Likewise.
63710
63711         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63712
63713         * modules/gc-hmac-sha1-tests (Files): Likewise.
63714
63715         * modules/gc-hmac-md5-tests (License): Likewise.
63716
63717         * modules/gc-sha1-tests (License): Likewise.
63718
63719         * modules/gc-md5-tests (License): Likewise.
63720
63721         * modules/gc-md4-tests (License): Likewise.
63722
63723         * modules/gc-md2-tests (License): Likewise.
63724
63725         * modules/gc-tests (License): Likewise.
63726
63727         * modules/des-tests (License): Likewise.
63728
63729         * modules/md4-tests (License): Likewise.
63730
63731         * modules/md2-tests (License): Likewise.
63732
63733 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63734
63735         Sync from coreutils:
63736
63737         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63738         * modules/lib-ignore: New file.
63739         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63740         chdir-safer.m4, lchmod.m4.
63741         * modules/openat: Add mkdirat.c, openat-priv.h.
63742
63743 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63744
63745         Sync from coreutils.
63746         * m4/lib-ignore.m4: New file.
63747         * m4/lchmod.m4: New file.
63748
63749 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63750
63751         Sync from coreutils.
63752         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63753         for write access: POSIX says that must fail.
63754         * lib/fts.c (diropen): Likewise.
63755         * lib/save-cwd.c (save_cwd): Likewise.
63756         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63757         well, for minor improvements on hosts that lack O_DIRECTORY.
63758         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63759         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63760         Fall back on chown if open failed with EACCES.
63761
63762         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63763         Report an error at compile-time if only a 1-second nominal clock
63764         resolution is found.
63765
63766         * lib/lchmod.h: New file.
63767         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63768         (make_dir_parents): Use lchown rather than chown, and
63769         lchmod rather than chmod.
63770
63771         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63772         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63773         "proc" reported by n0dalus.
63774
63775         * lib/mountlist.c: Include <limits.h>.
63776         (dev_from_mount_options)
63777         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63778         New function.  It no longer assumes "dev=" has the System V meaning
63779         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63780         (read_file_system_list)
63781         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63782         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63783         dev= in that case.
63784
63785         * lib/posixtm.h (PDS_PRE_2000): New macro.
63786         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63787         allow_century.  All usages changed.  Reject dates outside the range
63788         1969-1999 if PDS_PRE_2000 is used.
63789
63790 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63791
63792         Sync from coreutils.
63793         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63794         (Time of day items): Mention the possibility of leap seconds.
63795         Problem reported by Dr. David Alan Gilbert.
63796
63797 2006-01-09  Jim Meyering  <jim@meyering.net>
63798
63799         Sync from coreutils.
63800
63801         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63802
63803         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63804
63805         * lib/modechange.c (mode_compile): Reject an invalid mode string
63806         that starts with an octal digit.  From Andreas Gruenbacher.
63807
63808         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63809         and dup to open_safer and dup_safer, respectively.
63810         (openat_permissive): Fix typo in comment.
63811
63812         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63813         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63814         (_): Remove; no longer needed.
63815         (openat): Renamed from rpl_openat; no need for rpl_openat
63816         since openat.h renames openat for us.
63817         Replace most of the body with a call to openat_permissive,
63818         to avoid duplicate code.
63819         Port to (probably hypothetical) environments were mode_t is
63820         wider than int.
63821         (openat_permissive): Require mode arg, so that we can check
63822         types better.  Put it just after flags.  Change cwd failure
63823         indicator from pointer-to-bool to pointer-to-errno-value.
63824         All callers changed.
63825         Invoke openat_save_fail and/or openat_restore_fail if
63826         cwd_errno is null, so that openat can call us.
63827         (openat_permissive, fdopendir, fstatat, unlinkat):
63828         Simplify errno handling to avoid some duplicate code,
63829         as it's OK to set errno on success.
63830         * lib/openat.h: Revamp code so that function macros depend on
63831         __OPENAT_PREFIX only, not also on AT_FDCWD.
63832         (openat_ro): Remove.  Caller changed to use openat_permissive.
63833         (openat_permissive): Now a macro, if not a function.
63834         (openat_restore_fail, openat_save_fail): Now always functions,
63835         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63836
63837         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63838         and openat.c.
63839         * lib/mkdirat.c: Include openat-priv.h.
63840         Remove definitions of macros defined therein.
63841         * lib/openat.c: Likewise.
63842
63843         * lib/mkdirat.c (mkdirat): New file and function.
63844         * lib/openat.h (mkdirat): Declare.
63845
63846         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63847
63848         * lib/openat.h (openat_permissive): Declare.
63849         (openat_ro): Define.
63850
63851         * lib/openat.c (EXPECTED_ERRNO): New macro.
63852         (openat_permissive): New function -- used in remove.c rewrite.
63853         (all functions): Set errno just before returning, only if there
63854         was an actual failure.
63855         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63856
63857         Emulate openat-family functions using Linux's procfs, if possible.
63858         Idea and some code based on Ulrich Drepper's glibc changes.
63859
63860         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63861         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63862         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63863         before falling back on save_cwd and restore_cwd.
63864         (fdopendir, fstatat, unlinkat): Likewise.
63865
63866         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63867         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63868
63869         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63870         as second argument to va_arg.  Otherwise, some versions of gcc
63871         warn that `if this code is reached, the program will abort'.
63872
63873 2006-01-09  Jim Meyering  <jim@meyering.net>
63874
63875         Sync from coreutils.
63876         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63877         Require openat-priv.h.
63878
63879 2006-01-09  Bruno Haible  <bruno@clisp.org>
63880
63881         * modules/strnlen (Include): Use strnlen.h.
63882
63883 2006-01-09  Bruno Haible  <bruno@clisp.org>
63884
63885         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63886
63887 2006-01-09  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/sysexit_.h (EX_OK): New macro.
63890         Suggested by Martin Lambers <marlam@marlam.de>.
63891
63892 2006-01-09  Bruno Haible  <bruno@clisp.org>
63893
63894         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63895         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63896
63897 2006-01-09  Bruno Haible  <bruno@clisp.org>
63898
63899         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63900         numbers.
63901
63902 2006-01-09  Bruno Haible  <bruno@clisp.org>
63903
63904         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63905         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63906         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63907         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63908
63909 2006-01-09  Bruno Haible  <bruno@clisp.org>
63910
63911         * build-aux/javacomp.sh.in: New file, moved from lib/.
63912         * modules/javacomp-script (Files): Update.
63913         (configure.ac): Add AC_CONFIG_FILES invocation.
63914         (EXTRA_DIST): Remove variable.
63915
63916         * build-aux/javaexec.sh.in: New file, moved from lib/.
63917         * modules/javaexec (Files): Update.
63918         (configure.ac): Add AC_CONFIG_FILES invocation.
63919         (EXTRA_DIST): Remove javaexec.sh.in.
63920
63921         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63922         * modules/csharpcomp-script (Files): Update.
63923         (configure.ac): Add AC_CONFIG_FILES invocation.
63924         (EXTRA_DIST): Remove variable.
63925
63926         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63927         * modules/csharpexec (Files): Update.
63928         (configure.ac): Add AC_CONFIG_FILES invocation.
63929         (EXTRA_DIST): Remove csharpexec.sh.in.
63930
63931 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63932
63933         Sync from coreutils.
63934
63935         Add POSIX ACL support
63936         * lib/acl.h (copy_acl, set_acl): Add declarations.
63937         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63938         systems other than Linux.
63939         (chmod_or_fchmod): New function: use fchmod when possible,
63940         and chmod otherwise.
63941         (file_has_acl): Add a POSIX ACL implementation, with a
63942         Linux-specific subcase.
63943         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63944         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63945         acls are unsupported.
63946         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63947         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63948         are unsupported.
63949
63950 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63951
63952         Sync from coreutils.
63953         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63954
63955 2006-01-07  Bruno Haible  <bruno@clisp.org>
63956
63957         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63958         gl_EARLY.
63959
63960 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63961
63962         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63963         Problem reported for Mingw by Mark Junker.
63964
63965 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63966
63967         * README: Gnulib normally doesn't generate a tarball.
63968
63969 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63970
63971         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63972         long int, not int, for nanosecond counts, so that people who are
63973         used to POSIX struct timespec won't be surprised.  Reported by Jim
63974         Meyering.
63975
63976 2005-12-28  Bruno Haible  <bruno@clisp.org>
63977
63978         * build-aux/config.rpath: Update from GNU gettext.
63979
63980 2005-12-16  Jim Meyering  <jim@meyering.net>
63981
63982         * modules/fprintftime: New module.
63983         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63984
63985 2005-12-16  Jim Meyering  <jim@meyering.net>
63986
63987         * m4/fprintftime.m4: New file.
63988
63989 2005-12-16  Jim Meyering  <jim@meyering.net>
63990
63991         * lib/fprintftime.c, lib/fprintftime.h: New files.
63992
63993 2005-12-15  Simon Josefsson  <jas@extundo.com>
63994
63995         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63996         new m4/socklen.m4.
63997
63998 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63999
64000         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64001         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64002
64003 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64004
64005         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64006         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64007         struct uparams is valid. Fall back to the default values if it is
64008         not.
64009
64010 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64011
64012         * modules/argp (Files): Add argp-pin.c
64013         (Depends-on): dirname
64014         (lib_SOURCES): Add argp-pin.c
64015
64016 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64017
64018         * m4/argp.m4:  Check if program_invocation_name and
64019         program_invocation_short_name are declared and define appropriate
64020         macros if they are not.
64021
64022 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64023
64024         * lib/argp-help.c (__argp_base_name): New function
64025         (__argp_short_program_name): Rewrite using __argp_base_name
64026         * lib/argp-namefrob.h: Define program_invocation_name and
64027         program_invocation_short_name if requested
64028         (__argp_base_name): Add prototype
64029         * lib/argp-parse.c (argp_def): Use gettext wrappers
64030         (argp_default_parser): Use __argp_base_name
64031         * lib/argp-pin.c: New file. Defines program_invocation_name and
64032         program_invocation_short_name on systems that lack them.
64033
64034 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64037         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64038         porting problem reported by Georg Schwarz in
64039         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64040
64041 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64042
64043         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64044         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64045         porting problem reported by Georg Schwarz in
64046         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64047
64048 2005-12-05  Bruno Haible  <bruno@clisp.org>
64049
64050         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64051         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64052         Reported by Mark Junker <mjscod@gmx.de>.
64053
64054 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64057         Use implementation from Albert Chin, with some
64058         comments/corrections by Stepan Kasal and myself.
64059
64060 2005-12-02  Bruno Haible  <bruno@clisp.org>
64061
64062         * gnulib-tool (func_import): Accept GPLed build tool modules when
64063         --lgpl is given.
64064         * modules/csharpcomp-script: New file.
64065         * modules/csharpcomp: Depend on it.
64066         * modules/javacomp-script: New file.
64067         * modules/javacomp: Depend on it.
64068         Suggested by Simon Josefsson.
64069
64070 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64071
64072         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64073         statement, to work around an HP-UX 10.20 compiler bug reported by
64074         Peter O'Gorman.
64075
64076 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64077
64078         * modules/savedir (Depends-on): Add openat.
64079
64080 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64081
64082         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64083         (uintmax_t) [defined uintmax_t]: Do not declare.
64084         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64085         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64086         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64087         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64088         sake of portability to weird hosts that C allows (though we don't
64089         know of any practical examples).
64090
64091         * lib/savedir.h (fdsavedir): New decl.
64092         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64093         contains most of the former guts of savedir.
64094         (savedir): Use savedirstream.
64095         Include "openat.h".
64096
64097 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64098
64099         * modules/obstack (Files): Add m4/ulonglong.m4.
64100         Problem reported by Davide Angelocola.
64101
64102 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64103
64104         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64105         coreutils no longer futzes with rounding modes.
64106
64107 2005-11-14  Jim Meyering  <jim@meyering.net>
64108
64109         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64110         replacement of mkstemp.
64111
64112 2005-11-10  Simon Josefsson  <jas@extundo.com>
64113
64114         * lib/readline.c: Remove EOL.
64115
64116 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64117
64118         * modules/gethrxtime (Depends-on): Add gettime.
64119
64120 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64121
64122         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64123         or gettimeofday; no longer needed.
64124
64125 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64128         time business.
64129         (gethrxtime) [! (HAVE_NANOUPTIME
64130         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64131         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64132         our own approximation.
64133
64134 2005-11-08  Eric Blake  <ebb9@byu.net>
64135
64136         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64137
64138 2005-11-08  Eric Blake  <ebb9@byu.net>
64139
64140         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64141
64142 2005-11-04  Bruno Haible  <bruno@clisp.org>
64143
64144         * gnulib-tool: Implement --update mode.
64145
64146 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64147
64148         Fix porting problem reported by Theodoros V. Kalamatianos.
64149         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64150         Don't assume that futimes failing means we must fail.
64151
64152 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64155         variables to suggest the intended function of the PATH_MAX check.
64156
64157 2005-10-30  Kean Johnston  <jkj@sco.com>
64158
64159         Trivial changes to support SCO systems.
64160         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64161         as PATH_MAX.
64162         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64163         where __ptr is null when no I/O is pending.
64164
64165 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64166
64167         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64168         leave errno alone.  Problem reported by Dmitry V. Levin.
64169
64170 2005-10-28  Simon Josefsson  <jas@extundo.com>
64171
64172         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64173         Test more.
64174
64175         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64176
64177         * modules/md2, modules/md2-tests: New files.
64178
64179 2005-10-28  Simon Josefsson  <jas@extundo.com>
64180
64181         * m4/inet_ntop.m4: More tests.
64182
64183         * m4/gc-md2.m4, md2.m4: New file.
64184
64185 2005-10-28  Simon Josefsson  <jas@extundo.com>
64186
64187         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64188         "restrict" keywords, as per POSIX.  Protect the function
64189         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64190         Don't use K&R prototypes.  Check the sprintf return values.
64191         Re-define EAFNOSUPPORT if not present.  Indent.
64192
64193         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64194         suggested by Bruno Haible <bruno@clisp.org>.
64195
64196         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64197
64198         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64199
64200         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64201         libgcrypt).
64202
64203         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64204
64205         * lib/md2.h, lib/md2.c: New files.
64206
64207 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64208
64209         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64210         errno alone.  Problem reported by Frederic Jolliton.
64211
64212 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         * modules/verify (License): Change from GPL to LGPL.  This is a
64215         tiny module and there are apparently near-equivalents that are
64216         under the BSD license.
64217
64218 2005-10-24  Simon Josefsson  <jas@extundo.com>
64219
64220         * modules/sha1: Relicense to LGPL.
64221
64222 2005-10-24  Simon Josefsson  <jas@extundo.com>
64223
64224         * lib/md4.h: Shrink buffer size, now that we changed the type.
64225
64226 2005-10-23  Simon Josefsson  <jas@extundo.com>
64227
64228         * gnulib-tool (func_import): Fix --tests-base.
64229
64230 2005-10-22  Simon Josefsson  <jas@extundo.com>
64231
64232         * modules/arcfour (Depends-on): Need stdint.
64233
64234 2005-10-22  Simon Josefsson  <jas@extundo.com>
64235
64236         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64237         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64238
64239 2005-10-22  Simon Josefsson  <jas@extundo.com>
64240
64241         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64242         suggested by Bruno Haible <bruno@clisp.org>.
64243
64244 2005-10-22  Simon Josefsson  <jas@extundo.com>
64245
64246         * lib/crc.h: Include stddef.h, for size_t.
64247
64248 2005-10-22  Simon Josefsson  <jas@extundo.com>
64249
64250         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64251         arcfour_context struct (simplify test vector testing in GNU
64252         Shishi).
64253
64254 2005-10-21  Simon Josefsson  <jas@extundo.com>
64255
64256         * modules/des, modules/des-tests: New files.
64257
64258         * modules/gc-des, modules/gc-des-tests: New files.
64259
64260         * tests/test-des.c, tests/test-gc-des.c: New file.
64261
64262 2005-10-21  Simon Josefsson  <jas@extundo.com>
64263
64264         * modules/arctwo, modules/arctwo-tests: New files.
64265
64266         * tests/test-arctwo.c: New file.
64267
64268         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64269
64270         * tests/test-gc-arctwo.c: New file.
64271
64272 2005-10-21  Simon Josefsson  <jas@extundo.com>
64273
64274         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64275         Bruno Haible <bruno@clisp.org>.
64276
64277         * m4/gc-des.m4: New file.
64278
64279 2005-10-21  Simon Josefsson  <jas@extundo.com>
64280
64281         * m4/arctwo.m4: New file.
64282
64283         * m4/gc-arctwo.m4: New file.
64284
64285 2005-10-21  Simon Josefsson  <jas@extundo.com>
64286
64287         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64288         block.
64289
64290 2005-10-21  Simon Josefsson  <jas@extundo.com>
64291
64292         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64293         <bruno@clisp.org>.
64294
64295         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64296
64297         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64298         Bruno Haible <bruno@clisp.org>.
64299
64300         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64301         <bruno@clisp.org>.
64302
64303 2005-10-21  Simon Josefsson  <jas@extundo.com>
64304
64305         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64306
64307 2005-10-21  Simon Josefsson  <jas@extundo.com>
64308
64309         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64310
64311 2005-10-21  Simon Josefsson  <jas@extundo.com>
64312
64313         * lib/des.h, lib/des.c: New files.
64314
64315         * lib/gc-gnulib.c: Support DES.c
64316
64317 2005-10-21  Simon Josefsson  <jas@extundo.com>
64318
64319         * lib/arctwo.h, lib/arctwo.c: New files.
64320
64321         * lib/gc-gnulib.c: Support ARCTWO.
64322
64323 2005-10-21  Simon Josefsson  <jas@extundo.com>
64324
64325         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64326         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64327
64328 2005-10-21  Simon Josefsson  <jas@extundo.com>
64329
64330         * gnulib-tool (func_import, func_create_testdir): Define automake
64331         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64332         Makefile.am snippet),
64333         suggested by Bruno Haible <bruno@clisp.org>.
64334
64335         * modules/gc (Makefile.am): Use it.
64336
64337 2005-10-21  Bruno Haible  <bruno@clisp.org>
64338
64339         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64340         patch.
64341
64342 2005-10-19  Simon Josefsson  <jas@extundo.com>
64343
64344         * tests/test-gc-rijndael.c: New file.
64345
64346         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64347
64348 2005-10-19  Simon Josefsson  <jas@extundo.com>
64349
64350         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64351         interface too.
64352
64353 2005-10-19  Simon Josefsson  <jas@extundo.com>
64354
64355         * tests/test-gc-arcfour.c: New file.
64356
64357         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64358
64359 2005-10-19  Simon Josefsson  <jas@extundo.com>
64360
64361         * modules/gc-md4, modules/gc-md4-tests: New file.
64362
64363         * tests/test-gc-md4.c: New file.
64364
64365 2005-10-19  Simon Josefsson  <jas@extundo.com>
64366
64367         * m4/gc-md4.m4: New file.
64368
64369 2005-10-19  Simon Josefsson  <jas@extundo.com>
64370
64371         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64372         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64373         <kasal@ucw.cz>.
64374
64375 2005-10-19  Simon Josefsson  <jas@extundo.com>
64376
64377         * m4/gc-arcfour.m4: New file.
64378
64379         * m4/gc-rijndael.m4: New file.
64380
64381 2005-10-19  Simon Josefsson  <jas@extundo.com>
64382
64383         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64384
64385 2005-10-19  Simon Josefsson  <jas@extundo.com>
64386
64387         * lib/gc-gnulib.c: Support ARCFOUR.
64388
64389 2005-10-19  Simon Josefsson  <jas@extundo.com>
64390
64391         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64392         support.
64393
64394         * lib/gc.h: Add ECB enum type.
64395
64396         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64397
64398 2005-10-18  Simon Josefsson  <jas@extundo.com>
64399
64400         * tests/test-md5.c: New file.
64401
64402         * modules/md5-tests: New file.
64403
64404 2005-10-18  Simon Josefsson  <jas@extundo.com>
64405
64406         * tests/test-md4.c: New file.
64407
64408         * modules/md4, modules/md4-tests: New files.
64409
64410 2005-10-18  Simon Josefsson  <jas@extundo.com>
64411
64412         * m4/md4.m4: New file.
64413
64414 2005-10-18  Simon Josefsson  <jas@extundo.com>
64415
64416         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64417
64418 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64419
64420         * gnulib-tool (func_create_testdir): Omit the second check whether
64421         BUILT_SOURCES in nonempty.
64422
64423 2005-10-17  Simon Josefsson  <jas@extundo.com>
64424
64425         * tests/test-rijndael.c: New file.
64426
64427 2005-10-17  Simon Josefsson  <jas@extundo.com>
64428
64429         * modules/sha1: Depend on stdint instead of md5.
64430
64431         * modules/md5: Depend on stdint, remove uint32_t.
64432
64433 2005-10-17  Simon Josefsson  <jas@extundo.com>
64434
64435         * modules/gc-sha1-tests: New file.
64436
64437         * tests/test-gc-sha1.c: New file.
64438
64439 2005-10-17  Simon Josefsson  <jas@extundo.com>
64440
64441         * m4/md5.m4: Remove call to uint32_t.m4.
64442
64443 2005-10-17  Simon Josefsson  <jas@extundo.com>
64444
64445         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64446
64447         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64448         md5.h.
64449
64450         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64451
64452         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64453
64454 2005-10-17  Simon Josefsson  <jas@extundo.com>
64455
64456         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64457
64458 2005-10-17  Simon Josefsson  <jas@extundo.com>
64459
64460         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64461
64462 2005-10-17  Simon Josefsson  <jas@extundo.com>
64463
64464         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64465
64466         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64467
64468 2005-10-17  Bruno Haible  <bruno@clisp.org>
64469
64470         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64471         that it can also be used in a test.
64472
64473 2005-10-16  Bruno Haible  <bruno@clisp.org>
64474
64475         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64476         TESTS_ENVIRONMENT, so that individual tests can augment it.
64477
64478         * gnulib-tool (func_create_testdir): Use an intermediate target for
64479         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64480         macros, like $(ALLOCA_H), which cannot be passed through the command
64481         line.
64482
64483 2005-10-15  Simon Josefsson  <jas@extundo.com>
64484
64485         * modules/rijndael-tests: New file.
64486
64487         * modules/rijndael: New file.
64488
64489 2005-10-15  Simon Josefsson  <jas@extundo.com>
64490
64491         * m4/rijndael.m4: New file.
64492
64493 2005-10-15  Simon Josefsson  <jas@extundo.com>
64494
64495         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64496
64497         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64498
64499 2005-10-14  Simon Josefsson  <jas@extundo.com>
64500
64501         * tests/test-arcfour.c: New file.
64502
64503         * modules/arcfour, modules/arcfour-tests: New files.
64504
64505 2005-10-14  Simon Josefsson  <jas@extundo.com>
64506
64507         * m4/arcfour.m4: New file.
64508
64509 2005-10-14  Simon Josefsson  <jas@extundo.com>
64510
64511         * lib/arcfour.h, lib/arcfour.c: New files.
64512
64513 2005-10-14  Roland McGrath  <roland@redhat.com>
64514
64515         Import from libc.  [BZ #1331]
64516         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64517         macro argument.
64518         Reported by Matej Vela <vela@debian.org>.
64519
64520 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64523         include <wchar.h>; no longer needed.
64524
64525 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64526
64527         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64528
64529 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64530         and  Ulrich Drepper  <drepper@redhat.com>
64531
64532         Import from libc.
64533         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64534         instead of inline stream orientation test and two separate
64535         function calls.  Pay no attention to USE_IN_LIBIO.
64536
64537 2005-10-13  Simon Josefsson  <jas@extundo.com>
64538
64539         * modules/gc-hmac-md5-tests: New file.
64540
64541         * tests/test-gc-hmac-sha1.c: New file.
64542
64543         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64544
64545         * modules/gc-hmac-md5-tests: New file.
64546
64547         * tests/test-gc-md5.c: New file.
64548
64549         * modules/gc-md5-tests: New file.
64550
64551 2005-10-13  Simon Josefsson  <jas@extundo.com>
64552
64553         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64554         Move memory allocation outside of loop.
64555
64556 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64559         intermediate directory is in a read-only file system.  Problem
64560         reported by Eric Blake.
64561
64562 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64563
64564         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64565
64566 2005-10-12  Simon Josefsson  <jas@extundo.com>
64567
64568         * tests/test-hmac-sha1.c: New file.
64569
64570         * modules/hmac-sha1-tests: New file.
64571
64572         * modules/hmac-sha1: New file.
64573
64574 2005-10-12  Simon Josefsson  <jas@extundo.com>
64575
64576         * modules/gc-sha1: New file.
64577
64578 2005-10-12  Simon Josefsson  <jas@extundo.com>
64579
64580         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64581
64582         * tests/test-gc-pbkdf2-sha1.c: New file.
64583
64584 2005-10-12  Simon Josefsson  <jas@extundo.com>
64585
64586         * modules/gc-md5, modules/gc-hmac-md5: New files.
64587
64588         * modules/gc (Files): Remove md5, memxor and hmac files.
64589
64590 2005-10-12  Simon Josefsson  <jas@extundo.com>
64591
64592         * m4/gc-pbkdf2-sha1.m4: New file.
64593
64594         * m4/gc-hmac-sha1.m4: New file.
64595
64596         * m4/gc-sha1: New file.
64597
64598         * m4/hmac-sha1.m4: New file.
64599
64600 2005-10-12  Simon Josefsson  <jas@extundo.com>
64601
64602         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64603
64604         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64605
64606 2005-10-12  Simon Josefsson  <jas@extundo.com>
64607
64608         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64609         suggested by Bruno Haible <bruno@clisp.org>.
64610
64611 2005-10-12  Simon Josefsson  <jas@extundo.com>
64612
64613         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64614
64615 2005-10-12  Simon Josefsson  <jas@extundo.com>
64616
64617         * lib/gc-pbkdf2-sha1.c: New file.
64618
64619         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64620
64621 2005-10-12  Simon Josefsson  <jas@extundo.com>
64622
64623         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64624
64625         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64626
64627 2005-10-12  Simon Josefsson  <jas@extundo.com>
64628
64629         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64630         GC_USE_HMAC_MD5, respectively.
64631
64632         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64633         (gc_md5): Fix typo.
64634
64635         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64636
64637         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64638
64639         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64640
64641 2005-10-12  Bruno Haible  <bruno@clisp.org>
64642
64643         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64644         Reported by Stepan Kasal <kasal@ucw.cz>.
64645
64646 2005-10-11  Simon Josefsson  <jas@extundo.com>
64647
64648         * tests/test-crc.c: New file.
64649
64650         * modules/crc, modules/crc-tests: New files.
64651
64652 2005-10-11  Simon Josefsson  <jas@extundo.com>
64653
64654         * m4/crc.m4: New file.
64655
64656 2005-10-11  Simon Josefsson  <jas@extundo.com>
64657
64658         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64659
64660         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64661
64662         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64663
64664 2005-10-11  Simon Josefsson  <jas@extundo.com>
64665
64666         * lib/crc.h, lib/crc.c: New files.
64667
64668         * lib/gc.h (gc_hash_buffer): Add doc.
64669
64670 2005-10-11  Bruno Haible  <bruno@clisp.org>
64671
64672         * modules/c-strcasestr: New file.
64673         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64674
64675 2005-10-11  Bruno Haible  <bruno@clisp.org>
64676
64677         * modules/c-strcase: New file.
64678         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64679
64680 2005-10-11  Bruno Haible  <bruno@clisp.org>
64681
64682         * lib/strcasecmp.c: Include limits.h.
64683         (strcasecmp): Avoid integer overflow on exotic platforms.
64684         * lib/strncasecmp.c: Include limits.h.
64685         (strncasecmp): Avoid integer overflow on exotic platforms.
64686         Reported by Paul Eggert.
64687
64688 2005-10-11  Bruno Haible  <bruno@clisp.org>
64689
64690         * lib/c-strcasestr.h: New file, from GNU gettext.
64691         * lib/c-strcasestr.c: New file, from GNU gettext.
64692
64693 2005-10-11  Bruno Haible  <bruno@clisp.org>
64694
64695         * lib/c-strcase.h: New file, from GNU gettext.
64696         * lib/c-strcasecmp.c: New file, from GNU gettext.
64697         * lib/c-strncasecmp.c: New file, from GNU gettext.
64698
64699 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64700
64701         * modules/mempcpy (License): GPL -> LGPL.
64702         * modules/strchrnul (License): Likewise.
64703         * modules/sysexits (License): Likewise.
64704
64705 2005-10-08  Simon Josefsson  <jas@extundo.com>
64706
64707         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64708
64709 2005-10-07  Simon Josefsson  <jas@extundo.com>
64710
64711         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64712
64713 2005-10-06  Simon Josefsson  <jas@extundo.com>
64714
64715         * tests/test-hmac-md5.c: New file.
64716
64717         * modules/hmac-md5-tests: New file.
64718
64719         * modules/hmac-md5: New file.
64720
64721 2005-10-06  Simon Josefsson  <jas@extundo.com>
64722
64723         * m4/hmac-md5.m4: New file.
64724
64725         * m4/memxor.m4: Require gl_C_RESTRICT.
64726
64727 2005-10-06  Simon Josefsson  <jas@extundo.com>
64728
64729         * lib/memxor.c (memxor): Avoid casts and warnings.
64730
64731 2005-10-06  Simon Josefsson  <jas@extundo.com>
64732
64733         * lib/hmac-md5.c: New file.
64734
64735         * lib/hmac.h: New file.
64736
64737 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64738
64739         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64740         promotes to int, not unsigned int, to catch the AIX 5.3
64741         compiler bug.
64742
64743 2005-10-05  Simon Josefsson  <jas@extundo.com>
64744
64745         * modules/memxor: New file.
64746
64747         * modules/iconv (Files): Move config.rpath to havelib, it is used
64748         there.
64749
64750         * modules/havelib (Files): Add config.rpath.
64751
64752 2005-10-05  Simon Josefsson  <jas@extundo.com>
64753
64754         * m4/memxor.m4: New file.
64755
64756 2005-10-05  Simon Josefsson  <jas@extundo.com>
64757
64758         * lib/memxor.c (memxor): Fix compiler error.
64759
64760         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64761         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64762
64763         * lib/memxor.h, lib/memxor.c: New files.
64764
64765         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64766         we assume all systems have it, suggested by Jim Meyering
64767         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64768         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64769         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64770         same reasons.
64771
64772 2005-10-05  Simon Josefsson  <jas@extundo.com>
64773
64774         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64775
64776 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64777
64778         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64779         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64780         needed, since the source code now assumes these .h files.
64781
64782 2005-10-05  Derek Price  <derek@ximbiot.com>
64783
64784         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64785
64786 2005-10-05  Bruno Haible  <bruno@clisp.org>
64787
64788         * modules/stdint (License): Change to LGPL.
64789
64790 2005-10-04  Simon Josefsson  <jas@extundo.com>
64791
64792         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64793         D. Baushke" <mdb@gnu.org>.
64794
64795 2005-10-04  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/verify.h (verify_true): Provide alternative definition for C++.
64798
64799 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64802         (SSIZE_MAX): New macro, if not already defined.
64803         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64804         than 2 GiB.
64805
64806 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64807
64808         Sync from coreutils.
64809         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64810         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64811         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64812         ULLONG_MAX doesn't work with 2.7.2.1.
64813
64814 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64815
64816         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64817         From Ben Pfaff.
64818
64819         * modules/exclude (Depends-on): Depend on verify.
64820         * modules/strtoimax (Depends-on): Likewise.
64821         * modules/utimecmp (Depends-on): Likewise.
64822
64823 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64824
64825         * lib/exclude.c: Include verify.h.
64826         (verify): Remove.  All callers changed to use verify.h's version.
64827         * lib/strtoimax.c: Likewise.
64828         * lib/utimecmp.c: Likewis.e
64829
64830         Sync from coreutils.
64831         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64832         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64833         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64834         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64835         bother returning ENOSYS if settimeofday or stime fails; just let
64836         them return whatever errno they want to return.
64837         * lib/utimens.c: Include unistd.h, for dup2.
64838         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64839         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64840
64841 2005-10-02  Jim Meyering  <jim@meyering.net>
64842
64843         Sync from coreutils.
64844         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64845         from glibc-2.2.5 that fails for read-only files.
64846
64847 2005-10-02  Jim Meyering  <jim@meyering.net>
64848
64849         Sync from coreutils.
64850         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64851         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64852         `#if HAVE_CONFIG_H'.
64853         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64854         Remove AT_FDCWD test.
64855         Do not consume the fd unless successful.
64856         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64857         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64858         block, so that we don't even try to compile it if settimeofday is
64859         available.  This works around a compilation failure on OSF1 V5.1,
64860         due to stime requiring a `long int*' while tv_sec is `int'.
64861
64862 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64863
64864         Sync from coreutils.
64865         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64866         against `yes', rather than just testing for nonempty.
64867
64868 2005-10-01  Simon Josefsson  <jas@extundo.com>
64869
64870         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64871         and Darwin.
64872
64873         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64874         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64875         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64876         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64877         Check if struct addrinfo is declared.
64878
64879 2005-10-01  Simon Josefsson  <jas@extundo.com>
64880
64881         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64882         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64883         AI_* and EAI_* definitions.  Protect function declarations.
64884
64885 2005-10-01  Jim Meyering  <jim@meyering.net>
64886
64887         Sync from coreutils.
64888
64889         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64890         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64891         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64892         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64893         in the inet and nsl libraries.  Required on Solaris 5.7.
64894
64895 2005-10-01  Jim Meyering  <jim@meyering.net>
64896
64897         Sync from coreutils.
64898         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64899         in the inet and nsl libraries.  Required on Solaris 5.7.
64900
64901 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64902
64903         * lib/getdelim.c (getdelim): Remove unused variables.
64904
64905 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64906
64907         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64908         so that the code works even with ancient cpp.  Portability problem
64909         with GCC 2.7.2.1 reported by Thomas M.Ott.
64910
64911 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64912
64913         * modules/regex (Depends-on): Add strcase.
64914
64915         * modules/gethostname (Licence): Change from GPL to LGPL, since
64916         gethostname.c is a trivial implementation of a standard library
64917         function.
64918         * modules/poll (License): Change from GPL to LGPL, since it's
64919         derived from LGPL code.
64920
64921 2005-09-27  Jim Meyering  <jim@meyering.net>
64922
64923         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64924         HAVE_CONFIG_H.
64925
64926         * lib/intprops.h (signed_type_or_expr__): Define.
64927         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64928         for unsigned types.
64929
64930 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64931
64932         * lib/verify.h (verify_expr): Remove, replacing with:
64933         (verify_true): New macro that returns true instead of void.
64934         (verify_type__): Remove.
64935         (verify): Use verify_true rather than verify_type__.
64936
64937 2005-09-26  Bruno Haible  <bruno@clisp.org>
64938
64939         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64940         is necessary.
64941         (lib_SOURCES): Remove mbchar.c.
64942         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64943         (Files): Add m4/mbrtowc.m4.
64944         * modules/mbiter: Likewise.
64945         * modules/mbuiter: Likewise.
64946
64947 2005-09-26  Bruno Haible  <bruno@clisp.org>
64948
64949         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64950         compile mbchar.c if they are not both present.
64951         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64952         * m4/mbiter.m4 (gl_MBITER): Likewise.
64953         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64954         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64955         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64956
64957 2005-09-25  Jim Meyering  <jim@meyering.net>
64958
64959         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64960         also uses socklen_t.
64961
64962 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64963
64964         * lib/utimens.c (ENOSYS): Define if not already defined.
64965         (futimens): Support having a null PATH if the file descriptor
64966         is nonnegative.
64967
64968         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64969         Remove.
64970         (__attribute): Define to empty unless GCC 3.1 or later.
64971         This works around a core dump on OpenBSD 3.4, which has GCC
64972         2.95.3, which dumps core when given __attribute__(()).  It also
64973         simplifies other tests, since we really don't want to bother with
64974         worrying about which ancient version of GCC supported what.
64975         Original problem reported by Yoann Vandoorselaere, with part of
64976         the fix suggested by Derek Price.
64977
64978 2005-09-24  Jim Meyering  <jim@meyering.net>
64979
64980         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64981         so we can once again use a positive bitfield width of 1 -- now we
64982         don't have to explain why we were using a bitfield width of 2.
64983
64984 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64985
64986         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64987         and similarly for the other external symbols.  Problem reported
64988         by James Gallager.
64989
64990         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64991         bug reported by Jim Meyering.
64992
64993         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64994         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64995         not needed, since socklen is a prerequisite module.
64996
64997 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64998
64999         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65000         Problem reported by Eric Blake.
65001         (getaddrinfo): Initialize se so that it's not garbage.
65002         Redo internal storage allocation so that it doesn't make unportable
65003         assumptions about alignment.
65004         Fix a memory leak.
65005
65006         * lib/utimens.c (futimens): Use futimesat if available.
65007         Prefer it to futimes since it doesn't have the futimes bug.
65008
65009         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65010         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65011         Instead, declare a function that returns a pointer to an array,
65012         and use verify_type__ to declare the size of the array.
65013         Problem and germ of a solution reported by Bruno Haible.
65014         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65015         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65016
65017 2005-09-23  Jim Meyering  <jim@meyering.net>
65018
65019         Sync from coreutils.
65020         Correct build failure (socklen_t not defined) on at least
65021         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65022         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65023
65024 2005-09-23  Jim Meyering  <jim@meyering.net>
65025
65026         * modules/getaddrinfo (Depends-on): Add socklen.
65027
65028 2005-09-23  Bruno Haible  <bruno@clisp.org>
65029
65030         * tests/test-verify.c: New file.
65031
65032 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65033
65034         Sync from coreutils.
65035
65036         * modules/argmatch (Depends-on): Add verify.
65037         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65038         unistd-safer.
65039         * modules/save-cwd (Depends-on): Likewise.
65040
65041         * modules/openat (Files): Add lib/openat-die.c.
65042         (Depends-on): Remove error, exitfail.
65043         Add dirname.
65044
65045         * modules/verify: New file.
65046         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65047         with "verify" module.
65048
65049 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65050
65051         Sync from coreutils.
65052
65053         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65054         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65055         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65056         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65057         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65058         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65059         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65060         Don't bother checking for string.h, stdlib.h, unistd.h.
65061         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65062         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65063         module's job.
65064         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65065         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65066
65067         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65068         (gl_GETDATE): Use it.
65069
65070         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65071
65072 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65073
65074         Sync from coreutils.
65075
65076         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65077         stat-time.h.
65078         * lib/argmatch.h: Include verify.h
65079         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65080         (ARGMATCH_ASSERT): Remove; unused.
65081         * lib/canonicalize.c: Assume STDC_HEADERS.
65082         * lib/exclude.c: Include "strcase.h".
65083         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65084         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65085         and stdio-safer.h.
65086         (getusershell): Call fopen, not fopen_safer.
65087         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65088         Do not include unistd-safer.h.
65089         (save_cwd): Don't call fd_safer; no longer needed
65090         now that we include fcntl--.h.
65091
65092         * lib/getdate.y (relative_time): New type.
65093         (RELATIVE_TIME_0): New constant.
65094         (parser_control): Use relative_time instead of doing it ourselves.
65095         (%union): Add new relative_time rel member.
65096         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65097         Now typeless.
65098         (relunit, relunit_snumber): Now of type rel.
65099         (zone, rel, relunit, get_date): Adjust to above changes.
65100
65101         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65102         Do not include unistd-safer.h.
65103         (getloadavg): Don't call fd_safer; no longer needed
65104         now that we include fcntl--.h.
65105
65106         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65107         (make_dir_parents): Treat ENOSYS like EEXIST.
65108
65109         Improve quality of diagnostics on restore_cwd failure.
65110         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65111         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65112         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65113         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65114         each time through the loop.  Do not diagnose restore_cwd failure;
65115         that is the caller's job (and perhaps the caller does not care).
65116
65117         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65118         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65119         If the file already exists but is not a directory, don't bother
65120         to try to make its parents.
65121         Close potential file descriptor leak if we can't chdir("/") (!).
65122         Don't always return true if chdir($PWD) fails; return true only
65123         if the requested action was done successfully (except for the
65124         chdir($PWD)).
65125         Don't log final directory unless we actually made it.
65126         Refactor to avoid duplicate code to fix up permissions.
65127         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65128
65129         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65130         to make it a bit faster and (I hope) clearer.
65131         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65132         Fix bug in formats like %2N.
65133
65134         * lib/verify.h: New file.
65135
65136 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65137
65138         Sync from coreutils.
65139         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65140
65141 2005-09-22  Jim Meyering  <jim@meyering.net>
65142
65143         Sync from coreutils.
65144
65145         * m4/lstat.m4 (gl_FUNC_LSTAT):
65146         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65147         Remove obsolete comment.
65148         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65149         * m4/xstrtod.m4: Likewise.
65150
65151         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65152
65153 2005-09-22  Jim Meyering  <jim@meyering.net>
65154
65155         Sync from coreutils.
65156
65157         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65158
65159         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65160         the .tm_year member, since otherwise gcc-4.0 would now warn about
65161         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65162
65163         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65164         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65165
65166         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65167         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65168         when run in a time zone for which daylight savings time is in effect
65169         for the starting date.
65170
65171         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65172         stop us from restricting permissions of just-created absolute-named
65173         directories.
65174         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65175         to restore initial working directory.
65176         * lib/mkdir-p.c (make_dir_parents): New parameter:
65177         different_working_dir, to tell caller if/when we change the working
65178         directory and are unable to return to the initial one.
65179         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65180         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65181         `return false'.  This fixes a bug introduced on 2004-07-30.
65182
65183         * lib/openat.c (fdopendir): Be sure to close the supplied
65184         file descriptor before returning.  This makes our replacement
65185         implementation a little closer to Solaris's, where fdopendir
65186         ties the file descriptor to the returned DIR* pointer.
65187         * lib/openat.c (unlinkat): New function.
65188         * lib/openat.h (unlinkat): Add prototype.
65189         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65190         (openat_restore_fail): Rename from openat_restore_die.
65191         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65192
65193         Provide an alternative to exiting immediately upon save_cwd or
65194         restore_cwd failure.  Now, an application can arrange e.g.,
65195         to perform a longjump in that case.
65196         * lib/openat.c: Include dirname.h.
65197         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65198         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65199         and openat_restore_die rather than calling error directly.
65200         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65201
65202         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65203         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65204         define.
65205
65206         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65207         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65208                             int utc, int nanoseconds);
65209         Background:
65210         date should not have to allocate a megabyte of virtual memory to
65211         handle a format argument like +%1048575T.  When implemented with
65212         strftime, it must allocate such a buffer, use strftime to fill it
65213         in, print it, then free it.
65214         With fprintftime, it simply prints everything and exits.
65215         With no need for memory allocation, that's one fewer way to fail.
65216         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65217         optional field width, not before, so we accept %9:z, not %:9z.
65218         (my_strftime): Be sure to use L_('x') for literals.
65219
65220         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65221         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65222         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65223         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65224         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65225         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65226         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65227         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65228         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65229         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65230         * lib/xgethostname.c, lib/xreadlink.c:
65231         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65232
65233         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65234         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65235         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65236         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65237         and don't include <sys/file.h>).
65238
65239 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65240
65241         Sync from coreutils.
65242
65243         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65244         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65245         [!LDAV_DONE]: Avoid unused variable warning.
65246
65247 2005-09-21  Bruno Haible  <bruno@clisp.org>
65248
65249         * lib/unicodeio.h (unicode_to_mb): New declaration.
65250
65251 2005-09-20  Derek Price  <derek@ximbiot.com>
65252
65253         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65254         getaddrinfo.h.
65255
65256 2005-09-20  Bruno Haible  <bruno@clisp.org>
65257
65258         * gnulib-tool: Remove trailing slashes from the values specified for
65259         --source-base, --m4-base, --tests-base, --aux-dir.
65260         Suggested by Simon Josefsson <jas@extundo.com>.
65261
65262 2005-09-20  Bruno Haible  <bruno@clisp.org>
65263
65264         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65265         func_modules_to_filelist, func_import, func_create_testdir): Make all
65266         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65267         change when gnulib-tool is invoked in a different locale.
65268
65269 2005-09-19  Simon Josefsson  <jas@extundo.com>
65270
65271         * m4/socklen.m4: Fix typo.
65272
65273 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65274
65275         Use a consistent style for including <config.h>.
65276         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65277         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65278         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65279         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65280         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65281         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65282         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65283         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65284         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65285         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65286         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65287         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65288         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65289         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65290         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65291         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65292         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65293         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65294         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65295         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65296         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65297         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65298         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65299         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65300         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65301         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65302         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65303         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65304         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65305         lib/xstrtoumax.c, lib/yesno.c:
65306         Standardize inclusion of config.h.
65307         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65308         lib/inttostr.h:  Removed inclusion of config.h from header files.
65309         * lib/inttostr.c:  Adjusted in-tree users.
65310         * lib/timespec.h: Remove superfluous warning to include config.h.
65311         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65312         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65313         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65314         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65315         config.h with HAVE_CONFIG_H.
65316
65317 2005-09-19  Jim Meyering  <jim@meyering.net>
65318
65319         * modules/pathmax (License): Change to LGPL.
65320
65321 2005-09-19  Derek Price  <derek@ximbiot.com>
65322
65323         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65324
65325 2005-09-19  Bruno Haible  <bruno@clisp.org>
65326
65327         * gnulib-tool (import): Provide default for --tests-base.
65328
65329 2005-09-19  Bruno Haible  <bruno@clisp.org>
65330
65331         * doc/quote.texi: New file, extracted from gnulib.texi.
65332         * doc/ctime.texi: New file, extracted from gnulib.texi.
65333         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65334         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65335         * doc/gnulib.texi: Include them.
65336
65337 2005-09-18  Bruno Haible  <bruno@clisp.org>
65338
65339         Portability fix.
65340         * gnulib-tool (func_readlink): New function.
65341         (func_ln_if_changed): Use it.
65342
65343 2005-09-18  Bruno Haible  <bruno@clisp.org>
65344
65345         * gnulib-tool: Support --with-tests also with --import.
65346         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65347         (func_import): Use variables $testsbase and $inctests. Emit a
65348         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65349         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65350         SUBDIRS += $testsdir.
65351         (func_create_testdir): Update.
65352
65353 2005-09-18  Bruno Haible  <bruno@clisp.org>
65354
65355         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65356         instead of $dry_run.
65357         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65358         (func_ln_if_changed): Don't handle dry-run here.
65359         (func_import): In dry-run mode, detect more precisely which actions
65360         would be performed, and don't use "...ing" verbs.
65361
65362 2005-09-18  Bruno Haible  <bruno@clisp.org>
65363
65364         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65365         (func_import): Use join on two temporary files instead of three nested
65366         loops, in order to determine which files are new or old.
65367
65368 2005-09-18  Bruno Haible  <bruno@clisp.org>
65369
65370         * gnulib-tool (func_import): Comment out code that spits out the
65371         new files with --dry-run.
65372
65373 2005-09-18  Bruno Haible  <bruno@clisp.org>
65374
65375         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65376
65377 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         * lib/stat-time.h: New file.
65380         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65381         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65382         in a different way.
65383         (timespec_cmp): New function.
65384         * lib/utimecmp.c: Include stat-time.h.
65385         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65386         members exist, not on the obsolescent ST_MTIM_NSEC.
65387         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65388
65389 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65390
65391         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65392
65393 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         * MODULES.html.sh (File system functions): Add stat-time.
65396         * modules/stat-time: New file.
65397         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65398         is now done in a different way, by the stat-time module.
65399         * modules/utimecmp (Depends-on): Add stat-time.
65400
65401 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65402
65403         * m4/st_mtim.m4: Remove.  Superseded by...
65404         * m4/stat-time.m4: New file.
65405         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65406         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65407
65408 2005-09-15  Derek Price  <derek@ximbiot.com>
65409
65410         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65411
65412 2005-09-15  Derek Price  <derek@ximbiot.com>
65413
65414         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65415         * lib/regex_internal.c: Ditto, using this...
65416         (__GNUC_PREREQ): ...new macro.
65417         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65418         using...
65419         (__GNUC_PREREQ): ...this new macro.
65420
65421         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65422
65423 2005-09-15  Derek Price  <derek@ximbiot.com>
65424             Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65427         changes, consolidating in...
65428         * lib/regex_internal.h: ...this file.
65429
65430 2005-09-13  Jim Meyering  <jim@meyering.net>
65431
65432         * lib/canon-host.c: Filter through gnu indent and reword comments
65433         slightly.
65434         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65435
65436 2005-09-13  Derek Price  <derek@ximbiot.com>
65437
65438         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65439         failure.
65440         Reported by Jim Meyering  <jim@meyering.net>.
65441
65442 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65443
65444         * lib/base64.c: Typo.
65445         (base64_encode): Put b64str in initialized data section.
65446
65447 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65448
65449         Merge glibc and coreutils changes into gnulib, plus a few
65450         extra fixes.
65451         * lib/md5.c: Use #error rather than a string.
65452         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65453         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65454         (__attribute__): Define to empty for non recent-GCC.
65455         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65456         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65457         Renamed from their non-__ counterparts, with new macros replacing
65458         them if not _LIBC.  Add __THROW attribute.
65459         (rol): Remove.
65460         (struct md5_ctx): Align buffer if using GCC.
65461         * lib/sha1.h (struct sha1_ctx): Likewise.
65462         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65463         The old name was backwards.
65464         (NOTSWAP): Remove; not used.
65465         (rol): New macro, moved here from md5.h.
65466         (sha1_process_block): Remove a FIXME that doesn't make sense.
65467
65468 2005-09-12  Derek Price  <derek@ximbiot.com>
65469
65470         Return usable errors from canon-host.
65471         * lib/canon-host.h: New file.
65472         * lib/canon-host.c (canon_host): Wrap...
65473         (canon_host_r): ...this new function, which now relies exclusively on
65474         getaddrinfo.
65475         (ch_strerror): New function.
65476         (last_cherror): New global.
65477         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65478         interface.
65479         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65480         void *.
65481         (freeaddrinfo): Free ai->ai_canonname when set.
65482
65483 2005-09-12  Derek Price  <derek@ximbiot.com>
65484
65485         Make canon-host require getaddrinfo.
65486         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65487         AC_LIBSOURCE canon-host.h.  Call...
65488         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65489         gl_GETADDRINFO.
65490         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65491
65492 2005-09-12  Derek Price  <derek@ximbiot.com>
65493
65494         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65495         LGPL.
65496         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65497
65498 2005-09-12  Derek Price  <derek@ximbiot.com>
65499
65500         * lib/gai_strerror.c: Include config.h when available.  Include
65501         getaddrinfo.h before other headers to test interface.
65502         Reported by Larry Jones <lawrence.jones@ugs.com>.
65503
65504 2005-09-12  Derek Price  <derek@ximbiot.com>
65505             Paul Eggert  <eggert@cs.ucla.edu>
65506
65507         * modules/glob (Files): Add glob-libc.h.
65508
65509 2005-09-12  Derek Price  <derek@ximbiot.com>
65510             Paul Eggert  <eggert@cs.ucla.edu>
65511
65512         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65513         glob_.h, glob-libc.h.
65514         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65515
65516 2005-09-12  Derek Price  <derek@ximbiot.com>
65517             Paul Eggert  <eggert@cs.ucla.edu>
65518
65519         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65520         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65521         protecting things that should be done only in gnulib contexts.
65522         * lib/glob_.h: New file, containing only the glob things needed for
65523         gnulib.
65524         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65525         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65526         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65527         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65528         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65529         and to respect the namespace rules better.
65530
65531 2005-09-08  Simon Josefsson  <jas@extundo.com>
65532
65533         * modules/socklen: New file.
65534
65535 2005-09-08  Simon Josefsson  <jas@extundo.com>
65536
65537         * m4/socklen.m4: New file.
65538
65539 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65540
65541         * modules/utimens (Files): Add m4/utimbuf.m4, since
65542         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65543         Reported by Sergey Poznyakoff.
65544
65545 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65548         definitions, since that's the preferred style in glibc.
65549         Fix a minor spacing issue, and update copyright notice to match
65550         glibc's.
65551
65552 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65555
65556 2005-09-06  Simon Josefsson  <jas@extundo.com>
65557
65558         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65559         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65560
65561 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65562
65563         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65564         warning.
65565
65566 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65567
65568         * config/srclist.txt: Add glibc bug 1302.
65569
65570 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65571
65572         Change bitset word type from unsigned int to unsigned long int,
65573         as this has better performance on typical 64-bit hosts.
65574         Port bitset code to hosts with unusual word sizes.
65575         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65576         (build_collating_symbol):
65577         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65578         argument is a bitset.  This is merely a style issue, but it makes
65579         it clearer that an entire array is expected.
65580         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65581         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65582         Port to the case where bitset_word is not the same as unsigned int.
65583         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65584         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65585         Likewise.
65586         * lib/regexec.c (check_dst_limits_calc_pos_1,
65587         check_subexp_matching_top):
65588         (build_trtable, group_nodes_into_DFAstates):
65589         Likewise.
65590         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65591         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65592         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65593         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65594         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65595         * lib/regcomp.c (optimize_subexps, lower_subexp):
65596         Work even if bitset_word has holes in its bitwise representation.
65597         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65598         * lib/regexec.c (check_dst_limits_calc_pos_1,
65599         check_subexp_matching_top):
65600         Likewise.
65601         * lib/regex_internal.c (re_string_reconstruct):
65602         Don't assume UCHAR_MAX == 255.
65603         * lib/regex_internal.h (bitset_set_all): Likewise.
65604         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65605         All uses changed.
65606         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65607         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65608         All uses changed.
65609         (BITSET_WORD_MAX): New macro.
65610         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65611         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65612         (bitset_empty, bitset_copy):
65613         Prefer sizeof (bitset) to multiplying it out ourselves.
65614         (bitset_not_merge): Remove; unused.
65615         (bitset_contain): Return bool, not unsigned int with one bit on.
65616         All callers changed.
65617         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65618         alignment than re_node_set; do this by defining a new internal
65619         type struct dests_alloc and using it to allocate memory.
65620
65621 2005-09-05  Bruno Haible  <bruno@clisp.org>
65622
65623         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65624         links.
65625
65626 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65627
65628         * modules/size_max (Makefile.am): Add size_max.h
65629
65630 2005-09-04  Derek Price  <derek@ximbiot.com>
65631
65632         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65633
65634 2005-09-03  Simon Josefsson  <jas@extundo.com>
65635
65636         * gnulib-tool: Fix typo.
65637
65638 2005-09-03  Simon Josefsson  <jas@extundo.com>
65639
65640         * config/srclist.txt: Add glibc bug 1293.
65641
65642 2005-09-03  Derek Price  <derek@ximbiot.com>
65643
65644         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65645         From Larry Jones <lawrence.jones@ugs.com>.
65646
65647 2005-09-02  Simon Josefsson  <jas@extundo.com>
65648
65649         * modules/socklen: New file.
65650
65651 2005-09-02  Simon Josefsson  <jas@extundo.com>
65652
65653         * modules/havelib: New module.
65654
65655         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65656         Use havelib.
65657
65658 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65659
65660         Check for arithmetic overflow when calculating sizes, to prevent
65661         some buffer-overflow issues.  These patches are conservative, in the
65662         sense that when I couldn't determine whether an overflow was possible,
65663         I inserted a run-time check.
65664         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65665         macros.
65666         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65667         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65668         (re_xnrealloc, re_x2nrealloc): New inline functions.
65669         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65670         parse_bracket_exp):
65671         (build_equiv_class, build_charclass): Check for arithmetic overflow
65672         in size expression calculations.
65673         * lib/regex_internal.c (re_string_realloc_buffers):
65674         (build_wcs_upper_buffer, re_node_set_add_intersect):
65675         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65676         (re_dfa_add_node, register_state): Likewise.
65677         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65678         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65679         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65680         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65681
65682 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65683
65684         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65685         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65686
65687 2005-09-02  Bruno Haible  <bruno@clisp.org>
65688
65689         Support for lib vs. lib64 distinction on biarch platforms.
65690         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65691         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65692         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65693
65694 2005-09-02  Bruno Haible  <bruno@clisp.org>
65695
65696         * gnulib-tool (import): In the other first-use case, provide defaults
65697         as well.
65698
65699 2005-09-02  Bruno Haible  <bruno@clisp.org>
65700
65701         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65702         patches not yet found in the latest gettext release.
65703
65704 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65705
65706         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65707         to avoid a collision with bits/local_lim.h in glibc.
65708         All uses changed.  Problem reported by Dmitry V. Levin in
65709         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65710
65711         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65712         bugs in int versus size_t comparisons.
65713         (re_string_context_at): Fix bug where the code assumed that
65714         Idx is signed.
65715
65716         Use bool where appropriate.
65717         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65718         All callers changed.
65719         (calc_eclosure_iter): Likewise, for ROOT arg.
65720         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65721         (build_charclass_op): Likewise, for NON_MATCH arg.
65722         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65723         (re_string_construct_common): Likewise, for ICASE arg.
65724         * lib/regexec.c (re_search_2_stub, re_search_stub):
65725         Likewise, for RET_LEN arg.
65726         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65727         (set_regs): Likewise, for FL_BACKTRACK arg.
65728         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65729         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65730         (calc_eclosure_iter, parse_bracket_exp):
65731         Use bool for internal variables that are booleans.
65732         * lib/regexec.c (re_search_internal, check_matching,
65733         proceed_next_node):
65734         (set_regs, build_sifted_states, sift_states_bkref):
65735         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65736         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65737         (find_collation_sequence_value):
65738         Likewise.
65739         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65740         (re_node_set_compare):
65741         Return bool, not int. All callers changed.
65742         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65743         (build_trtable, check_node_accept): Likewise.
65744         * lib/regex_internal.h: Include stdbool.h.
65745
65746         Fix bugs uncovered when converting to bool.
65747         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65748         failure instead of charging ahead blindly.
65749         * lib/regex_internal.c (register_state): Likewise.
65750         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65751         for freeing internal storage.
65752         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65753         bitset pieces used as boolean, to avoid undefined behavior
65754         on hosts that do int overflow checking.
65755
65756 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         * config/srclist.txt: Add glibc bugs 1285-1287.
65759
65760 2005-09-01  Jim Meyering  <jim@meyering.net>
65761
65762         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65763         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65764         Require gl_STAT_MACROS, too.
65765
65766 2005-09-01  Bruno Haible  <bruno@clisp.org>
65767
65768         * gnulib-tool (import): In the first-use case, provide defaults.
65769
65770 2005-09-01  Bruno Haible  <bruno@clisp.org>
65771
65772         * gnulib-tool (func_import): Remove the .tmp files.
65773
65774 2005-09-01  Bruno Haible  <bruno@clisp.org>
65775
65776         * gnulib-tool (func_import): Fix handling of symbolic links.
65777
65778 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65779
65780         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65781         old glibc regex code mishandles strings longer than 2**31 bytes.
65782         This patch fixes this when the regex code is used in gnulib
65783         (i.e., outside glibc).
65784
65785         This patch should not affect the use of the regex code inside
65786         glibc.  No doubt this problem also needs to be handled for glibc
65787         as well, but the result will be an incompatible change to the
65788         glibc ABI, and the old ABI will have to be supported too.  That
65789         can be the the subject for another patch.
65790
65791         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65792         governing whether the rest of this patch is active.  By default,
65793         the macro is disabled and the patch has no effect.
65794         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65795         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65796         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65797         (re_match_2, re_set_registers): Use the new types.
65798         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65799         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65800         New macros.
65801         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65802         (re_string_context_at, bin_tree_t, re_dfastate_t):
65803         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65804         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65805         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65806         (re_string_char_size_at, re_string_wchar_at):
65807         (re_string_elem_size_at):
65808         Use the new types and macros to port to 64-bit hosts.
65809         Use unsigned types for internal values, so that the code
65810         mostly works even for arrays larger than SSIZE_MAX.
65811         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65812         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65813         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65814         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65815         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65816         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65817         (calc_inveclosure, parse_dup_op, build_range_exp):
65818         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65819         (fetch_number, create_token_tree, mark_opt_subexp):
65820         Likewise.
65821         * lib/regex_internal.c (re_string_construct_common,
65822         create_ci_newstate):
65823         (create_cd_newstate, re_string_allocate, re_string_construct):
65824         (re_string_realloc_buffers, build_wcs_upper_buffer):
65825         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65826         (re_string_reconstruct, re_string_peek_byte_case):
65827         (re_string_fetch_byte_case, re_string_context_at):
65828         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65829         (re_node_set_init_copy, re_node_set_add_intersect):
65830         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65831         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65832         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65833         (re_acquire_state, re_acquire_state_context, register_state):
65834         Likewise.
65835         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65836         search_cur_bkref_entry):
65837         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65838         (re_search_internal, re_search_2_stub, re_search_stub)
65839         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65840         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65841         (update_cur_sifted_state, check_dst_limits):
65842         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65843         (check_subexp_limits, sift_states_bkref, merge_state_array):
65844         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65845         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65846         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65847         (expand_bkref_cache, check_node_accept_bytes):
65848         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65849         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65850         (acquire_init_state_context, check_halt_node_context):
65851         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65852         (sift_states_backward, clean_state_log_if_needed):
65853         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65854         (find_recover_state, transit_state_sb, transit_state_mb):
65855         (transit_state_bkref, build_trtable, match_ctx_clean):
65856         Likewise.
65857         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65858         to work around an assumption that REG_MISSING is negative.
65859
65860         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65861         (seek_collating_symbol_entry) [defined _LIBC]:
65862         (lookup_collation_sequence_value) [defined _LIBC]:
65863         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65864         Use prototypes rather than old-style function definitions.
65865         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65866         (transit_state_sb) [0]:
65867         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65868
65869         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65870         rm_eo.
65871
65872         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65873         (optimize_subexps, lower_subexp):
65874         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65875         since the signed shift might overflow.  Use 1u<<31 instead.
65876         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65877         Likewise.
65878         * lib/regexec.c (check_dst_limits_calc_pos_1,
65879         check_subexp_matching_top): Likewise.
65880
65881         * lib/regcomp.c (optimize_subexps, lower_subexp):
65882         Use CHAR_BIT rather than 8, for clarity.
65883         * lib/regexec.c (check_dst_limits_calc_pos_1):
65884         (check_subexp_matching_top): Likewise.
65885         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65886         have to worry about portability issues when shifting it left.
65887         Remove no-longer-needed test for table_size > 0.
65888         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65889         in a word, as the resulting behavior is undefined.
65890         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65891         in one case, a <= should have been an <, and in another case the
65892         whole test was missing.
65893         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65894         the standard name CHAR_BIT.
65895         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65896         this is not true on one's complement and signed-magnitude hosts.
65897
65898         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65899         next_last_offset.
65900         (struct re_dfa_t): Remove unused member states_alloc.
65901         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65902
65903 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65906         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65907         and large-file glibc and in 32-bit large-file Solaris.
65908
65909 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65912         lengths fit in regoff_t; this isn't true if regoff_t is the same
65913         width as size_t.
65914         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65915         (= START + RANGE) instead of RANGE.  This avoids overflow
65916         problems when regoff_t is the same width as size_t.
65917         All callers changed.
65918         (re_search_2_stub): Check for overflow when adding the
65919         sizes of the two strings.
65920         (re_search_stub): Check for overflow when adding START
65921         to RANGE; if it occurs, substitute the extreme value.
65922
65923 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65924
65925         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65926
65927 2005-08-31  Jim Meyering  <jim@meyering.net>
65928
65929         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65930         a pointer-to-const.
65931         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65932         (register_state): Likewise.
65933         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65934         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65935         (group_nodes_into_DFAstates): Likewise.
65936
65937 2005-08-31  Jim Meyering  <jim@meyering.net>
65938
65939         * check-module: Add a FIXME comment.
65940
65941 2005-08-31  Eric Blake  <ebb9@byu.net>
65942
65943         * modules/unistd-safer (Files): Add unistd--.h.
65944         * modules/stdio-safer (Files): Add stdio--.h.
65945
65946 2005-08-31  Derek Price  <derek@ximbiot.com>
65947
65948         * lib/getdelim.c (getdelim): Return EOF on EOF.
65949         Reported by Larry Jones <lawrence.jones@ugs.com>.
65950
65951 2005-08-31  Bruno Haible  <bruno@clisp.org>
65952
65953         Avoid unnecessary diffs in the generated lib/Makefile.am.
65954         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65955         the generated files.
65956         (func_import): Don't set cmd.
65957
65958 2005-08-31  Bruno Haible  <bruno@clisp.org>
65959
65960         * lib/strstr.c: Include <stddef.h>, for NULL.
65961         * lib/strcasestr.c: Likewise.
65962         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65963
65964 2005-08-31  Bruno Haible  <bruno@clisp.org>
65965
65966         * gnulib-tool: New option --macro-prefix.
65967         (func_import): Use macro_prefix.
65968         (import): Handle option --macro-prefix.
65969
65970 2005-08-31  Bruno Haible  <bruno@clisp.org>
65971
65972         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65973         Also use new variables cached_lgpl, cached_libtool.
65974
65975 2005-08-31  Bruno Haible  <bruno@clisp.org>
65976
65977         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65978         always instantiating them.
65979
65980 2005-08-31  Bruno Haible  <bruno@clisp.org>
65981
65982         * gnulib-tool (func_import): Read the previous cached settings
65983         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65984         earlier added by gnulib but are now dropped. Warn when a gnulib file
65985         overwrites a non-gnulib file.
65986
65987 2005-08-31  Bruno Haible  <bruno@clisp.org>
65988
65989         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65990         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65991         projects that don't keep autogenerated files in CVS. Put into
65992         actioncmd only the specified modules, not the transitive closure.
65993
65994 2005-08-31  Bruno Haible  <bruno@clisp.org>
65995
65996         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65997         Create directories that shall be filled.
65998         (import): Don't look for gl_* macros in configure.ac. Recurse across
65999         all directories containing a gnulib-cache.m4 files, if meaningful.
66000
66001 2005-08-31  Bruno Haible  <bruno@clisp.org>
66002
66003         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66004         (import): Set seen_libtool when we see gl_LIBTOOL.
66005
66006 2005-08-31  Bruno Haible  <bruno@clisp.org>
66007
66008         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66009         declaration macro definitions from generated gnulib.m4.
66010
66011 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66012
66013         * lib/iconvme.h: Add prototype for iconv_alloc.
66014
66015 2005-08-29  Simon Josefsson  <jas@extundo.com>
66016
66017         * lib/iconvme.c: Fix errno.
66018
66019 2005-08-29  Bruno Haible  <bruno@clisp.org>
66020
66021         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66022         that it works when the directory contains spaces.
66023
66024 2005-08-29  Bruno Haible  <bruno@clisp.org>
66025
66026         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66027
66028 2005-08-29  Bruno Haible  <bruno@clisp.org>
66029
66030         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66031         Emit more advice.
66032
66033 2005-08-29  Bruno Haible  <bruno@clisp.org>
66034         and Stepan Kasal  <kasal@ucw.cz>
66035
66036         * check-module: If more parameters are given, check each of them
66037         separately; add more exceptions, as noted by Jim Meyering.
66038         (check_module): New procedure.
66039         (%exempt_header): Now contains all exceptions.
66040
66041 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66042
66043         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66044
66045 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66046
66047         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66048
66049 2005-08-28  Bruno Haible  <bruno@clisp.org>
66050
66051         * m4/gnulib-tool.m4: New file.
66052
66053 2005-08-27  Jim Meyering  <jim@meyering.net>
66054
66055         * modules/unistd-safer (Files): Add pipe-safer.c.
66056         * modules/fcntl-safer (Files): Add creat-safer.c.
66057
66058 2005-08-27  Jim Meyering  <jim@meyering.net>
66059
66060         * m4/stdlib-safer.m4: New file.  From coreutils.
66061         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66062         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66063         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66064         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66065         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66066
66067 2005-08-27  Jim Meyering  <jim@meyering.net>
66068
66069         * lib/fopen-safer.c: Merge minor changes from coreutils.
66070         * lib/dup-safer.c: Likewise.
66071         * lib/fd-safer.c: Likewise.
66072
66073         Merge from coreutils.
66074         * lib/stdio--.h: New file.
66075         * lib/stdlib--.h: New file.
66076         * lib/mkstemp-safer.c: New file.
66077
66078         GNU tar needs these.
66079         * lib/pipe-safer.c: New file.
66080         * lib/creat-safer.c: New file.
66081         * lib/fcntl--.h (creat): Define to creat_safer.
66082         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66083         * lib/unistd--.h (pipe): Define to pipe_safer.
66084         * lib/unistd-safer.h: Declare pipe_safer.
66085
66086 2005-08-26  Simon Josefsson  <jas@extundo.com>
66087
66088         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66089         Haible <bruno@clisp.org>.
66090
66091 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66092
66093         * lib/regex_internal.h: Remove all references to
66094         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66095         or better.
66096         (bitset_not, bitset_merge, bitset_not_merge):
66097         (bitset_mask, re_string_allocate, re_string_construct):
66098         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66099         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66100         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66101         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66102         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66103         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66104         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66105         (re_acquire_state_context):
66106         Remove unnecessary forward decls.
66107         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66108         Put __attribute at function definition,
66109         now that the function decl has been removed.
66110         * lib/regex_internal.c (re_string_peek_byte_case):
66111         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66112         Likewise.
66113
66114 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66115
66116         * m4/regex.m4: Add AC_PREREQ(2.50).
66117         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66118
66119 2005-08-25  Simon Josefsson  <jas@extundo.com>
66120
66121         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66122         __fsetlocking.
66123
66124 2005-08-25  Simon Josefsson  <jas@extundo.com>
66125
66126         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66127         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66128         GLIBC specific code.
66129
66130 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66131
66132         Make regex safe for g++.  This fixes one real bug (an "err"
66133         that should have been "*err").  g++ problem reported by
66134         Sam Steingold.
66135         * lib/regex_internal.h (re_calloc): New macro, consistent with
66136         re_malloc etc.  All callers of calloc changed to use re_calloc.
66137         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66138         not int.  All callers changed.
66139         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66140         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66141         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66142         (find_recover_state): Change "err" to "*err"; this fixes what
66143         appears to be a real bug.
66144         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66145         versus int.
66146
66147 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66148
66149         * modules/regex (Depends-on): Add malloc, since the code
66150         assumes that !malloc(0) means failure.
66151
66152 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66153
66154         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66155
66156         alloca modernization/simplification for regex.
66157         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66158         needs to be at the start of the file, and can be moved into
66159         regex_internal.h and simplified.
66160         * lib/regex_internal.h: Include <alloca.h>.
66161         (__libc_use_alloca) [!defined _LIBC]: New macro.
66162         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66163         now works outside glibc.
66164
66165 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66166
66167         * config/srclist.txt: Add glibc bugs 1241, 1245.
66168
66169 2005-08-25  Jim Meyering  <jim@meyering.net>
66170
66171         * lib/open-safer.c: Include <config.h>.
66172         Otherwise, we'd lose LARGEFILE support in any file using
66173         e.g. "fcntl--.h"
66174
66175 2005-08-25  Bruno Haible  <bruno@clisp.org>
66176
66177         * m4/minmax.m4: Require autoconf 2.52.
66178         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66179         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66180         alternatives of translit over the alphabet.
66181         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66182
66183 2005-08-24  Simon Josefsson  <jas@extundo.com>
66184
66185         * tests/test-getpass.c: New file.
66186
66187 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66188
66189         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66190         for GNU regex features.
66191
66192 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66193
66194         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66195         * lib/regex.h (regerror): Likewise.
66196
66197         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66198         requires this.  (The code never needed it.)
66199
66200         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66201         All uses of recently-renamed identifiers changed to use the new,
66202         POSIX-compliant names.  The code will build and run just fine
66203         without these changes, but it's better to eat our own dog food
66204         and use the standard-conforming names.
66205
66206         * lib/regex.h: Fix a multitude of POSIX name space violations.
66207         These changes have an effect only for programs that define
66208         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66209         do not change anything for programs compiled in the normal way.
66210         Also, there is no effect on the ABI.
66211
66212         (_REGEX_SOURCE): New macro.
66213         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66214         defined and _GNU_SOURCE is not; this fixes a name space violation.
66215
66216         Rename the following macros to obey POSIX requirements.
66217         The old names are still visible as macros if _REGEX_SOURCE is defined.
66218         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66219         RE_BACKSLASH_ESCAPE_IN_LISTS.
66220         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66221         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66222         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66223         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66224         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66225         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66226         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66227         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66228         (REG_INTERVALS): renamed from RE_INTERVALS.
66229         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66230         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66231         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66232         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66233         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66234         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66235         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66236         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66237         RE_UNMATCHED_RIGHT_PAREN_ORD.
66238         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66239         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66240         (REG_DEBUG): renamed from RE_DEBUG.
66241         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66242         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66243         unusual, since we can't clash with the POSIX REG_ICASE.
66244         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66245         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66246         (REG_NO_SUB): renamed from RE_NO_SUB.
66247         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66248         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66249         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66250         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66251         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66252         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66253         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66254         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66255         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66256         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66257         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66258         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66259         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66260         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66261         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66262         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66263         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66264         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66265         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66266         (REG_FIXED): Renamed from REGS_FIXED.
66267         (REG_NREGS): Renamed from RE_NREGS.
66268
66269         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66270         of other REG_* macros, since POSIX says the user is allowed to
66271         #undef these macros selectively.
66272
66273         (reg_errcode_t): Update comment stating what other tables need
66274         to be consistent.
66275
66276         Rename the following enum values to obey POSIX requirements.
66277         The old names are still visible as macros.
66278         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66279         is not defined, since GNU is supposed to be a superset of POSIX as
66280         much as possible, and since we want reg_errcode_t to be a signed
66281         type for implementation consistency.
66282         (_REG_NOERROR): Renamed from REG_NOERROR.
66283         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66284         (_REG_BADPAT): Renamed from REG_BADPAT.
66285         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66286         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66287         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66288         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66289         (_REG_EBRACK): Renamed from REG_EBRACK.
66290         (_REG_EPAREN): Renamed from REG_EPAREN.
66291         (_REG_EBRACE): Renamed from REG_EBRACE.
66292         (_REG_BADBR): Renamed from REG_BADBR.
66293         (_REG_ERANGE): Renamed from REG_ERANGE.
66294         (_REG_ESPACE): Renamed from REG_ESPACE.
66295         (_REG_BADRPT): Renamed from REG_BADRPT.
66296         (_REG_EEND): Renamed from REG_EEND.
66297         (_REG_ESIZE): Renamed from REG_ESIZE.
66298         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66299         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66300         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66301         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66302         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66303
66304         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66305         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66306         changed.  But support the old name if the new one is not defined
66307         and if _REGEX_SOURCE.
66308
66309         Change the following member names in struct re_pattern_buffer.
66310         The old names are still supported if !_REGEX_SOURCE.
66311         The new names are always supported, regardless of _REGEX_SOURCE.
66312         (re_buffer): Renamed from buffer.
66313         (re_allocated): Renamed from allocated.
66314         (re_used): Renamed from used.
66315         (re_syntax): Renamed from syntax.
66316         (re_fastmap): Renamed from fastmap.
66317         (re_translate): Renamed from translate.
66318         (re_can_be_null): Renamed from can_be_null.
66319         (re_regs_allocated): Renamed from regs_allocated.
66320         (re_fastmap_accurate): Renamed from fastmap_accurate.
66321         (re_no_sub): Renamed from no_sub.
66322         (re_not_bol): Renamed from not_bol.
66323         (re_not_eol): Renamed from not_eol.
66324         (re_newline_anchor): Renamed from newline_anchor.
66325
66326         Change the following member names in struct re_registers.
66327         The old names are still supported if !_REGEX_SOURCE.
66328         The new names are always supported, regardless of _REGEX_SOURCE.
66329         (rm_num_regs): Renamed from num_regs.
66330         (rm_start): Renamed from start.
66331         (rm_end): Renamed from end.
66332
66333         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66334         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66335         Prepend __ to parameter names.
66336
66337         Undo yesterday's changes.
66338
66339 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66340
66341         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66342         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66343         lib/regex.c.
66344
66345 2005-08-24  Jim Meyering  <jim@meyering.net>
66346
66347         Sync from coreutils.
66348         * m4/fcntl-safer.m4: New file.
66349
66350         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66351         and object files for this module.
66352
66353 2005-08-24  Jim Meyering  <jim@meyering.net>
66354
66355         Sync from coreutils.
66356         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66357
66358 2005-08-24  Jim Meyering  <jim@meyering.net>
66359
66360         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66361         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66362
66363 2005-08-24  Jim Meyering  <jim@meyering.net>
66364
66365         * modules/fcntl-safer: New module.
66366         * modules/fts (Depends-on): Add fcntl-safer.
66367         * MODULES.html.sh (File descriptor based Input/Output):
66368         Add fcntl-safer.
66369
66370 2005-08-24  Bruno Haible  <bruno@clisp.org>
66371
66372         Support for unit test modules.
66373         * modules/README: Mention tests modules.
66374         * modules/TEMPLATE-TESTS: New file.
66375         * gnulib-tool: New options --extract-tests-module, --with-tests and
66376         --tests-base (unused for the moment).
66377         (testsbase, inctests): New variables.
66378         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66379         (func_verify_module): Exclude TEMPLATE-TESTS.
66380         (func_verify_nontests_module, func_verify_tests_module): New functions.
66381         (func_get_dependencies): Add implicit dependency for tests modules.
66382         (func_get_tests_module): New function.
66383         (func_modules_transitive_closure): When --with-tests was specified,
66384         include the unit tests as well, unless explicitly avoided.
66385         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66386         (func_emit_tests_Makefile_am): New function.
66387         (func_create_testdir): When --with-tests was specified, emit a
66388         tests/ directory.
66389         * MODULES.html.sh (Future developments): Update.
66390
66391 2005-08-24  Bruno Haible  <bruno@clisp.org>
66392
66393         * modules/tls-tests: New file.
66394         * tests/test-tls.c: New file, from GNU gettext.
66395
66396 2005-08-24  Bruno Haible  <bruno@clisp.org>
66397
66398         * modules/lock-tests: New file.
66399         * tests/test-lock.c: New file, from GNU gettext.
66400
66401 2005-08-24  Bruno Haible  <bruno@clisp.org>
66402
66403         * lib/lock.h: Add multiple inclusion guard.
66404         * lib/tls.h: Add multiple inclusion guard.
66405
66406 2005-08-24  Bruno Haible  <bruno@clisp.org>
66407
66408         * gnulib-tool: Add support for the --aux-dir option to
66409         --create-testdir, --create-megatestdir, --test, --megatest.
66410         (func_create_testdir, func_create_megatestdir): Optionally emit a
66411         AC_CONFIG_AUX_DIR directive.
66412         (create-testdir, create-megatestdir, test, megatest): Provide a
66413         default value for $auxdir.
66414
66415 2005-08-24  Bruno Haible  <bruno@clisp.org>
66416
66417         * gnulib-tool (import): Use compound statement instead of subshell
66418         where possible.
66419
66420 2005-08-24  Bruno Haible  <bruno@clisp.org>
66421
66422         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66423
66424 2005-08-24  Bruno Haible  <bruno@clisp.org>
66425
66426         * gnulib-tool (func_version): Update.
66427
66428 2005-08-24  Bruno Haible  <bruno@clisp.org>
66429
66430         * gnulib-tool (func_import, func_create_testdir,
66431         func_create_megatestdir): Quote all autoconf macro arguments.
66432
66433 2005-08-24  Bruno Haible  <bruno@clisp.org>
66434
66435         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66436         option --force, because --force causes the aclocal.m4 of each
66437         subdirectory to be newer than the corresponding config.h.in.
66438
66439 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66440
66441         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66442         All contents moved to gl_REGEX.
66443         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66444         assume that it does.
66445
66446 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66447
66448         * lib/regex.h (REG_NOSYS)
66449         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66450         Define, since POSIX requires it as of 2001.
66451         (_REG_ENOSYS)
66452         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66453         New private symbol, used to keep the enum signed in all cases.
66454         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66455         Youngman in
66456         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66457
66458         * lib/regex_internal.c (re_string_skip_chars, register_state):
66459         (calc_state_hash):
66460         Remove forward decls; no longer needed now that we use prototypes.
66461         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66462         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66463         (clean_state_log_if_needed): Likewise.
66464
66465 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66466
66467         * config/srclist.txt: Add glibc bugs 1231-1233.
66468
66469 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66470
66471         Fix problems reported by Sam Steingold in
66472         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66473         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66474         assumed that reg_errcode_t is a signed type, which is not
66475         necessarily true if _XOPEN_SOURCE is not defined.
66476         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66477         since some compilers warn about it otherwise.
66478
66479 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66480
66481         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66482         (init_word_char, create_initial_state, duplicate_node_closure):
66483         (fetch_token, peek_token_bracket, build_range_exp):
66484         (build_collating_symbol): Remove forward decls; no longer needed
66485         now that we use prototypes.
66486
66487         * lib/regcomp.c:
66488         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66489         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66490         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66491         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66492         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66493         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66494         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66495         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66496         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66497         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66498         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66499         (build_charclass, build_charclass_op, fetch_number, create_tree):
66500         (create_token_tree, mark_opt_subexp, duplicate_tree):
66501         Use prototypes rather than old-style definitions.
66502
66503         * lib/regex_internal.c:
66504         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66505         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66506         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66507         (re_string_reconstruct, re_string_peek_byte_case):
66508         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66509         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66510         (re_node_set_init_copy, re_node_set_add_intersect):
66511         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66512         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66513         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66514         (re_acquire_state, re_acquire_state_context, register_state):
66515         (create_ci_newstate, create_cd_newstate, free_state):
66516         Likewise.
66517         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66518         re_search_2):
66519         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66520         (re_search_internal, prune_impossible_nodes):
66521         (acquire_init_state_context, check_matching, static):
66522         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66523         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66524         (update_regs, sift_states_backward, build_sifted_states):
66525         (clean_state_log_if_needed, merge_state_array):
66526         (update_cur_sifted_state, add_epsilon_src_nodes):
66527         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66528         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66529         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66530         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66531         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66532         (check_arrival, check_arrival_add_next_nodes):
66533         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66534         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66535         (check_node_accept_bytes, check_node_accept, extend_buffers):
66536         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66537         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66538         (sift_ctx_init):
66539         Likewise.
66540
66541         * lib/regex_internal.h:
66542         (re_string_allocate, re_string_construct, re_string_reconstruct):
66543         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66544         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66545         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66546         (re_string_context_at, re_string_peek_byte_case):
66547         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66548         is defined, since we now use prototypes always.
66549
66550         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66551         C89 or better.  All uses removed.
66552
66553 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * config/srclist.txt: Add glibc bugs 1220-1227.
66556
66557 2005-08-20  Jim Meyering  <jim@meyering.net>
66558
66559         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66560         of unused local, dfa.
66561
66562 2005-08-20  Bruno Haible  <bruno@clisp.org>
66563
66564         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66565
66566 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66567
66568         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66569         (re_node_set_insert_last, re_dfa_add_node):
66570         Rename local variables to avoid GCC shadowing warnings.
66571
66572 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66575         [defined lint]: Suppress bogus uninitialized-variable warnings.
66576
66577         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66578         and let the caller return REG_ESPACE if out of space.  This
66579         removes an uninitialied-variable warning with GCC 4.0.1, and also
66580         avoids taking the address of a local variable.  All callers
66581         changed.
66582
66583 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66586         $LIBCSRC/posix/regexec.c.
66587         Add glibc bug 1217 for regcomp.c.
66588
66589 2005-08-19  Jim Meyering  <jim@meyering.net>
66590
66591         * lib/regexec.c (proceed_next_node): Redo local variables to
66592         avoid GCC shadowing warnings.
66593
66594 2005-08-18  Bruno Haible  <bruno@clisp.org>
66595
66596         * lib/strstr.c (strstr): Fix return value in multibyte case.
66597         * lib/strcasestr.c (strcasestr): Likewise.
66598
66599 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66600
66601         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66602
66603 2005-08-17  Jim Meyering  <jim@meyering.net>
66604
66605         Make the %s format (seconds since the epoch) work for a negative
66606         number and when used with a zero-padded field width, e.g. %015s.
66607
66608         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66609         label so that it precedes the code to set `digits'.  Otherwise,
66610         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66611         print `00-22'.  Now, it prints `-0022', as it should.
66612
66613 2005-08-17  Bruno Haible  <bruno@clisp.org>
66614
66615         * modules/strstr (Files): Add m4/mbrtowc.m4.
66616         (Depends-on): Add mbuiter.
66617
66618 2005-08-17  Bruno Haible  <bruno@clisp.org>
66619
66620         * modules/strcasestr: New file.
66621         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66622         strcasestr.
66623
66624 2005-08-17  Bruno Haible  <bruno@clisp.org>
66625
66626         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66627
66628 2005-08-17  Bruno Haible  <bruno@clisp.org>
66629
66630         * modules/mbuiter: New file.
66631         * MODULES.html.sh (Extended multibyte and wide character utilities):
66632         Add mbuiter.
66633
66634 2005-08-17  Bruno Haible  <bruno@clisp.org>
66635
66636         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66637         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66638
66639 2005-08-17  Bruno Haible  <bruno@clisp.org>
66640
66641         * m4/strcasestr.m4: New file.
66642
66643 2005-08-17  Bruno Haible  <bruno@clisp.org>
66644
66645         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66646         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66647
66648 2005-08-17  Bruno Haible  <bruno@clisp.org>
66649
66650         * lib/strcasestr.h: New file.
66651         * lib/strcasestr.c: New file.
66652
66653 2005-08-17  Bruno Haible  <bruno@clisp.org>
66654
66655         * lib/strcasecmp.c: Use mbuiter.h.
66656
66657 2005-08-17  Bruno Haible  <bruno@clisp.org>
66658
66659         * lib/mbuiter.h: New file.
66660
66661 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66662
66663         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66664         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66665         and gl_GETOPT are both invoked via different paths (as happens
66666         with GNU tar CVS because it uses both argp and getopt), the former
66667         wins.
66668
66669 2005-08-16  Bruno Haible  <bruno@clisp.org>
66670
66671         * modules/tls: New file.
66672         * MODULES.html.sh (Multithreading): Add tls.
66673
66674 2005-08-16  Bruno Haible  <bruno@clisp.org>
66675
66676         * modules/strnlen1: New file.
66677         * MODULES.html.sh (String handling): Add strnlen1.
66678
66679 2005-08-16  Bruno Haible  <bruno@clisp.org>
66680
66681         * modules/strcase (Files): Add m4/mbrtowc.m4.
66682         (Depends-on): Add strnlen1, mbchar.
66683
66684 2005-08-16  Bruno Haible  <bruno@clisp.org>
66685
66686         * modules/mbiter: New file.
66687         * MODULES.html.sh (Extended multibyte and wide character utilities):
66688         Add mbiter.
66689
66690 2005-08-16  Bruno Haible  <bruno@clisp.org>
66691
66692         * modules/mbfile: New file.
66693         * MODULES.html.sh (Extended multibyte and wide character utilities):
66694         Add mbfile.
66695
66696 2005-08-16  Bruno Haible  <bruno@clisp.org>
66697
66698         * modules/mbchar: New file.
66699         * MODULES.html.sh (Extended multibyte and wide character utilities):
66700         New section.
66701
66702 2005-08-16  Bruno Haible  <bruno@clisp.org>
66703
66704         * m4/tls.m4: New file, from GNU gettext.
66705
66706 2005-08-16  Bruno Haible  <bruno@clisp.org>
66707
66708         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66709         always.
66710         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66711
66712 2005-08-16  Bruno Haible  <bruno@clisp.org>
66713
66714         * m4/mbiter.m4: New file.
66715
66716 2005-08-16  Bruno Haible  <bruno@clisp.org>
66717
66718         * m4/mbfile.m4: New file.
66719
66720 2005-08-16  Bruno Haible  <bruno@clisp.org>
66721
66722         * m4/mbchar.m4: New file.
66723
66724 2005-08-16  Bruno Haible  <bruno@clisp.org>
66725
66726         * lib/tls.h: New file, from GNU gettext.
66727         * lib/tls.c: New file, from GNU gettext.
66728
66729 2005-08-16  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/strnlen1.h: New file.
66732         * lib/strnlen1.c: New file.
66733
66734 2005-08-16  Bruno Haible  <bruno@clisp.org>
66735
66736         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66737         (mbi_init): Update.
66738         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66739         NUL byte, not after it.
66740
66741 2005-08-16  Bruno Haible  <bruno@clisp.org>
66742
66743         * lib/strcase.h (strcasecmp): Add note in comments.
66744         * lib/strncasecmp.c: Use code from strcasecmp.c.
66745         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66746         (strcasecmp): Work correctly in multibyte locales.
66747
66748 2005-08-16  Bruno Haible  <bruno@clisp.org>
66749
66750         * lib/mbiter.h: New file.
66751
66752 2005-08-16  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/mbfile.h: New file.
66755
66756 2005-08-16  Bruno Haible  <bruno@clisp.org>
66757
66758         * lib/mbchar.h: New file.
66759         * lib/mbchar.c: New file.
66760
66761 2005-08-16  Bruno Haible  <bruno@clisp.org>
66762
66763         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66764         the valid ones. Makes the comparison operations transitive:
66765         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66766         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66767
66768 2005-08-15  Simon Josefsson  <jas@extundo.com>
66769
66770         * modules/ssize_t (License): Change to 'unlimited'.
66771
66772         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66773
66774 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66775
66776         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66777         Add comments for each pending glibc patch.
66778
66779 2005-08-15  Bruno Haible  <bruno@clisp.org>
66780
66781         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66782         __cplusplus is defined.
66783
66784 2005-08-14  Jim Meyering  <jim@meyering.net>
66785
66786         Sync from coreutils.
66787
66788         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66789         Use the hash-table-based cycle-detection code not just when
66790         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66791         Reported by James Youngman in
66792         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66793         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66794         FTS_TIGHT_CYCLE_CHECK.
66795         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66796         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66797         once again.
66798         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66799         * lib/fts.c (fd_safer): Remove decl.
66800         Include fcntl--.h rather than unistd-safer.h
66801         (fts_safe_changedir): Don't call fd_safer; no longer needed
66802         now that we include fcntl--.h.
66803
66804 2005-08-12  Simon Josefsson  <jas@extundo.com>
66805
66806         * modules/getndelim2: Use ssize_t module.
66807         * modules/getnline: Likewise.
66808         * modules/safe-read: Likewise.
66809         * modules/xreadlink: Likewise.
66810
66811         * modules/ssize_t: New file.
66812
66813 2005-08-12  Simon Josefsson  <jas@extundo.com>
66814
66815         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66816
66817 2005-08-12  Simon Josefsson  <jas@extundo.com>
66818
66819         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66820         ssize_t.
66821
66822 2005-08-12  Simon Josefsson  <jas@extundo.com>
66823
66824         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66825         readline, getdelim and check_version.
66826         (Support for systems lacking ISO C 99: Sizes of integer types):
66827         Add size_max.
66828
66829 2005-08-12  Bruno Haible  <bruno@clisp.org>
66830
66831         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66832
66833 2005-08-11  Simon Josefsson  <jas@extundo.com>
66834
66835         * modules/readline: New file.
66836
66837         * modules/strnlen (Files): Add strnlen.h.
66838
66839 2005-08-11  Simon Josefsson  <jas@extundo.com>
66840
66841         * m4/readline.m4: New file.
66842
66843 2005-08-11  Simon Josefsson  <jas@extundo.com>
66844
66845         * lib/readline.h, readline.c: New file.
66846
66847 2005-08-11  Simon Josefsson  <jas@extundo.com>
66848
66849         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66850         gl_AVOID.
66851
66852 2005-08-11  Bruno Haible  <bruno@clisp.org>
66853
66854         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66855
66856 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66857
66858         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66859
66860 2005-08-10  Simon Josefsson  <jas@extundo.com>
66861
66862         * tests/test-iconvme.c: New file.
66863
66864 2005-08-10  Simon Josefsson  <jas@extundo.com>
66865
66866         * m4/strnlen.m4: New file.
66867
66868         * m4/strndup.m4: Don't check for strnlen declaration, done in
66869         strnlen.m4.
66870
66871 2005-08-10  Simon Josefsson  <jas@extundo.com>
66872
66873         * lib/strndup.c: Use strnlen.h.
66874
66875         * lib/strnlen.h: New file.
66876
66877 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66878
66879         * README: Typos.
66880
66881 2005-08-02  Simon Josefsson  <jas@extundo.com>
66882
66883         * modules/readline: New file.
66884
66885 2005-08-02  Simon Josefsson  <jas@extundo.com>
66886
66887         * modules/getdelim: New file.
66888
66889         * modules/getline: Rewrite, don't use getndelim2.
66890
66891 2005-08-02  Simon Josefsson  <jas@extundo.com>
66892
66893         * m4/getline.m4: Separate out getdelim stuff into separate module.
66894
66895         * m4/getdelim.m4: New file.
66896
66897 2005-08-02  Simon Josefsson  <jas@extundo.com>
66898
66899         * lib/getline.h, getline.c: Rewrite.
66900
66901         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66902
66903 2005-07-31  Bruno Haible  <bruno@clisp.org>
66904
66905         * lib/lock.h (gl_lock_initializer): New macro.
66906         (gl_lock_define_initialized): Use it.
66907         (gl_rwlock_initializer): New macro.
66908         (gl_rwlock_define_initialized): Use it.
66909         (gl_recursive_lock_initializer): New macro.
66910         (gl_recursive_lock_define_initialized): Use it.
66911
66912 2005-07-30  Karl Berry  <karl@gnu.org>
66913
66914         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66915         Report from Ben Pfaff, regarding getopt.
66916
66917 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66918
66919         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66920         normal way.
66921         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66922         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66923         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66924         (gl_GETOPT): Use the new macros.  Most of the implementation
66925         is moved to the new macros.  This is for programs like Emacs
66926         that don't want all the functionality of gl_GETOPT.
66927
66928 2005-07-26  Bruno Haible  <bruno@clisp.org>
66929
66930         * m4/lock.m4: Update from GNU gettext.
66931
66932 2005-07-26  Bruno Haible  <bruno@clisp.org>
66933
66934         * lib/lock.h: Update from GNU gettext.
66935         * lib/lock.c: Update from GNU gettext.
66936
66937 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66938
66939         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66940         obsolescent AC_TRY_RUN.  Include the default includes files, for
66941         'exit'.
66942
66943 2005-07-24  Bruno Haible  <bruno@clisp.org>
66944
66945         * modules/visibility: New file.
66946         * MODULES.html.sh (Misc): Add visibility.
66947
66948 2005-07-24  Bruno Haible  <bruno@clisp.org>
66949
66950         * m4/visibility.m4: New file.
66951
66952 2005-07-24  Bruno Haible  <bruno@clisp.org>
66953
66954         * doc/visibility.texi: New file.
66955
66956 2005-07-22  Bruno Haible  <bruno@clisp.org>
66957
66958         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66959         $(ALLOCA_H), redundant through BUILT_SOURCES.
66960         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66961         redundant through BUILT_SOURCES.
66962         * modules/byteswap (Makefile.am): Remove explicit dependency on
66963         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66964         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66965         $(FNMATCH_H), redundant through BUILT_SOURCES.
66966         * modules/getopt (Makefile.am): Remove explicit dependency on
66967         $(GETOPT_H), redundant through BUILT_SOURCES.
66968         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66969         redundant through BUILT_SOURCES.
66970         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66971         redundant through BUILT_SOURCES.
66972         * modules/stdbool (Makefile.am): Remove explicit dependency on
66973         $(STDBOOL_H), redundant through BUILT_SOURCES.
66974         * modules/stdint (Makefile.am): Remove explicit dependency on
66975         $(STDINT_H), redundant through BUILT_SOURCES.
66976         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66977         Remove explicit dependency on $(SYSEXITS_H).
66978         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66979
66980 2005-07-18  Simon Josefsson  <jas@extundo.com>
66981
66982         * lib/check-version.c (check_version): Accept identical versions too.
66983
66984 2005-07-18  Bruno Haible  <bruno@clisp.org>
66985
66986         * modules/lock: New file.
66987         * MODULES.html.sh (Multithreading): New section.
66988
66989 2005-07-18  Bruno Haible  <bruno@clisp.org>
66990
66991         * m4/lock.m4: New file, from GNU gettext.
66992
66993 2005-07-18  Bruno Haible  <bruno@clisp.org>
66994
66995         * lib/lock.h: New file, from GNU gettext.
66996         * lib/lock.c: New file, from GNU gettext.
66997
66998 2005-07-18  Bruno Haible  <bruno@clisp.org>
66999
67000         * lib/lock.h (gl_once_t): New type.
67001         (gl_once_define, gl_once): New macros.
67002         * lib/lock.c (fresh_once): New variable.
67003         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67004         functions.
67005
67006 2005-07-16  Simon Josefsson  <jas@extundo.com>
67007
67008         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67009         workaround, suggested by Bruno.
67010
67011 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * modules/xalloc (Depends-on): Add xalloc-die.
67014         * modules/xvasprintf (Depends-on): Add xalloc-die.
67015
67016 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67017
67018         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67019         with a minor change.
67020
67021 2005-07-15  Bruno Haible  <bruno@clisp.org>
67022
67023         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67024         When using lib/poll.c, define poll as rpl_poll.
67025
67026 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67027
67028         * modules/argp (Depends-on): Remove unlocked-io.
67029
67030 2005-07-14  Derek Price  <derek@ximbiot.com>
67031
67032         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67033         for glob symlink bug.
67034
67035 2005-07-14  Bruno Haible  <bruno@clisp.org>
67036
67037         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67038         Instead, test for *_unlocked function declarations directly.
67039
67040 2005-07-11  Simon Josefsson  <jas@extundo.com>
67041
67042         * modules/size_max: New file.
67043
67044         * modules/xsize: Depend on size_max module for size_max.m4.
67045
67046 2005-07-11  Simon Josefsson  <jas@extundo.com>
67047
67048         * lib/size_max.h: New file.
67049
67050 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67051
67052         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67053         copyright symbol and the year.
67054         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67055         (version_etc_va): Use parameterized copyright notice.
67056         Reword to conform to the current GNU coding standards.
67057
67058 2005-07-11  Karl Berry  <karl@gnu.org>
67059
67060         * doc/gnulib.texi (Quoting): new node.
67061         (Initial import): more info, from Patrice.
67062
67063 2005-07-11  Bruno Haible  <bruno@clisp.org>
67064
67065         * gnulib-tool (func_usage): Document option --avoid.
67066         (Command line options): Handle --avoid.
67067         (func_acceptable): New function.
67068         (func_modules_transitive_closure): Use it.
67069
67070 2005-07-11  Bruno Haible  <bruno@clisp.org>
67071
67072         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67073         Reported by Jim Meyering.
67074
67075 2005-07-10  Bruno Haible  <bruno@clisp.org>
67076
67077         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67078         Needed when size_t is smaller than 'unsigned int'.
67079         Reported by Paul Eggert.
67080
67081 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67082
67083         * modules/argp (Depends-on): Add unlocked-io
67084
67085 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67086
67087         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67088         block of defines.
67089
67090 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67093         fix now.
67094
67095 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67096         and Paul Eggert  <eggert@cs.ucla.edu>
67097
67098         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67099         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67100
67101 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67102
67103         * modules/regex (Files): Add lib/regex_internal.c,
67104         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67105         (Depends-on): Add extensions.
67106         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67107
67108 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67109
67110         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67111         pathconf.
67112         * m4/same.m4 (gl_SAME): Likewise.
67113         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67114
67115         * m4/regex.m4: Adjust to new libc regex implementation.
67116         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67117         all the .c and .h parts of (the new) regex.
67118         Quote the m4 stuff better.
67119         Check for RE_ICASE bug of old gnulib.
67120         Check for REG_STARTEND of recent libc.
67121         Rename local variables from jm_* to gl_*.
67122         Quote operand of "test -f".
67123         Say "recent enough" version of libc, not "version 2".
67124         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67125         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67126         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67127         Remove check for btowc, isascii.
67128         Require AM_LANGINFO_CODESET.
67129
67130 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67131
67132         * lib/regex.c, regex.h: Sync from libc.
67133         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67134         * lib/regexec.c:
67135         New files, synced from libc, except that regex_internal.h
67136         currently has a small porting fix.
67137
67138 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67139
67140         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67141         regex_internal.c, regexec.c.
67142         Add regex_internal.h too, but as a comment, since the libc version
67143         is currently broken in gnulib mode.
67144
67145 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67146
67147         Support programs like Emacs that use gnulib but not gettext.
67148         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67149         * modules/gettext-h: New file.
67150         * modules/gettext (Files): Remove lib/gettext.h.
67151         (Depends-on): Add gettext-h.
67152         (Makefile.am): Remove lib_SOURCES.
67153         * modules/argmatch, modules/c-stack, modules/closeout:
67154         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67155         * modules/execute, modules/file-type, modules/getaddrinfo:
67156         * modules/getopt, modules/human, modules/javacomp:
67157         * modules/javaexec, modules/mkdir-p, modules/obstack:
67158         * modules/openat, modules/pagealign_alloc, modules/pipe:
67159         * modules/quotearg, modules/regex, modules/rpmatch:
67160         * modules/unicodeio, modules/userspec, modules/version-etc:
67161         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67162         * modules/xsetenv:
67163         Depend on gettext-h, not gettext.
67164
67165 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * gnulib-tool (func_import): Add support for 'public domain' license.
67168         * modules/alloca, modules/atexit, modules/memmove:
67169         Now public domain, not GPL.
67170         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67171         * modules/realloc, modules/strerror, modules/strtod:
67172         Now LGPL, not GPL.
67173
67174 2005-07-05  Bruno Haible  <bruno@clisp.org>
67175
67176         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67177         autoconf CVS. Needed for mingw.
67178
67179 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67180
67181         Remove the dependency of the strftime module on the tzset module.
67182         * modules/strftime (Depends-on): Remove dependency on tzset.
67183
67184 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67185
67186         Remove the dependency of the strftime module on the tzset module.
67187         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67188         gl_FUNC_TZSET_CLOBBER.
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         * lib/strftime.c (my_strftime)
67194         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67195         Copy the input structure, to work around some of the bug with
67196         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67197         Solaris releases, you should also use the tzset module, but we won't
67198         require it as a dependency any more since we don't want LGPLed code
67199         to depend on GPLed code.
67200
67201 2005-07-02  Jim Meyering  <jim@meyering.net>
67202
67203         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67204         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67205         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67206         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67207
67208 2005-07-02  Jim Meyering  <jim@meyering.net>
67209
67210         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67211
67212 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67215         declares only 'struct timespec;' (!).
67216
67217 2005-07-01  Jim Meyering  <jim@meyering.net>
67218
67219         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67220         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67221         * lib/save-cwd.c, tempname.c:
67222         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67223         and don't include <sys/file.h>).
67224
67225 2005-06-29  Jim Meyering  <jim@meyering.net>
67226
67227         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67228         type name.  Use the variable name instead.
67229         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67230         Likewise.
67231
67232 2005-06-28  Simon Josefsson  <jas@extundo.com>
67233
67234         * modules/check-version (Files): Add check-version.m4.
67235
67236 2005-06-28  Simon Josefsson  <jas@extundo.com>
67237
67238         * m4/check-version.m4: New file, suggested by Jim Meyering
67239         <jim@meyering.net>.
67240
67241 2005-06-28  Simon Josefsson  <jas@extundo.com>
67242
67243         * lib/check-version.h, lib/check-version.c: New files.
67244
67245 2005-06-28  Simon Josefsson  <jas@extundo.com>
67246
67247         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67248         collision with global variable.  Better indentation.  Don't
67249         increment buffer pointer beyond buffer end.  Based on comments
67250         from Paul Eggert <eggert@cs.ucla.edu>.
67251
67252         * lib/base64.h: Indent.
67253
67254 2005-06-28  Simon Josefsson  <jas@extundo.com>
67255
67256         * doc/gnulib.texi (Library version handling): New section.
67257
67258 2005-06-28  Jim Meyering  <jim@meyering.net>
67259
67260         * check-module (find_included_lib_files): Hard-code another
67261         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67262         but modules/fts-lgpl (correctly) does not list those files.
67263
67264         * modules/canonicalize (Files): Add lib/pathmax.h.
67265
67266 2005-06-25  Simon Josefsson  <jas@extundo.com>
67267
67268         * modules/check-version: New file.
67269
67270 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67271
67272         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67273         initializer of struct addrinfo, as an indication that we don't
67274         care how many members the structure has.
67275
67276 2005-06-24  Derek Price  <derek@ximbiot.com>
67277         and Bruno Haible  <bruno@clisp.org>
67278
67279         Remove stat module & update lstat.
67280         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67281         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67282         * m4/stat.m4: Remove this file.
67283
67284 2005-06-24  Derek Price  <derek@ximbiot.com>
67285         and Bruno Haible  <bruno@clisp.org>
67286
67287         Remove stat module & update lstat.
67288         * lib/stat.c: Remove this file...
67289         (slash_aware_lstat): ...moving this content and its support...
67290         * lib/lstat.c (rpl_lstat): ...into here.
67291         * lib/lstat.h: New file.
67292
67293 2005-06-24  Derek Price  <derek@ximbiot.com>
67294         and Bruno Haible  <bruno@clisp.org>
67295
67296         Remove stat module & update lstat.
67297         * config/srclist.txt (libc sources): Remove stat.
67298
67299 2005-06-24  Derek Price  <derek@ximbiot.com>
67300         and Bruno Haible  <bruno@clisp.org>
67301
67302         Remove stat module & update lstat.
67303         * MODULES.html.sh (stat): Remove.
67304         * MODULES.html: Regenerated.
67305         * modules/lstat (Description): Correct function name.
67306         (Files): Add "lstat.h".
67307         (Depends-on): Remove stat, add xalloc, stat-macros.
67308         * modules/stat: Remove this file.
67309         (Include): Add "lstat.h", remove <sys/stat.h>.
67310
67311 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67312
67313         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67314         (ranged_convert): Don't save conversion in a temporary struct.
67315         This causes a warning with GCC 4.0.0, and anyway in the typical
67316         case it's not worth the extra 100 bytes or so of code.
67317         (ranged_convert, __mktime_internal): When calling a function via a
67318         pointer P, use P () rather than (*P) (), as we now assume C89 or
67319         better.
67320
67321 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67322
67323         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67324         "who -r" failed to give output.  Problem reported by Tim Waugh.
67325
67326         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67327         (xcalloc): Use it to avoid needless tests.
67328         Problem reported by Jim Meyering.
67329
67330 2005-06-20  Derek Price  <derek@ximbiot.com>
67331
67332         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67333         unnecessary for Autoconfs > 2.59c.
67334
67335 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67336
67337         * lib/argp.h (__option_is_short): Check upper limit of
67338         __key. Isprint() requires its argument to have the value
67339         of an unsigned char or EOF.
67340
67341 2005-06-16  Jim Meyering  <jim@meyering.net>
67342
67343         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67344         when either N or S is zero.
67345
67346 2005-06-16  Derek Price  <derek@ximbiot.com>
67347
67348         * m4/bison.m4: Declare YACC & YFLAGS precious.
67349
67350 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67353         multibyte string or pattern, fall back on unibyte matching.
67354         Problem reported by James Youngman.
67355
67356 2005-06-08  Bruno Haible  <bruno@clisp.org>
67357
67358         * modules/csharpcomp: New file.
67359         * MODULES.html.sh (C#): Add csharpcomp.
67360
67361 2005-06-08  Bruno Haible  <bruno@clisp.org>
67362
67363         * m4/csharpcomp.m4: New file, from GNU gettext.
67364
67365 2005-06-08  Bruno Haible  <bruno@clisp.org>
67366
67367         * lib/csharpcomp.h: New file, from GNU gettext.
67368         * lib/csharpcomp.c: New file, from GNU gettext.
67369         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67370
67371 2005-06-08  Bruno Haible  <bruno@clisp.org>
67372
67373         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67374         warning on mingw.
67375
67376 2005-06-07  Derek Price  <derek@ximbiot.com>
67377
67378         Sync from CVS.
67379         * lib/glob_.h: Indent nested #ifdef.
67380
67381 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         Sync from coreutils.
67384         Use "file name" when talking about file names, instead of "filename"
67385         or "path", as per the GNU coding standards.
67386         * lib/mkdir-p.c: Renamed from makepath.c.
67387         (make_dir_parents): Renamed from make_path.  All callers changed.
67388         * lib/mkdir-p.h: Likewise.  All includers changed.
67389         * lib/filenamecat.c: Renamed from path-concat.c.
67390         (file_name_concat): Renamed from path_concat.  All callers changed.
67391         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67392         * lib/filenamecat.h: Likewise.  All includers changed.
67393         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67394         in comments or local variable names.
67395         * lib/basename.c: Likewise.
67396         * lib/canonicalize.c, canonicalize.h: Likewise.
67397         * lib/dirname.c, dirname.h: Likewise.
67398         * lib/euidaccess.c: Likewise.
67399         * lib/exclude.c: Likewise
67400         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67401         * lib/fsusage.c, fsuage.h: Likewise.
67402         * lib/fts.c, fts_.h: Likewise.
67403         * lib/getcwd.c: Likewise.
67404         * lib/getloadavg.c: Likewise.
67405         * lib/mkstemp.c: Likewise.
67406         * lib/mountlist.c, mountlist.h: Likewise.
67407         * lib/openat.c, openat.h: Likewise.
67408         * lib/readlink-stub.c: Likewise.
67409         * lib/readutmp.c, readutmp.h: Likewise.
67410         * lib/rename.c: Likewise.
67411         * lib/rmdir.c: Likewise.
67412         * lib/same.c: Likewise.
67413         * lib/savedir.c: Likewise.
67414         * lib/stripslash.c: Likewise.
67415         * lib/tempname.c: Likewise.
67416         * lib/xreadlink.c: Likewise.
67417         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67418         All uses changed.
67419         * lib/exclude.h: Likewise.
67420
67421         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67422         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67423         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67424         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67425         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67426         files have been getting away with it for years (MORE/BSD 4.3
67427         is extinct now).
67428         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67429         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67430
67431         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67432         Define to 256, not 255, as per modern POSIX.
67433
67434 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67435
67436         Sync from coreutils.
67437         Use "file name" when talking about file names, instead of "filename"
67438         or "path", as per the GNU coding standards.
67439         * MODULES.html.sh: mkdir-p renamed from makepath.
67440         filenamecat renamed from path-concat.
67441         * modules/filenamecat: Renamed from modules/path-concat.
67442         (Files): filenamecat.h and filenamecat.c renamed from
67443         path-concat.h and path-concat.c.
67444         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67445         (Include): filenamecat.h, not path-concat.h.
67446         * modules/mkdir-p: Renamed from modules/makepath.
67447         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67448         makepath.c.
67449         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67450         (Include): mkdir-p.h, not makepath.h.
67451
67452 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         Sync from coreutils.
67455         * m4/mkdir-p.m4: Renamed from makepath.m4.
67456         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67457         Rename files from makepath.c to mkdir-p.c, and from
67458         makepath.h to mkdir-p.h.
67459         * m4/filenamecat.m4: Renamed from path-concat.m4.
67460         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67461         Rename files from path-concat.c to filenamecat.c,
67462         and from path-concat.h to filenamecat.h.
67463         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67464         "file name" in local variables or comments.
67465         * m4/rename.m4: Likewise.
67466
67467 2005-06-01  Bruno Haible  <bruno@clisp.org>
67468
67469         * modules/csharpexec: New file.
67470         * MODULES.html.sh (C#): New section.
67471
67472 2005-06-01  Bruno Haible  <bruno@clisp.org>
67473
67474         * m4/csharp.m4: New file, from GNU gettext.
67475         * m4/csharpexec.m4: New file, from GNU gettext.
67476
67477 2005-06-01  Bruno Haible  <bruno@clisp.org>
67478
67479         * lib/csharpexec.h: New file, from GNU gettext.
67480         * lib/csharpexec.c: New file, from GNU gettext.
67481         * lib/csharpexec.sh.in: New file, from GNU gettext.
67482
67483 2005-05-31  Derek Price  <derek@ximbiot.com>
67484             Paul Eggert  <eggert@cs.ucla.edu>
67485
67486         Sync from cvs.
67487         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67488
67489 2005-05-31  Derek Price  <derek@ximbiot.com>
67490             Paul Eggert  <eggert@cs.ucla.edu>
67491
67492         Sync from cvs.
67493         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67494
67495 2005-05-29  Derek Price  <derek@ximbiot.com>
67496
67497         * config/srclist.txt (glob_.h, glob.c): Add these files.
67498
67499 2005-05-29  Derek Price  <derek@ximbiot.com>
67500
67501         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67502         * modules/glob: New file.
67503         * modules/getlogin_r: Add link to POSIX spec in description.
67504
67505 2005-05-29  Derek Price  <derek@ximbiot.com>
67506             Paul Eggert  <eggert@cs.ucla.edu>
67507
67508         * m4/glob.m4: New file.
67509
67510 2005-05-29  Derek Price  <derek@ximbiot.com>
67511             Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         * lib/glob_.h, lib/glob.c: New files.
67514
67515 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67516
67517         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67518         * modules/fts-lgpl (Depends-on): Remove gettext.
67519
67520 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67521
67522         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67523         and don't require gt_INTTYPES_PRI.
67524
67525 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67526
67527         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67528
67529         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67530         the configuration hassle isn't worth it.
67531         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67532         (LONGEST_MODIFIER, PRIuMAX): Remove.
67533
67534 2005-05-27  Bruno Haible  <bruno@clisp.org>
67535
67536         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67537
67538 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67539
67540         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67541         _POSIX_PTHREAD_SEMANTICS for Solaris.
67542
67543 2005-05-25  Derek Price  <derek@ximbiot.com>
67544
67545         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67546
67547 2005-05-25  Derek Price  <derek@ximbiot.com>
67548             Paul Eggert  <eggert@cs.ucla.edu>
67549
67550         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67551         * lib/getlogin_r.c, getlogin_r.h: New files.
67552
67553 2005-05-25  Bruno Haible  <bruno@clisp.org>
67554             Derek Price  <derek@ximbiot.com>
67555
67556         * lib/getlogin_r.h: Simplify API documentation.
67557
67558 2005-05-23  Derek Price  <derek@ximbiot.com>
67559
67560         * modules/minmax (Files): Add m4/minmax.m4.
67561         (configure.ac): Add gl_MINMAX.
67562
67563 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67564
67565         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67566         so that unistd-safer.h (GPL'ed code) need not be included.
67567
67568 2005-05-22  Bruno Haible  <bruno@clisp.org>
67569
67570         * m4/minmax.m4: New file.
67571         Based on a patch by Derek Price <derek@ximbiot.com>.
67572
67573 2005-05-22  Bruno Haible  <bruno@clisp.org>
67574
67575         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67576         (INT64_MIN): Fix definition.
67577         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67578
67579         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67580         NEED_SIGNED_INT_TYPES.
67581
67582         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67583         HAVE_SYSTEM_INTTYPES.
67584
67585 2005-05-22  Bruno Haible  <bruno@clisp.org>
67586
67587         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67588         Also include <sys/param.h> if it defines MIN, MAX.
67589         Based on a patch by Derek Price <derek@ximbiot.com>.
67590
67591 2005-05-21  Jim Meyering  <jim@meyering.net>
67592
67593         * modules/fts (Files): Add m4/inttypes-pri.m4.
67594         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67595
67596 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67597
67598         New fts module.
67599         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67600         (setup_dir, free_dir): New functions.
67601         (enter_dir, leave_dir): Define trivial
67602         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67603         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67604         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67605         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67606         Move to fts-cycle.c.
67607         (fts_open): Use setup_dir.
67608         (fts_close): Use free_dir.
67609         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67610         This adds a label and some gotos, but the alternatives were messier.
67611         Check for memory allocation failure when entering a dir.
67612         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67613         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67614         (FTS): New member fts_cycle, that is a union that contains the
67615         old active_dir_ht and cycle_state.  All uses changed to mention
67616         fts_cycle.ht and fts_cycle.state.
67617         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67618         fts.c, with the following changes:
67619         (setup_dir, free_dir): New functions.
67620         (enter_dir): Now returns bool.  Return true if successful, false
67621         if memory exhausted.  All callers changed.
67622         Do not bother partly cleaning up on
67623         memory allocation failure; that is free_dir's job.
67624         However, free ad if hash_insert fails, to avoid memory leak.
67625         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67626         fts->fts_options to see which union member to use.
67627
67628 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67631         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67632
67633 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67634
67635         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67636
67637 2005-05-20  Jim Meyering  <jim@meyering.net>
67638
67639         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67640         Now a macro, to pacify GCC.
67641
67642 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67643
67644         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67645         of -1.
67646
67647 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67648
67649         * lib/chown.c (rpl_chown): Return -1 on failure.
67650
67651 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67654         Don't check for stddef.h.
67655         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67656         don't use its results.
67657         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67658         since we include them unconditionally.  Don't require
67659         AM_STDBOOL_H, since stdbool is a prerequisite.
67660         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67661         since we assume C89 or better.
67662         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67663         as we don't use their results.
67664         Don't check for fchdir, memmove, memset, strrchr, as we use
67665         them unconditionally.
67666         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67667         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67668
67669 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67672         Include <stddef.h> unconditionally, since we assume C89 now.
67673         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67674         * lib/fts.c: Include fts_.h first, to check interface.
67675         Do not include intprops.h; no longer needed.
67676         Include cycle-check.h and hash.h, since fts_.h no longer does.
67677         Remove unnecessary casts of closedir to void.
67678         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67679         decide whether to decrement nlinks.
67680         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67681         (FTS): Use struct hash_table * instead of Hash_table, so that
67682         we no longer need to include hash.h here.
67683
67684 2005-05-18  Jim Meyering  <jim@meyering.net>
67685
67686         * modules/dirfd (License): Change to LGPL.  Most of the code
67687         is already in the public domain.
67688
67689 2005-05-18  Jim Meyering  <jim@meyering.net>
67690
67691         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67692         Reported by Yoann Vandoorselaere.
67693
67694 2005-05-17  Jim Meyering  <jim@meyering.net>
67695
67696         * m4/fts.m4: New file, from coreutils.
67697
67698 2005-05-17  Jim Meyering  <jim@meyering.net>
67699
67700         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67701
67702 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67703
67704         Sync from coreutils.
67705         * m4/unlinkdir.m4: New file.
67706
67707 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67708
67709         Sync from coreutils.
67710         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67711         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67712         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67713         White space changes only.
67714         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67715         special.
67716         * lib/yesno.c: Include getline.h, not ctype.h.
67717         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67718         Use getline to remove arbitrary restriction on response length.
67719
67720 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67721
67722         * config/srclist-update: Spell out "Street" in FSF postal
67723         mail address; this is the style the FSF seems to prefer.
67724
67725         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67726         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67727         this updates FSF postal mail address.
67728
67729         Sync from coreutils.
67730         * modules/unlinkdir: New file.
67731         * modules/yesno (Depends-on): Add getline.
67732         * MODULES.html.sh (File system functions): Add unlinkdir.
67733
67734 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67735
67736         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67737         lib/strsep.h:
67738         Change the initial comment to refer to GPL, not LGPL.
67739         gnulib-tool will change it to LGPL as needed.
67740
67741         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67742         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67743         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67744         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67745         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67746         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67747         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67748         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67749         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67750         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67751         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67752         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67753         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67754         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67755         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67756         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67757         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67758         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67759         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67760         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67761         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67762         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67763         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67764         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67765         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67766         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67767         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67768         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67769         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67770         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67771         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67772         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67773         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67774         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67775         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67776         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67777         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67778         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67779         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67780         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67781         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67782         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67783         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67784         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67785         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67786         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67787         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67788         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67789         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67790         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67791         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67792         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67793         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67794         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67795         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67796         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67797         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67798         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67799         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67800         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67801         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67802         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67803         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67804         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67805         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67806         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67807         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67808         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67809         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67810         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67811         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67812         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67813         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67814         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67815         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67816         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67817         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67818         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67819         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67820         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67821         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67822         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67823         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67824         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67825         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67826         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67827         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67828         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67829         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67830         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67831         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67832         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67833         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67834         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67835         lib/yesno.c, lib/yesno.h:
67836         Update FSF postal mail address.
67837
67838 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67839
67840         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67841         tests/test-memmem.c, tests/test-stpncpy.c:
67842         Update FSF postal mail address.
67843
67844 2005-05-13  Bruno Haible  <bruno@clisp.org>
67845
67846         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67847         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67848         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67849         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67850         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67851         Add support for 64-bit integers in the MSVC compiler.
67852
67853 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67854
67855         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67856
67857 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67858
67859         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67860
67861 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67862
67863         * doc/getdate.texi (General date syntax): Don't say that date
67864         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67865         Problem reported by Nic Ferrier.
67866
67867 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67868
67869         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67870         specified in ai_socktype. Fix invalid ai_protocol
67871         check. ai_protocol is usually set to 0 or depending on
67872         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67873         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67874         ai_socktype / ai_protocol in the returned addrinfo structure.
67875
67876 2005-05-10  Simon Josefsson  <jas@extundo.com>
67877
67878         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67879         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67880
67881 2005-05-10  Karl Berry  <karl@gnu.org>
67882
67883         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67884         (from http://www.gnu.org/licenses).
67885         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67886         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67887         fdl.texi suffices.
67888
67889 2005-05-10  Karl Berry  <karl@gnu.org>
67890
67891         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67892         (COPYING.DOC): remove.
67893
67894         * config/srclist-update: new FSF address.
67895
67896 2005-05-10  Derek Price  <derek@ximbiot.com>
67897
67898         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67899         possible.
67900
67901 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67902             Bruno Haible  <bruno@clisp.org>
67903
67904         * modules/inet_ntop: New file.
67905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67906         inet_ntop.
67907
67908 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67909             Bruno Haible  <bruno@clisp.org>
67910
67911         * m4/inet_ntop.m4: New file.
67912
67913 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67914             Bruno Haible  <bruno@clisp.org>
67915
67916         * lib/inet_ntop.h: New file.
67917         * lib/inet_ntop.c: New file, from glibc with modifications.
67918
67919 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67920
67921         * modules/time_r (License): Change to LGPL.
67922         * modules/extensions (License): Change to LGPL.  Actually,
67923         the license is more permissive than that, but currently gnulib-tool
67924         doesn't know how to handle more-permissive licenses.
67925
67926         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67927         Problem reported by Dave Love.
67928
67929 2005-05-08  Jim Meyering  <jim@meyering.net>
67930
67931         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67932         blank.
67933
67934 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67935
67936         * modules/argmatch (Depends-on): Add stdbool.
67937         * modules/backupfile (Depends-on): Likewise.
67938         * modules/chdir-long (Depends-on): Likewise.
67939         * modules/closeout (Depends-on): Likewise.
67940         * modules/cycle-check (Depends-on): Likewise.
67941         * modules/dirname (Depends-on): Likewise.
67942         * modules/fnmatch (Depends-on): Likewise.
67943         * modules/fsusage (Depends-on): Likewise.
67944         * modules/fwriteerror (Depends-on): Likewise.
67945         * modules/getcwd (Depends-on): Likewise.
67946         * modules/getloadavg (Depends-on): Likewise.
67947         * modules/hard-locale (Depends-on): Likewise.
67948         * modules/makepath (Depends-on): Likewise.
67949         * modules/mountlist (Depends-on): Likewise.
67950         * modules/nanosleep (Depends-on): Likewise.
67951         * modules/posixtm (Depends-on): Likewise.
67952         * modules/quotearg (Depends-on): Likewise.
67953         * modules/readtokens (Depends-on): Likewise.
67954         * modules/readtokens0 (Depends-on): Likewise.
67955         * modules/readutmp (Depends-on): Likewise.
67956         * modules/save-cwd (Depends-on): Likewise.
67957         * modules/strftime (Depends-on): Likewise.
67958         * modules/userspec (Depends-on): Likewise.
67959         * modules/utimecmp (Depends-on): Likewise.
67960         * modules/xgetcwd (Depends-on): Likewise.
67961         * modules/xnanosleep (Depends-on): Likewise.
67962         * modules/xstrtod (Depends-on): Likewise.
67963         * modules/yesno (Depends-on): Likewise.
67964
67965 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67966
67967         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67968         needless checks.
67969
67970 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         Merge from coreutils.  Among other things,
67973         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67974         * lib/fd-safer.c: New file.
67975         * lib/fcntl-safer.h, open-safer.c: Remove.
67976         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67977         * lib/dup-safer.c: Include unistd-safer.h first.
67978         Don't include errno.h.
67979         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67980         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67981         * lib/file-type.c: Rely on file-type.h change.
67982         * lib/getloadavg.c: Include unistd-safer.h.
67983         (getloadavg): Use safer open.
67984         * lib/getusershell.c: Include "stdio-safer.h".
67985         (getusershell): Use safer fopen.
67986         * lib/long-options.c (long_options): Use NULL rather than 0.
67987         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67988         'free'.
67989         * lib/modechange.c: Likewise.
67990         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67991         (MODE_DONE): New constant.
67992         (struct mode_change): Remove 'next' member.
67993         (make_node_op_equals): New function; like the old one of the
67994         same name, except it allocates an array.
67995         (mode_compile, mode_create_from_ref): Use it.
67996         (mode_compile): Allocate result as an array, not a linked list.
67997         Parse octal string ourself, so that we catch mistakes like "+0".
67998         (mode_adjust): Arg is an array, not a linked list.
67999         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68000         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68001         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68002         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68003         Remove.  This is now stat-macros.h's job.
68004         (talloc): Remove.  All callers replaced by xalloc, so that
68005         our invokers don't have to worry about reporting memory failures.
68006         (make_node_op_equals): Remove.
68007         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68008         New constants.
68009         (struct mode_change): Moved here from modechange.h.
68010         (mode_append_entry): Remove.
68011         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68012         apps to have incorrect behavior.  Use simpler algorithm for head
68013         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68014         Detect more invalid usages rather than having somewhat-random behavior.
68015         Don't insert an "a=" action, as that leads to incorrect behavior.
68016         (mode_compile, mode_create_from_ref): Return NULL on error instead
68017         of an enum, since now there's only one way to have an error.  All
68018         callers changed.
68019         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68020         at the correct time.  Simplify calculation of "+u" and its ilk.
68021         Don't mishandle "+X".
68022         (mode_free): Remove "register" and localize decls.
68023         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68024         (struct mode_change): Move to modechange.c; callers don't
68025         need to see this stuff.
68026         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68027         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68028         (mode_change, mode_adjust): Reflect the new signatures noted above.
68029         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68030         that might redefine system include files.
68031         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68032         (my_usleep): Use NULL rather than (void *) 0.
68033         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68034         Use siginterrupt to specify that system calls should be interrupted.
68035         (rpl_nanosleep): Move initialization of suspended closer to call of
68036         my_usleep.
68037         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68038         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68039         (desirable_utmp_entry): New function.
68040         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68041         using x2nrealloc, to simplify logic.
68042         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68043         size calculation.  Do not assume utmp file is a regular file.
68044         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68045         (READ_UTMP_CHECK_PIDS): New constant.
68046         * lib/save-cwd.c: Include unistd-safer.h.
68047         (save_cwd): Use fd_safer.
68048         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68049         [!_LIBC] Include "stat-macros.h" instead.
68050         * lib/unistd-safer.h (fd_safer): New decl.
68051
68052 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68053
68054         * modules/getloadavg (Depends-on): Add unistd-safer.
68055         * modules/getusershell (Depends-on): Add stdio-safer.
68056         * modules/lstat (Depends-on): Remove xalloc.
68057         * modules/mkstemp (Depends-on): Add stat-macros.
68058         * modules/modechange (Depends-on): Remove xstrtol.
68059         Add stat-macros, xalloc.
68060         * modules/save-cwd (Depends-on): Add unistd-safer.
68061         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68062         * modules/unistd-safer (Files): Add lib/fd-safer.c
68063         (Makefile.am): Remove lib_SOURCES.
68064
68065         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68066         Remove fcntl-safer; unistd-safer supersedes it.
68067
68068 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68069
68070         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68071         AC_HEADER_STAT.
68072         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68073         (gl_PREREQ_CHOWN): Remove.
68074         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68075         it.  Don't require AC_HEADER_STAT.
68076         (gl_PREREQ_LSTAT): Remove.
68077         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68078         Don't require AC_HEADER_STAT.
68079         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68080         (gl_PREREQ_RMDIR): Remove.
68081         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68082         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68083         the stat-macros module a prerequisite.
68084         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68085         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68086         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68087         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68088         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68089         variable names.
68090         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68091         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68092         variable prefixes.
68093         * m4/fcntl-safer.m4: Remove.
68094         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68095         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68096         Invoke gl_PREREQ_FD_SAFER.
68097         (gl_PREREQ_FD_SAFER): New macro.
68098         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68099         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68100         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68101         Remove duplicate call to AC_LIBOBJ(readutmp).
68102         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68103
68104         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68105         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68106
68107 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68108
68109         * MODULES.html.sh (Misc): Add byteswap.
68110
68111 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68112
68113         * modules/getcwd (Depends-on): Add extensions.
68114         * modules/openat (Depends-on): Likewise.
68115
68116 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68117
68118         * modules/byteswap: New file.
68119
68120 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68121
68122         * m4/byteswap.m4: New file.
68123
68124 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68125
68126         * lib/byteswap_.h: New file.
68127
68128 2005-04-25  Karl Berry  <karl@gnu.org>
68129
68130         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68131
68132 2005-04-25  Albert Chin  <china@thewrittenword.com>
68133
68134         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68135         Toolkit C bug.
68136
68137 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68138
68139         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68140         (func_ln_if_changed): Remove forcibly for no error message
68141         in case file does not exist.
68142
68143 2005-04-19  Simon Josefsson  <jas@extundo.com>
68144
68145         * gnulib-tool (Options): Make --symlink mean --symbolic.
68146
68147 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68148
68149         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68150
68151 2005-04-16  Simon Josefsson  <jas@extundo.com>
68152
68153         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68154
68155 2005-04-15  Simon Josefsson  <jas@extundo.com>
68156
68157         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68158
68159 2005-04-15  Simon Josefsson  <jas@extundo.com>
68160
68161         * gnulib-tool: Rename --symlink to --symbolic.
68162
68163 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68164
68165         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68166         symbolic links to files instead of copying/moving.  Add --aux-dir,
68167         specifying directory relative --dir where auxiliary build tools
68168         are placed.
68169
68170 2005-04-14  Bruno Haible  <bruno@clisp.org>
68171
68172         * modules/allocsa (License): Change to LGPL.
68173         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68174
68175 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68176
68177         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68178         that "UTC +1 second" continues to work.  Problem reported
68179         by Dmitry V. Levin.
68180         (relunit_snumber): New rule.
68181         (relunit): Use it.
68182
68183 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68184
68185         * lib/getdate.y (universal_time_zone_table): New constant.
68186         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68187         universal_time_zone_table.
68188         (lookup_zone): Prefer universal_time_zone_table to
68189         local_time_zone_table, so that "GMT" time stamps are allowed in
68190         London during the summer.  Problem reported by Ian Abbott.
68191
68192 2005-04-12  Jim Meyering  <jim@meyering.net>
68193
68194         * lib/human.c (humblock): Set *options even when returning due to
68195         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68196         warning from gcc-4.
68197
68198 2005-04-09  Jim Meyering  <jim@meyering.net>
68199
68200         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68201         -Wuninitialized: initialize tm0.tm_year.
68202
68203 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68206         count, since there's no maximum.  All uses changed.
68207         Add member dsts_seen.
68208         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68209         not being INT_MAX.
68210         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68211         Use pc_rels_seen to decide whther a date is absolute.
68212
68213         * lib/getdate.y (number): Don't overwrite year.
68214         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68215         check.
68216
68217 2005-04-02  Simon Josefsson  <jas@extundo.com>
68218
68219         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68220         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68221
68222 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68223
68224         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68225         where no absolute path name can be longer than PATH_MAX.
68226
68227 2005-03-27  Jim Meyering  <jim@meyering.net>
68228
68229         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68230
68231 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68232
68233         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68234         "one's complement" -> "ones' complement" in comment, as per Knuth.
68235         "value of type" -> "type or expression" in comment.
68236         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68237
68238 2005-03-26  Jim Meyering  <jim@meyering.net>
68239
68240         Comment nits.
68241         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68242         Correct typos: s/or/of/.
68243
68244 2005-03-26  Jim Meyering  <jim@meyering.net>
68245
68246         * modules/check-include-files: Move to ../ and rename to...
68247         * check-module: ...this.
68248
68249 2005-03-25  Jim Meyering  <jim@meyering.net>
68250
68251         * modules/xvasprintf (Files): Add xalloc.h.
68252
68253 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68254
68255         * modules/gettext (Files): config/config.rpath ->
68256         build-aux/config.rpath
68257         * modules/iconv (Files): Likewise.
68258         Problem reported by Oskar Liljeblad.
68259
68260 2005-03-23  Jim Meyering  <jim@meyering.net>
68261
68262         * modules/check-include-files: New script to check for
68263         missing dependencies, multiple includes, etc.
68264
68265         * modules/c-strtold (Depends-on): Add xalloc.
68266         * modules/c-strtod (Depends-on): Add xalloc.
68267         * modules/hash (Depends-on): Add xalloc.
68268         (Files): Remove lib/xalloc.h.
68269
68270         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68271         * modules/userspec (Files): Add lib/inttostr.h.
68272
68273 2005-03-23  Jim Meyering  <jim@meyering.net>
68274
68275         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68276
68277 2005-03-22  Jim Meyering  <jim@meyering.net>
68278
68279         * modules/stat-macros: New module.
68280         * modules/canonicalize, modules/euidaccess, modules/file-type,
68281         * modules/filemode, modules/lchown, modules/makepath,
68282         * modules/rmdir, modules/stat: Depend on new stat-macros module
68283         rather than listing lib/stat-macros.h manually.
68284         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68285
68286 2005-03-22  Jim Meyering  <jim@meyering.net>
68287
68288         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68289
68290 2005-03-22  Bruno Haible  <bruno@clisp.org>
68291
68292         * config/srclist.txt: Replace target directory 'config' with
68293         'build-aux'.
68294         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68295         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68296         ../build-aux/.
68297
68298 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68299
68300         * modules/chdir-long (Depends-on): Add mempcpy.
68301
68302         * modules/acl, modules/backupfile, modules/c-strtod,
68303         modules/c-strtold, modules/canon-host, modules/canonicalize,
68304         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68305         modules/exclude, modules/exitfail, modules/file-type,
68306         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68307         modules/getdate, modules/getline, modules/getpagesize,
68308         modules/getpass, modules/getugroups, modules/group-member,
68309         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68310         modules/inttostr, modules/long-options, modules/makepath,
68311         modules/md5, modules/memcasecmp, modules/memcoll,
68312         modules/modechange, modules/mountlist, modules/path-concat,
68313         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68314         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68315         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68316         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68317         modules/strftime, modules/strndup, modules/strverscmp,
68318         modules/timespec, modules/unlocked-io, modules/userspec,
68319         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68320         modules/yesno:
68321         Remove lib_SOURCES line from Makefile.am section, as this is now
68322         done automatically by the corresponding Autoconf macro.
68323
68324 2005-03-21  Jim Meyering  <jim@meyering.net>
68325
68326         Changes imported from coreutils.
68327
68328         * lib/cycle-check.c: Don't include xalloc.h.
68329
68330         * lib/path-concat.c: Don't include assert.h.
68331         (path_concat): Remove assertion that would have triggered
68332         for ABASE starting with more than one slash.
68333         Reported by Andreas Schwab.
68334
68335         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68336         properly when ABASE is an absolute file name.
68337         Correct the description of this function.
68338         Include <assert.h>.
68339         Add an assertion and a test driver.
68340         This fixes a bug introduced on 2004-07-02.
68341         Andreas Schwab reported the resulting failure of cp --parents:
68342         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68343
68344 2005-03-21  Jim Meyering  <jim@meyering.net>
68345
68346         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68347         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68348
68349 2005-03-21  Jim Meyering  <jim@meyering.net>
68350         and  Paul Eggert  <eggert@cs.ucla.edu>
68351
68352         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68353         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68354         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68355         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68356         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68357         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68358         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68359         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68360         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68361         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68362         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68363         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68364         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68365         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68366         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68367         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68368         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68369         for these modules.
68370
68371 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68372
68373         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68374         (which shouldn't happen), generate nothing instead of returning 0
68375         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68376
68377 2005-03-16  Bruno Haible  <bruno@clisp.org>
68378
68379         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68380         HAVE_LONGLONG_64BIT.
68381
68382 2005-03-16  Bruno Haible  <bruno@clisp.org>
68383
68384         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68385         HAVE_LONGLONG_64BIT.
68386
68387 2005-03-16  Bruno Haible  <bruno@clisp.org>
68388
68389         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68390         HAVE_LONGLONG_64BIT.
68391
68392 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68393
68394         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68395         reliably distinguish strftime failure from empty output on POSIX
68396         hosts.
68397
68398 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68401         (iconv_string): Don't guess a size-zero buffer, as that might cause
68402         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68403         result would be 'too large', where 'too large' is (heuristically)
68404         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68405         overflow concerns.  This will prevent some unwanted malloc failures
68406         when the inputs are very large.
68407
68408 2005-03-15  Karl Berry  <karl@gnu.org>
68409
68410         * config/srclist.txt (config.rpath): from gettext.
68411         * config/config.rpath: update.
68412
68413 2005-03-15  Bruno Haible  <bruno@clisp.org>
68414
68415         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68416         to 'negate'.
68417
68418         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68419         variable.
68420
68421         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68422         results.
68423
68424 2005-03-14  Simon Josefsson  <jas@extundo.com>
68425
68426         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68427         <fx@gnu.org>.
68428
68429 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68432         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68433         intprops.h.
68434         * lib/strtol.c: Likewise.
68435
68436 2005-03-14  Jim Meyering  <jim@meyering.net>
68437
68438         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68439         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68440         to be nonzero so that we (and caller) can detect the difference
68441         between a valid zero-length expansion and an error return, even
68442         when the underlying strftime fails before writing anything into
68443         that location.
68444
68445 2005-03-14  Bruno Haible  <bruno@clisp.org>
68446
68447         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68448         Update from GNU gettext 0.14.3.
68449
68450 2005-03-10  Jim Meyering  <jim@meyering.net>
68451
68452         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68453
68454 2005-03-10  Jim Meyering  <jim@meyering.net>
68455
68456         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68457         so that this module works on systems without fchdir.
68458
68459 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68460
68461         Factor int-properties macros into a single file, except for
68462         glibc-related files.
68463         * lib/intprops.h: New file.
68464         * lib/getloadavg.c: Include it instead of limits.h.
68465         (INT_STRLEN_BOUND): Remove.
68466         * lib/human.c: Include intprops.h.
68467         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68468         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68469         302/1000.
68470         * lib/inttostr.h: Include intprops.h instead of limits.h.
68471         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68472         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68473         for consistency with intprops.h.
68474         (time_t_is_integer, twos_complement_arithmetic): Use them.
68475         * lib/sig2str.h: Include <signal.h>, intprops.h.
68476         (INT_STRLEN_BOUND): Remove.
68477         * lib/strftime.c (TYPE_SIGNED): Remove.
68478         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68479         * lib/strtol.c: Adjust comments to match intprops.h.
68480         * lib/userspec.c: Include intprops.h.
68481         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68482         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68483         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68484         instead of rolling our own expressions.
68485         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68486
68487         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68488         instead of int.
68489         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68490         the right thing even if adding 1900 would overflow.  Similarly
68491         for tm_mon + 1 and tm_yday + 1.
68492         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68493         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68494         (DO_SIGNED_NUMBER): New macro.
68495         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68496
68497 2005-03-07  Bruno Haible  <bruno@clisp.org>
68498
68499         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68500
68501 2005-03-07  Bruno Haible  <bruno@clisp.org>
68502
68503         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68504
68505 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68506
68507         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68508         (func_import): Only replace files via --import when they have actually
68509         changed.
68510
68511 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68512
68513         * m4/mmap-anon.m4: New file.
68514         * m4/pagealign_alloc.m4: New file.
68515
68516 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68517             Bruno Haible  <bruno@clisp.org>
68518
68519         * modules/pagealign_alloc: New file.
68520         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68521
68522 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68523             Bruno Haible  <bruno@clisp.org>
68524
68525         * lib/pagealign_alloc.h: New file.
68526         * lib/pagealign_alloc.c: New file.
68527
68528 2005-03-03  Bruno Haible  <bruno@clisp.org>
68529
68530         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68531         Use an all-permissive copyright notice, recommended by RMS.
68532
68533 2005-03-02  Bruno Haible  <bruno@clisp.org>
68534
68535         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68536         of AIX, the replacement has to be done only after <string.h> is
68537         included, therefore not in config.h. stpncpy.h does the replacement,
68538         and stpncpy.c uses it.
68539
68540 2005-03-02  Bruno Haible  <bruno@clisp.org>
68541
68542         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68543         stpncpy.c uses it.
68544
68545 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68546
68547         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68548         The workaround isn't strictly needed for POSIX conformance, and
68549         it's too much of a pain to configure and maintain.  We'll ask
68550         people to fix their kernels instead.
68551         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68552         (NANOSLEEP_BUG_WORKAROUND): Remove.
68553         (xnanosleep): Remove the workaround.
68554
68555 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68558         Reported by Derek Price.
68559         (Include): Add "timespec.h".
68560
68561         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68562
68563 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68566         to detect nanosleep bug.
68567
68568 2005-03-01  Bruno Haible  <bruno@clisp.org>
68569
68570         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68571
68572 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68573
68574         * modules/gethrxtime: New file.
68575         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68576         (Depends-on): Add gethrxtime.
68577         (configure.ac): Add gl_XNANOSLEEP.
68578         (Makefile.am): Remove lib_SOURCES line.
68579
68580 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68581
68582         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68583         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68584
68585 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68586
68587         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68588         * lib/timespec.h (gettime): Return void, since it always
68589         succeeds now.  All uses changed.
68590         * lib/gettime.c (gettime): Likewise.
68591         [HAVE_NANOTIME]: Prefer nanotime.
68592         Assume gettimeofday succeeds, as POSIX requires.
68593         Assime time () succeeds, since other code already does.
68594         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68595         (timespec_subtract): Remove.
68596         (NANOSLEEP_BUG_WORKAROUND): New constant.
68597         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68598         things considerably.  Use it only on GNU/Linux hosts, since the
68599         workaround shouldn't be needed elsewhere.
68600
68601 2005-02-24  Bruno Haible  <bruno@clisp.org>
68602
68603         * modules/gettext (Files): Add m4/glibc2.m4.
68604
68605 2005-02-24  Bruno Haible  <bruno@clisp.org>
68606
68607         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68608         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68609         * m4/progtest.m4:
68610         Update from GNU gettext 0.14.2.
68611         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68612
68613 2005-02-24  Bruno Haible  <bruno@clisp.org>
68614
68615         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68616         * lib/config.charset: Update from GNU gettext 0.14.2.
68617
68618 2005-02-24  Bruno Haible  <bruno@clisp.org>
68619
68620         * lib/gettext.h: Update from GNU gettext 0.14.2.
68621
68622 2005-02-23  Simon Josefsson  <jas@extundo.com>
68623
68624         * m4/iconvme.m4: New file.
68625
68626 2005-02-23  Jim Meyering  <jim@meyering.net>
68627
68628         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68629         change.
68630         Thanks to Bruno Haible for catching it.
68631
68632 2005-02-22  Simon Josefsson  <jas@extundo.com>
68633
68634         * modules/iconvme: New file.
68635
68636         * MODULES.html.sh: Add iconvme.
68637
68638 2005-02-22  Simon Josefsson  <jas@extundo.com>
68639
68640         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68641
68642 2005-02-22  Simon Josefsson  <jas@extundo.com>
68643
68644         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68645
68646 2005-02-22  Jim Meyering  <jim@meyering.net>
68647
68648         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68649         s/ifndef/ifdef/.
68650
68651 2005-02-20  Neil Conway  <neilc@samurai.com>
68652
68653         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68654         returned by OSX/Darwin if the specified buffer is not large
68655         enough for the hostname.
68656
68657 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68658
68659         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68660         pass it to _help, otherwise the latter coredumps trying to
68661         dereference state.root_argp.
68662
68663 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68664
68665         * modules/chdir-long (Depends-on): Add memrchr.
68666         * modules/memrchr (Files): Add lib/memrchr.h.
68667         (Include): "memrchr.h".
68668
68669 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68670
68671         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68672
68673 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68674
68675         * lib/memrchr.h: New file.
68676         * lib/chdir-long.c: Include it.
68677         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68678         Don't bother including stddef.h.
68679
68680 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68683         inclusion.
68684         Include <sys/types.h>, for dev_t.
68685         (ME_DUMMY, ME_REMOTE): Move from here....
68686         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68687         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68688         Dmitry V. Levin.
68689         Include mountlist.h first, to test the interface.
68690
68691 2005-01-29  Bruno Haible  <bruno@clisp.org>
68692
68693         * lib/progname.c (program_name): Initialize.
68694         Needed when linking statically on MacOS X.
68695
68696 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68697
68698         Sync from coreutils.
68699         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68700         (Depends-on): Add c-strtod.
68701         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68702
68703 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68704
68705         Sync from coreutils.
68706         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68707
68708         Remove files that are specific to coreutils.
68709         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68710
68711 2005-01-28  Bruno Haible  <bruno@clisp.org>
68712
68713         * modules/javacomp: New file.
68714         * MODULES.html.sh (Java): Add javacomp.
68715
68716 2005-01-28  Bruno Haible  <bruno@clisp.org>
68717
68718         * m4/javacomp.m4: New file, from GNU gettext.
68719
68720 2005-01-28  Bruno Haible  <bruno@clisp.org>
68721
68722         * lib/javacomp.sh.in: New file, from GNU gettext.
68723         * lib/javacomp.h: New file, from GNU gettext.
68724         * lib/javacomp.c: New file, from GNU gettext.
68725
68726 2005-01-26  Simon Josefsson  <jas@extundo.com>
68727
68728         * lib/gai_strerror.c: Use GPL in header.
68729
68730 2005-01-26  Bruno Haible  <bruno@clisp.org>
68731
68732         * modules/javaexec: New file.
68733         * MODULES.html.sh (Java): Add javaexec.
68734
68735 2005-01-26  Bruno Haible  <bruno@clisp.org>
68736
68737         * m4/javaexec.m4: New file, from GNU gettext.
68738
68739 2005-01-26  Bruno Haible  <bruno@clisp.org>
68740
68741         * lib/javaexec.sh.in: New file, from GNU gettext.
68742         * lib/javaexec.h: New file, from GNU gettext.
68743         * lib/javaexec.c: New file, from GNU gettext.
68744
68745 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68746
68747         * modules/lchown (Depends-on): Remove lchown.h
68748
68749 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68750
68751         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68752         must be defined if the header file was not found, in order
68753         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68754
68755 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68756
68757         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68758         initializers for struct pentry_state.
68759         (__argp_error): Check return value of __asprintf
68760         (__argp_failure): Translate error message
68761
68762         * lib/argp-parse.c: Removed braces around the expansion of N_()
68763
68764 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68767         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68768         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68769         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68770         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68771         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68772         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68773         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68774         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68775         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68776         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68777         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68778         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68779         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68780         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68781         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68782         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68783         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68784         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68785         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68786         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68787         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68788         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68789         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68790         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68791         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68792         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68793         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68794         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68795         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68796         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68797         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68798         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68799         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68800         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68801         Use an all-permissive copyright notice, recommended by RMS.
68802
68803 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68804
68805         * modules/chdir-long (Depends-on): Remove mempcpy.
68806
68807 2005-01-21  Jim Meyering  <jim@meyering.net>
68808
68809         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68810         same value as for Solaris 9.
68811
68812         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68813         component length.  This included changing the parameter to be
68814         of type `char *' rather than `char const *'.
68815         * lib/chdir-long.h (chdir_long): Update prototype.
68816
68817         * lib/openat.c (fdopendir, fstatat): New functions.
68818         * lib/openat.h: Include headers required for use of DIR and struct
68819         stat.
68820         [AT_SYMLINK_NOFOLLOW]: Define.
68821         (fdopendir, fstatat): Add prototypes.
68822
68823 2005-01-21  Bruno Haible  <bruno@clisp.org>
68824
68825         * modules/classpath: New file.
68826         * MODULES.html.sh (Java): Add classpath.
68827
68828 2005-01-21  Bruno Haible  <bruno@clisp.org>
68829
68830         * lib/classpath.h: New file, from GNU gettext.
68831         * lib/classpath.c: New file, from GNU gettext.
68832
68833 2005-01-20  Simon Josefsson  <jas@extundo.com>
68834
68835         * modules/version-etc-fsf: New file.
68836
68837 2005-01-20  Simon Josefsson  <jas@extundo.com>
68838
68839         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68840         * lib/version-etc.c: Remove version_etc_copyright.
68841         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68842         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68843
68844 2005-01-20  Simon Josefsson  <jas@extundo.com>
68845
68846         * lib/base64.h (isbase64): Add.
68847
68848         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68849         using a unsigned prototype, don't inline.
68850         (base64_decode): Use it.
68851
68852 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68853
68854         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68855         it.
68856
68857 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68858
68859         * lib/save-cwd.c (save_cwd): Remove code to support the case
68860         where fchdir is missing or flaky.
68861
68862 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68863
68864         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68865
68866 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68867
68868         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68869         AC_LIBSOURCES now does this.
68870         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68871         with new ullong_max module.
68872
68873 2005-01-19  Bruno Haible  <bruno@clisp.org>
68874
68875         * modules/sh-quote: New file.
68876         * MODULES.html.sh (Executing programs): Add sh-quote.
68877
68878 2005-01-19  Bruno Haible  <bruno@clisp.org>
68879
68880         * lib/sh-quote.h: New file, from GNU gettext.
68881         * lib/sh-quote.c: New file, from GNU gettext.
68882
68883 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68884
68885         Merge from coreutils.
68886         * m4/ullong_max.m4: New file.
68887         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68888         (gl_MACROS): Assume localeconv exists.
68889
68890 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         Merge changes from coreutils, as described below in several
68893         changelogs dated today.
68894
68895         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68896         (O_DIRECTORY): Remove; not needed here, since "." must be
68897         a directory.  All uses removed.
68898         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68899         universal on Suns, and we also need to test for IRIX.
68900         Revamp code to use 'if' rather than '#if'.
68901         Avoid unnecessary comparison of cwd->desc to 0.
68902
68903         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68904         for known valid error numbers rather than observed invalid ones.
68905
68906 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         * modules/ullong_max: New file.
68909
68910         * modules/chdir-long, modules/openat: New files.
68911         * modules/save-cwd (Depends-on): Depend on chdir-long.
68912         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68913
68914 2005-01-18  Jim Meyering  <jim@meyering.net>
68915
68916         Merge from coreutils.
68917         * m4/chdir-long.m4, m4/openat.m4: New files.
68918         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68919         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68920         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68921         is sane and DOES follow symlinks.  Besides, testing 20 different
68922         systems found no broken chown implementations.
68923         Prompted by a change in rsync's copy of this macro.
68924         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68925
68926         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68927
68928         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68929         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68930         NULL-means-set-to-current-time semantics.
68931         Remove temporary file immediately, rather than waiting
68932         for configure's at-exit trap code to do it.
68933
68934 2005-01-18  Jim Meyering  <jim@meyering.net>
68935
68936         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68937
68938         * lib/utimens.c (futimens): Account for the fact that futimes
68939         can also fail with errno == ENOSYS or errno == ENOENT.
68940         Patch from Dmitry V. Levin.
68941
68942         Change the name of the robust chdir function from chdir to chdir_long.
68943         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68944         (restore_cwd): Use chdir_long, not chdir.
68945         * lib/chdir-long.c: Renamed from chdir.c.
68946         * lib/chdir-long.h: Renamed from chdir.h.
68947         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68948         Hurd.
68949
68950 2005-01-18  Bruno Haible  <bruno@clisp.org>
68951
68952         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68953         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68954         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68955         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68956         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68957         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68958         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68959         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68960         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68961         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68962         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68963         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68964         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68965         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68966         Use an all-permissive copyright notice, recommended by RMS.
68967
68968 2005-01-18  Bob Proulx  <bob@proulx.com>
68969
68970         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68971         simplify offsetof() macro construct to avoid compile failure with
68972         native HP-UX 11.0 ANSI C compiler.
68973
68974 2005-01-17  Bruno Haible  <bruno@clisp.org>
68975
68976         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68977         redundant because stpncpy.m4 takes care of it.
68978
68979 2005-01-17  Bruno Haible  <bruno@clisp.org>
68980
68981         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68982
68983 2005-01-17  Bruno Haible  <bruno@clisp.org>
68984
68985         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68986         used.
68987
68988 2005-01-17  Bruno Haible  <bruno@clisp.org>
68989
68990         * lib/fwriteerror.h (fwriteerror): Change specification to include
68991         fclose.
68992         * lib/fwriteerror.c: Include <stdbool.h>.
68993         (fwriteerror): At the end, close the file stream. Record whether
68994         stdout was already closed.
68995
68996 2005-01-17  Bruno Haible  <bruno@clisp.org>
68997
68998         * lib/execute.c (environ): Declare if needed.
68999         * lib/pipe.c (environ): Likewise.
69000         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69001
69002 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69003
69004         * modules/argp: Depend on vsnprintf
69005
69006 2005-01-10  Jim Meyering  <jim@meyering.net>
69007
69008         * modules/closeout (Depends-on): Add atexit.
69009
69010 2005-01-06  Bruno Haible  <bruno@clisp.org>
69011
69012         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69013
69014 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69017         definitions to be after all include files, to avoid collisions.
69018         Problem reported by Bob Proulx.
69019
69020 2005-01-04  Jim Meyering  <jim@meyering.net>
69021
69022         Changes imported from coreutils.
69023         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69024         as the mkstemp template, use a temporary directory and an
69025         8.3-friendly template to avoid trouble on systems like DJGPP.
69026         Reported by Juan M. Guerrero via Stepan Kasal.
69027         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69028         close. Remove the temporary directory right away, rather than waiting
69029         for configure's at-exit trap code to do it.
69030         Suggestion from Stepan Kasal.
69031
69032 2005-01-01  Simon Josefsson  <jas@extundo.com>
69033
69034         * gnulib-tool: Print #include directives when --import'ing.
69035
69036 2004-12-28  Simon Josefsson  <jas@extundo.com>
69037
69038         * tests/test-base64.c: Include required header files.  Remove
69039         unused variables.
69040
69041 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69042
69043         * modules/error (Depends-on): Remove gettext.
69044
69045 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69048         not needed.  This removes a dependency on the gettext module.
69049         [defined _LIBC]: Do not include <libintl.h>; not needed.
69050
69051 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69052
69053         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69054         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69055
69056 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69057
69058         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69059         HAVE_DECL_STRTOLD.
69060
69061 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69062
69063         * modules/getdate (Depends-on): Remove alloca-opt.
69064
69065 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69068
69069 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * lib/argp-parse.c: Include <stddef.h>.
69072         (alignof, alignto): New macros.
69073         (parser_init): Don't assume that void * is aligned sufficiently
69074         for struct option.
69075
69076         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69077         need to extend the stack.
69078         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69079         large.
69080
69081 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69082
69083         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69084
69085 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69086
69087         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69088         (2004-10-24) change.  Apparently this was a false alarm.
69089
69090         * modules/getdate: Depend on alloca-opt, not alloca.
69091
69092 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69093
69094         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69095         Remove now-obsolete comment about AIX.
69096         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69097         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69098         (YYMAXDEPTH): New macro.
69099
69100 2004-12-18  Simon Josefsson  <jas@extundo.com>
69101
69102         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69103
69104 2004-12-18  Bruno Haible  <bruno@clisp.org>
69105
69106         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69107
69108 2004-12-18  Bruno Haible  <bruno@clisp.org>
69109
69110         * lib/fatal-signal.c (fatal_signals): Make non-const.
69111         (init_fatal_signals): New function.
69112         (uninstall_handlers, install_handlers): Ignore signals that were set to
69113         SIG_IGN.
69114         (at_fatal_signal): Call init_fatal_signals.
69115         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69116         SIG_IGN.
69117         Reported by Paul Eggert.
69118
69119 2004-12-18  Bruno Haible  <bruno@clisp.org>
69120
69121         * doc/alloca.texi: New file.
69122         * doc/alloca-opt.texi: New file.
69123
69124 2004-12-17  Jim Meyering  <jim@meyering.net>
69125
69126         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69127         Otherwise, install-sh could exit with improper exit status when
69128         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69129
69130 2004-12-16  Simon Josefsson  <jas@extundo.com>
69131
69132         * tests/test-base64.c: Add license.
69133
69134 2004-12-15  Stepan Kasal  <address@hidden>
69135
69136         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69137
69138 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * modules/getcwd (Files): Add m4/d-ino.m4.
69141         Suggested by Mark D. Baushke.
69142
69143 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69144
69145         * lib/getdate.y (textint): New member "negative".
69146         (time_zone_hhmm): New function.
69147         Expect 14 shift-reduce conflicts, not 13.
69148         (o_colon_minutes): New rule.
69149         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69150         (yylex): Set the "negative" member of signed numbers.
69151
69152 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69153
69154         * doc/getdate.texi (Time of day items, Time zone items):
69155         Describe new formats +00:00, UTC+00:00.
69156
69157 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69158
69159         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69160         spurious "-l"s.  Problem reported by Stepan Kasal.
69161
69162 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69163
69164         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69165         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69166
69167 2004-12-04  Simon Josefsson  <jas@extundo.com>
69168
69169         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69170         Vandoorselaere <yoann@prelude-ids.org>.
69171
69172 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         Changes imported from coreutils.
69175         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69176         exist.
69177         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69178
69179 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69180
69181         Changes imported from coreutils.
69182         * lib/hard-locale.c: Assume <locale.h> exists.
69183         Include "strdup.h".
69184         (GLIBC_VERSION): New macro.
69185         (hard_locale): Assume setlocale exists.
69186         Rewrite to avoid #ifdef.
69187         Use strdup rather than malloc + strcpy.
69188         * lib/human.c: Assume <locale.h> exists.
69189         (human_readable): Assume localeconv exists.
69190
69191 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69192
69193         * modules/hard-locale (Depends-on): Add strdup.
69194
69195 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69196
69197         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69198         convert T2, not T.  (Imported from libc.)
69199
69200 2004-11-30  Simon Josefsson  <jas@extundo.com>
69201
69202         * modules/restrict (License): Change to LGPL.
69203
69204 2004-11-30  Simon Josefsson  <jas@extundo.com>
69205
69206         * m4/restrict.m4: Add copyright and copying conditions.
69207
69208 2004-11-30  Simon Josefsson  <jas@extundo.com>
69209
69210         * m4/base64.m4: New file.
69211
69212 2004-11-30  Simon Josefsson  <jas@extundo.com>
69213
69214         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69215         base64.
69216
69217         * tests/test-base64.c: New file.
69218
69219         * modules/base64: New file.
69220
69221 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69222
69223         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69224         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69225
69226         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69227
69228 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69229
69230         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69231         (__getcwd.c): Don't restore errno; glibc doesn't.
69232         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69233         first, falling back to our code only if its results look suspicious.
69234         Ensure that the resulting buffer is only as large as necessary.
69235
69236         * lib/readutmp.c: Include readutmp.h first.
69237         Include <errno.h>, since readutmp.h no longer does that.
69238         * lib/readutmp.h: Don't include <errno.h>,
69239         <sys/param.h>, <time.h>; not needed to establish interface.
69240         (errno): Remove decl.
69241         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69242         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69243         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69244
69245 2004-11-28  Simon Josefsson  <jas@extundo.com>
69246
69247         * lib/base64.h, base64.c: New file.
69248
69249 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69250
69251         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69252
69253 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69254
69255         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69256         (Depends-on): Remove pathmax, same.  Add mempcpy.
69257         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69258         (Makefile.am): Append getcwd.h to lib_SOURCES.
69259         (Include): Add getcwd.h.
69260         (Maintainer): Change from Jim Meyering to "all, glibc",
69261         since getdate now uses intended-for-glibc code.
69262         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69263         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69264
69265 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69266
69267         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69268         HP's ANSI C compiler.
69269         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69270         Declaring int functions causes warnings on some modern systems and
69271         shouldn't be needed to compile on ancient ones.
69272         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69273         defined.
69274
69275         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69276         with the following changes.
69277         (__set_errno): Parenthesize properly.
69278         Include <stdbool.h>.
69279         (MIN, MAX, MATCHING_INO): New macros.
69280         (__getcwd): Define with prototype, not K&R form.
69281         Use heuristics to allocate default buffer on stack if possible.
69282         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69283         behavior, and to avoid the PATH_MAX limit when computing
69284         ../../../../...
69285         Use MATCHING_INO to compare inode number to file.
69286         Check for arithmetic overflow in size calculations.
69287         Fix bug in reallocation of dot array that caused getcwd to fail
69288         on directories nested deeper than 75.
69289         Be more careful about saving errno on error.
69290         Do not use realloc; use only free+malloc, as this is a bit
69291         more flexible and avoids a needless copy operation.
69292         Do not inspect st_dev and st_ino for symbolic links; POSIX
69293         doesn't specify the latter.
69294         Check for closedir errors.
69295         Avoid needless casts.
69296         Use "#ifdef weak_alias" around weak_alias, to be like other
69297         glibc code.
69298         The following changes to getcwd.c have effect only when used in
69299         gnulib; they have no effect inside glibc proper.
69300         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69301         as alloca isn't used.
69302         (alloca, __alloca): Likewise.
69303         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69304         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69305         unconditionally, as gnulib assumes C89 or better.
69306         Do not include <sys/param.h>.
69307         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69308         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69309         better.
69310         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69311         Include <dirent.h> in a way that is compatible with modern Autoconf.
69312         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69313         New macros, if not already defined.
69314         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69315         Use "_LIBC", not "defined _LIBC", for consistency.
69316         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69317         a mempcpy module.
69318         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69319         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69320         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69321         credit only to Jim Meyering and adjust the copyright dates.
69322         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69323         <stdlib.h>, <unistd.h>, "pathmax.h".
69324         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69325         (INITIAL_BUFFER_SIZE): Remove.
69326         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69327
69328 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69329
69330         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69331         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69332         Use the _ONCE methods, for efficiency.
69333         Check for fcntl.h.  In test program, include <errno.h>
69334         and <fcntl.h> if available.  Remove old K&R cruft from
69335         test program.  Check for common errors in GNU/Linux,
69336         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69337         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69338         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69339         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69340         name accordingly.
69341         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69342         accommodate new getcwd.c.
69343         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69344         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69345         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69346         that's all we need now.
69347
69348 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69349
69350         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69351         argp-parse.c depends on getopt internals, that means we should
69352         always use our getopt, to be on the safe side.
69353         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69354         order not to spoil the result of an eventual previous invocation
69355         of gl_GETOPT_SUBSTITUTE.
69356
69357 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69358
69359         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69360         redefinition warnings. To avoid them, include the defines
69361         in `#if !defined __need_getopt ... #endif'. The only place
69362         where __getopt_argv_const is used is in definitions
69363         of getopt_long and getopt_long_only below, which are as well
69364         protected by `#ifndef __need_getopt'.
69365         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69366         __need_getopt after including <stdio.h> and <unistd.h> These
69367         headers might have defined it.
69368
69369 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69370
69371         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69372
69373 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69374
69375         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69376         (futimens): New function, which uses futimes if available.
69377         (futimens, utimens): Support timespec==NULL, with same semantics
69378         as utime and utimens.
69379         * lib/utimens.h (futimens): New decl.
69380
69381 2004-11-23  Jim Meyering  <jim@meyering.net>
69382
69383         * lib/getopt_.h: Remove trailing blanks.
69384
69385 2004-11-23  Jim Meyering  <jim@meyering.net>
69386
69387         * lib/__fpending.c: Add comment.
69388
69389 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69390
69391         * modules/canonicalize (Depends-on): Add xreadlink.
69392         Problem reported by James Youngman.
69393
69394 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69395
69396         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69397         New macros.
69398         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69399         optopt): Use them instead of invoking ## directly; otherwise, the
69400         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69401
69402 2004-11-19  Bruno Haible  <bruno@clisp.org>
69403
69404         * lib/strtok_r.c: Move comments from here...
69405         * lib/strtok_r.h: ... to here.
69406
69407 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69410         implementations that mishandle size_t overflow.
69411
69412 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69413
69414         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69415         might fail.  Problem reported by Yoann Vandoorselaere.
69416         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69417         implementations that mishandle size_t overflow.
69418
69419 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * modules/canon-host (Depends-on): Add strdup.
69422
69423 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69424
69425         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69426
69427 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69428
69429         * lib/canon-host.c: Include "strdup.h".
69430         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69431         Use strdup instead of malloc/strcpy to duplicate strings.
69432
69433         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69434         (human_space_before_unit): New constant.
69435         * lib/human.c (human_readable): Support it.
69436
69437         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69438         (xgetcwd): Set errno correctly when failing.
69439         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69440         the failure is actually due to a PATH_MAX problem.
69441
69442         Further getopt changes to make it more likely that glibc will
69443         buy the changes back.
69444         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69445         (getopt): Use it, so to preserve glibc semantic
69446         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69447         when compiling for libc.
69448         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69449         (getopt_long, getopt_long_only): Use it.
69450
69451         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69452         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69453         (getopt): Argv is now char * const *, as per standard.
69454         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69455         not char *__getopt_argv_const *.
69456         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69457         _getopt_long_only_r): Likewise.
69458         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69459         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69460         _getopt_long_r, _getopt_long_only_r): Likewise.
69461         * lib/getopt_.h (__getopt_argv_const): Remove.
69462         (getopt): Argv is now char * const *, as per standard.
69463
69464         * lib/getdate.y (tORDINAL): New token.
69465         (day, relunit): Allow it for relative times.
69466         (relative_time_table): Use tORDINAL for ordinals.
69467
69468 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69471         Document that "second" isn't allowed as an ordinal number.
69472
69473 2004-11-16  Jim Meyering  <jim@meyering.net>
69474
69475         * modules/closeout (Depends-on): Add fpending.
69476
69477 2004-11-15  Jim Meyering  <jim@meyering.net>
69478
69479         * lib/closeout.c: Include "__fpending.h" once again.
69480         Include <stdbool.h>.
69481         (close_stdout): Don't fail just because stdout was closed initially,
69482         since some programs don't write to stdout in the normal course of
69483         operation (other than --version and --help), and we don't want this
69484         function to make e.g. `touch file >&-' fail.
69485         But do fail if it was closed and someone has tried to write to it.
69486         E.g., `printf foo >&-' must fail.
69487
69488 2004-11-13  Jim Meyering  <jim@meyering.net>
69489
69490         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69491
69492 2004-11-12  Simon Josefsson  <jas@extundo.com>
69493
69494         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69495         small doc fix is still pending.
69496
69497 2004-11-11  Simon Josefsson  <jas@extundo.com>
69498
69499         * modules/strtok_r: New file.
69500
69501         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69502         strtok_r.
69503
69504 2004-11-11  Simon Josefsson  <jas@extundo.com>
69505
69506         * m4/strtok_r.m4: New file.
69507
69508         * m4/getopt.m4: Replace opterr.
69509
69510 2004-11-11  Simon Josefsson  <jas@extundo.com>
69511
69512         * lib/strtok_r.h, strtok_r.c: New file.
69513
69514 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69515
69516         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69517         of replacing opterr, getopt, etc.  This should handle the
69518         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69519
69520 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69523         we can stop lying to compilers about the constness of argv when we
69524         are compiled outside glibc.
69525         (getopt, getopt_long, getopt_long_only): Use it.
69526         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69527         _getopt_internal, getopt): Likewise.
69528         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69529         _getopt_long_only_r): Likewise.
69530         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69531         _getopt_long_r, _getopt_long_only_r): Likewise.
69532
69533         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69534         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69535         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69536         the other external symbols.
69537         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69538         declaration, since the above renaming now works around collisions.
69539
69540 2004-11-11  Jim Meyering  <jim@meyering.net>
69541
69542         * lib/linebreak.c: Remove trailing blanks.
69543         * lib/alloca_.h: Likewise.
69544         * lib/acosl.c: Likewise.
69545         * lib/euidaccess.c: Likewise.
69546         * lib/allocsa.h: Likewise.
69547
69548 2004-11-10  Simon Josefsson  <jas@extundo.com>
69549
69550         * m4/getaddrinfo.m4: New file.
69551
69552 2004-11-10  Simon Josefsson  <jas@extundo.com>
69553
69554         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69555
69556 2004-11-10  Simon Josefsson  <jas@extundo.com>
69557
69558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69559         getaddrinfo.
69560
69561         * modules/getaddrinfo: New file.
69562
69563 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69564
69565         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69566
69567 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69568
69569         * lib/mktime.c (SHR): New macro, which is a portable
69570         substitute for >> that should work even on Crays.
69571         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69572         Problem reported by Mark D. Baushke in
69573         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69574         * lib/getdate.y (SHR): Likewise.
69575         (tm_diff): Use it.
69576         * lib/strftime.c (SHR): Likewise.
69577         (tm_diff): Use it.
69578         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69579         quote_these_too, so that right shifts are well defined.  All uses
69580         changed.
69581
69582 2004-11-10  Jim Meyering  <jim@meyering.net>
69583
69584         Ensure that no close failure goes unreported.
69585         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69586         return early when it seems there's nothing to flush.
69587         Don't include __fpending.h.
69588
69589 2004-11-10  Jim Meyering  <jim@meyering.net>
69590
69591         * modules/closeout (Depends-on): Remove fpending.
69592
69593 2004-11-10  Jim Meyering  <jim@meyering.net>
69594
69595         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69596
69597 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69598
69599         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69600         gl_FUNC_STRFTIME.
69601         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69602         and AC_REQUIRE when possible, to avoid duplicate checks.
69603         Check for <wchar.h>.
69604
69605 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69608
69609 2004-11-09  Bruno Haible  <bruno@clisp.org>
69610
69611         * m4/sockpfaf.m4: New file.
69612
69613 2004-11-05  Bruno Haible  <bruno@clisp.org>
69614
69615         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69616         Reported by Mark D. Baushke <mdb@cvshome.org>.
69617
69618 2004-11-04  Bruno Haible  <bruno@clisp.org>
69619
69620         2004-09-11  Bruno Haible  <bruno@clisp.org>
69621                 * allocsa.valgrind: New file.
69622         2004-02-06  Bruno Haible  <bruno@clisp.org>
69623                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69624                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69625                 Reported by Christopher Seip <chris.seip@hp.com>.
69626
69627 2004-11-04  Bruno Haible  <bruno@clisp.org>
69628
69629         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69630         (Makefile.am): Distribute it.
69631
69632 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69633
69634         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69635         with errno == ERANGE if the buffer is too small.
69636         Problem reported by Mark D. Baushke.
69637
69638 2004-11-03  Albert Chin  <china@thewrittenword.com>
69639             Paul Eggert  <eggert@cs.ucla.edu>
69640
69641         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69642         equivalent, substitute $ac_type for equivalent type rather than
69643         blindly using uint32_t *always* which won't work if uint32_t is not
69644         available.  Define _UINT32_T to work around typedef of uint32_t if
69645         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69646         2.5.1.
69647
69648 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69649
69650         * m4/jm-macros.m4: Sync from coreutils.
69651         (gl_MACROS): Check for mbrlen, for pathchk.
69652         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69653
69654 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69655
69656         * lib/xreadlink.c (MAXSIZE): New macro.
69657         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69658         size does not exceed MAXSIZE.  Avoid cast.
69659         As suggested by Mark D. Baushke in
69660         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69661         if readlink fails with buffer size just under MAXSIZE, try again
69662         with MAXSIZE.
69663
69664 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69665
69666         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69667
69668 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69669         and  Paul Eggert  <eggert@cs.ucla.edu>
69670
69671         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69672         (get_date): Overparenthesize to avoid GCC warning.
69673
69674 2004-11-02  Bruno Haible  <bruno@clisp.org>
69675
69676         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69677         returns void.
69678
69679 2004-11-02  Bruno Haible  <bruno@clisp.org>
69680
69681         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69682         function returns void.
69683
69684 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69685
69686         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69687         fflush_unlocked, flockfile, funlockfile, funlockfile,
69688         fputs_unlocked, putc_unlocked.
69689
69690 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69693         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69694         already declared.
69695
69696 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         * modules/getdate (Files): Add doc/getdate.texi.
69699         (Depends-on): Add setenv, xalloc.
69700
69701 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         * lib/getdate.y: Add support for TZ="foo" within a date string.
69704         Fix some bugs near time_t boundaries.  Reject dates with
69705         out-of-range components, e.g., "Sept 31".
69706         Include <stdlib.h>, "setenv.h", "xalloc.h".
69707         (ISDIGIT_LOCALE): Remove; unused.
69708         Note that the TZ and time functions used here are not reentrant.
69709         (mktime_ok, get_tz): New functions.
69710         (TZBUFSIZE): New constant.
69711         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69712         This requires that we sometimes generate our own TZ="XXX..." setting.
69713
69714 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69715
69716         * doc/getdate.texi: New file, from coreutils with modifications for
69717         the new TZ parsing.
69718
69719 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69720
69721         * lib/mktime.c (not_equal_tm): Remove redundant check.
69722
69723 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69724
69725         * modules/regex (lib_SOURCES): Add regex.c.
69726         Reported by James Youngman in
69727         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69728
69729 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69730
69731         * lib/getdate.y: Use Bison 1.875 features, and some minor
69732         code cleanups.  This change does not affect semantics.
69733         Don't include <stdlib.h>; no longer needed.
69734         Don't include unlocked-io.h; only the "#if TEST" code uses
69735         stdio, and performance isn't crucial there.
69736         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69737         Bison 1.875 features as described below.
69738         All uses of "PC." replaced by "pc->".
69739         (YYSTYPE): Add a forward declaration.
69740         (yylex, yyerror): Use full prototypes in forward decls.
69741         Use "%pure-parser" rather than obsolescent "%pure_parser".
69742         Use %parse-param and %lex-param instead of obsolescent
69743         YYPARSE_PARAM and YYLEX_PARAM.
69744         (meridian_table, month_and_day_table, time_units_table,
69745         relative_time_table, time_zone_table, military_table,
69746         lookup_zone, lookup_word, get_date):
69747         Use NULL instead of 0 where appropriate.
69748         (to_hour): Avoid abort (), to avoid a dependency on
69749         stdlib.h.
69750         (yyerror, yylex): Now accepts parser_control * arg.
69751         (main) [TEST]: Use '\0' rather than 0 for char.
69752
69753 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69754
69755         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69756
69757 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69758
69759         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69760         It's now the caller's responsibility to handle the case where
69761         !HAVE_GETPAGESIZE && !defined getpagesize.
69762
69763         * lib/mktime.c (leapyear): Arg is long int, not int.
69764
69765 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69766
69767         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69768
69769 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69770
69771         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69772         missing.  Problem reported by James Youngman.
69773
69774 2004-10-16  Simon Josefsson  <jas@extundo.com>
69775
69776         * gnulib-tool: Fix comments.  Fix parse problem.
69777         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69778
69779 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69780
69781         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69782         implementation of getopt_long.  Problem reported by Alexander Taler in:
69783         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69784
69785 2004-10-15  Bruno Haible  <bruno@clisp.org>
69786
69787         * gnulib-tool: Untabify. Initialize supplied_libname.
69788         (func_usage): More homogenous output.
69789         (func_modules_transitive_closure, func_modules_to_filelist,
69790         func_emit_lib_Makefile_am): New functions.
69791         (func_import): New function, extracted from big case statement. Use
69792         func_get_license, func_modules_transitive_closure,
69793         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69794         opt_lgpl. Don't use test -a, as it's not portable.
69795         (func_create_testdir): Use func_modules_transitive_closure,
69796         func_modules_to_filelist, func_emit_lib_Makefile_am.
69797
69798 2004-10-15  Bruno Haible  <bruno@clisp.org>
69799
69800         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69801
69802 2004-10-15  Bruno Haible  <bruno@clisp.org>
69803
69804         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69805         the portions belonging to each module.
69806         Suggested by Derek Robert Price <derek@ximbiot.com>.
69807
69808 2004-10-12  Simon Josefsson  <jas@extundo.com>
69809
69810         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69811         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69812         to real functions.
69813
69814 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69815
69816         * modules/vsnprintf: New file.
69817
69818 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69819
69820         * m4/vsnprintf.m4: New file.
69821
69822 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69823
69824         * lib/vsnprintf.h: New file.
69825         * lib/vsnprintf.c: New file.
69826
69827 2004-10-11  Bruno Haible  <bruno@clisp.org>
69828
69829         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69830         vsnprintf.
69831
69832 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69833
69834         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69835
69836 2004-10-07  Bruno Haible  <bruno@clisp.org>
69837
69838         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69839         fits into the provided buffer.
69840
69841 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69842
69843         * lib/diacrit.c, diacrit.h: Add GPL notice.
69844
69845         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69846         notice.
69847         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69848         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69849         This avoids a potential constant-folding bug.
69850
69851 2004-10-05  Bruno Haible  <bruno@clisp.org>
69852
69853         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69854         for the declaration of strsep.
69855
69856 2004-10-05  Bruno Haible  <bruno@clisp.org>
69857
69858         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69859
69860 2004-10-04  Simon Josefsson  <jas@extundo.com>
69861
69862         * modules/memmem: New file.
69863         * tests/test-memmem.c: New file.
69864         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69865
69866 2004-10-04  Simon Josefsson  <jas@extundo.com>
69867
69868         * m4/memmem.m4: New file.
69869
69870 2004-10-04  Simon Josefsson  <jas@extundo.com>
69871
69872         * lib/memmem.h: New file.
69873         * lib/memmem.c: New file, taken from glibc.
69874
69875 2004-10-04  Simon Josefsson  <jas@extundo.com>
69876
69877         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69878         '#ifdef USE_UNLOCKED_IO'.
69879
69880 2004-10-04  Simon Josefsson  <jas@extundo.com>
69881
69882         * config/srclist.txt: Add memmem from glibc.
69883
69884 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69885
69886         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69887
69888         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69889         modules/exclude, modules/getdate, modules/getline,
69890         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69891         modules/getusershell, modules/linebuffer, modules/md5,
69892         modules/mountlist, modules/posixtm, modules/readtokens,
69893         modules/readutmp, modules/regex, modules/sha1,
69894         modules/version-etc, modules/yesno:
69895         Remove dependency on unlocked-io.
69896
69897 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69898
69899         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69900
69901         * m4/unlocked-io.m4: Add copyright notice.
69902         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69903
69904 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69905
69906         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69907         * lib/xmalloc.c (xmemdup): Likewise.
69908         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69909         XFREE): Remove these long-obsolescent macros.
69910         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69911         * lib/xstrdup.c: Remove.
69912
69913         * lib/regex.c (re_comp): Cast gettext return value to char *,
69914         Problem reported by Martin Neitzel via Mark D. Baushke.
69915
69916 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69917
69918         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69919         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69920         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69921         regex.c, sha1.c, version-etc.c, yesno.c:
69922         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69923         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69924         the includer's responsibility.
69925
69926         Sync from coreutils.
69927
69928         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69929         points to the start of a string, as the C Standard says the
69930         resulting behavior is undefined.
69931
69932         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69933         simple -> simple_backups, numbered_existing ->
69934         numbered_existing_backups, numbered -> numbered_backups
69935         to avoid shadowing problems.  All uses changed.
69936         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69937         * lib/backupfile.c (check_extension, numbered_backup):
69938         Rename locals to avoid shadowing 'basename'.
69939         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69940         once.
69941
69942         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69943         * lib/.cvsignore: Add getopt.h.
69944
69945 2004-10-04  Bruno Haible  <bruno@clisp.org>
69946
69947         * modules/README: New file.
69948         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69949         not a module.
69950
69951 2004-10-02  Jim Meyering  <jim@meyering.net>
69952
69953         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69954
69955 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69956
69957         * modules/strsep: New file.
69958
69959 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69960
69961         * m4/strsep.m4: New file.
69962
69963 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69964
69965         * lib/strsep.h: New file.
69966         * lib/strsep.c: New file.
69967
69968 2004-10-01  Simon Josefsson  <jas@extundo.com>
69969
69970         * lib/snprintf.c (snprintf): Handle size==0.
69971
69972 2004-10-01  Simon Josefsson  <jas@extundo.com>
69973             Bruno Haible  <bruno@clisp.org>
69974
69975         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69976         (snprintf): Declare 'args'.
69977
69978 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69979
69980         * lib/snprintf.c: Remove comments as to why each header is needed.
69981
69982 2004-10-01  Bruno Haible  <bruno@clisp.org>
69983
69984         * MODULES.html.sh: Add strsep.
69985
69986 2004-09-30  Simon Josefsson  <jas@extundo.com>
69987
69988         * modules/snprintf: New file.
69989
69990 2004-09-30  Simon Josefsson  <jas@extundo.com>
69991
69992         * m4/snprintf.m4: New file.
69993
69994 2004-09-30  Simon Josefsson  <jas@extundo.com>
69995
69996         * lib/snprintf.h, lib/snprintf.c: New files.
69997
69998 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69999
70000         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70001         (hol_entry_help): Never translate an empty string.
70002         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70003         * lib/argp.h (OPTION_NO_TRANS): New option.
70004
70005 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70006
70007         * modules/argp (Maintainer): Replace Simon Josefsson
70008         by Sergey Poznyakoff.
70009
70010 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70011
70012         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70013         changes merged back into glibc.
70014
70015 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70018
70019 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70020
70021         * lib/xvasprintf.c: Include xalloc.h.
70022         (xvasprintf): Use xalloc_die, not xmalloc_die.
70023
70024 2004-09-29  Bruno Haible  <bruno@clisp.org>
70025
70026         * modules/alloca-opt: New file, derived from modules/alloca.
70027         * modules/allocsa: Depend on alloca-opt instead of alloca.
70028         * modules/setenv: Likewise.
70029         * modules/vasnprintf: Likewise.
70030         * MODULES.html.sh: Add alloca-opt.
70031
70032 2004-09-28  Simon Josefsson  <jas@extundo.com>
70033
70034         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70035         LGPL, and to replace license template from GPL to LGPL.
70036
70037 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70038
70039         * modules/dummy: Change license to LGPL.
70040
70041 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70042
70043         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70044
70045 2004-09-24  Simon Josefsson  <jas@extundo.com>
70046
70047         * modules/minmax (License): Change from GPL to LGPL.
70048
70049 2004-09-23  Simon Josefsson  <jas@extundo.com>
70050
70051         * gnulib-tool (--import): Typo.
70052
70053 2004-09-23  Simon Josefsson  <jas@extundo.com>
70054
70055         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70056
70057 2004-09-22  Bruno Haible  <bruno@clisp.org>
70058
70059         * modules/*: Add 'License' field.
70060         * gnulib-tool: Accept --extract-license option.
70061         (func_get_license): New function.
70062
70063 2004-09-21  Bruno Haible  <bruno@clisp.org>
70064
70065         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70066         Reported by Simon Josefsson.
70067
70068 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70069
70070         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70071         gl_AC_TYPE_LONG_LONG.
70072
70073 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70074
70075         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70076
70077 2004-09-18  Simon Josefsson  <jas@extundo.com>
70078         and  Paul Eggert  <eggert@cs.ucla.edu>
70079
70080         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70081         calls with autoreconf.  Define GL_LIB.
70082
70083 2004-09-14  Karl Berry  <karl@gnu.org>
70084
70085         * config/srclist.txt: unsync setenv.c, sigh.
70086
70087 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70088
70089         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70090         Problem reported by Bruno Haible in:
70091         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70092
70093 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70094
70095         * config/srclist.txt: Comment out argp-pvh.c.
70096
70097 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70100         in case some system header has #define'd it.  Problem reported by
70101         Soeren D. Schulze in
70102         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70103
70104 2004-09-09  Karl Berry  <karl@gnu.org>
70105
70106         * regex.[ch]: delete from the root.  These were supposed to be
70107                 synced with emacs cvs, but this has not happened for about
70108                 a year, and anyway nothing else uses emacs regex.[ch].
70109                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70110                 lib/regex[.ch] is untouched.
70111
70112 2004-09-09  Bruno Haible  <bruno@clisp.org>
70113
70114         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70115
70116 2004-09-09  Bruno Haible  <bruno@clisp.org>
70117
70118         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70119         modifications.
70120         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70121
70122 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70123
70124         * modules/xvasprintf: New file.
70125         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70126
70127 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70128
70129         * lib/xvasprintf.h: New file.
70130         * lib/xvasprintf.c: New file.
70131         * lib/xasprintf.c: New file.
70132
70133 2004-09-08  Bruno Haible  <bruno@clisp.org>
70134
70135         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70136
70137 2004-09-08  Bruno Haible  <bruno@clisp.org>
70138
70139         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70140         length is > INT_MAX.
70141         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70142         more.
70143
70144 2004-09-08  Bruno Haible  <bruno@clisp.org>
70145
70146         * lib/stdint_.h: New file, taken from GNU clisp.
70147
70148 2004-09-08  Bruno Haible  <bruno@clisp.org>
70149             Oskar Liljeblad  <oskar@osk.mine.nu>
70150
70151         * modules/stdint: New file.
70152         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70153
70154 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70155
70156         Import from coreutils.
70157         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70158         strings on unbounded length.  alloca's performance benefits aren't
70159         that important here.
70160         (V_STRDUP): Remove.
70161         (parse_with_separator): New function, with most of the internals
70162         of the old parse_user_spec.  Allow user to omit both user and group,
70163         for compatibility with FreeBSD.
70164         Clone only the user name, not the entire spec.
70165         Do not set *uid, *gid unless entirely successful.
70166         Avoid memory leak in some failing cases.
70167         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70168         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70169         (parse_user_spec): Rewrite to use parse_with_separator.
70170
70171 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70172
70173         * modules/userspec: Don't depend on alloca.
70174
70175 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70176
70177         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70178
70179 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70180
70181         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70182         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70183         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70184
70185 2004-08-16  Simon Josefsson  <jas@extundo.com>
70186
70187         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70188         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70189         Add --dry-run for --import.
70190         Let user provided command line parameters override configure.ac
70191         settings.
70192
70193 2004-08-12  Simon Josefsson  <jas@extundo.com>
70194
70195         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70196         as discussed with Paul Eggert in threads rooted at
70197         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70198         and
70199         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70200         Before, the test was empty, and relied on ELIDE_CODE in source
70201         code.)
70202         (gl_PREREQ_GETOPT): New macro.
70203         (gl_GETOPT): Use them.
70204
70205 2004-08-12  Simon Josefsson  <jas@extundo.com>
70206
70207         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70208         * lib/getopt_.h: Renamed from getopt.h.
70209
70210 2004-08-12  Simon Josefsson  <jas@extundo.com>
70211
70212         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70213         Change default library name from libfoo to libgnu.
70214         Now, if you have a configure.ac that says:
70215                 gl_SOURCE_BASE(gl)
70216                 gl_M4_BASE(gl/m4)
70217                 gl_MODULES(error getopt etcetera)
70218                 gl_INIT
70219         you can import all you need by running:
70220                 ../gnulib/gnulib-tool --import
70221
70222         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70223         (Makefile.am): Rewrite, use logic from argz.
70224         (Include): Use <getopt.h> instead of "getopt.h".
70225
70226 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * modules/argp (Files): Add m4/unlocked-io.m4.
70229         (Depends-on): Add extensions.
70230
70231 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70232
70233         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70234         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70235         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70236         Check for program_invocation_name, program_invocation_short_name,
70237         flockfile, funlockfile, features.h, _getopt_long_only_r.
70238
70239 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70240
70241         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70242         its complicated substitute.
70243         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70244         and program_invocation_name.
70245         (__argp_basename) [!_LIBC]: Remove; the only use was
70246         replaced by its body.
70247         (__argp_short_program_name): Change condition from
70248         !defined __argp_short_program_name to
70249         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70250         to match argp-namefrob.h.
70251         (__argp_failure): Don't assume strerror_r returns char *.
70252         * lib/argp-parse.c (N_): Define unconditionally.
70253         (argp_default_options): Fill out initializers with 0 to avoid
70254         gcc warnings.
70255
70256 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70257
70258         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70259         getopt1.c.
70260
70261 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70262
70263         Merge from coreutils.
70264
70265         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70266
70267         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70268         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70269
70270 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70271
70272         Merge from coreutils.
70273
70274         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70275         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70276         for Reliant Unix 5.43.
70277
70278         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70279         (union fooround): Use uintmax_t, not long int.
70280         The rest is a merge from libc:
70281         [defined _LIBC]: Include <shlib-compat.h>.
70282         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70283
70284         * lib/settime.c (settime): Recode to avoid warning with
70285         Sun Forte C 6U2.
70286
70287         * lib/strverscmp.c: Convert to UTF-8.
70288
70289 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70290
70291         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70292         m4/uintmax_t.m4.
70293
70294 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         * modules/xalloc-die: New file.
70297         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70298
70299         * modules/md5 (Files): Add m4/uint32_t.m4.
70300         * modules/sha1: Renamed from modules/sha.
70301         (Files):
70302         Rename lib/sha.h to lib/sha1.h.
70303         Rename lib/sha.c to lib/sha1.c.
70304         Rename m4/sha.m4 to m4/sha1.m4.
70305         (lib_SOURCES): Likewise.
70306         (configure.ac): Rename gl_SHA to gl_SHA1.
70307         (Include): sha.h -> sha1.h.
70308
70309 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70310
70311         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70312         * m4/sha1.m4: Renamed from sha.m4.
70313         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70314
70315 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70316
70317         * lib/obstack.h (obstack_empty_p):
70318         Don't assume that chunk->contents is suitably aligned.
70319         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70320         Likewise. Problem reported by Benno in
70321         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70322
70323         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70324         readable.  This could be improved further but it'd take some work.
70325
70326 2004-08-08  Simon Josefsson  <jas@extundo.com>
70327
70328         * modules/xgethostname (Depends-on): Remove exit and error (not
70329         used).
70330
70331         * modules/getpass-gnu: Add getpass.h.
70332         (Depends-on): Add stdbool.
70333         * modules/getpass: Add getpass.h.
70334
70335 2004-08-08  Simon Josefsson  <jas@extundo.com>
70336
70337         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70338         Check getpass declaration.
70339
70340 2004-08-08  Simon Josefsson  <jas@extundo.com>
70341
70342         * lib/xgethostname.c: Don't include error.h (not used).
70343
70344         * lib/getpass.h: Add.
70345         * lib/getpass.c: Include getpass.h first.
70346
70347 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * lib/xalloc-die.c: New file.
70350         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70351         All uses removed.
70352         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70353         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70354         xalloc-die.c.
70355         (_, N_, xalloc_die): Move to xalloc-die.c.
70356         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70357         so that we needn't mess with xalloc_msg_memory_exhausted.
70358
70359         * lib/sha1.h: Renamed from sha.h.
70360         (SHA1_H): Renamed from _SHA_H.
70361         (sha1_ctx): Renamed from sha_ctx.
70362         (sha1_init_ctx): Renamed from sha_init_ctx.
70363         (sha1_process_block): Renamed from sha_process_block.
70364         (sha1_process_bytes): Renamed from sha_process_bytes.
70365         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70366         (sha1_read_ctx): Renamed from sha_read_ctx.
70367         (sha1_stream): Renamed from sha_stream.
70368         (sha1_buffer): Renamed from sha_buffer.
70369         * lib/sha1.c: Likewise; renamed from sha.c.
70370         Do not include <sys/types.h>.
70371         Include <stddef.h> rather than <stdlib.h>.
70372
70373 2004-08-08  Bruno Haible  <bruno@clisp.org>
70374
70375         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70376         FILESYSTEM_PREFIX_LEN.
70377         * lib/progreloc.c: Likewise.
70378         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70379
70380 2004-08-06  Simon Josefsson  <jas@extundo.com>
70381
70382         * modules/progname (Depends-on): Don't depend on stdbool.
70383
70384 2004-08-06  Simon Josefsson  <jas@extundo.com>
70385
70386         * modules/getsubopt: New file.
70387         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70388         getsubopt.
70389
70390 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70391
70392         More merge from coreutils.
70393
70394         * m4/utimens.m4, m4/utimecmp.m4: New files.
70395         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70396         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70397         prereq.m4, sha.m4: Import changes from coreutils.
70398
70399 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         More merge from coreutils.
70402         * modules/raise, modules/readtokens0, modules/utimens:
70403         * modules/utimecmp, module/xnanosleep: New files.
70404         * modules/strftime: Add lib/strftime.h.
70405         Change include from <time.h> to "strftime.h".
70406         * modules/yesno: Add lib/yesno.h.
70407         * modules/backupfile: Remove lib/addext.c.
70408         * modules/euidaccess: Add stat-macros.h.
70409         * modules/canonicalize, modules/euidaccess,
70410         modules/filemode, modules/lchown, modules/makepath,
70411         modules/rmdir, modules/stat: Likewise.
70412
70413 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70414
70415         Merge from tar.
70416         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70417         SIZE_MAX is a valid preprocessor constant.
70418         (__argp_basename): Change from "#ifndef _LIBC"
70419         to "#ifndef __argp_short_program_name", so that
70420         we don't compile these functions for tar.
70421
70422         More merges from coreutils.
70423         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70424         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70425         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70426         * lib/addext.c: Remove; no longer needed.
70427         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70428         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70429         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70430         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70431         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70432         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70433         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70434         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70435         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70436         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70437         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70438         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70439         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70440         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70441         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70442         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70443         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70444         Import changes from coreutils.
70445
70446 2004-08-05  Simon Josefsson  <jas@extundo.com>
70447
70448         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70449
70450 2004-08-05  Simon Josefsson  <jas@extundo.com>
70451
70452         * m4/getsubopt.m4: New file.
70453
70454 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70455
70456         Merge from coreutils.
70457
70458         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70459         * m4/getcwd-path-max.m4: New files.
70460
70461         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70462         FILESYSTEM_PREFIX_LEN ->
70463         FILE_SYSTEM_PREFIX_LEN.
70464         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70465         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70466         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70467         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70468
70469         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70470         prerequisite modules now handle the DOS stuff.
70471         Don't check for unistd.h.
70472
70473 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         Merge from coreutils.
70476
70477         * lib/.gdb-history: Remove; this doesn't belong here.
70478
70479         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70480         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70481         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70482         * lib/getcwd.c: New files.
70483
70484         * lib/dirname.h: Include <stdbool.h>.
70485         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70486         for consistency with POSIX terminology.  All uses changed.
70487         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70488         (strip_trailing_slashes): Use bool for booleans.
70489         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70490
70491         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70492         sometimes returns a positive errno value even when it succeeds.
70493         (print_errno_message) [!LIBC]: Fall back on strerror if
70494         __strerror_r fails.
70495
70496         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70497         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70498         (longest_relative_suffix): New function.
70499         (path_concat): Use it.  Assume first argument is not NULL.
70500         Port to DOS.  Omit redundant separators.
70501         Report an error instead of returning NULL.
70502         Use mempcpy instead of memcpy.
70503         (xpath_concat): Remove: not declared or used.
70504
70505         * lib/same.h: Include <stdbool.h>
70506         (same_name): Return bool, not int.
70507         * lib/same.c (same_name): Likewise.
70508         (errno): Don't declare; we assume C89 or better now.
70509
70510         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70511         if not already defined.
70512
70513         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70514         * lib/dup-safer.c (errno): Likewise.
70515
70516 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70517
70518         Merge from coreutils.
70519         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70520         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70521         * modules/path-concat: Don't depend on strdup.
70522
70523 2004-08-03  Simon Josefsson  <jas@extundo.com>
70524
70525         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70526         * lib/progname.h: Don't include stdbool.h.
70527
70528 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70529
70530         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70531         * MODULES.html.sh (func_all_modules): Remove fatal.
70532
70533 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70534
70535         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70536
70537 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70538
70539         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70540         working.
70541
70542 2004-08-02  Simon Josefsson  <jas@extundo.com>
70543
70544         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70545         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70546         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70547
70548 2004-08-01  Simon Josefsson  <jas@extundo.com>
70549
70550         * lib/xgetdomainname.c: Include stdlib.h, for free().
70551
70552 2004-07-19  Bruno Haible  <bruno@clisp.org>
70553
70554         * MODULES.html.sh (func_all_modules): Add dummy.
70555
70556 2004-07-16  Simon Josefsson  <jas@extundo.com>
70557
70558         * modules/dummy: New file.
70559
70560 2004-07-16  Simon Josefsson  <jas@extundo.com>
70561
70562         * lib/dummy.c: New file.
70563
70564 2004-07-16  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/backupfile.h: Add extern "C" for C++.
70567         * lib/closeout.h: Likewise.
70568         * lib/copy-file.h: Likewise.
70569         * lib/findprog.h: Likewise.
70570         * lib/full-write.h: Likewise.
70571         * lib/pathname.h: Likewise.
70572         * lib/progname.h: Likewise.
70573         * lib/stpcpy.h: Likewise.
70574         * lib/stpncpy.h: Likewise.
70575         * lib/strcase.h: Likewise.
70576         * lib/strstr.h: Likewise.
70577         * lib/xalloc.h: Likewise.
70578
70579         * lib/mbswidth.h: Add extern "C" for C++.
70580         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70581
70582 2004-07-13  Robert Millan  <robertmh@gnu.org>
70583
70584         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70585
70586 2004-07-09  Simon Josefsson  <jas@extundo.com>
70587
70588         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70589         failed without this.)
70590
70591 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70592
70593         * modules/chown (Files): Add lib/fchown-stub.c, since
70594         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70595
70596 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         * lib/fchown-stub.c: New file.
70599
70600 2004-06-24  Jim Meyering  <jim@meyering.net>
70601
70602         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70603
70604 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         * modules/argz: Omit "#include".
70607
70608         * MODULES.html.sh (func_all_modules): Add calloc, to match
70609         2004-06-01 addition of calloc module.
70610
70611 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70612
70613         * m4/argz.m4: New file, which is autoupdated from libtool.
70614
70615 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70618         libtool.
70619
70620 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70621
70622         * config/srclist-update: Don't insist on "USA." before the
70623         close-comment, as libtool omits the period and puts the */ on a
70624         separate line.
70625         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70626         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70627
70628 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70629
70630         * modules/argz: New file.
70631         * MODULES.html.sh (func_all_modules): Add argz.
70632
70633 2004-06-12  Jim Meyering  <jim@meyering.net>
70634         and  Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         * modules/hash (Files): Add lib/xalloc.h.
70637         * modules/pipe (Depends-on): Add wait-process.
70638         * modules/stat (Depends-on): Add xalloc.
70639         * modules/userspec (Files): Add lib/userspec.h.
70640         * modules/xstrto
70641
70642         Upgrade from gettext-0.13.
70643         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70644         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70645         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70646
70647 2004-06-10  Jim Meyering  <jim@meyering.net>
70648
70649         * lib/calloc.c: New file.
70650
70651 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70652
70653         * lib/getdate.y (yylex): Allow space between sign and number.
70654         Problem reported by Dan Jacobson.
70655
70656 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70657
70658         Merge from coreutils CVS.
70659
70660         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70661         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70662         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70663         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70664         xstrtol.m4: Fix copyright date and/or serial number.
70665
70666         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70667         See if we need an fchown replacement.
70668         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70669         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70670         and use the replacement function if we detect either defect.
70671
70672         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70673         gl_UTIMECMP.
70674
70675 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70676         and  Jim Meyering  <jim@meyering.net>
70677
70678         Merge from coreutils CVS.
70679
70680         * lib/stat-macros.h: New file, with contents from file-type.h
70681         and coreutils' system.h.
70682         * lib/file-type.c: Include "stat-macros.h".
70683         * lib/file-type.h (file_type): Move all macro definitions to new file,
70684         stat-macros.h.
70685
70686         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70687         Wrap old code with this conditional.
70688         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70689         function that does not dereference symlinks.
70690         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70691
70692         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70693         dependency problems.
70694         (xreadlink): Accept new arg SIZE, for efficiency.
70695         All decls and uses changed.
70696         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70697
70698         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70699         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70700
70701         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70702         sysexits.h.
70703
70704 2004-06-01  Jim Meyering  <jim@meyering.net>
70705
70706         * m4/calloc.m4: New file.
70707
70708 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70711         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70712         Also, fix a typo in a diagnostic.
70713
70714 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70715
70716         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70717         or AC_FUNC_REALLOC.
70718
70719 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70722         macros to be defined.
70723         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70724         the allocator returns NULL because the requested size is zero.
70725
70726 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70727
70728         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70729         var.  Add comment explaining why libc still defines it.  This
70730         merges the following patch from glibc:
70731         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70732
70733 2004-05-20  Andreas Schwab  <schwab@suse.de>
70734
70735         * m4/free.m4: Replace free if it not known to work, not the other
70736         way round.
70737
70738 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70741         present in glibc since revision 1.1 of this file.
70742         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70743         obstack_alignment_mask, obstack_alloc, obstack_base,
70744         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70745         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70746         obstack_grow0, obstack_init, obstack_int_grow,
70747         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70748         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70749         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70750         nonexistent functions.
70751
70752 2004-05-18  Karl Berry  <karl@gnu.org>
70753
70754         * config/srclist.txt: break link for vasnprintf.c.
70755
70756 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70757
70758         Port obstack to the AS/400, where pointers are 16 bytes wide and
70759         you cannot cast an integer to a valid pointer.  This patch is
70760         currently waiting to be integrated into glibc; see
70761         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70762
70763         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70764         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70765         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70766         (struct obstack): temp member is now a union of a pointer and
70767         an integer, instead of an integer.  All integer uses changed.
70768         This does not affect the physical layout of struct obstack,
70769         except on hosts (like the AS/400) where the size or alignment of
70770         void * is greater than that of ptrdiff_t.
70771         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70772         __STDC__)]: Store temporary in pointer member of union, not
70773         integer member.
70774         * lib/obstack.c: Include <stddef.h>, for offsetof.
70775         (struct fooalign): Remove; it doesn't need a name.
70776         (union fooround): Change double to long double, and add void *.
70777         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70778         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70779         not a macro.  Hence the values are always int; so remove all
70780         casts-to-int in uses.
70781
70782 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70785         we can get this patch merged into glibc.
70786
70787 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70788             Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         * m4/argp: Depend on alloca.
70791
70792 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70793             Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70796         freecoding.
70797
70798 2004-05-17  Bruno Haible  <bruno@clisp.org>
70799
70800         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70801         precision that consists of a '.' followed by an empty digit string.
70802         Patch by Tor Lillqvist <tml@iki.fi>.
70803
70804 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70805
70806         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70807         for backward compatibility with older code.  We need our own
70808         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70809         it under some other name, and our alloca.h will define it.
70810
70811 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70812             Derek Price  <derek@ximbiot.com>
70813
70814         * lib/alloca.c: Include <alloca.h>, to get our interface.
70815         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70816         include <alloca.h> first.  Use C89 prototype for alloca; this
70817         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70818         Use #elif for simplicity, since we can assume C89 now.
70819         Don't try to source the system alloca.h since it will not be found
70820         and to prevent recursively including its replacement.
70821         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70822         * lib/regex.c: Likewise.
70823
70824 2004-05-16  Derek Price  <derek@ximbiot.com>
70825             Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         getline cleanup.  This changes the getndelim2 API: both order of
70828         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70829         no delimiter).
70830
70831         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70832         interface does that.
70833         (getline): Always use getdelim, so that we don't have two
70834         copies of this code.
70835         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70836         if available.
70837         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70838         (GETNDELIM2_MAXIMUM): New macro.
70839         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70840         instead of the old practice of delim2==0.  All callers changed.
70841         Return -1 on overflow, instead of returning junk.
70842         Do not set *linesize unless allocation succeeds.
70843         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70844         that we include sys/types.h.
70845         * lib/getnline.h: Likewise.
70846         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70847         (getndelim2): Reorder arguments.
70848         * lib/getnline.c (getnline, getndelim):
70849         Don't discard the NMAX argument.
70850         (getnline): Invoke getndelim, to avoid code duplication.
70851         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70852         of (size_t) -1 by callers of the getnline family.
70853
70854 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70855
70856         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70857         Check for gettimeofday.
70858         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70859         Check for settimeofday, stime.
70860
70861 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         * lib/nanosleep.c (suspended): Change its type from int to
70864         sig_atomic_t volatile.
70865         (first_call): Make it private to rpl_nanosleep, and have it
70866         be zero initially as that's a bit faster.
70867         (my_usleep): Round up fractional times instead of truncating them,
70868         as this is the usual meaning for 'sleep'.
70869
70870         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70871         doesn't work.
70872         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70873         (ENOSYS): Define if not defined.
70874         (settime): Fall back on stime if it exists and settimeofday fails.
70875         But don't bother with fallbacks if a method fails with errno == EPERM.
70876
70877 2004-05-11  Jim Meyering  <jim@meyering.net>
70878
70879         Prior to this change, the save_cwd caller required read access to the
70880         current directory on most systems (ones with the fchdir function).
70881
70882         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70883         fails, try write-only, and finally, resort to using xgetcwd.
70884
70885 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70886
70887         * lib/obstack.c, obstack.h: Import changes from libc.
70888
70889 2004-04-28  Bruno Haible  <bruno@clisp.org>
70890
70891         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70892         also implicitly appends .exe to executables.
70893         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70894         accepts Windows pathnames.
70895         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70896         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70897         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70898         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70899         Reported by Derek Robert Price <derek@ximbiot.com>.
70900
70901 2004-04-21  Karl Berry  <karl@gnu.org>
70902
70903         * config/srclist.txt (localcharset.c): break sync.
70904
70905 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70906
70907         * m4/host-os.m4: Add a copyright notice.
70908
70909 2004-04-20  Jim Meyering  <jim@meyering.net>
70910
70911         Change UTILS_ to gl_ in AC_DEFINE'd names.
70912         Change utils_- and jm_-prefixed variables, too.
70913         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70914         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70915         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70916
70917         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70918         Don't emit trailing blanks.
70919         Also rename jm_-prefixed variables to have gl_ prefix.
70920
70921         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70922         Also rename jm_-prefixed variables to have gl_ prefix.
70923
70924         * m4/jm-macros.m4: Reflect the renamings.
70925         * m4/prereq.m4: Likewise.
70926
70927 2004-04-20  Jim Meyering  <jim@meyering.net>
70928
70929         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70930         memory.
70931
70932 2004-04-20  Jim Meyering  <jim@meyering.net>
70933             Bruno Haible  <bruno@clisp.org>
70934
70935         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70936         memory when realloc fails.
70937
70938 2004-04-19  Jim Meyering  <jim@meyering.net>
70939
70940         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70941         now that readutmp.c may call `free (0)'.
70942
70943 2004-04-19  Bruno Haible  <bruno@clisp.org>
70944
70945         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70946         * m4/inttypes_h.m4: Likewise.
70947         * m4/stdint_h.m4: Likewise.
70948         * m4/intmax_t.m4: Likewise.
70949         * m4/uintmax_t.m4: Likewise.
70950
70951 2004-04-18  Jim Meyering  <jim@meyering.net>
70952
70953         * m4/prereq.m4: Don't forbid jm_ prefix.
70954
70955         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70956         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70957         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70958         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70959         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70960         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70961         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70962         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70963         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70964         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70965         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70966         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70967         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70968         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70969         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70970         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70971         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70972         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70973         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70974
70975 2004-04-18  Jim Meyering  <jim@meyering.net>
70976
70977         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70978         failure, don't leak memory and do call END_UTMP_ENT.
70979
70980 2004-04-16  Jim Meyering  <jim@meyering.net>
70981
70982         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70983         coreutils' stat program.
70984         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70985
70986 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70987
70988         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70989         C89.
70990         (CHAR_BIT): Remove, since we assume C89.
70991         Include <stdint.h> if available, as per current Autoconf CVS advice.
70992
70993 2004-03-31  Jim Meyering  <jim@meyering.net>
70994
70995         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70996         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70997         * m4/xalloc.m4: Likewise.
70998
70999 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71000
71001         Merge from coreutils.
71002
71003         * m4/inttostr.m4: New file.
71004         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71005         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71006         Require gl_CLOCK_TIME.
71007         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71008
71009 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71010
71011         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71012         not bool, to be more consistent with Unix conventions.
71013         Suggested by Bruno Haible.
71014
71015         Merge from coreutils.
71016
71017         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71018         * lib/umaxtostr.c: New files.
71019
71020         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71021         the usual <time.h> dance.
71022         (get_date): Change signature to support fractional time stamps.
71023         All callers changed.
71024         * lib/getdate.y: Include "getdate.h" first, as we can now
71025         assume C89 and don't need to worry about 'const'.
71026         Similarly, include "unlocked-io.h" near start, not in middle.
71027         Include <limits.h>.
71028         (textint.value): Use long int rather than int.
71029         (textint.digits): Use size_t rather than int.
71030         (BILLION, LOG10_BILLION): New constants.
71031         (parser_control): New member rel_ns.  Members day_ordinal,
71032         time_zone, month, day, hour, minutes, rel_year, rel_month,
71033         rel_day, rel_hour, rel_minutes, rel_seconds
71034         are now long int, not int.  Member seconds is now struct timespec,
71035         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71036         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71037         not int.
71038         (%union.intval): Now long int, not int.
71039         New member timespec.
71040         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71041         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71042         (spec): Now is a timespec or an item list.
71043         (timespec, items): New nonterminals.
71044         (time, rel, relunit, number, get_date):
71045         Add support for fractional seconds.
71046         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71047         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71048         (to_hour): First arg is now long int, not int.
71049         (to_year): Returns long int, not int.
71050         Don't treat year -70 like 70.
71051         (tm_diff): Returns long int, not int.
71052         (lookup_word): Use bool instead of int when appropriate.
71053         (yylex): Use size_t for count, not int.
71054         Detect overflow when parsing large integer constants.
71055         Add support for fractions.
71056         (get_date): Make pointers 'const' if possible.
71057         Use more-portable code to detect integer overflow.
71058         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71059         Don't use ctime; it's not reliable if the year has >4 digits.
71060
71061         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71062         This is for compatibility with BSD.
71063
71064         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71065         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71066         From coreutils' system.h.
71067
71068         * lib/userspec.c: Don't include "posixver.h".
71069         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71070         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71071         compatible extension.  Simplify code by removing a boolean int
71072         that was always nonzero if a string was nonnull.
71073
71074 2004-03-30  Jim Meyering  <jim@meyering.net>
71075
71076         Merge from coreutils.
71077
71078         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71079         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71080         on some systems one must include <grp.h> before it.
71081         Reported by Christian Krackowizer.
71082
71083 2004-03-30  Jim Meyering  <jim@meyering.net>
71084
71085         Merge from coreutils.
71086
71087         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71088
71089         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71090         an empty input stream.
71091
71092         * lib/readtokens.c: Include <stdbool.h>.
71093         (readtoken): Use `size_t' rather than int/long.
71094         All callers adjusted.
71095         Use `bool' rather than `int' where appropriate.
71096         Use memset rather than an explicit loop.
71097         Use x2nrealloc rather than xrealloc.
71098         Allow the use of `\0' as a delimiter.
71099         (readtokens): Likewise.
71100         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71101
71102 2004-03-30  Jim Meyering  <jim@meyering.net>
71103
71104         * m4/realloc.m4: Remove file, since now it does no more than
71105         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71106         the `configure.ac' section of module/realloc.
71107         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71108
71109 2004-03-30  Bruno Haible  <bruno@clisp.org>
71110
71111         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71112         nonnull.
71113
71114 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71115
71116         Merge changes to getloadavg.c from coreutils and Emacs.
71117
71118         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71119         Define to an expression, not to the empty string.
71120         Include cloexec.h and xalloc.h.
71121         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71122         Use set_cloexec_flag rather than rolling our own.
71123         * lib/cloexec.c, lib/cloexec.h: New files.
71124
71125 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71126
71127         * m4/cloexec.m4: New file.
71128
71129 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71130
71131         * lib/getopt.h: Sync with libc CVS.
71132
71133 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71134             Bruno Haible  <bruno@clisp.org>
71135
71136         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71137         mbswidth.
71138
71139 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71140             Bruno Haible  <bruno@clisp.org>
71141
71142         * lib/mbswidth.h: Include <wchar.h> only if
71143         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71144         <wchar.h>.
71145         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71146
71147 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71148
71149         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71150         Sync with libc CVS.
71151         * lib/getopt_int.h: New file, also synced from libc.
71152
71153 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71154
71155         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71156         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71157         Bring back getopt.c, getopt.h, getopt1.c.
71158
71159 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71160
71161         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71162         All uses changed.  Check for sa_sigaction member; this fixes
71163         a bug first reported by Jason Andrade in
71164         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71165
71166 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71167
71168         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71169         '#if' expressions.  Unlike the code it replaces, it does not
71170         depend on (defined _SC_PAGESIZE).  However, it does depend on
71171         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71172         first reported by Jason Andrade in
71173         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71174
71175 2004-02-25  Simon Josefsson  <jas@extundo.com>
71176
71177         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71178
71179 2004-02-25  Simon Josefsson  <jas@extundo.com>
71180
71181         * lib/strdup.h: New file.
71182         * lib/strdup.c: Include it.
71183         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71184         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71185
71186 2004-02-23  Karl Berry  <karl@gnu.org>
71187
71188         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71189         (from fencepost.gnu.org:/gd/gnuorg).
71190
71191 2004-02-23  Karl Berry  <karl@gnu.org>
71192
71193         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71194         * config/srclist.txt: add maintain/standards documents.
71195
71196 2004-02-18  Bruno Haible  <bruno@clisp.org>
71197
71198         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71199         Reported by Derek Robert Price <derek@ximbiot.com>.
71200
71201 2004-02-16  Karl Berry  <karl@gnu.org>
71202
71203         * config/mkinstalldirs, install-sh: update from automake.
71204
71205 2004-02-06  Karl Berry  <karl@gnu.org>
71206
71207         * m4/po.m4: update from gettext 0.14.1.
71208
71209 2004-02-06  Karl Berry  <karl@gnu.org>
71210
71211         * lib/config.charset: update from gettext 0.14.1.
71212
71213 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71214
71215         Add comments and code, prompted by suggestions from Bruno Haible
71216         for sh-quote.
71217         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71218         describing the enum quoting_style values.
71219         * lib/quotearg.c (quotearg_alloc): New function.
71220         (quotearg_buffer_restyled): Treat lone { and } as special.
71221         Treat = as special.  Work around bug with older shells
71222         that "see" a '\' that is really the 2nd byte of a multibyte char.
71223         Quote empty string with shell_quoting_style.
71224
71225 2004-02-03  Bruno Haible  <bruno@clisp.org>
71226
71227         * m4/pipe.m4: New file, from GNU gettext.
71228
71229 2004-02-03  Bruno Haible  <bruno@clisp.org>
71230
71231         * lib/pipe.h: New file, from GNU gettext.
71232         * lib/pipe.c: New file, from GNU gettext.
71233
71234 2004-01-27  Bruno Haible  <bruno@clisp.org>
71235
71236         * m4/execute.m4: New file, from GNU gettext.
71237
71238 2004-01-27  Bruno Haible  <bruno@clisp.org>
71239
71240         * lib/execute.h: New file, from GNU gettext.
71241         * lib/execute.c: New file, from GNU gettext.
71242         * lib/w32spawn.h: New file, from GNU gettext.
71243
71244 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71245
71246         Merge from diffutils.
71247
71248         * lib/file-type.c (file_type): Add typed memory objects.
71249         * lib/file-type.h (S_TYPEISTMO): New macro.
71250
71251         * lib/c-stack.h (c_stack_action): Remove argv argument.
71252         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71253         (die): Don't calculate message unless segv_action returns.
71254         (get_stack_location, min_address_from_argv, max_address_from_argv,
71255         volatile stack_base, volatile_stack_size): Remove.
71256         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71257         that every segmentation violation is a stack overflow.  (Ouch!)
71258         See Debian bug 136249 (still outstanding) for more info about why
71259         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71260
71261 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71262
71263         Exit-status fix from coreutils.
71264
71265         Use exit_failure consistently in place of EXIT_FAILURE,
71266         so that program exit statuses are consistent on failure.
71267
71268         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71269         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71270         * lib/argmatch.h: Comment fix to match the above.
71271         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71272         Now a macro referring to exit_failure, instead of a separate
71273         variable.  Include "exitfail.h" to get it.
71274         * lib/xstrtol.h: Include "exitfail.h".
71275         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71276
71277         * lib/long-options.c (parse_long_options): Use prototype
71278         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71279         for clarity.
71280
71281 2004-01-21  Jim Meyering  <jim@meyering.net>
71282
71283         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71284         so as not to conflict with a different-sized __mktime_internal
71285         function in GNU libc.
71286         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71287         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71288
71289 2004-01-20  Karl Berry  <karl@gnu.org>
71290
71291         * config/config.guess: update from config.
71292
71293         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71294
71295 2004-01-20  Bruno Haible  <bruno@clisp.org>
71296
71297         Safer stack allocation.
71298         * lib/setenv.c: Include allocsa.h.
71299         (alloca): Remove fallback definition.
71300         (freea): Remove macro.
71301         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71302         instead of freea.
71303
71304 2004-01-20  Bruno Haible  <bruno@clisp.org>
71305
71306         * m4/eealloc.m4: New file, from GNU gettext.
71307
71308 2004-01-20  Bruno Haible  <bruno@clisp.org>
71309
71310         * m4/allocsa.m4: New file, from GNU gettext.
71311
71312 2004-01-20  Bruno Haible  <bruno@clisp.org>
71313
71314         * lib/xallocsa.h: New file, from GNU gettext.
71315         * lib/xallocsa.c: New file, from GNU gettext.
71316
71317 2004-01-20  Bruno Haible  <bruno@clisp.org>
71318
71319         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71320
71321 2004-01-20  Bruno Haible  <bruno@clisp.org>
71322
71323         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71324         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71325         specially.
71326
71327 2004-01-20  Bruno Haible  <bruno@clisp.org>
71328
71329         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71330         patch.
71331
71332 2004-01-20  Bruno Haible  <bruno@clisp.org>
71333
71334         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71335
71336 2004-01-20  Bruno Haible  <bruno@clisp.org>
71337
71338         * lib/eealloc.h: New file.
71339
71340 2004-01-20  Bruno Haible  <bruno@clisp.org>
71341
71342         * lib/binary-io.h: Avoid warnings on Cygwin.
71343
71344 2004-01-20  Bruno Haible  <bruno@clisp.org>
71345
71346         * lib/allocsa.h: New file, from GNU gettext.
71347         * lib/allocsa.c: New file, from GNU gettext.
71348
71349 2004-01-18  Karl Berry  <karl@gnu.org>
71350
71351         * doc/gpl.texi, doc/lgpl.texi: new files.
71352
71353 2004-01-18  Karl Berry  <karl@gnu.org>
71354
71355         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71356         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71357
71358 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71359
71360         Merge from coreutils.
71361
71362         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71363         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71364         (gl_DEFAULT_POSIX2_VERSION): Move
71365         the documentation from 'configure' into 'config.hin',
71366         so that 'configure --help' isn't burdened by it and
71367         we don't have to worry about its formatting there.
71368         Reword the documentation so that it's more succinct
71369         and can be run together into a single paragraph.
71370         * m4/same.m4 (gl_SAME): Check for pathconf.
71371
71372 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71373
71374         Merge from coreutils.
71375
71376         * lib/posixver.c: Include posixver.h.
71377
71378         * lib/same.c: Include <stdbool.h>, <limits.h>.
71379         (_POSIX_NAME_MAX): Define if not defined.
71380         (MIN): New macro.
71381         (same_name): If file names are silently truncated, report
71382         that the file names are the same if they are the same after
71383         the silent truncation.
71384
71385         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71386         conversion function.
71387         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71388         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71389         longer needed.
71390
71391 2004-01-15  Jim Meyering  <jim@meyering.net>
71392
71393         Merge from coreutils.
71394
71395         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71396         if no library is required.
71397         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71398         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71399         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71400         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71401         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71402         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71403         value, $ac_cv_search_crypt, if it's "none required".
71404         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71405         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71406         not gl_FUNC_GETLOADAVG.
71407         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71408         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71409
71410 2004-01-15  Jim Meyering  <jim@meyering.net>
71411
71412         Merge from coreutils.
71413
71414         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71415         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71416         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71417
71418         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71419         optional configure-time default.
71420
71421         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71422
71423         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71424
71425 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71426
71427         Merge from coreutils.
71428
71429         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71430         value, $ac_cv_search_nanosleep, if it's "none required".
71431
71432 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71433
71434         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71435         with like-named macro in fnmatch.c.
71436         (EXT): Use an internal constant instead.
71437
71438         Merge fnmatch patches from glibc.
71439         * lib/fnmatch.c (mbsinit): Remove define.
71440         Add libc_hidden_ver (__fnmatch, fnmatch).
71441         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71442         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71443
71444 2004-01-14  Karl Berry  <karl@gnu.org>
71445
71446         * config/install-sh: update from automake.
71447
71448 2004-01-13  Karl Berry  <karl@gnu.org>
71449
71450         * config/install-sh: update from automake.
71451
71452 2004-01-09  Karl Berry  <karl@gnu.org>
71453
71454         * config/install-sh: update from automake.
71455
71456 2004-01-05  Karl Berry  <karl@gnu.org>
71457
71458         * config/config.{sub,guess}: update from config.
71459
71460 2003-12-31  Karl Berry  <karl@gnu.org>
71461
71462         * config/depcomp: update from automake.
71463
71464 2003-12-14  Karl Berry  <karl@gnu.org>
71465
71466         * lib/config.charset: update from gettext-runtime.
71467
71468 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71469
71470         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71471         Bug reported by Alfred M. Szmidt.
71472
71473 2003-12-03  Bruno Haible  <bruno@clisp.org>
71474
71475         * m4/gettext.m4: Upgrade from gettext-0.13.
71476         * m4/po.m4: Upgrade from gettext-0.13.
71477         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71478         * m4/intmax.m4: New file, from gettext-0.13.
71479         * m4/printf-posix.m4: New file, from gettext-0.13.
71480
71481 2003-11-29  Karl Berry  <karl@gnu.org>
71482
71483         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71484
71485 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71486             Bruno Haible  <bruno@clisp.org>
71487
71488         * lib/printf-parse.h: Don't include sys/types.h.
71489         (ARG_NONE): New macro.
71490         (char_directive): Change type of *arg_index fields to size_t.
71491         * lib/printf-parse.c: Don't include sys/types.h.
71492         (SSIZE_MAX): Remove macro.
71493         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71494         Remove unnecessary overflow check.
71495         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71496         fields.
71497
71498 2003-11-25  Bruno Haible  <bruno@clisp.org>
71499
71500         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71501
71502 2003-11-25  Bruno Haible  <bruno@clisp.org>
71503
71504         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71505         gt_TYPE_SSIZE_T.
71506
71507 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71508
71509         * modules/alloca: Remove dependency on xalloc.
71510
71511 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71512
71513         * lib/alloca.c: Remove dependency on xalloc module.
71514         (xalloc_die): Remove.
71515         (memory_full) [!defined emacs]: New macro.
71516         [!defined emacs]: Don't include xalloc.h.
71517         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71518         address arithmetic overflows.  Change datatypes a bit to avoid
71519         unnecessary casts.
71520
71521 2003-11-22  Jim Meyering  <jim@meyering.net>
71522
71523         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71524         s/size/size_t/.
71525
71526 2003-11-21  Karl Berry  <karl@gnu.org>
71527
71528         * config/config.{sub,guess}: update from config.
71529
71530 2003-11-18  Karl Berry  <karl@gnu.org>
71531
71532         * config/config.{sub,guess}: update from config.
71533
71534         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71535
71536 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71537
71538         * README: Mention that S+T cannot overflow if S is the size of
71539         an existing object and T is sufficiently small.
71540
71541 2003-11-17  Jim Meyering  <jim@meyering.net>
71542
71543         On systems without utime and without a utimes function capable of
71544         dealing with a NULL struct utimbuf* argument, this utime replacement
71545         could -- in unusual circumstances -- leak a file descriptor.
71546         * lib/utime.c: Include <unistd.h> and <errno.h>.
71547         (utime_null): Be sure to close `fd' and to preserve errno.
71548         Reported by Geoff Collyer via Arnold Robbins.
71549
71550 2003-11-17  Bruno Haible  <bruno@clisp.org>
71551
71552         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71553         (Depends-on): Add xsize.
71554
71555 2003-11-17  Bruno Haible  <bruno@clisp.org>
71556
71557         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71558
71559 2003-11-17  Bruno Haible  <bruno@clisp.org>
71560
71561         * lib/vasnprintf.c (alloca): Remove fallback definition.
71562         (freea): Remove definition.
71563         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71564         Reported by Paul Eggert.
71565
71566 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71567             Bruno Haible  <bruno@clisp.org>
71568
71569         Protect against address arithmetic overflow.
71570         * lib/printf-args.h: Include stddef.h.
71571         (arguments): Change type of field 'count' to size_t.
71572         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71573         'unsigned int' where appropriate.
71574         * lib/printf-parse.h: Include sys/types.h.
71575         (char_directive): Change type of *arg_index fields to ssize_t.
71576         (char_directives): Change type of fields 'count', max_*_length to
71577         size_t.
71578         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71579         (SSIZE_MAX): Define fallback value.
71580         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71581         instead of 'int' where appropriate. Check a_allocated, d_allocated
71582         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71583         * lib/vasnprintf.c: Include xsize.h.
71584         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71585         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71586         overflow. Avoid wraparound when converting a width or precision from
71587         decimal to binary.
71588
71589 2003-11-16  Bruno Haible  <bruno@clisp.org>
71590
71591         Update from GNU gettext.
71592         * lib/printf-parse.c: Generalize to it can be compiled for wide
71593         strings.
71594         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71595         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71596         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71597         SNPRINTF): New macros.
71598         Don't include <alloca.h> if the file is used inside libintl.
71599         (local_wcslen): New function, for Solaris 2.5.1.
71600         (VASNPRINTF): Use it instead of wcslen.
71601
71602 2003-11-16  Bruno Haible  <bruno@clisp.org>
71603
71604         * lib/xsize.h (xmax): New function.
71605         (xsum, xsum3, xsum4): Declare as "pure" functions.
71606
71607 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71608
71609         * modules/xalloc (Files): Undo latest change, since xalloc.h
71610         no longer needs SIZE_MAX or PTRDIFF_MAX.
71611
71612 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71613
71614         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71615         gl_PTRDIFF_MAX.
71616
71617 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71618
71619         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71620         "return", to pacify some unknown compiler.  Problem reported
71621         by Joerg Schilling.
71622
71623 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71624
71625         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71626         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71627         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71628         heuristic is just as accurate as far as we know, and it removes a
71629         dependency on size_max.m4 and ptrdiff_max.m4.
71630
71631 2003-11-11  Bruno Haible  <bruno@clisp.org>
71632
71633         * modules/xsize (Files): Add m4/size_max.m4.
71634         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71635
71636 2003-11-11  Bruno Haible  <bruno@clisp.org>
71637
71638         * m4/size_max.m4: New file.
71639         * m4/ptrdiff_max.m4: New file.
71640         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71641         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71642         (gl_XALLOC): Invoke it.
71643
71644 2003-11-11  Bruno Haible  <bruno@clisp.org>
71645
71646         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71647         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71648         defined.
71649
71650 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71651
71652         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71653         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71654         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71655         From Bruno Haible.
71656         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71657         not (size_t) -1, since it's defined here.
71658
71659 2003-11-09  Karl Berry  <karl@gnu.org>
71660
71661         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71662
71663 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71664
71665         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71666         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71667         Reject sizes of exactly SIZE_MAX bytes.
71668         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71669         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71670
71671 2003-11-05  Bruno Haible  <bruno@clisp.org>
71672
71673         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71674         SIZE_MAX defined in <limits.h> on Solaris.
71675
71676 2003-11-04  Jim Meyering  <jim@meyering.net>
71677
71678         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71679         variable names, rather than @VAR@.
71680         * modules/poll: Likewise.
71681
71682 2003-11-04  Bruno Haible  <bruno@clisp.org>
71683
71684         * modules/xsize: New file.
71685         * modules/linebreak: Depend on xsize.
71686         * MODULES.html.sh (func_all_modules): Add xsize.
71687
71688 2003-11-04  Bruno Haible  <bruno@clisp.org>
71689
71690         * m4/xsize.m4: New file.
71691
71692 2003-11-04  Bruno Haible  <bruno@clisp.org>
71693
71694         * lib/xsize.h: New file.
71695         * lib/linebreak.c: Include xsize.h.
71696         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71697         argument for overflow.
71698         Suggested by Paul Eggert.
71699
71700 2003-11-03  Karl Berry  <karl@gnu.org>
71701
71702         * config/config.{guess,sub}: update from config.
71703
71704 2003-11-03  Jim Meyering  <jim@meyering.net>
71705
71706         * modules/userspec (lib_SOURCES): Add userspec.h.
71707         (Include): Add "userspec.h".
71708         Improve description.
71709
71710 2003-11-03  Jim Meyering  <jim@meyering.net>
71711
71712         * lib/userspec.c: Include "userspec.h".
71713         * lib/userspec.h: New file.
71714
71715 2003-11-03  Bruno Haible  <bruno@clisp.org>
71716
71717         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71718
71719 2003-11-03  Bruno Haible  <bruno@clisp.org>
71720
71721         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71722         available, to avoid (extremely rare) race condition.
71723         Suggested by Paul Eggert.
71724
71725 2003-11-02  Karl Berry  <karl@gnu.org>
71726
71727         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71728
71729 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71730
71731         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71732         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71733         (read_filesystem_list): Set and use me_type_malloced.
71734         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71735         whatever the type happens to be), for brevity and consistency.
71736         Check for size calculation overflow on Alphas running OSF/1.
71737
71738 2003-10-31  Jim Meyering  <jim@meyering.net>
71739
71740         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71741
71742         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71743
71744 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71745             Bruno Haible  <bruno@clisp.org>
71746
71747         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71748         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71749
71750 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71751
71752         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71753         netbsd*-gnu*.  Suggested by Robert Millan.
71754
71755 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71756
71757         * modules/group-member: Depend on stdbool.
71758
71759 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71760
71761         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71762
71763 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71764
71765         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71766         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71767         after the 'gnu' in these cases.  This fixes some bugs in the
71768         previous change, and is based on suggestions by Robert Millan.
71769
71770 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71771
71772         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71773         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71774         no longer needed.
71775         * lib/quotearg.c (quotearg_n_options): Use it.
71776         * lib/group-member.c: Include <stdbool.h>.
71777         (free_group_info): Arg is now const *; don't free arg.
71778         (get_group_info): Now returns bool and accepts struct group_info *,
71779         rather than returning a malloc'ed struct group_info *.
71780         All uses changed.  Check for overflow in internal size calculation.
71781
71782         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71783         rather than xmalloc/xrealloc.
71784         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71785         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71786         conformance bug: the old code used a pointer after freeing the
71787         storage that it addressed.
71788         * lib/hash.c (hash_initialize): Simplify the code by using
71789         xalloc_oversized rather than doing it by hand.
71790         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71791         the buffer preserved.  Use free and xmalloc instead.
71792         * lib/quotearg.c (quotearg_n_options): Likewise.
71793         Use a simpler test for size overflow.  Don't use xalloc_oversized
71794         because unsigned int might be wider than size_t (!); this suggests
71795         that we should switch from unsigned int to size_t for slot numbers.
71796
71797 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71798
71799         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71800         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71801         NetBSD kernels.  Requested by Richard Stallman.
71802
71803 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71804
71805         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71806         to allocate the returned structure.  Do not allocate a subarray,
71807         as x2nrealloc will do that.
71808         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71809         instead of xnrealloc.
71810         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71811
71812 2003-10-27  Bruno Haible  <bruno@clisp.org>
71813
71814         * lib/stdbool_.h: Better support for BeOS.
71815
71816 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71817
71818         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71819         now uses inline.
71820
71821 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71822
71823         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71824         callers that want to do their own size-overflow checking.  Include
71825         <stdbool.h>, since xalloc_oversized returns bool.
71826         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71827         to use xalloc_oversized.
71828
71829         Add two functions x2realloc, x2nrealloc, for programs that grow
71830         arrays dynamically by doubling their sizes.
71831         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71832         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71833         New functions.
71834
71835         Port to C99 semantics for 'inline' of external functions.
71836         Bug reported by Bruno Haible.
71837         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71838         with the old contents of xnmalloc.
71839         (xnmalloc, xmalloc): Use it.
71840         (xnrealloc_inline): New static inline function,
71841         with the old contents of xnrealloc.
71842         (xnrealloc, xrealloc): Use it.
71843
71844         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71845         that.
71846
71847 2003-10-26  Karl Berry  <karl@gnu.org>
71848
71849         * config/srclist.txt (COPYING.DOC): no longer available from
71850         /gd/gnuorg; don't know where the ultimate source is.
71851
71852 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71853
71854         Fix several address-calculation bugs in the hash modules,
71855         plus some minor code cleanup.
71856
71857         * lib/hash.h: Include <stdbool.h>, for bool.
71858         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71859         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71860         hash_get_n_entries, hash_get_max_bucket_length,
71861         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71862         hash_rehash): Use size_t rather than unsigned.
71863         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71864         hash_get_n_buckets_used, hash_get_n_entries,
71865         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71866         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71867         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71868         Likewise.
71869         (SIZE_MAX): Define if not defined.
71870         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71871         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71872         hash_print):
71873         Use const * when possible.
71874         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71875         (check_tuning): Fix bug: if tuning parameters were very close to
71876         0 or 1, rounding errors could have caused subscript violations.
71877         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71878         (hash_initialize): Add 'fail:' label
71879         to free table and return NULL, and use it to simplify code.
71880         Use calloc rather than clearing the storage ourself.
71881         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71882         buffer size calculations.
71883         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71884         Include <stddef.h>, for size_t.
71885         * lib/hash-pjw.c (hash_pjw): Likewise.
71886         Switch to method described by Bruno Haible.
71887         Include <limits.h>, for CHAR_BIT.
71888         (SIZE_BITS): New macro.
71889
71890 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71891
71892         * m4/getline.m4 (AM_FUNC_GETLINE):
71893         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71894         hosts.  Problem reported by Derek Robert Price in
71895         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71896         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71897         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71898
71899 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71900
71901         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71902         ceiling the allocation at NMAX bytes rather than silently
71903         discarding input bytes before NMAX is reached.  This makes
71904         a difference only if NMAX exceeds SIZE_MAX / 2.
71905
71906         * lib/obstack.c: Merge from glibc.
71907         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71908         Add libc_hidden_def (_obstack_newchunk).
71909         (_obstack_free) [! defined _LIBC]: Remove.
71910         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71911         a clone of the function body.
71912         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71913         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71914
71915         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71916         glibc.
71917         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71918         arg to memcpy.
71919
71920         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71921         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71922         Don't use lvalue casts, as GCC plans to remove support for them
71923         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71924         was also present in the non-GCC version, indicating that this
71925         code had always been buggy and had never been widely used.
71926         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71927         Use the fast variant of each macro, rather than copying the
71928         definiens of the fast variant; that way, we'll be more likely to
71929         catch future bugs in the fast variants.
71930
71931 2003-10-20  Bruno Haible  <bruno@clisp.org>
71932
71933         * modules/wait-process: New file.
71934         * MODULES.html.sh (func_all_modules): Add wait-process.
71935
71936 2003-10-20  Bruno Haible  <bruno@clisp.org>
71937
71938         * m4/wait-process.m4: New file.
71939
71940 2003-10-20  Bruno Haible  <bruno@clisp.org>
71941
71942         * lib/wait-process.h: New file, from GNU gettext.
71943         * lib/wait-process.c: New file, from GNU gettext.
71944
71945 2003-10-19  Jim Meyering  <jim@meyering.net>
71946
71947         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71948         HPUX 10.20.
71949
71950 2003-10-18  Karl Berry  <karl@gnu.org>
71951
71952         * config/config.guess: update from config.
71953
71954 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71955
71956         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71957         (getgroups): First arg is int, not size_t.
71958         Don't let 'free' mangle errno.
71959
71960 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71961
71962         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71963
71964 2003-10-16  Karl Berry  <karl@gnu.org>
71965
71966         * config/config.{guess,sub}: update from config.
71967
71968 2003-10-16  Jim Meyering  <jim@meyering.net>
71969
71970         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71971         memcpy.
71972
71973 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71974
71975         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71976         (SIZE_MAX): Remove.
71977         (new_exclude, add_exclude_file): Initial size no longer needs to
71978         be a power of 2.
71979         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71980         our own address arithmetic overflow checking.
71981
71982         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71983         (fnmatch): Do not alloca more than 2000 wide characters;
71984         instead, use malloc for large buffers.
71985         Check for address arithmetic overflow, and return -1
71986         with errno set to ENOMEM in that case.
71987         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71988         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71989         instead, return -1.  Check for address arithmetic overflow.
71990
71991 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71992
71993         Handle invalid suffixes and overflow independently, so that
71994         callers can treat them independently as needed.  Fix some bugs in
71995         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71996         suffix for a human-readable blocksize.  The major caller-visible
71997         change is the addition of a new
71998         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71999         that both overflow and suffix chars were found.
72000
72001         * lib/human.c (humblock): Don't check separately for invalid suffix
72002         char; that is xstrtoumax's job (now that its bug is fixed).
72003         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72004         INTMAX_MAX]: New macros.
72005         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72006         TYPE_MAXIMUM): New macros.
72007         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72008         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72009         if overflow occurs, as it's what __strtol does and it's more useful
72010         in practice.
72011         (__xstrtol): If __strtol reports some error other than ERANGE,
72012         reflect it to the caller as LONGINT_INVALID.  If it reports
72013         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72014         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72015         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72016         value.
72017         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72018         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72019         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72020         [defined UINTMAX_MAX]: New macros.
72021
72022 2003-10-14  Bruno Haible  <bruno@clisp.org>
72023
72024         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72025
72026 2003-10-14  Bruno Haible  <bruno@clisp.org>
72027
72028         * m4/sig_atomic_t: New file, from GNU gettext.
72029         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72030
72031 2003-10-14  Bruno Haible  <bruno@clisp.org>
72032
72033         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72034         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72035         Also use volatile where needed.
72036
72037 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72038
72039         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72040         Change maintainer from Bruno Haible to 'all'.
72041
72042 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72043
72044         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72045
72046 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72047
72048         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72049         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72050         and define in terms of the other primitives.
72051         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72052         (SIZE_MAX): Define if not already defined.
72053         (array_size_overflow): New function.
72054         (xalloc_die): Abort instead of exiting if 'error' returns.
72055         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72056         (xmalloc, xrealloc): Use them.
72057         (xcalloc): Check for address arithmetic overflow.
72058         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72059         a bit faster than strcpy.
72060
72061 2003-10-10  Simon Josefsson  <jas@extundo.com>
72062
72063         * modules/argp (Depends-on): Add restrict and strcase.
72064
72065 2003-10-10  Simon Josefsson  <jas@extundo.com>
72066
72067         * m4/argp.m4: Add AC_C_INLINE.
72068
72069 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72070
72071         Merge getpass from libc, plus a few fixes.
72072
72073         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72074         Include <stdbool.h>.
72075         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72076         __fsetlocking to empty.
72077         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72078         do include <bits/libc-lock.h>.
72079         Do not include <fcntl.h>; not needed.
72080         [_LIBC]: Include <wchar.h>.
72081         (NOTCANCEL_MODE): New macro.
72082         (flockfile, funlockfile) [_LIBC]: New macros.
72083         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72084         [!_LIBC]: New macros.
72085         (call_fclose): New function.
72086         (getpass): Use it.  Save tty stream separately; this simplifies the
72087         code and makes it more reliable if stdin happens to equal stdout.
72088         Invoke __fsetlocking on tty.
72089         Handle thread cancellation if needed.
72090         Namespace cleanup (use __tcgetattr, __getline).
72091         Use bool for Booleans.
72092         [USE_IN_LIBIO]: Handle wide streams.
72093         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72094         stream might go where.
72095
72096         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72097         doesn't have to include <stdio.h> before us.
72098         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72099         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72100         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72101         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72102         if not declared, so that we can use getpass.c code from libc without
72103         rewriting it.
72104         (flockfile, ftrylockfile, funlockfile): New macros.
72105
72106 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72107
72108         * modules/getpass: Depend on stdbool.
72109
72110 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72111
72112         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72113
72114 2003-10-07  Karl Berry  <karl@gnu.org>
72115
72116         * config/config.{guess,sub}: update from config.
72117
72118 2003-10-06  Jim Meyering  <jim@meyering.net>
72119             Bruno Haible  <bruno@clisp.org>
72120
72121         This lets translators provide better translations for the
72122         "Written by ..." part of --version output.
72123         * lib/version-etc.h: Include stdarg.h.
72124         (version_etc_copyright): Declare as readonly.
72125         (version_etc): Make this function variadic with a NULL-terminated list
72126         of author name strings.
72127         (version_etc_va): New declaration.
72128         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72129         (version_etc_copyright): Declare as readonly.
72130         (version_etc_va): New function. Provide a different translatable string
72131         for each possible number of authors < 10. Abbreviate when there are 10
72132         authors or more.
72133         (version_etc): Make this function variadic. Call version_etc_va.
72134         Suggestion from Gary V. Vaughan.
72135
72136         * lib/long-options.h (parse_long_options): Change prototype: the
72137         authors string is moved to the end and becomes variadic.
72138         * lib/long-options.c: Include stdarg.h.
72139         (parse_long_options): Make this function variadic, too.
72140         Call version_etc_va, not version_etc.
72141
72142 2003-10-06  Bruno Haible  <bruno@clisp.org>
72143
72144         * modules/version-etc-2: Remove file.
72145         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72146
72147 2003-10-06  Bruno Haible  <bruno@clisp.org>
72148
72149         * modules/fatal-signal: New file.
72150         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72151
72152 2003-10-06  Bruno Haible  <bruno@clisp.org>
72153
72154         * m4/fatal-signal.m4: New file.
72155         * m4/signalblocking.m4: New file, from GNU gettext.
72156
72157 2003-10-06  Bruno Haible  <bruno@clisp.org>
72158
72159         * lib/version-etc-2.h: Remove file.
72160         * lib/version-etc-2.c: Remove file.
72161
72162 2003-10-06  Bruno Haible  <bruno@clisp.org>
72163
72164         * lib/fatal-signal.h: New file, from GNU gettext.
72165         * lib/fatal-signal.c: New file, from GNU gettext.
72166
72167 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72168
72169         * README: Rework advice for preventing empty .o files.
72170         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72171         not <sys/types.h>.
72172
72173 2003-10-04  Karl Berry  <karl@gnu.org>
72174
72175         * lib/argp*: update from libc.
72176
72177 2003-10-04  Karl Berry  <karl@gnu.org>
72178
72179         * config/config.{guess,sub}: update from config.
72180
72181 2003-10-02  Bruno Haible  <bruno@clisp.org>
72182
72183         * modules/lchown (Include): Add lchown.h.
72184         * modules/time_r (Include): Use "..." syntax.
72185         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72186
72187 2003-10-01  Simon Josefsson  <jas@extundo.com>
72188
72189         * MODULES.html.sh (func_all_modules): Move gethostname from section
72190         'based on' to section 'lacking' POSIX:2001.
72191
72192 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72193
72194         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72195         to output mode on the same stream.
72196
72197 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72198
72199         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72200         Fix arg typo in previous patch.
72201
72202 2003-09-28  Jim Meyering  <jim@meyering.net>
72203
72204         * lib/error.c: Correct cpp indentation.
72205
72206 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72207
72208         * modules/free: New file.
72209
72210 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72211
72212         * m4/free.m4: New file.
72213
72214 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72215
72216         * lib/minmax.h (MIN, MAX)
72217         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72218         Omit the special code that used __typeof__, since we worry that
72219         it could be more trouble than it's worth.  See:
72220         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72221         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72222
72223         * lib/free.c: New file.
72224
72225 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72226
72227         Trivial fixes to Makefile.am parts of module listings.
72228         * modules/strstr: Append strstr.h to lib_SOURCES.
72229         * modules/strcase: Likewise, for strcase.h.
72230
72231 2003-09-27  Karl Berry  <karl@gnu.org>
72232
72233         * config/mkinstalldirs: update from automake.
72234
72235 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72236
72237         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72238         (error_tail): Do not loop, reallocating temporary buffer, since
72239         the output cannot contain more wide characters than the input
72240         contains bytes, the size must be big enough already.  This avoids
72241         one potential size overflow calculation.  Check for size overflow
72242         when calculating temporary buffer size.  Free temporary buffer
72243         when done, if it was allocated with malloc; this plugs a memory
72244         leak.  Remove casts from void * to pointers, that are no longer
72245         needed now that we're assuming C89 or better.
72246
72247         Merge error changes from glibc.
72248
72249         * lib/error.c, error.h: Update copyright notice header to match glibc.
72250         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72251         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72252         Disable cancellation while printing error.
72253         * lib/error.h: Prepend __ to parameter names.
72254
72255 2003-09-26  Jim Meyering  <jim@meyering.net>
72256
72257         * lib/error.c (error_tail): Move some declarations
72258         into inner scope where the local variables are used.
72259
72260 2003-09-26  Bruno Haible  <bruno@clisp.org>
72261
72262         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72263         stpncpy().
72264         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72265
72266 2003-09-26  Bruno Haible  <bruno@clisp.org>
72267
72268         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72269         (stpncpy): Define as alias for gnu_stpncpy.
72270         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72271
72272 2003-09-25  Simon Josefsson  <jas@extundo.com>
72273
72274         * lib/xgetdomainname.h: New file.
72275         * lib/xgetdomainname.c: New file.
72276
72277 2003-09-25  Simon Josefsson  <jas@extundo.com>
72278             Bruno Haible  <bruno@clisp.org>
72279
72280         * modules/getdomainname: New file.
72281         * modules/xgetdomainname: New file.
72282         * MODULES.html.sh (func_all_modules): Add getdomainname,
72283         xgetdomainname.
72284
72285 2003-09-25  Simon Josefsson  <jas@extundo.com>
72286             Bruno Haible  <bruno@clisp.org>
72287
72288         * m4/getdomainname.m4: New file.
72289
72290 2003-09-25  Simon Josefsson  <jas@extundo.com>
72291             Bruno Haible  <bruno@clisp.org>
72292
72293         * lib/getdomainname.h: New file.
72294         * lib/getdomainname.c: New file.
72295
72296 2003-09-25  Karl Berry  <karl@gnu.org>
72297
72298         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72299
72300 2003-09-25  Karl Berry  <karl@gnu.org>
72301
72302         * config/install-sh: update from automake.
72303
72304 2003-09-25  Bruno Haible  <bruno@clisp.org>
72305
72306         * modules/version-etc-2: New file, from modules/version-etc with
72307         modifications.
72308         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72309
72310 2003-09-25  Bruno Haible  <bruno@clisp.org>
72311
72312         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72313         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72314
72315 2003-09-24  Simon Josefsson  <jas@extundo.com>
72316
72317         * modules/xgethostname: Add xgethostname.h.
72318
72319 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72320
72321         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72322         the buffer associated with the argument.  Bug reported by
72323         Simon Josefsson.
72324
72325 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72326
72327         * README: Document assumptions that 'int' is at least 32 bits
72328         wide, that integer arithmetic is 2's complement without overflow,
72329         that there are no holes in integer values, that adding sizes of
72330         two nonoverlapping objects can't overflow, and that all-bits-zero
72331         yields scalar zero.  Fix spelling and capitalization typos.
72332
72333 2003-09-19  Karl Berry  <karl@gnu.org>
72334
72335         * lib/argp.h: update from libc.
72336
72337 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72338
72339         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72340         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72341         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72342
72343 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72344
72345         * gnulib-tool: Use "test -h", not "test -L", for portability
72346         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72347         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72348         (sed_extract_prog): Issue s commands one-by-one, rather than
72349         using \| in one s command.
72350
72351 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72352
72353         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72354         input error, instead of returning NULL the next time we are called
72355         (and therefore losing track of errno).
72356
72357 2003-09-16  Bruno Haible  <bruno@clisp.org>
72358
72359         * gnulib-tool (func_create_testdir): Warn about duplicated
72360         dependencies.
72361
72362 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72363
72364         * modules/argmatch, modules/fatal, modules/obstack,
72365         modules/xalloc, modules/xgethostname: Sort dependencies by
72366         importance, not alphabetically.
72367
72368 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72369
72370         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72371         fails, so that the caller gets the proper errno.
72372
72373         * lib/readutmp.c (read_utmp): Likewise.
72374         Check for fstat error.  Close stream and free storage
72375         when failing.
72376
72377 2003-09-14  Karl Berry  <karl@gnu.org>
72378
72379         * config/srclist.txt (strdup.c): disable for c89 changes.
72380
72381 2003-09-14  Jim Meyering  <jim@meyering.net>
72382
72383         * lib/getloadavg.c: Correct cpp indentation.
72384         * lib/strdup.c: Likewise.
72385         * lib/vasnprintf.c: Likewise.
72386
72387 2003-09-14  Bruno Haible  <bruno@clisp.org>
72388
72389         * modules/fwriteerror: New file.
72390         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72391
72392 2003-09-14  Bruno Haible  <bruno@clisp.org>
72393
72394         * lib/fwriteerror.h: New file.
72395         * lib/fwriteerror.c: New file.
72396
72397 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72398
72399         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72400         modules/xgethostname, modules/xalloc: Depend on exit.
72401
72402 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72403
72404         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72405
72406         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72407         and AC_MINIX, too, so that their extensions are available.
72408
72409         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72410         This macro has been superseded by gl_BACKUPFILE.
72411
72412         More patches to assume C89 or better.
72413
72414         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72415
72416         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72417         unconditionally.
72418         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72419         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72420         Include <string.h>, <stdlib.h> unconditionally.
72421         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72422         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72423         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72424         headers or for string.h.
72425         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72426         or strtoul.
72427
72428         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72429         headers.
72430         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72431         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72432         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72433         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72434         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72435         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72436         memcpy, memset.
72437         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72438         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72439         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72440         strtol.
72441         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72442         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72443         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72444         strtoul.
72445
72446 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72447
72448         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72449         * lib/obstack.c [!defined _LIBC]: Likewise.
72450         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72451         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72452         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72453
72454         More changes to assume C89 or better.
72455
72456         * lib/error.c (error_tail): Assume vprintf.
72457
72458         * lib/argmatch.c (getenv): Remove decl.
72459         * lib/progreloc.c (get_full_program_name): Define via prototype.
72460         * lib/setenv.c (clearenv): Likewise.
72461         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72462         needed.
72463         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72464         (malloc, memcpy): Remove decls.
72465         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72466         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72467         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72468         (memcpy): Remove macro.
72469         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72470         (__P): Remove.  All uses removed.
72471         (PTR): Remove.  All uses changed to void *.
72472         (CHAR_BIT, NULL): Remove.
72473         (spaces, zeros, memset_space, memset_zero)
72474         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72475         Remove.
72476         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72477         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72478         Define with prototype.
72479         Remove now-unnecessary prototype decl.
72480         (extra_args_spec): Assume ANSI C.  All uses changed.
72481         (extra_args_spec_iso): Remove.
72482         (my_strftime, emacs_strftimeu): Define via prototype.
72483         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72484         unconditionally.
72485         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72486         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72487         (strtoul, strtol): Remove decls.
72488         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72489         LONG_MAX): Remove.
72490         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72491         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72492         (LOCALE_PARAM_PROTO): New macro.
72493         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72494         (INTERNAL (strtol), strtol): Define with a prototype.
72495         (PARAMS): Remove.  All uses removed.
72496         * lib/tempname.c: Include <string.h> unconditionally.
72497         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72498         * lib/xgethostname.c (main): Define with a prototype.
72499         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72500         Include <stdlib.h> unconditionally.
72501         (calloc, malloc, realloc, free): Remove decls.
72502         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72503         Include <stdlib.h> unconditionally.  Sort include file names.
72504         (strtod): Remove.
72505         (xstrtod): Define with a prototype.
72506         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72507         (strtol, strtoul): Remove decls.
72508
72509 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72510
72511         More patches to assume C89 or better.
72512         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72513         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72514         string.h, memchr, STDC_HEADERS.
72515
72516 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72517
72518         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72519         Include <stdlib.h>, <string.h> unconditionally.
72520         Remove now-unnecessary cast to char *.
72521         * lib/strnlen.c: Include <string.h> unconditionally.
72522         * lib/yesno.c (yesno): Define with a prototype.
72523
72524 2003-09-11  Bruno Haible  <bruno@clisp.org>
72525
72526         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72527
72528 2003-09-10  Jim Meyering  <jim@meyering.net>
72529
72530         * lib/error.c: Correct indentation of cpp directives.
72531
72532 2003-09-10  Bruno Haible  <bruno@clisp.org>
72533
72534         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72535         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72536         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72537         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72538         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72539         <stdlib.h> and <string.h> checks.
72540         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72541         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72542
72543 2003-09-10  Bruno Haible  <bruno@clisp.org>
72544
72545         * lib/strcspn.c: Include <string.h> unconditionally.
72546         * lib/strpbrk.c: Include <string.h> unconditionally.
72547         * lib/strstr.c: Include <string.h> unconditionally.
72548         * lib/unicodeio.c: Include <string.h> unconditionally.
72549         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72550         * lib/unsetenv.c: Likewise.
72551         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72552         * lib/yesno.c: Include <stdlib.h> unconditionally.
72553         (rpmatch): Add prototype.
72554
72555 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72556
72557         More patches to assume C89 or better.
72558         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72559         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72560         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72561         or for string.h.
72562         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72563         stdlib.h.
72564         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72565         C headers.
72566         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72567         string.h.
72568         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72569         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72570         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72571         or for string.h.
72572         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72573         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72574         C headers.
72575         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72576         memcpy.
72577         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72578         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72579         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72580         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72581         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72582         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72583         string.h, free.
72584         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72585         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72586         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72587         C headers, or for string.h.
72588         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72589         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72590         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72591         headers, memory.h, stdlib.h, string.h, strings.h.
72592         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72593         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72594         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72595         strchr.
72596         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72597         headers, memory.h, string.h.
72598         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72599         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72600         free.
72601         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72602         headers.
72603         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72604         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72605         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72606         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72607         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72608
72609 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72610
72611         More K&R removal.
72612
72613         * lib/acosl.c (main): Use a prototype.
72614         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72615         tanl.c: Likewise.
72616
72617         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72618
72619         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72620         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72621         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72622         with a prototype.
72623         * lib/getopt.c (const): Remove macro.
72624         Include <string.h> unconditionally.
72625         (my_index): Remove; all uses changed to strchr.
72626         (strlen): Remove decl.
72627         (exchange): Remove forward decl; no longer needed.
72628         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72629         Define with prototype.
72630         * lib/getopt1.c (const): Remove macro.
72631         (getopt_long, getopt_long_only, main): Define with prototype.
72632
72633         * lib/getugroups.c: Include <string.h> unconditionally.
72634
72635         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72636         (getusershell, setusershell, endusershell, readname, main):
72637         Define with prototypes.
72638
72639         * lib/group-member.c: Include group-member.h first.
72640         Include <stdlib.h> unconditionally.
72641
72642         * lib/hard-locale.c: Include hard-locale.h first.
72643         Include <stdlib.h>, <string.h> unconditionally.
72644
72645         * lib/hash.c (free, malloc): Remove decls.
72646         Include <stdlib.h> unconditionally.
72647
72648         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72649         (getenv): Do not declare.
72650
72651         * lib/idcache.c: Include <string.h> unconditionally.
72652
72653         * lib/long-options.c: Include long-options.h first, to test interface.
72654         Include <stdlib.h> unconditionally.
72655
72656         * lib/makepath.c: Include makepath.h first, to test interface.
72657         Include <stdlib.h> and <string.h> unconditionally.
72658
72659         * lib/linebuffer.c: Include <stdlib.h>.
72660         (free): Remove decl.
72661
72662         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72663         stddef.h. rpl_malloc returns void *, not char *.
72664         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72665         prototype.
72666
72667         * lib/md5.h: Include <limits.h> unconditionally.
72668         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72669         (__P): Remove; all uses removed.
72670         * lib/md5.c: Include "md5.h" first.
72671         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72672         md5_buffer, md5_process_bytes, md5_process_block):
72673         Define with prototypes.
72674         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72675         * lib/sha.c: Include "sha.h" first.
72676         Include <stdlib.h>, <string.h> unconditionally.
72677
72678         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72679         * lib/memcmp.c (__ptr_t): Likewise.
72680         * lib/memrchr.c (__ptr_t): Likewise.
72681         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72682         Include <string.h> unconditionally.
72683         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72684         * lib/memchr.c: Include <stdlib.h> unconditionally.
72685         * lib/memchr.c (LONG_MAX): Remove.
72686         * lib/memrchr.c (LONG_MAX): Likewise.
72687         * lib/memchr.c (__memchr): Define via a prototype.
72688         * lib/memrchr.c (__memrchr): Likewise.
72689         * lib/memcmp.c (__P): Remove, and remove all uses.
72690         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72691         Remove forward decls; no longer needed.
72692         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72693         Use types required by C89 in prototype.
72694
72695         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72696         * lib/savedir.c: Likewise.
72697         * lib/mkdir.c (free): Remove decl.
72698         * lib/rmdir.c (rmdir): Define with a prototype.
72699         * lib/savedir.c: Include savedir.h first, to test interface.
72700
72701         * lib/mktime.c (STDC_HEADERS): Remove.
72702         Include <stdlib.h>, <string.h> unconditionally.
72703
72704         * lib/modechange.c: Include <stdlib.h> unconditionally.
72705         (malloc): Remove decl.
72706
72707         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72708         (free): Remove decl.
72709
72710         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72711         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72712         (This type really should be intptr_t, but that's a C99ism.)
72713         (_obstack_memcpy): Remove: all uses changed to memcpy.
72714         Include <string.h> unconditionally.
72715         (struct obstack): Assume __STDC__ for types of members
72716         chunkfun, freefun, extra_arg.
72717         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72718         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72719         obstack_begin, obstack_specify_allocation,
72720         obstack_specify_allocation_with_arg, obstack_chunkfun,
72721         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72722         Remove unprototyped decls and the macros that use them.
72723         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72724         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72725         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72726         (defined __STDC__ && __STDC__)]:
72727         Remove nonprototyped code.
72728         Include <stdlib.h> unconditionally.
72729         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72730         _obstack_allocated_p, _obstack_free, obstack_free,
72731         _obstack_memory_used, print_and_abort):
72732         Define using prototypes.
72733         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72734         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72735         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72736         obstack_next_free, obstack_object_size, obstack_room) [0]:
72737         Remove unused, unprototyped code.
72738
72739         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72740
72741         * lib/physmem.c (physmem_total, physmem_available, main): Define
72742         with prototypes.
72743
72744         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72745         (main): Define with a prototype.
72746
72747         * lib/posixver.c (getenv): Remove decl.
72748
72749         * lib/putenv.c (malloc): Returns void *, not char *.
72750         Include <string.h> unconditionally.
72751         (strchr, memcpy, NULL): Do not define.
72752
72753         * lib/readtokens.c: Include readtokens.h first, to test interface.
72754         Include <stdlib.h>, <string.h> unconditionally.
72755         (init_tokenbuffer): Define with a prototype.
72756
72757         * lib/regex.c (PARAMS): Remove.  All uses removed.
72758         All uses of _RE_ARGS removed, too.
72759         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72760         unconditionally.
72761         (bzero): Assume memset exists.
72762         (memcmp, memcpy, NULL): Remove.
72763         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72764         char, or assignments to local vars of type signed char.
72765         (init_syntax_once, PREFIX(extract_number_and_incr),
72766         PREFIX(print_partial_compiled_pattern),
72767         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72768         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72769         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72770         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72771         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72772         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72773         wcs_compile_range, byte_compile_range, truncate_wchar,
72774         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72775         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72776         count_mbs_length, wcs_re_match_2_internal,
72777         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72778         PREFIX(alt_match_null_string_p),
72779         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72780         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72781         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72782         now-unnecessary declaration, if any.
72783         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72784         regcomp, regexec):
72785         Remove now-unnecessary casts among pointer types.
72786         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72787
72788         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72789         (free): Remove decl.
72790
72791         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72792
72793         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72794         (free): Remove decl.
72795
72796         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72797         * lib/xgetcwd.c: Likewise.
72798
72799         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72800         (free): Remove decl.
72801
72802         * lib/strchrnul.c (strchrnul): Define with a prototype.
72803         Fix bug: c_in was not converted to char before searching.
72804
72805         The following changes are not K&R related:
72806
72807         * lib/group-member.h: Include <sys/types.h>, so that this file is
72808         self-contained.
72809         * lib/makepath.h: Likewise.
72810
72811         * lib/getusershell.c (readname, default_index, line_size, readname):
72812         Use size_t, not int, for sizes.
72813         (readname): If the size overflows, report an error instead of
72814         looping forever.
72815
72816 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72817
72818         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72819         libc.
72820
72821 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72822
72823         * README: New section: portability guidelines.
72824
72825 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72826
72827         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72828         C89 spec.
72829
72830 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72831
72832         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72833
72834 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72835
72836         Assume C89 or better; remove K&R cruft.
72837         A few of these changes were first proposed by Derek Robert Price
72838         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72839
72840         * lib/addext.c: Include <string.h> unconditionally.
72841         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72842         Don't declare getenv or malloc.
72843
72844         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72845         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72846         (NULL): Remove.
72847         (find_stack_direction, alloca): Use prototypes.
72848
72849         * lib/atexit.c (atexit): Define using a prototype.
72850
72851         * lib/basename.c, dirname.c, stripslash.c:
72852         Include <string.h> unconditionally.
72853
72854         * lib/bcopy.c: Include <stddef.h>.
72855         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72856
72857         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72858
72859         * lib/error.h (error, error_at_line, error_print_progname)
72860         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72861         * lib/error.c: Include error.h first, to check interface.
72862         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72863         (VA_START): Remove; all uses changeed to va_start.
72864         (exit, strerror): Remove decls.
72865         (error_print_progname): Prototype uncondionally.
72866         Don't include <errno.h>; no longer needed.
72867         (private_strerror): Remove.
72868         (error_tail): Always define.
72869         (error, error_at_line): Assume C89 or better; always use prototypes.
72870         * lib/fatal.c: Include "fatal.h" first, to test interface.
72871         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72872         (VA_START): Remove; all uses changed to va_start.
72873         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72874         this case.
72875         (exit): Remove decl.
72876         (fatal): Prototype unconditionally.  Assume va_start works.
72877         Abort at end, to pacify gcc.
72878
72879         * lib/euidaccess.c (main): Define with a prototype.
72880
72881         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72882
72883         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72884
72885         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72886         prototypes.
72887         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72888         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72889         (getenv): Remove decl.
72890         (fnmatch): Define using a prototype.
72891         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72892         (FCT): Define using a prototype.
72893
72894         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72895
72896         * lib/gethostname.c: Include <stddef.h>.
72897         (gethostname): Define with prototype.  Length is size_t, not int.
72898
72899 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72900
72901         Assume C89 or better; remove K&R cruft.
72902         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72903         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72904         string.h, getenv, malloc.
72905         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72906         headers.
72907         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72908         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72909         do not check for strerror.
72910         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72911         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72912         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72913         do not check for doprnt or vprintf.
72914         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72915         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72916
72917 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72918
72919         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72920         getversion.c should have been removed then, but was accidentally
72921         preserved.
72922
72923         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72924         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72925
72926 2003-09-08  Karl Berry  <karl@gnu.org>
72927
72928         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72929                 config, forget about prep.
72930
72931         * config/depcomp, missing: update from automake.
72932
72933 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72934
72935         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72936         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72937
72938 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72939
72940         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72941         copy_tm_result.  Bug reported by Simon Josefsson in
72942         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72943
72944 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72945
72946         * m4/time_r.m4: New file.
72947         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72948         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72949         is. Check for timegm declaration.
72950         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72951         Do not check for gmtime_r.
72952         Replace mktime if __mktime_internal does not exist and if mktime
72953         hasn't been replaced already.
72954
72955 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72956
72957         * lib/time_r.c, lib/time_r.h: New files.
72958
72959         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72960         __localtime_r.
72961         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72962         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72963
72964         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72965         __gmtime_r.
72966         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72967         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72968         Include <time_r.h>.
72969
72970         * lib/timegm.c: Switch to glibc implementation, with the following
72971         changes:
72972         [defined HAVE_CONFIG_H]: Include <config.h>.
72973         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72974         (__mktime_internal) [!defined _LIBC]: New decl.
72975         (__gmtime_r) [!defined _LIBC]: New macro and function.
72976         (timegm): Use a prototype, since gnulib assumes C89.
72977         Do not bother declaring tmp to be const, as it's not really usefu.
72978         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72979         (timegm): Declare only if HAVE_DECL_TIMEGM.
72980
72981 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72982
72983         * MODULES.html.sh (func_all_modules): Add time_r.
72984         * modules/time_r: New file.
72985         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72986         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72987
72988 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72989
72990         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72991         Bug reported by Lute Kamstra in
72992         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72993
72994         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72995         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72996         course with correspondingly smaller numbers for tomorrow and
72997         yesterday.  From Tadayoshi Funaba.  Originally installed into
72998         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72999         coreutils merge?).
73000
73001 2003-08-31  Simon Josefsson  <jas@extundo.com>
73002
73003         * modules/timegm: New file.
73004         * MODULES.html.sh (func_all_modules): Add timegm.
73005
73006 2003-08-31  Simon Josefsson  <jas@extundo.com>
73007
73008         * m4/timegm.m4: New file.
73009
73010 2003-08-31  Simon Josefsson  <jas@extundo.com>
73011
73012         * lib/timegm.h: New file.
73013         * lib/timegm.c: New file.  Based on
73014         wget-1.8.2/src/http.c:mktime_from_utc.
73015
73016 2003-08-31  Karl Berry  <karl@gnu.org>
73017
73018         * lib/argp.h: update from libc.
73019
73020 2003-08-28  Bruno Haible  <bruno@clisp.org>
73021
73022         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73023         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73024         followed by '#define fnmatch fnmatch_posix' gives an error.
73025
73026 2003-08-28  Bruno Haible  <bruno@clisp.org>
73027
73028         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73029         warning on QNX, which defines O_BINARY to 000000.
73030
73031 2003-08-27  Jim Meyering  <jim@meyering.net>
73032
73033         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73034         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73035         would fail after 32.  Reported by Danny Levinson.  Details here:
73036         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73037
73038 2003-08-24  Bruno Haible  <bruno@clisp.org>
73039
73040         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73041         MSVC7 <stdio.h> is included later.
73042
73043 2003-08-22  Simon Josefsson  <jas@extundo.com>
73044
73045         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73046
73047 2003-08-20  Karl Berry  <karl@gnu.org>
73048
73049         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73050
73051 2003-08-20  Bruno Haible  <bruno@clisp.org>
73052
73053         * modules/progname: New file.
73054         * MODULES.html.sh (func_all_modules): Add progname.
73055
73056 2003-08-20  Bruno Haible  <bruno@clisp.org>
73057
73058         * lib/progname.h: New file, from GNU gettext.
73059         * lib/progname.c: New file, from GNU gettext.
73060         * lib/progreloc.c: New file, from GNU gettext.
73061
73062 2003-08-19  Jim Meyering  <jim@meyering.net>
73063
73064         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73065         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73066
73067 2003-08-19  Bruno Haible  <bruno@clisp.org>
73068
73069         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73070         more.
73071
73072 2003-08-19  Bruno Haible  <bruno@clisp.org>
73073
73074         * lib/xstrdup.c: Assume <string.h> exists.
73075
73076 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73077
73078         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73079         in makefile rules.
73080
73081 2003-08-18  Jim Meyering  <jim@meyering.net>
73082
73083         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73084         * m4/lib-ld.m4: Likewise.
73085
73086 2003-08-18  Jim Meyering  <jim@meyering.net>
73087
73088         * lib/setenv.h: Indent nested cpp directive.
73089         * lib/vasnprintf.c: Remove trailing blanks.
73090
73091 2003-08-17  Simon Josefsson  <jas@extundo.com>
73092
73093         * modules/xstrndup: New file.
73094         * MODULES.html.sh (func_all_modules): Add xstrndup.
73095
73096 2003-08-17  Simon Josefsson  <jas@extundo.com>
73097
73098         * modules/argp: Fix autoconf macro name. Add more dependencies.
73099
73100 2003-08-17  Simon Josefsson  <jas@extundo.com>
73101
73102         * m4/xstrndup.m4: New file.
73103
73104 2003-08-17  Simon Josefsson  <jas@extundo.com>
73105
73106         * m4/argp.m4: New file.
73107
73108 2003-08-17  Simon Josefsson  <jas@extundo.com>
73109             Bruno Haible  <bruno@clisp.org>
73110
73111         * lib/xstrndup.h: New file.
73112         * lib/xstrndup.c: New file.
73113
73114 2003-08-17  Bruno Haible  <bruno@clisp.org>
73115
73116         * modules/strndup (Files, Include): Add lib/strndup.h.
73117
73118 2003-08-17  Bruno Haible  <bruno@clisp.org>
73119
73120         * modules/euidaccess (Files): Add lib/euidaccess.h.
73121
73122 2003-08-17  Bruno Haible  <bruno@clisp.org>
73123
73124         * lib/strndup.h: New file.
73125
73126 2003-08-17  Bruno Haible  <bruno@clisp.org>
73127
73128         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73129         like AC_GNU_SOURCE.
73130         * modules/extensions (configure.ac): Comment out the invocation of
73131         gl_USE_SYSTEM_EXTENSIONS.
73132
73133 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73134
73135         Merges from coreutils, etc.
73136         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73137         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73138         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73139         fixing a typo.
73140         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73141         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73142
73143 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73144
73145         Document merge from coreutils.
73146         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73147         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73148         * modules/utime: Add m4/utimes-null.m4.
73149
73150 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73151
73152         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73153         space, undoing this 2003-08-12 change:
73154         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73155
73156 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73157
73158         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73159         strtoul.c from libc, undoing this 2003-08-12 change:
73160         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73161
73162 2003-08-16  Jim Meyering  <jim@meyering.net>
73163
73164         Merges from coreutils.
73165         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73166         prefix.  Adjust cache variables similarly.  Create 500 rather than
73167         just 300 files, to exercise bug on Darwin6.5, too.
73168         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73169         $missing_dir.
73170         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73171         AM_SYS_POSIX_TERMIOS.
73172         Reported by mkc@mathdogs.com.
73173         Also change use of $am_cv_sys_posix_termios
73174         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73175         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73176         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73177         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73178         in /proc/mounts until it finds one with matching device number.  This
73179         is unnecessary when the FILE argument *is* a mount point.  No stat call
73180         is necessary in that case.  So, disable the statvfs-testing code on
73181         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73182         as RedHat bug# 84846.
73183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73184         to 1MB, so as not to render systems with no stack size limit (e.g.,
73185         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73186         Include <unistd.h>.  On some systems,
73187         it is required for the definition of _SC_PAGESIZE.
73188
73189 2003-08-16  Jim Meyering  <jim@meyering.net>
73190
73191         Merge from coreutils.
73192         * lib/xstrtoimax.c: #else #if -> #elif.
73193         * lib/xstrtoumax.c: Likewise.
73194
73195 2003-08-16  Jim Meyering  <jim@meyering.net>
73196
73197         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73198         * m4/utimes.m4: Removed.
73199         * m4/utimes-null.m4: Renamed from utimes.m4.
73200
73201         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73202         to 1MB, so as not to render systems with no stack size limit (e.g.,
73203         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73204         Include <unistd.h>.  On some systems,
73205         it is required for the definition of _SC_PAGESIZE.
73206
73207 2003-08-16  Jim Meyering  <jim@meyering.net>
73208         and Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         Merges from coreutils, etc.
73211
73212         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73213         using the latest version from cvs.  This avoids problems with #line
73214         directives using a vendor (Sun) compiler.
73215         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73216         Don't set GETGROUPS_LIB here; now it's
73217         done via getgroups.m4's wrapper function.
73218         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73219         rather than just in sh-util/configure.in, so that the
73220         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73221         same.
73222         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73223         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73224         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73225         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73226         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73227         Remove code that is now done by the newly-required macros.
73228         Append $(EXEEXT) to DF_PROG.
73229         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73230         Do not invoke or require the following here,
73231         since prereq.m4 or some gnulib .m4 now does this for us:
73232         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73233         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73234         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73235         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73236         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73237         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73238         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73239         AC_FUNC_OBSTACK.
73240         Do not replace the following functions, as this is now the job
73241         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73242         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73243         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73244         atexit getpass, strdup, getpagesize.
73245         Replace 'raise'.
73246         Do not check for the following functions, as this is now the job
73247         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73248         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73249         setregid.
73250         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73251         Check for sys/sysctl.h.
73252         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73253         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73254         of checking for ssize_t ourselves.
73255
73256         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73257         Require every macro that gnulib/modules/* suggests for us.
73258         (jm_PREREQ_ADDEXT): New macro.
73259         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73260         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73261
73262         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73263         (gl_PHYSMEM): Use it.
73264         Also check for `table' function.
73265         Check for new headers and functions.
73266         Add check for sys/sysmp.h.
73267         With suggestions from Kaveh Ghazi.
73268         Ignore headers that are present but cannot be compiled.  This
73269         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73270         C 5.4.
73271
73272 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73273
73274         Document merge from coreutils.
73275         * modules/userspec: Depend on posixver.
73276         * modules/strftime: Depend on tzset.
73277
73278 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73279
73280         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73281         rather than tab, after '#' in shell-script copyright notices.
73282         Suggested by Bruno Haible.
73283
73284 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73285
73286         * config/srclist-update: Use three spaces, rather than tab, after '#'
73287         in shell-script copyright notices.  Suggested by Bruno Haible.
73288         Remove unnecessary parenthesization in regular expression.
73289
73290 2003-08-15  Jim Meyering  <jim@meyering.net>
73291
73292         Merge from coreutils.
73293         * lib/xgethostname.c: Include <stdlib.h>.
73294         (xghostname): Don't exit for anything other than memory-related
73295         failure; just return NULL.
73296         * lib/userspec.c: Include "posixver.h".
73297         (parse_user_spec): Accept `.' as a separator only
73298         in pre-POSIX-200112 mode.
73299         * lib/strtoimax.c: Use #elif rather than #else #if.
73300         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73301         Remove function, now that we can rely on a working tzset function.
73302         [!_LIBC]: Ensure that the required autoconf test has been run.
73303         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73304         Use underlying_strftime for %r.
73305         * lib/sha.c: Merge in some clean-up and optimization changes from
73306         glibc.
73307         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73308         Ensure that it is a multiple of 64.
73309         Rearrange loop exit tests so as to avoid performing an
73310         additional fread after encountering an error or EOF.
73311         * lib/realloc.c: Update copyright date.
73312
73313 2003-08-15  Jim Meyering  <jim@meyering.net>
73314         and Paul Eggert  <eggert@twinsun.com>
73315
73316         Merge from coreutils.
73317         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73318         member but strut utmpx does not.  Needed for AIX 4.3.3.
73319         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73320
73321 2003-08-15  Jim Meyering  <jim@meyering.net>
73322         and Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         Merges from coreutils, etc.
73325         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73326         Require gl_FUNC_TZSET_CLOBBER.
73327         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73328         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73329         members.
73330
73331 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73332
73333         Help the merge from coreutils.
73334         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73335         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73336         * m4/tzset.m4: Use it too.
73337
73338 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73339
73340         * modules/tzset: New file.
73341
73342 2003-08-14  Jim Meyering  <jim@meyering.net>
73343
73344         Merges from coreutils.
73345         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73346         variable names, rather than @FNMATCH_H@.
73347         * modules/alloca: Likewise for $(ALLOCA_H).
73348
73349         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73350         the three copies of the literal target, `fnmatch.h'.
73351         * modules/alloca (alloca.h): Likewise.
73352
73353 2003-08-14  Jim Meyering  <jim@meyering.net>
73354
73355         Merge from coreutils.
73356         * m4/tzset.m4: New file.
73357         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73358         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73359         otherwise, AIX 5.1 systems would end up using the latter.
73360         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73361         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73362         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73363         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73364
73365 2003-08-14  Jim Meyering  <jim@meyering.net>
73366
73367         Merge from coreutils.
73368         * lib/obstack.h: Whitespace changes.
73369         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73370         and xcalloc return values.
73371         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73372         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73373         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73374         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73375         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73376         error from mntctl.
73377         Use mntctl's return value to drive the entry-processing loop, since
73378         we can't rely on the value of the vmt_length member in the last
73379         entry.  On some systems doing so could result in exhausting
73380         virtual memory.  Based in part on a patch from Mike Jetzer.
73381
73382 2003-08-14  Jim Meyering  <jim@meyering.net>
73383         and Paul Eggert  <eggert@twinsun.com>
73384
73385         Merges from coreutils, plus other fixes.
73386         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73387         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73388         for credits and details.  Thanks to Kaveh Ghazi for helping
73389         to keep these files in sync.
73390         (ARRAY_SIZE): Define it.
73391         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73392         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73393         (memcasecmp): Don't assume size_t fits in unsigned int.
73394         Remove casts and duplicate code.
73395         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73396         (memcpy): Remove definition.
73397         Merge in some clean-up and optimization changes from glibc.
73398         [BLOCKSIZE]: Move definition to top of file.
73399         Ensure that it is a multiple of 64.
73400         Rearrange loop exit tests so as to avoid performing an
73401         additional fread after encountering an error or EOF.
73402         * lib/md5.h (md5_uintptr): Define.
73403         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73404         return to the initial working directory.  Preserve errno
73405         for caller.
73406         * lib/idcache.c: Include "xalloc.h".
73407         (xmalloc, xrealloc): Remove decls.
73408         (getuser): Remove casts no longer required in C89.
73409         * lib/human.c: Include stdio.h, for sprintf.
73410         * lib/group-member.c: Include "xalloc.h".
73411         (xmalloc, xrealloc): Remove decls.
73412         (get_group_info): Remove casts no longer required in C89.
73413         * lib/getusershell.c (readname): Remove casts no longer required in
73414         C89.
73415         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73416         * lib/getline.c: Whitespace fix, from coreutils.
73417
73418 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73419
73420         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73421         Check for isascii.
73422
73423         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73424         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73425         Undo previous (whitespace-only) change.
73426
73427 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73428
73429         * lib/exclude.c: Include <ctype.h>
73430         (IN_CTYPE_DOMAIN): New macro.
73431         (is_space): New fn.
73432         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73433         and empty lines.
73434
73435         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73436         Undo previous (whitespace-only) change.
73437
73438 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73439
73440         * config/srclist-update: Change update back to the old behavior,
73441         leaving whitespace alone.  Use one 'sed' command rather than a
73442         pipeline.
73443         (fixlicense): Now a variable, not a function.
73444         (remove_trailing_blanks): Remove.
73445         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73446         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73447         Undo previous (whitespace-only) change.
73448
73449 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73450
73451         Merge from coreutils.
73452         * modules/euidaccess: Add lib_SOURCES, include for new
73453         file euidaccess.h
73454
73455 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73456
73457         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73458         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73459         Normalize leading white space and remove trailing white space.
73460
73461         Merge from coreutils
73462         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73463
73464         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73465         0.12.1.  These files are now being upgraded automatically by
73466         ../config/srclist-update.
73467
73468 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73469
73470         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73471         Normalize leading white space and remove trailing white space.
73472         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73473         notice, as per ../config/srclist-update.
73474
73475         Merge from coreutils.
73476         * lib/euidaccess.h: New file.
73477         * lib/euidaccess.c: Include it.
73478         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73479         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73480         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73481
73482 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73483
73484         * config/srclist-update: Add copyright notice.
73485         (remove_id_lines, remove_trailing_blanks): New constants.
73486         (fixfile): Use them to normalize spacing a bit in copied files.
73487         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73488         Normalize leading white space and remove trailing white space.
73489
73490         * config/texinfo.tex: Sync with texinfo.
73491
73492         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73493         strtoul.c from libc, to merge coreutils whitespace changes.
73494
73495         * config/srclist.txt: Get the following m4 files from gettext:
73496         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73497         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73498         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73499         wint_t.m4.
73500
73501 2003-08-12  Karl Berry  <karl@gnu.org>
73502
73503         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73504         been made.
73505
73506 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73507
73508         * modules/gnu-source, m4/gnu-source.m4:
73509         Remove; we're assuming Autoconf 2.54 or later now.
73510         Suggested by Bruno Haible.
73511         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73512
73513 2003-08-11  Bruno Haible  <bruno@clisp.org>
73514
73515         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73516
73517 2003-08-11  Bruno Haible  <bruno@clisp.org>
73518
73519         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73520         (vasnprintf): Use it instead of wcslen.
73521
73522 2003-08-11  Bruno Haible  <bruno@clisp.org>
73523
73524         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73525         value to ensure that _Bool promotes to int. Use #define for _Bool when
73526         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73527
73528 2003-08-10  Karl Berry  <karl@gnu.org>
73529
73530         * lib/regex.h: update from libc (whitespace fix).
73531
73532 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73533
73534         Merge some files from coreutils.  These changes were
73535         originally made by Jim Meyering.
73536         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73537         many older Unixes require this.
73538         * lib/alloca.c (alloca): Remove cast to argument of free;
73539         no longer needed in C89.
73540         * lib/alloca_.h, regex.h: Fix white space to match
73541         what GNU indent does.
73542
73543 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73544
73545         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73546         apparently Emacs's Unicode mode got confused before my 2003-08-05
73547         checkin.
73548
73549 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73550
73551         * m4/extensions.m4: New file.
73552         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73553         Require gl_USE_SYSTEM_EXTENSIONS.
73554         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73555         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73556
73557 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73558
73559         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73560         * modules/extensions, modules/gnu-source: New files.
73561         * modules/timespec, modules/unlocked-io: Depend on extensions.
73562
73563 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73564
73565         * modules/restrict: New file.
73566         * MODULES.html.sh (func_all_modules): Add restrict.
73567         * modules/regex: Depend on restrict.
73568
73569 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73570
73571         * m4/restrict.m4: New file.
73572         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73573
73574 2003-08-07  Bruno Haible  <bruno@clisp.org>
73575
73576         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73577         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73578
73579 2003-08-07  Bruno Haible  <bruno@clisp.org>
73580
73581         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73582         makes the module 'getndelim2' compatible with the module 'getline'.
73583
73584 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73585
73586         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73587         byte with "\201" to avoid glitches when editing that source file
73588         with multi-gnome-terminal.
73589
73590 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73591
73592         * lib/bumpalloc.h: Remove.
73593
73594 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73595
73596         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73597         * modules/bumpalloc: Remove.
73598
73599 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73600
73601         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73602         GNU coding style.
73603
73604         Merge from coreutils.
73605         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73606         1. From glibc.
73607         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73608         from Karl Berry, implemented by Jim Meyering.
73609         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73610         from Dmitry V. Levin.
73611         Remove anachronistic cast of xrealloc.
73612         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73613         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73614         type. Otherwise, it wouldn't compile with at least /bin/cc on
73615         ymp-cray-unicos9.0.2.X.
73616         Combine two mostly-identical uses of alloca into one.
73617         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73618
73619 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73620
73621         [From Emacs.]
73622
73623         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73624         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73625         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73626         obsolete NLIST_NAME_UNION.
73627         [__GNU__]: Undef BSD and FSCALE.
73628         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73629
73630 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73631
73632         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73633         an enum type, so that it's guaranteed to promote to int.  See:
73634         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73635
73636 2003-08-03  Karl Berry  <karl@gnu.org>
73637
73638         * config/depcomp: update from automake.
73639
73640 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73641
73642         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73643         (strerror): Don't assume that a printable int fits in 14 bytes.
73644
73645 2003-07-31  Bruno Haible  <bruno@clisp.org>
73646
73647         * modules/getpass-gnu: New file.
73648         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73649
73650 2003-07-31  Bruno Haible  <bruno@clisp.org>
73651
73652         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73653
73654 2003-07-24  Karl Berry  <karl@gnu.org>
73655
73656         * config/missing: update from automake.
73657
73658 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73659             Bruno Haible  <bruno@clisp.org>
73660
73661         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73662         * lib/getline.c (getline, getdelim): Likewise.
73663         Remove _GNU_SOURCE define; now it's defined in config.h through
73664         m4/getline.m4.
73665
73666 2003-07-23  Karl Berry  <karl@gnu.org>
73667
73668         * config/config.sub: update from prep.
73669
73670 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73671
73672         * modules/xalloc (Depends-on): Add exitfail.
73673         * modules/xmemcoll: Likewise.
73674
73675 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73676
73677         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73678         over-parenthesization in macros.
73679
73680         Sync with coreutils.
73681
73682         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73683         required by C99.
73684
73685         Use `exit_failure' for xalloc and xmemcoll instead of their own
73686         private exit-failure variables.
73687         * lib/xalloc.h (xalloc_exit_failure): Remove.
73688         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73689         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73690         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73691         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73692         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73693
73694 2003-07-20  Jim Meyering  <jim@meyering.net>
73695
73696         * modules/closeout (Depends-on): Add exitfail.
73697         Suggestion from Bruno Haible.
73698
73699 2003-07-19  Karl Berry  <karl@gnu.org>
73700
73701         * config/config.sub: update from prep.
73702
73703 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73704
73705         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73706         Remove.
73707         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73708         to test that it can stand by itself.  Include "exitfail.h".
73709         Clients should set exit_failure instead.
73710         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73711
73712 2003-07-18  Bruno Haible  <bruno@clisp.org>
73713
73714         * modules/getndelim2: New file.
73715         * modules/getline: Share files with module getndelim2.
73716         * modules/getnline: Depend on getndelim2 instead of sharing files with
73717         it. Add getnline.c to lib_SOURCES.
73718         * MODULES.html.sh (func_all_modules): Add getndelim2.
73719
73720 2003-07-18  Bruno Haible  <bruno@clisp.org>
73721
73722         * m4/getndelim2.m4: New file.
73723         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73724         invoke gl_PREREQ_GETNDELIM2.
73725         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73726         gl_PREREQ_GETNDELIM2.
73727         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73728         gl_GETNDELIM2.
73729
73730 2003-07-18  Bruno Haible  <bruno@clisp.org>
73731
73732         * lib/getndelim2.h: New file.
73733         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73734         getndelim2.h.
73735         (getndelim2): Make non-static. Change return type to ssize_t.
73736         * lib/getline.h: Change argument names.
73737         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73738         * lib/getnline.c: Include getndelim2.h.
73739
73740 2003-07-18  Andreas Schwab  <schwab@suse.de>
73741
73742         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73743
73744 2003-07-17  Karl Berry  <karl@gnu.org>
73745
73746         * config/config.sub: update from prep.
73747
73748 2003-07-17  Bruno Haible  <bruno@clisp.org>
73749
73750         * modules/getnline: New file.
73751         * modules/getline: Add lib/getndelim2.c to source file list.
73752         * MODULES.html.sh (func_all_modules): Add getnline.
73753
73754 2003-07-17  Bruno Haible  <bruno@clisp.org>
73755
73756         * m4/getnline.m4: New file.
73757
73758 2003-07-17  Bruno Haible  <bruno@clisp.org>
73759
73760         * m4/Makefile.am.in: Remove file.
73761         * m4/Makefile.am: Remove file.
73762         * m4/Makefile.in: Remove file.
73763
73764 2003-07-17  Bruno Haible  <bruno@clisp.org>
73765
73766         * lib/getnline.h: New file.
73767         * lib/getnline.c: New file.
73768         * lib/getndelim2.c: New file, extracted from getline.c.
73769         (getndelim2): Renamed from getdelim2, with added nmax argument.
73770         * lib/getline.c: Include getndelim2.c.
73771         (getdelim2): Moved out to getndelim2.c.
73772         (getline, getdelim): Update.
73773
73774 2003-07-17  Bruno Haible  <bruno@clisp.org>
73775
73776         * lib/Makefile.am: Remove file.
73777         * lib/Makefile.in: Remove file.
73778
73779 2003-07-17  Bruno Haible  <bruno@clisp.org>
73780
73781         * configure.in: Remove file.
73782         * Makefile.in: Remove file.
73783
73784 2003-07-17  Bruno Haible  <bruno@clisp.org>
73785
73786         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73787
73788 2003-07-16  Karl Berry  <karl@gnu.org>
73789
73790         * config/srclist-update: was running fixlicense twice, which caused
73791                 texinfo.tex to be nullified for some reason.  Simplify,
73792                 $gplsrc is no longer needed as far as I can see?
73793
73794 2003-07-16  Jim Meyering  <jim@meyering.net>
73795
73796         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73797
73798 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73799
73800         * config/srclist.txt: Get the following files from gettext-runtime/intl
73801         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73802         ref-del.sin.  From Bruno Haible.
73803         * config/srclist-update (fixfile): Change grep pattern again, since the
73804         previous fix didn't work (there was another trailing $).  Use
73805         '[$]' to escape the $s.
73806
73807 2003-07-15  Karl Berry  <karl@gnu.org>
73808
73809         * lib/vasnprintf.c: update from gettext.
73810
73811 2003-07-15  Karl Berry  <karl@gnu.org>
73812
73813         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73814         gets expanded when surrounded by '$'.
73815
73816 2003-07-15  Jim Meyering  <jim@meyering.net>
73817
73818         * modules/save-cwd: Don't depend on error.  From Derek Price.
73819
73820 2003-07-15  Jim Meyering  <jim@meyering.net>
73821
73822         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73823
73824 2003-07-14  Simon Josefsson  <jas@extundo.com>
73825
73826         * modules/mempcpy: New file.
73827         * MODULES.html.sh (func_all_modules): Add mempcpy.
73828
73829 2003-07-14  Simon Josefsson  <jas@extundo.com>
73830
73831         * m4/mempcpy.m4: New file.
73832
73833 2003-07-14  Simon Josefsson  <jas@extundo.com>
73834
73835         * lib/mempcpy.h: New file.
73836         * lib/mempcpy.c: New file.
73837
73838 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73839
73840         * modules/getdate, modules/posixtm: Depend on mktime.
73841
73842 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73843
73844         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73845         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73846         unicodeio.c, unicodeio.h, unlocked-io.h:
73847         Switch from LGPL to GPL.
73848
73849 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73850
73851         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73852         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73853         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73854         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73855         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73856         updated automatically by ../config/srclist-update.  This changes
73857         their license from LPGL to GPL.
73858
73859 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73860
73861         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73862         assumed to refer to the root of the most recent stable gettext version.
73863         * config/srclistvars.sh: Add defaults for eggert.
73864         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73865         Match "This program" as well as "The program".  This is needed
73866         for gettext.
73867
73868 2003-07-14  Jim Meyering  <jim@meyering.net>
73869
73870         Don't emit diagnostics.  Let callers do that.
73871         * lib/save-cwd.c: Don't include "error.h".
73872         (save_cwd): Don't call error.  Ensure that errno is valid
73873         when returning nonzero.
73874
73875         * lib/save-cwd.h (restore_cwd): Update prototype.
73876         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73877         Simplify.  Don't call error upon failure.  Let callers do that.
73878         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73879         when auditing is enabled.  But don't bother updating the #if.
73880
73881 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73882
73883         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73884         it breaks C++ compilation.
73885         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73886
73887 2003-07-10  Simon Josefsson  <jas@extundo.com>
73888
73889         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73890
73891 2003-07-10  Jim Meyering  <jim@meyering.net>
73892
73893         * m4/clock_time.m4: Remove trailing blank.
73894         * m4/intmax_t.m4: Likewise.
73895
73896 2003-07-10  Jim Meyering  <jim@meyering.net>
73897
73898         * lib/vasnprintf.c: Remove trailing blanks.
73899         Make cpp indentation consistent.
73900
73901 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73902
73903         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73904         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73905         Switch from LGPL to GPL.
73906
73907 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73908
73909         * config/srclist.txt: Sort sublists.  Add
73910         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73911         that differ from gnulib for one reason or another; we'd like this list
73912         to be smaller but for now let's document what we have.
73913
73914 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73915
73916         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73917         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73918         and sweeter "eval x=$x".
73919         * config/srclist.txt: Get lib/argp* from glibc.
73920
73921 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73922
73923         * lib/mktime.c: Fix some boundary cases and remove need for floating
73924         point.
73925
73926         Issue a compile-time diagnostic if time_t is floating point, or if
73927         two's complement arithmetic is not in effect, or if arithmetic
73928         right shift does not propagate the sign.  These assumptions were
73929         all in the original code but they weren't checked.
73930
73931         (TIME_T_MIDPOINT, verify): New macros.
73932         (__isleap): Remove; it has integer overflow problems.
73933         (leapyear): New function, without those problems.
73934         (ydhms_tm_diff): Remove; splitting into two parts.
73935         (ydhms_diff): New function, containing the arithmetic part of
73936         the old ydhms_tm_diff function.  Issue a compile-time
73937         diagnostic if we are not using C99 integer division.
73938         Avoid casts when possible.
73939         (guess_time_tm): New function, containing the checking part of
73940         the old ydhms_tm_diff function.  Return the new value, rather than
73941         the difference between it and the old.  Accept a new argument T
73942         so that *T specifies the old value.  Check for overflow in the result.
73943
73944         (__mktime_internal): Use a time_t offset, not a long int offset.
73945         This undoes the 2003-06-04 change, which is no longer needed now
73946         that we have better overflow checking.
73947         (localtime_offset): Likewise.
73948
73949         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73950         and long are 64-bit but int is only 32-bit.
73951         (ydhms_diff): Use long int to store year1 and yday1.
73952         Issue a compile-time diagnostic if long int is not wide enough.
73953
73954         (__mktime_internal): Use long int to store adjusted year and yday.
73955         Use plain C rather than preprocessor commands, if that doesn't
73956         affect efficiency.
73957         Check for overflow (and try to repair) after each probe
73958         rather than checking only at the very end.  This avoids some bugs
73959         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73960         does not equal GMT offset at maximum time).
73961         Use integer to check for overflow rather than floating point; this
73962         is more portable to non-IEEE hosts, and is a tad faster.
73963         When we detect that we are oscillating between two values,
73964         don't check whether tm_isdst has the requested value, since
73965         we already know the answer.  When tm_isdst has the wrong value,
73966         use a different heuristic to find the right one, based on the
73967         extreme values actually observed in practice in tz2003a,
73968         rather than the (overly optimistic) "previous 3 calendar quarters".
73969
73970         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73971         "T const" to accommodate glibc style.
73972         (check_result): Use less-confusing report format.  "long" -> "long int.
73973         (main): Likewise.
73974         Don't loop if the iteration overflows time_t.
73975         Allow a negative step in the iteration.
73976
73977 2003-07-06  Karl Berry  <karl@gnu.org>
73978
73979         * config/depcomp: update from automake.
73980         * config/config.sub: update from prep.
73981
73982 2003-07-03  Karl Berry  <karl@gnu.org>
73983
73984         * config/config.guess: update from prep.
73985
73986 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73987
73988         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73989         xreadlink.c now includes it unconditionally.
73990
73991 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73992
73993         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73994         having it depend on HAVE_SYS_TYPES_H.
73995
73996 2003-07-01  Bruno Haible  <bruno@clisp.org>
73997
73998         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73999         <sys/types.h> should be sufficient.
74000         Reported by Paul Eggert.
74001
74002 2003-06-26  Karl Berry  <karl@gnu.org>
74003
74004         * config/depcomp: update from automake.
74005
74006 2003-06-26  Bruno Haible  <bruno@clisp.org>
74007
74008         * modules/human: Depend on module stdbool.
74009
74010 2003-06-25  Bruno Haible  <bruno@clisp.org>
74011
74012         * modules/readlink: New file.
74013         * modules/xreadlink: Depend on it.
74014         * MODULES.html.sh (func_all_modules): Add readlink.
74015
74016 2003-06-25  Bruno Haible  <bruno@clisp.org>
74017
74018         * m4/readlink.m4: New file.
74019
74020 2003-06-25  Bruno Haible  <bruno@clisp.org>
74021
74022         * lib/readlink.c: New file.
74023
74024 2003-06-22  Karl Berry  <karl@gnu.org>
74025
74026         * config/srclist.txt: update mkinstalldirs from automake.
74027         * config/mkinstalldirs: update.
74028
74029 2003-06-22  Bruno Haible  <bruno@clisp.org>
74030
74031         Portability to mingw32.
74032         * m4/ssize_t.m4: New file, from GNU gettext.
74033         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74034         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74035
74036 2003-06-22  Bruno Haible  <bruno@clisp.org>
74037
74038         * modules/safe-read: Add m4/ssize_t.m4.
74039         * modules/xreadlink: Add m4/ssize_t.m4.
74040
74041 2003-06-20  Bruno Haible  <bruno@clisp.org>
74042
74043         Assume C89, so PARAMS isn't needed.
74044         * lib/unicodeio.h (PARAMS): Remove.
74045         * lib/unicodeio.c: Don't use PARAMS.
74046
74047 2003-06-18  Karl Berry  <karl@gnu.org>
74048
74049         * config/config.{guess,sub}: update from prep.
74050
74051 2003-06-18  Jim Meyering  <jim@meyering.net>
74052
74053         Merge changes from coreutils.
74054         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74055         Remove explicit declarations of xmalloc and realloc.
74056         Include xalloc.h.
74057         (read_utmp): Remove anachronistic cast of xmalloc.
74058
74059 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74060
74061         Assume C89, so PARAMS isn't needed.
74062         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74063         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74064         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74065         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74066         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74067         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74068         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74069         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74070         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74071         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74072         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74073         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74074         no longer needed. Anyway, config.h should always be included before any
74075         other file.
74076
74077 2003-06-11  Simon Josefsson  <jas@extundo.com>
74078
74079         * modules/sysexits: New file.
74080         * MODULES.html.sh (func_all_modules): Add sysexits.
74081
74082 2003-06-11  Simon Josefsson  <jas@extundo.com>
74083
74084         * lib/sysexit_.h: New file.
74085
74086 2003-06-11  Derek Price  <derek@ximbiot.com>
74087
74088         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74089         necessary.
74090
74091 2003-06-11  Bruno Haible  <bruno@clisp.org>
74092
74093         * m4/sysexits.m4: New file.
74094
74095 2003-06-10  Simon Josefsson  <jas@extundo.com>
74096
74097         * lib/argp.h: New file, from glibc.
74098         * lib/argp-ba.c: New file, from glibc.
74099         * lib/argp-eexst.c: New file, from glibc.
74100         * lib/argp-fmtstream.c: New file, from glibc.
74101         * lib/argp-fmtstream.h: New file, from glibc.
74102         * lib/argp-fs-xinl.c: New file, from glibc.
74103         * lib/argp-help.c: New file, from glibc.
74104         * lib/argp-namefrob.h: New file, from glibc.
74105         * lib/argp-parse.c: New file, from glibc.
74106         * lib/argp-pv.c: New file, from glibc.
74107         * lib/argp-pvh.c: New file, from glibc.
74108         * lib/argp-xinl.c: New file, from glibc.
74109
74110 2003-06-10  Simon Josefsson  <jas@extundo.com>
74111
74112         * modules/strchrnul: New file.
74113
74114 2003-06-10  Simon Josefsson  <jas@extundo.com>
74115
74116         * modules/argp: New file.
74117
74118 2003-06-10  Simon Josefsson  <jas@extundo.com>
74119
74120         * m4/strchrnul.m4: New file.
74121
74122 2003-06-10  Simon Josefsson  <jas@extundo.com>
74123
74124         * lib/strchrnul.h: New file.
74125         * lib/strchrnul.c: New file.
74126
74127 2003-06-10  Bruno Haible  <bruno@clisp.org>
74128
74129         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74130
74131 2003-06-07  Karl Berry  <karl@gnu.org>
74132
74133         * config/config.{guess,sub}: update from prep.
74134
74135 2003-06-07  Jim Meyering  <jim@meyering.net>
74136
74137         * modules/strtod: Use $(...) notation, not @...@ for
74138         AC_REPLACE'd variables.
74139         * modules/localcharset: Likewise.
74140
74141 2003-06-07  Jim Meyering  <jim@meyering.net>
74142
74143         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74144         in place of my name in the copyright comment.
74145         Remove definition and uses of __P.
74146
74147         From coreutils.
74148         * lib/stat.c: Don't declare xmalloc explicitly.
74149         Instead, include "xalloc.h".
74150         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74151         xrealloc, and xcalloc return values.
74152         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74153         Improve comment.
74154         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74155
74156 2003-06-07  Bruno Haible  <bruno@clisp.org>
74157
74158         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74159         avoid AC_CONFIG_LINKS.
74160         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74161         fnmatch.h, to avoid AC_CONFIG_LINKS.
74162         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74163
74164 2003-06-07  Bruno Haible  <bruno@clisp.org>
74165
74166         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74167         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74168         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74169         directory.
74170         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74171         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74172         directory.
74173
74174 2003-06-06  Jim Meyering  <jim@meyering.net>
74175
74176         Merge from coreutils.
74177         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74178         Consolidate declarations and initializations of *_base* locals.
74179
74180         Merge from coreutils.
74181         This avoids a core dump on systems without GNU putenv,
74182         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74183         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74184         (unsetenv): New static function, from GNU libc.
74185         (rpl_putenv): Use it.
74186
74187         * lib/modechange.c: Remove trailing blanks.
74188
74189         Merge from coreutils.
74190         * lib/fsusage.c: Remove declaration of statfs.
74191         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74192
74193         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74194
74195 2003-06-06  Jim Meyering  <jim@meyering.net>
74196
74197         * lib/stdbool_.h: Renamed from stdbool.h.in.
74198
74199 2003-06-06  Jim Meyering  <jim@meyering.net>
74200             Bruno Haible  <bruno@clisp.org>
74201
74202         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74203         Adjust Makefile.am snippet not to redirect directly to target.
74204         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74205
74206 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74207
74208         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74209         mismatch, look in future quarters as well as past.  This fixes a
74210         bug when processing fall-backwards gaps immediately after a long
74211         period of daylight-saving time.
74212
74213         * lib/mktime.c: Assume freestanding C89 or better.
74214         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74215         (__P): Remove; not used.
74216         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74217         (mktime, not_equal_tm, print_tm, check_result,
74218         main): Use prototypes.  Use const * where appropriate.
74219         (main): Fix typo in testing code that uncovered by above changes.
74220         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74221
74222 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74223
74224         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74225         locale.h, localeconv.  This merges changes from coreutils.
74226
74227         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74228         It can be removed after the next Autoconf is released.
74229         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74230         needed.
74231
74232 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74233
74234         * lib/mktime.c: Fix Debian bug 177940
74235         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74236         (localtime_offset): Now long int, not time_t, because we want it
74237         to be guaranteed to be signed.  All uses changed.
74238         (__mktime_internal): If overflow would occur when adding offset,
74239         don't add it.
74240
74241         Merge 'human' changes from coreutils.  Rewrite to support
74242         locale-specific notations like thousands separators.
74243         * lib/human.c: Simplify authorship notice.
74244         Include human.h immediately after config.h.
74245         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74246         <limits.h>: Do not include, since human.h does.
74247         (SIZE_MAX, UINTMAX_MAX): New macros.
74248         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74249         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74250         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74251         (power_letter): Renamed from suffixes.
74252         (generate_suffix_backwards): Remove.
74253         (adjust_value): Now takes int style (because of human.h changes)
74254         and long double value (for greater precision on some platforms).
74255         (group_number): New function.
74256         (human_readable): Use it.  Use integer options, not enum.
74257         Put the options before the sizes in the arg list.
74258         Support all the new options.
74259         The old human_readable function has been removed;
74260         use inttostr.h instead.
74261         (human_readable, default_block_size, humblock):
74262         Use uintmax_t, not int, for block sizes.
74263         (human_readable_inexact, block_size_types): Remove.
74264         (block_size_opts): New constant.
74265         (human_options): Renamed from human_block_size, with new signature
74266         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74267         * lib/human.h: Add copyright and authorship notice.
74268         Include <limits.h> and <stdbool.h> unconditionally.
74269         (PARAMS): Remove.  All uses removed.
74270         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74271         (enum human_inexact_style): Remove tag; now a nameless enum.
74272         (human_floor, human_ceiling, human_round_to_even): Now have
74273         values 2, 0, 1 rather than -1, 1, 0.
74274         (human_group_digits, human_suppress_point_zero, human_autoscale,
74275         human_base_1024, human_SI, human_B): New constants.
74276         (human_readable_inexact, human_block_size): Remove.
74277         (human_readable): Size args are now uintmax_t, not int.
74278         (human_options): New decl.
74279
74280         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74281         unnecessary now that we assume C89 or better.  This change
74282         imported from coreutils.
74283
74284         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74285         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74286         in the 2003-05-30 sync from glibc.
74287
74288         .h files should stand alone, but we shouldn't include <sys/types.h>
74289         if we can get away with just <stddef.h>.
74290
74291         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74292         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74293         rather than <sys/types.h>, as we merely need size_t.
74294         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74295         to get size_t.
74296         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74297         Include <stdio.h>, to get FILE.
74298         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74299         memcasecmp.h has included <stddef.h> and all we need is size_t.
74300         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74301         our interface, instead of including <sys/types.h>
74302
74303 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74304
74305         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74306         now, as glibc mktime is buggy on non-glibc systems.
74307
74308 2003-06-03  Karl Berry  <karl@gnu.org>
74309
74310         * config/config.sub: update from prep.
74311
74312 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74313
74314         [from coreutils]
74315         Fix some minor time-related bugs with POSIX time arguments.
74316         Some valid time stamps were being rejected (notably -1, and
74317         time stamps before 1900 on 64-bit hosts).  And some invalid
74318         time stamps were being accepted, e.g. September 31.
74319
74320         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74321         that we can return (time_t) -1 successfully.
74322         * lib/posixtm.c: Likewise.
74323         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74324         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74325         (t): Remove static var.
74326         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74327         of static var.  All uses changed.
74328         (year): Do not reject years before 1900; they can occur with
74329         64-bit time_t.
74330         (posix_time_parse): Do not check for out-of-range components;
74331         that is now the caller's responsibility, since our checks were
74332         only approximations.
74333         (posixtime): Use mktime to check for out-of-range components,
74334         since it knows them exactly.
74335         If mktime returns (time_t) -1, check whether an error actually occurred
74336         by invoking localtime on -1.
74337         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74338         posixtime failures better.
74339         Improve the test data (in comments only).
74340
74341 2003-06-02  Karl Berry  <karl@gnu.org>
74342
74343         * config/mkinstalldirs (version): new variable.
74344         (--version): new option.
74345         (usage): improve message.
74346
74347 2003-05-30  Karl Berry  <karl@gnu.org>
74348
74349         * lib/mktime.c: update from libc.
74350
74351 2003-05-30  Bruno Haible  <bruno@clisp.org>
74352
74353         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74354         * config/config.rpath: Upgrade to gettext-0.12.1.
74355
74356 2003-05-30  Bruno Haible  <bruno@clisp.org>
74357
74358         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74359         * m4/nls.m4: New file, from gettext-0.12.1.
74360         * m4/po.m4: New file, from gettext-0.12.1.
74361         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74362
74363 2003-05-30  Bruno Haible  <bruno@clisp.org>
74364
74365         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74366         * lib/localcharset.h: Likewise.
74367         * lib/localcharset.c: Likewise.
74368
74369 2003-05-29  Karl Berry  <karl@gnu.org>
74370
74371         * config/config.rpath: update from gettext.
74372
74373 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74374
74375         Assume the headers required for C89 freestanding compilers.
74376         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74377         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74378         * m4/human.m4 (gl_HUMAN): Likewise.
74379         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74380         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74381         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74382         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74383         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74384         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74385
74386 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74387
74388         Assume the headers required for C89 freestanding compilers.
74389         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74390         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74391         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74392         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74393         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74394         define, since <limits.h> is guaranteed to do that.
74395         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74396         * lib/exclude.c: Include <stdbool.h> unconditionally.
74397         * lib/tempname.c: Include <stddef.h> unconditionally.
74398         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74399         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74400         <stddef.h> does that.
74401         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74402         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74403         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74404         needed.
74405         * lib/xstrtol.c: Likewise.
74406         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74407         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74408
74409         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74410         warnings on some platforms.
74411
74412         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74413         arbitrarily.
74414
74415 2003-05-26  Jim Meyering  <jim@meyering.net>
74416
74417         Merge in a change from coreutils:
74418         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74419         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74420         that condition, rather than `-1' which is slightly misleading.
74421         Change the name of the cache variable to have the gl_ prefix.
74422         Prompted by a patch from Richard Dawe for DJGPP.
74423
74424 2003-05-24  Karl Berry  <karl@gnu.org>
74425
74426         * config/config.guess: update from prep.
74427
74428 2003-05-22  Karl Berry  <karl@gnu.org>
74429
74430         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74431
74432 2003-05-20  Karl Berry  <karl@gnu.org>
74433
74434         * config/config.guess: update from prep.
74435
74436 2003-05-18  Karl Berry  <karl@gnu.org>
74437
74438         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74439         might actually be set by the user.
74440
74441         * config/depcomp, install-sh, mdate-sh: update from automake.
74442
74443 2003-05-17  Bruno Haible  <bruno@clisp.org>
74444
74445         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74446         invalid expansion for AC_EGREP_CPP.
74447         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74448         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74449         Suggested by Akim Demaille <akim@epita.fr> in
74450         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74451
74452 2003-05-12  Jim Meyering  <jim@meyering.net>
74453
74454         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74455         the space-padded-by-default conversion specifiers, %e, %k, %l.
74456
74457 2003-05-12  Bruno Haible  <bruno@clisp.org>
74458
74459         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74460         the string is longer than 4 KB.
74461
74462 2003-05-11  Karl Berry  <karl@gnu.org>
74463
74464         * config/config.{guess,sub}: update from prep.
74465
74466 2003-05-09  Bruno Haible  <bruno@clisp.org>
74467
74468         * modules/error: Add m4/strerror_r.m4 to file list.
74469
74470 2003-05-03  Bruno Haible  <bruno@clisp.org>
74471
74472         Upgrade to Unicode-4.0.
74473         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74474         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74475         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74476         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74477         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74478         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74479         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74480         Change width of U+E0100..U+E01EF from 1 to 0.
74481
74482 2003-04-25  Jim Meyering  <jim@meyering.net>
74483
74484         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74485         of type size_t, not int.
74486
74487 2003-04-25  Bruno Haible  <bruno@clisp.org>
74488
74489         * lib/copy-file.c: Include <stddef.h>, for size_t.
74490
74491 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74492
74493         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74494         code which expansion is under static control.  Patch imported from
74495         Akim Demaille's patch to Bison; see
74496         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74497
74498 2003-04-14  Bruno Haible  <bruno@clisp.org>
74499
74500         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74501
74502 2003-04-11  Jim Meyering  <jim@meyering.net>
74503
74504         Merge changes from Coreutils.
74505
74506         2003-03-22  Jim Meyering  <jim@meyering.net>
74507
74508         * lib/strftime.c (widen): Cast alloca return value to proper type.
74509
74510         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74511
74512         From GNU libc.
74513         * lib/strftime.c (my_strftime): Handle very large width
74514         specifications for numeric values correctly.  Improve checks for
74515         overflow.
74516
74517         2003-01-19  Jim Meyering  <jim@meyering.net>
74518
74519         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74520         definitions.
74521         (nl_get_alt_digit) [! defined my_strftime]: Define.
74522         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74523         _nl_get_alt_digit and _nl_get_walt_digit.
74524
74525         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74526         libc. These changes have no effect outside of _LIBC.
74527
74528 2003-04-10  Bruno Haible  <bruno@clisp.org>
74529
74530         * modules/findprog: New file.
74531         * MODULES.html.sh (func_all_modules): Add it.
74532
74533 2003-04-10  Bruno Haible  <bruno@clisp.org>
74534
74535         * m4/findprog.m4: New file.
74536         * m4/eaccess.m4: New file.
74537
74538 2003-04-10  Bruno Haible  <bruno@clisp.org>
74539
74540         * lib/findprog.h: New file, from GNU gettext.
74541         * lib/findprog.c: New file, from GNU gettext.
74542
74543 2003-04-05  Jim Meyering  <jim@meyering.net>
74544
74545         Merge changes from Coreutils.
74546
74547         * lib/exclude.h (PARAMS): Remove definition and uses.
74548         * lib/exclude.c: Remove uses of `PARAMS'.
74549
74550         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74551         Add test-cases for DOS filenames. Declare program_name.
74552         (main): Set up program_name.  Patch by Rich Dawe.
74553
74554         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74555         error from mntctl.
74556         Use mntctl's return value to drive the entry-processing loop, since
74557         we can't rely on the value of the vmt_length member in the last
74558         entry.  On some systems doing so could result in exhausting
74559         virtual memory.  Based in part on a patch from Mike Jetzer.
74560
74561 2003-04-04  Bruno Haible  <bruno@clisp.org>
74562
74563         * modules/linebreak: New file.
74564         * MODULES.html.sh (func_all_modules): Add it.
74565
74566 2003-04-04  Bruno Haible  <bruno@clisp.org>
74567
74568         * m4/linebreak.m4: New file.
74569
74570 2003-04-04  Bruno Haible  <bruno@clisp.org>
74571
74572         * lib/linebreak.h: New file, from GNU gettext.
74573         * lib/linebreak.c: New file, from GNU gettext with slight
74574         modifications.
74575         * lib/lbrkprop.h: New file, from GNU gettext.
74576
74577 2003-04-03  Bruno Haible  <bruno@clisp.org>
74578
74579         * modules/utf8-ucs4: New file.
74580         * modules/utf16-ucs4: New file.
74581         * modules/ucs4-utf8: New file.
74582         * modules/ucs4-utf16: New file.
74583         * MODULES.html.sh (func_all_modules): Add them.
74584
74585 2003-04-03  Bruno Haible  <bruno@clisp.org>
74586
74587         * m4/utf-ucs4.m4: New file.
74588         * m4/ucs4-utf.m4: New file.
74589
74590 2003-04-03  Bruno Haible  <bruno@clisp.org>
74591
74592         * lib/utf8-ucs4.h: New file, from GNU gettext.
74593         * lib/utf16-ucs4.h: New file, from GNU gettext.
74594         * lib/ucs4-utf8.h: New file, from GNU gettext.
74595         * lib/ucs4-utf16.h: New file, from GNU gettext.
74596
74597 2003-04-02  Bruno Haible  <bruno@clisp.org>
74598
74599         * modules/binary-io: New file.
74600         * MODULES.html.sh (func_all_modules): Add it.
74601
74602 2003-04-02  Bruno Haible  <bruno@clisp.org>
74603
74604         * lib/binary-io.h: New file, from GNU gettext.
74605
74606 2003-04-01  Bruno Haible  <bruno@clisp.org>
74607
74608         * modules/pathname: New file.
74609         * MODULES.html.sh (func_all_modules): Add it.
74610
74611 2003-04-01  Bruno Haible  <bruno@clisp.org>
74612
74613         * lib/pathname.h: New file, from GNU gettext.
74614         * lib/concatpath.c: New file, from GNU gettext.
74615
74616 2003-03-30  Bruno Haible  <bruno@clisp.org>
74617
74618         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74619
74620 2003-03-30  Bruno Haible  <bruno@clisp.org>
74621
74622         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74623         function chown() doesn't exist.
74624
74625 2003-03-28  Bruno Haible  <bruno@clisp.org>
74626
74627         * modules/copy-file: New file.
74628         * MODULES.html.sh (func_all_modules): Add it.
74629
74630 2003-03-28  Bruno Haible  <bruno@clisp.org>
74631
74632         * m4/copy-file.m4: New file.
74633
74634 2003-03-28  Bruno Haible  <bruno@clisp.org>
74635
74636         * lib/copy-file.h: New file, from GNU gettext.
74637         * lib/copy-file.c: New file, from GNU gettext.
74638
74639 2003-03-18  Jim Meyering  <jim@meyering.net>
74640
74641         * lib/quote.c (quote_n): Fix typo in comment.
74642
74643 2003-03-18  Bruno Haible  <bruno@clisp.org>
74644
74645         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74646         checking.
74647         * m4/onceonly_2_57.m4: Likewise.
74648
74649 2003-03-17  Bruno Haible  <bruno@clisp.org>
74650
74651         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74652         (m4_quote): Remove macro.
74653         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74654
74655 2003-03-14  Jim Meyering  <jim@meyering.net>
74656
74657         Merge changes from Coreutils.
74658         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74659         to be const, in order to avoid warnings.
74660         (obstack_room): Likewise.
74661         (obstack_empty_p): Likewise.
74662
74663 2003-03-14  Bruno Haible  <bruno@clisp.org>
74664
74665         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74666         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74667
74668 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74669
74670         Merge changes from Bison.
74671         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74672         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74673         when compiling Bison 1.875's `bitset bset = obstack_alloc
74674         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74675         * lib/hash.c: Include <stdbool.h> unconditionally.
74676
74677 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74678
74679         * m4/onceonly.m4 (m4_quote): New macro.
74680         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74681         Quote AC_FOREACH variable-expansions properly.
74682
74683 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74684
74685         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74686
74687 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74688
74689         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74690         Reported by Bruce Becker; see:
74691         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74692
74693 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74694             Bruno Haible  <bruno@clisp.org>
74695
74696         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74697         Reported by John Hughes, see
74698         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74699
74700 2003-02-20  Bruno Haible  <bruno@clisp.org>
74701
74702         * MODULES.html.sh (func_all_modules): Add poll.
74703
74704 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74705
74706         * modules/poll: New file.
74707
74708 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74709
74710         * lib/poll_.h: New file.
74711         * lib/poll.c: New file.
74712
74713 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74714
74715         * m4/poll.m4: New file.
74716
74717 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74718
74719         * modules/mathl: New file.
74720
74721 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74722
74723         * lib/mathl.h: New file.
74724         * lib/acosl.c: New file.
74725         * lib/asinl.c: New file.
74726         * lib/atanl.c: New file.
74727         * lib/ceill.c: New file.
74728         * lib/cosl.c: New file.
74729         * lib/expl.c: New file.
74730         * lib/floorl.c: New file.
74731         * lib/frexpl.c: New file.
74732         * lib/ldexpl.c: New file.
74733         * lib/logl.c: New file.
74734         * lib/sincosl.c: New file.
74735         * lib/sinl.c: New file.
74736         * lib/sqrtl.c: New file.
74737         * lib/tanl.c: New file.
74738         * lib/trigl.c: New file.
74739         * lib/trigl.h: New file.
74740
74741 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74742
74743         * m4/mathl.m4: New file.
74744
74745 2003-02-18  Bruno Haible  <bruno@clisp.org>
74746
74747         * MODULES.html.sh (func_all_modules): Add mathl.
74748
74749 2003-02-17  Bruno Haible  <bruno@clisp.org>
74750
74751         * modules/mkdtemp: New module.
74752         * MODULES.html.sh (func_all_modules): Add it.
74753
74754 2003-02-17  Bruno Haible  <bruno@clisp.org>
74755
74756         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74757
74758 2003-02-17  Bruno Haible  <bruno@clisp.org>
74759
74760         * lib/mkdtemp.h: New file, from GNU gettext.
74761         * lib/mkdtemp.c: New file, from GNU gettext.
74762
74763 2003-02-02  Jim Meyering  <jim@meyering.net>
74764
74765         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74766         e.g. glibc-2.2.93.
74767
74768 2003-01-31  Bruno Haible  <bruno@clisp.org>
74769
74770         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74771         'rpl_rename'.
74772         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74773         'rpl_strnlen'.
74774         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74775         'rpl_strtod'.
74776         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74777         'rpl_utime'.
74778
74779 2003-01-31  Bruno Haible  <bruno@clisp.org>
74780
74781         * lib/rename.c: #undef rename before defining rpl_rename.
74782         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74783
74784 2003-01-30  Bruno Haible  <bruno@clisp.org>
74785
74786         * modules/vasnprintf, modules/vasprintf: New modules.
74787         * MODULES.html.sh (func_all_modules): Add them.
74788
74789 2003-01-30  Bruno Haible  <bruno@clisp.org>
74790
74791         * m4/signed.m4: New file, from GNU gettext.
74792         * m4/longdouble.m4: New file, from GNU gettext.
74793         * m4/wchar_t.m4: New file, from GNU gettext.
74794         * m4/wint_t.m4: New file, from GNU gettext.
74795         * m4/vasnprintf.m4: New file.
74796         * m4/vasprintf.m4: New file.
74797
74798 2003-01-30  Bruno Haible  <bruno@clisp.org>
74799
74800         * lib/printf-args.h: New file, from GNU gettext.
74801         * lib/printf-args.c: New file, from GNU gettext.
74802         * lib/printf-parse.h: New file, from GNU gettext.
74803         * lib/printf-parse.c: New file, from GNU gettext.
74804         * lib/vasnprintf.h: New file, from GNU gettext.
74805         * lib/vasnprintf.c: New file, from GNU gettext.
74806         * lib/asnprintf.c: New file, from GNU gettext.
74807         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74808         * lib/vasprintf.c: New file, from GNU gettext.
74809         * lib/asprintf.c: New file, from GNU gettext.
74810
74811 2003-01-29  Bruno Haible  <bruno@clisp.org>
74812
74813         * modules/stpncpy: New module.
74814         * MODULES.html.sh (func_all_modules): Add it.
74815
74816 2003-01-29  Bruno Haible  <bruno@clisp.org>
74817
74818         * m4/stpncpy.m4: New file.
74819
74820 2003-01-29  Bruno Haible  <bruno@clisp.org>
74821
74822         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74823         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74824
74825 2003-01-28  Bruno Haible  <bruno@clisp.org>
74826
74827         * modules/c-ctype: New module.
74828         * MODULES.html.sh (func_all_modules): Add it.
74829
74830 2003-01-28  Bruno Haible  <bruno@clisp.org>
74831
74832         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74833         Paul Eggert.
74834         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74835         Paul Eggert.
74836
74837 2003-01-27  Bruno Haible  <bruno@clisp.org>
74838
74839         * modules/xsetenv: New module.
74840         * MODULES.html.sh (func_all_modules): Add it.
74841
74842 2003-01-27  Bruno Haible  <bruno@clisp.org>
74843
74844         * lib/xsetenv.h: New file, from GNU gettext.
74845         * lib/xsetenv.c: New file, from GNU gettext.
74846
74847 2003-01-23  Jim Meyering  <jim@meyering.net>
74848
74849         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74850         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74851
74852 2003-01-23  Bruno Haible  <bruno@clisp.org>
74853
74854         * modules/minmax: New module.
74855         * MODULES.html.sh (func_all_modules): Add it.
74856
74857 2003-01-23  Bruno Haible  <bruno@clisp.org>
74858
74859         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74860         Eggert.
74861
74862 2003-01-22  Bruno Haible  <bruno@clisp.org>
74863
74864         * modules/exit: New module.
74865         * MODULES.html.sh (func_all_modules): Add it.
74866
74867 2003-01-22  Bruno Haible  <bruno@clisp.org>
74868
74869         * lib/exit.h: New file, from GNU gettext.
74870
74871 2003-01-19  Bruno Haible  <bruno@clisp.org>
74872
74873         * gnulib-tool: Recognize option --extract-maintainer.
74874         (func_get_maintainer): New function.
74875         * modules/*: Add Maintainer entry.
74876
74877 2003-01-16  Jim Meyering  <jim@meyering.net>
74878
74879         * m4/regex.m4: The `regex' struct is both input and output.
74880         Initialize it before each use.  Patch by Tim Waugh.
74881
74882 2003-01-16  Bruno Haible  <bruno@clisp.org>
74883
74884         * MODULES.html.sh: Add a table of contents. Add the module name as
74885         leftmost column. Add hyperlinks.
74886
74887 2003-01-15  Bruno Haible  <bruno@clisp.org>
74888
74889         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74890
74891 2003-01-15  Bruno Haible  <bruno@clisp.org>
74892
74893         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74894         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74895         suffix.
74896
74897 2003-01-15  Bruno Haible  <bruno@clisp.org>
74898
74899         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74900
74901 2003-01-15  Bruno Haible  <bruno@clisp.org>
74902
74903         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74904         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74905
74906 2003-01-14  Jim Meyering  <jim@meyering.net>
74907
74908         * lib/same.c (same_name): Tweak a comment.
74909
74910 2003-01-14  Bruno Haible  <bruno@clisp.org>
74911
74912         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74913         when a string comparison is sufficient.
74914
74915 2003-01-14  Bruno Haible  <bruno@clisp.org>
74916
74917         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74918         'unsigned int'.
74919
74920 2003-01-14  Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/hash-pjw.c: Add comment about low quality of this function.
74923
74924 2003-01-13  Bruno Haible  <bruno@clisp.org>
74925
74926         * modules/stpcpy: Distribute lib/stpcpy.h.
74927         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74928
74929 2003-01-13  Bruno Haible  <bruno@clisp.org>
74930
74931         * modules/*: Add a description.
74932         * modules/strpbrk: Fix Makefile.am snippet.
74933         * modules/strtoimax: Fix dependencies.
74934         * modules/strtoumax: Likewise.
74935
74936 2003-01-13  Bruno Haible  <bruno@clisp.org>
74937
74938         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74939         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74940         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74941
74942 2003-01-13  Bruno Haible  <bruno@clisp.org>
74943
74944         * gnulib-tool (func_create_testdir): Store config/* files in the main
74945         directory.
74946         * config.rpath: Move to ...
74947         * config/config.rpath: ... here.
74948         * modules/gettext: Contains config/config.rpath, not config.rpath.
74949         * modules/iconv: Likewise.
74950
74951 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74952
74953         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74954         to avoid collisions with libcurses and libreadline.
74955
74956         * m4/getstr.m4: Remove.
74957         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74958
74959 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74960
74961         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74962         to avoid collisions with libcurses and libreadline.
74963
74964         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74965         * lib/getstr.h, getstr.c: Remove.
74966         * lib/getline.c: Include "getline.h", to check interface.
74967         Move body of old getstr.c here: this defines MIN_CHUNK and
74968         declares getdelim2, which is renamed from getstr.
74969         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74970
74971         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74972         All uses changed.
74973         * lib/linebuffer.h: Likewise.
74974         (readline): Remove backward-compatibility macro.
74975
74976 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74977
74978         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74979         to avoid collisions with libcurses and libreadline.
74980         * getstr: Remove.
74981         * MODULES.html.sh: Remove getstr.
74982         * modules/getline: Depend on unlocked-io, not getstr.
74983
74984 2003-01-12  Jim Meyering  <jim@meyering.net>
74985
74986         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74987
74988 2003-01-10  Bruno Haible  <bruno@clisp.org>
74989
74990         * modules/alloca: Change Makefile.am requirements. Simplify Include
74991         requirements. Add lib/alloca_.h to file list.
74992
74993 2003-01-10  Bruno Haible  <bruno@clisp.org>
74994
74995         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74996
74997 2003-01-10  Bruno Haible  <bruno@clisp.org>
74998
74999         * lib/alloca_.h: New file.
75000         * lib/getdate.y: Unconditionally include alloca.h.
75001         * lib/makepath.c: Likewise.
75002         * lib/setenv.c: Likewise.
75003         * lib/userspec.c: Likewise.
75004
75005 2003-01-09  Karl Berry  <karl@gnu.org>
75006
75007         * MODULES.html.sh: include `dirname $0` in PATH, to find
75008         gnulib-tool.
75009
75010 2003-01-09  Bruno Haible  <bruno@clisp.org>
75011
75012         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75013         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75014
75015 2003-01-09  Bruno Haible  <bruno@clisp.org>
75016
75017         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75018
75019 2003-01-09  Bruno Haible  <bruno@clisp.org>
75020
75021         * lib/stdbool.h.in: New file.
75022
75023 2003-01-09  Bruno Haible  <bruno@clisp.org>
75024
75025         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75026         * MODULES.html.sh: Likewise.
75027
75028 2003-01-08  Jim Meyering  <jim@meyering.net>
75029
75030         * lib/full-write.c: Undefine and define-away `const' after inclusion
75031         of errno.h, not before.  Suggestion from Bruno Haible.
75032
75033 2003-01-08  Bruno Haible  <bruno@clisp.org>
75034
75035         * modules/full-read: Depend on full-write.
75036
75037 2003-01-08  Bruno Haible  <bruno@clisp.org>
75038
75039         * lib/safe-read.c: Include specification header first, to ensure its
75040         selfcontainedness.
75041         * lib/full-write.c: Likewise.
75042
75043 2003-01-07  Jim Meyering  <jim@meyering.net>
75044
75045         * lib/full-write.c: Rework so that it may serve to define full_read,
75046         too.
75047         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75048
75049 2003-01-07  Bruno Haible  <bruno@clisp.org>
75050
75051         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75052         <inttypes.h>.
75053         * lib/xstrtol.h: Likewise.
75054         * lib/xstrtoimax.c: Likewise.
75055         * lib/xstrtoumax.c: Likewise.
75056         * lib/human.h: Likewise.
75057
75058         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75059         on systems that have <inttypes.h> but not <stdint.h>.
75060
75061 2003-01-07  Bruno Haible  <bruno@clisp.org>
75062
75063         * MODULES.html.sh: Add copyright notice.
75064         (missed_files): Omit CVS directory entries.
75065         (func_module): Make it work with sed-3.02.
75066         * MODULES.txt: Remove file.
75067
75068 2003-01-06  Jim Meyering  <jim@meyering.net>
75069
75070         * lib/version-etc.c: Update year in translatable copyright string.
75071
75072 2003-01-03  Karl Berry  <karl@gnu.org>
75073
75074         * config/config.{guess,sub}: update from prep.
75075
75076 2003-01-02  Karl Berry  <karl@gnu.org>
75077
75078         * doc/COPYING.DOC: belatedly updated to 1.2.
75079
75080 2003-01-01  Karl Berry  <karl@gnu.org>
75081
75082         * gnulib-tool (func_verify_module): report module name $module in
75083         error message, not $1.
75084         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75085         be created, only if it doesn't exist.
75086         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75087
75088 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75089
75090         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75091
75092 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75093
75094         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75095         memcmp if strcoll doesn't work.
75096
75097 2002-12-31  Bruno Haible  <bruno@clisp.org>
75098
75099         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75100         nonempty.
75101
75102 2002-12-31  Bruno Haible  <bruno@clisp.org>
75103
75104         * lib/memcoll.c (STRCOLL): New macro.
75105         (memcoll): Use it.
75106
75107 2002-12-31  Bruno Haible  <bruno@clisp.org>
75108
75109         * lib/localcharset.h: New file.
75110         * lib/localcharset.c: Include it.
75111         * lib/unicodeio.c: Likewise.
75112
75113 2002-12-31  Bruno Haible  <bruno@clisp.org>
75114
75115         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75116         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75117
75118 2002-12-31  Bruno Haible  <bruno@clisp.org>
75119
75120         * lib/getline.h: Include <stddef.h>, for size_t.
75121
75122         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75123         * lib/unicodeio.c: Don't include <stddef.h>.
75124
75125 2002-12-31  Bruno Haible  <bruno@clisp.org>
75126
75127         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75128         HAVE_TM_ZONE.
75129
75130 2002-12-24  Karl Berry  <karl@gnu.org>
75131
75132         * config/config.guess: update from prep.
75133
75134 2002-12-24  Bruno Haible  <bruno@clisp.org>
75135
75136         General infrasructure.
75137         * m4/README: Rewritten.
75138         * m4/onceonly.m4: New file.
75139         * m4/onceonly_2_57.m4: New file.
75140
75141         Module atexit.
75142         * m4/atexit.m4: New file.
75143
75144         Module strtod.
75145         * m4/strtod.m4: New file.
75146
75147         Module strtol.
75148         * m4/strtol.m4: New file.
75149
75150         Module strtoul.
75151         * m4/strtoul.m4: New file.
75152
75153         Module memchr.
75154         * m4/memchr.m4: New file.
75155
75156         Module memcmp.
75157         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75158         (jm_FUNC_MEMCMP): Invoke it.
75159
75160         Module memcpy.
75161         * m4/memcpy.m4: New file.
75162
75163         Module memmove.
75164         * m4/memmove.m4: New file.
75165
75166         Module memset.
75167         * m4/memset.m4: New file.
75168
75169         Module strcspn.
75170         * m4/strcspn.m4: New file.
75171
75172         Module strpbrk.
75173         * m4/strpbrk.m4: New file.
75174
75175         Module strstr.
75176         * m4/strstr.m4: New file.
75177
75178         Module strerror.
75179         * m4/strerror.m4: New file.
75180
75181         Module mktime.
75182         * m4/mktime.m4: Renamed from jm-mktime.m4.
75183         (gl_PREREQ_MKTIME): New macro.
75184         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75185
75186         Module malloc.
75187         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75188         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75189         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75190
75191         Module realloc.
75192         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75193         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75194         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75195
75196         Module strftime.
75197         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75198         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75199         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75200         gl_TM_GMTOFF.
75201         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75202
75203         Module xalloc.
75204         * m4/xalloc.m4: New file.
75205
75206         Module alloca.
75207         * m4/alloca.m4: New file.
75208
75209         Module putenv.
75210         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75211         (jm_FUNC_PUTENV): Invoke it.
75212
75213         Module setenv.
75214         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75215         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75216         when invoked twice.
75217         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75218         gt_FUNC_SETENV.
75219
75220         Module memrchr.
75221         * m4/memrchr.m4: New file.
75222
75223         Module stpcpy.
75224         * m4/stpcpy.m4: New file.
75225
75226         Module strcase.
75227         * m4/strcase.m4: New file.
75228
75229         Module strdup.
75230         * m4/strdup.m4: New file.
75231
75232         Module strnlen.
75233         * m4/strnlen.m4: New file.
75234
75235         Module strndup.
75236         * m4/strndup.m4: New file.
75237
75238         Module xstrtod.
75239         * m4/xstrtod.m4: New file.
75240
75241         Module xstrtol.
75242         * m4/xstrtol.m4: New file.
75243
75244         Module getdate.
75245         * m4/getdate.m4: New file.
75246
75247         Module unlocked-io.
75248         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75249         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75250         * m4/jm-glibc-io.m4n: Remove file.
75251
75252         Module long-options.
75253         * m4/long-options.m4: New file.
75254
75255         Module md5.
75256         * m4/md5.m4: New file.
75257
75258         Module sha.
75259         * m4/sha.m4: New file.
75260
75261         Module getstr.
75262         * m4/getstr.m4: New file.
75263
75264         Module getline.
75265         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75266         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75267         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75268         simply getline. Infoke gl_PREREQ_GETLINE.
75269
75270         Module obstack.
75271         * m4/obstack.m4: New file.
75272
75273         Module hash.
75274         * m4/hash.m4: New file.
75275
75276         Module readtokens.
75277         * m4/readtokens.m4: New file.
75278
75279         Module strverscmp.
75280         * m4/strverscmp.m4: New file.
75281
75282         Module stdbool.
75283         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75284         OSF/1.
75285
75286         Module strtoll.
75287         * m4/strtoll.m4: New file.
75288
75289         Module strtoull.
75290         * m4/strtoull.m4: New file.
75291
75292         Module strtoimax.
75293         * m4/strtoimax.m4: New file.
75294
75295         Module strtoumax.
75296         * m4/strtoumax.m4: New file.
75297
75298         Module xstrtoimax.
75299         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75300         jm_AC_PREREQ_XSTRTOIMAX.
75301         Moved the strtol prerequisites to strtol.m4.
75302         Moved the strtoll prerequisites to strtoll.m4.
75303         Moved the strtoimax prerequisites to strtoimax.m4.
75304
75305         Module xstrtoumax.
75306         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75307         jm_AC_PREREQ_XSTRTOUMAX.
75308         Moved the strtoul prerequisites to strtoul.m4.
75309         Moved the strtoull prerequisites to strtoull.m4.
75310         Moved the strtoumax prerequisites to strtoumax.m4.
75311
75312         Module chown.
75313         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75314         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75315
75316         Module dup2.
75317         * m4/dup2.m4: New file.
75318
75319         Module ftruncate.
75320         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75321         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75322
75323         Module getgroups.
75324         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75325         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75326
75327         Module gettimeofday.
75328         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75329         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75330         gl_PREREQ_GETTIMEOFDAY.
75331
75332         Module mkdir.
75333         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75334         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75335
75336         Module mkstemp.
75337         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75338         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75339         jm_AC_TYPE_UINTMAX_T.
75340         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75341
75342         Module stat.
75343         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75344         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75345
75346         Module lstat.
75347         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75348         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75349
75350         Module timespec.
75351         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75352         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75353         * m4/st_mtim.m4: Indentation.
75354
75355         Module nanosleep.
75356         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75357         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75358         gl_PREREQ_NANOSLEEP.
75359
75360         Module regex.
75361         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75362         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75363         (gl_REGEX): New macro.
75364
75365         Module rename.
75366         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75367         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75368
75369         Module rmdir.
75370         * m4/rmdir.m4: New file.
75371
75372         Module utime.
75373         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75374         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75375         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75376
75377         Module dirname.
75378         * m4/dirname.m4: New file.
75379
75380         Module getopt.
75381         * m4/getopt.m4: New file.
75382
75383         Module unistd-safer.
75384         * m4/unistd-safer.m4: New file.
75385
75386         Module fnmatch.
75387         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75388         declaration.
75389         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75390         (gl_FUNC_FNMATCH_POSIX): New macro.
75391         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75392         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75393         simply fnmatch.
75394
75395         Module exclude.
75396         * m4/exclude.m4: New file.
75397
75398         Module human.
75399         * m4/human.m4: New file.
75400
75401         Module acl.
75402         * m4/acl.m4: Nop.
75403
75404         Module backupfile.
75405         * m4/backupfile.m4: New file.
75406         * m4/d-ino.m4: Indentation.
75407
75408         Module fsusage.
75409         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75410         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75411         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75412
75413         Module dirfd.
75414         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75415         requirements.
75416
75417         Module euidaccess.
75418         * m4/euidaccess.m4: New file.
75419
75420         Module file-type.
75421         * m4/file-type.m4: New file.
75422
75423         Module fileblocks.
75424         * m4/fileblocks.m4: New file.
75425
75426         Module filemode.
75427         * m4/filemode.m4: New file.
75428
75429         Module isdir.
75430         * m4/isdir.m4: New file.
75431
75432         Module lchown.
75433         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75434         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75435
75436         Module makepath.
75437         * m4/makepath.m4: New file.
75438
75439         Module modechange.
75440         * m4/modechange.m4: New file.
75441
75442         Module mountlist.
75443         * m4/mountlist.m4: New file.
75444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75445         Indentation.
75446
75447         Module path-concat.
75448         * m4/path-concat.m4: New file.
75449
75450         Module pathmax.
75451         * m4/pathmax.m4: New file.
75452
75453         Module same.
75454         * m4/same.m4: New file.
75455
75456         Module save-cwd.
75457         * m4/save-cwd.m4: New file.
75458
75459         Module savedir.
75460         * m4/savedir.m4: New file.
75461
75462         Module xgetcwd.
75463         * m4/xgetcwd.m4: New file.
75464         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75465
75466         Module xreadlink.
75467         * m4/xreadlink.m4: New file.
75468
75469         Module safe-read.
75470         * m4/safe-read.m4: New file.
75471
75472         Module safe-write.
75473         * m4/safe-write.m4: New file.
75474
75475         Module closeout.
75476         * m4/closeout.m4: New file.
75477
75478         Module stdio-safer.
75479         * m4/stdio-safer.m4: New file.
75480
75481         Module getpass.
75482         * m4/getpass.m4: New file.
75483
75484         Module getugroups.
75485         * m4/getugroups.m4: New file.
75486
75487         Module group-member.
75488         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75489         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75490
75491         Module idcache.
75492         * m4/idcache.m4: New file.
75493
75494         Module userspec.
75495         * m4/userspec.m4: New file.
75496
75497         Module gettime.
75498         * m4/clock_time.m4: New file.
75499         * m4/gettime.m4: New file.
75500
75501         Module settime.
75502         * m4/settime.m4: New file.
75503
75504         Module posixtm.
75505         * m4/posixtm.m4: New file.
75506
75507         Module gethostname.
75508         * m4/gethostname.m4: New file.
75509
75510         Module canon-host.
75511         * m4/canon-host.m4: New file.
75512
75513         Module gettext.
75514         * m4/codeset.m4: New file, from gettext-0.11.5.
75515         * m4/gettext.m4: New file, from gettext-0.11.5.
75516         * m4/glibc21.m4: New file, from gettext-0.11.5.
75517         * m4/iconv.m4: New file, from gettext-0.11.5.
75518         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75519         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75520         * m4/inttypes.m4: New file, from gettext-0.11.5.
75521         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75522         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75523         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75524         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75525         * m4/lib-link.m4: New file, from gettext-0.11.5.
75526         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75527         * m4/progtest.m4: New file, from gettext-0.11.5.
75528         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75529         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75530         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75531
75532         Module localcharset.
75533         * m4/localcharset.m4: New file.
75534
75535         Module hard-locale.
75536         * m4/hard-locale.m4: New file.
75537
75538         Module mbswidth.
75539         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75540         onceonly macros.
75541         * m4/mbrtowc.m4: Add comment.
75542
75543         Module memcasecmp.
75544         * m4/memcasecmp.m4: New file.
75545
75546         Module memcoll.
75547         * m4/memcoll.m4: New file.
75548
75549         Module unicodeio.
75550         * m4/unicodeio.m4: New file.
75551
75552         Module rpmatch.
75553         * m4/rpmatch.m4: New file.
75554
75555         Module yesno.
75556         * m4/yesno.m4: New file.
75557
75558         Module exitfail.
75559         * m4/exitfail.m4: New file.
75560
75561         Module c-stack.
75562         * m4/c-stack.m4 (gl_C_STACK): New macro.
75563         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75564
75565         Module error.
75566         * m4/error.m4 (gl_ERROR): New macro.
75567         (jm_PREREQ_ERROR): Use onceonly macros.
75568
75569         Module fatal.
75570         * m4/fatal.m4: New file.
75571
75572         Module getloadavg.
75573         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75574         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75575
75576         Module getpagesize.
75577         * m4/getpagesize.m4: New file.
75578
75579         Module getusershell.
75580         * m4/getusershell.m4: New file.
75581
75582         Module physmem.
75583         * m4/physmem.m4: New file.
75584
75585         Module posixver.
75586         * m4/posixver.m4: New file.
75587
75588         Module quotearg.
75589         * m4/quotearg.m4: New file.
75590
75591         Module quote.
75592         * m4/quote.m4: New file.
75593
75594         Module readutmp.
75595         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75596
75597         Module sig2str.
75598         * m4/sig2str.m4: New file.
75599
75600         Other.
75601         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75602         ulonglong.m4.
75603         * m4/intmax_t.m4: New file.
75604         * m4/d-type.m4: Indentation.
75605         * m4/jm-macros.m4: Update.
75606         * m4/prereq.m4 (jm_PREREQ): Update.
75607         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75608         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75609         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75610         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75611         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75612         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75613         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75614         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75615         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75616         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75617         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75618         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75619         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75620         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75621         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75622         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75623         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75624         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75625         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75626
75627 2002-12-24  Bruno Haible  <bruno@clisp.org>
75628
75629         * MODULES.txt: Update according to m4/ changes.
75630
75631         Module gettext.
75632         * config.rpath: New file, from gettext-0.11.5.
75633
75634         * modules/*: New module descriptions.
75635         * gnulib-tool: New file.
75636         * MODULES.html.sh: New file.
75637
75638 2002-12-21  Karl Berry  <karl@gnu.org>
75639
75640         * doc/fdl.texi: update to version 1.2.
75641
75642 2002-12-19  Karl Berry  <karl@gnu.org>
75643
75644         * config/config.guess: update from prep.
75645
75646 2002-12-18  Bruno Haible  <bruno@clisp.org>
75647
75648         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75649         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75650
75651 2002-12-17  Bruno Haible  <bruno@clisp.org>
75652
75653         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75654         stdlib.h, string.h.
75655
75656 2002-12-17  Bruno Haible  <bruno@clisp.org>
75657
75658         * lib/canon-host.c (strdup): Remove unused declaration.
75659
75660         * lib/fsusage.c: Include full_read.h.
75661         (get_fs_usage): Use full_read instead of safe_read.
75662
75663         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75664
75665 2002-12-12  Karl Berry  <karl@gnu.org>
75666
75667         * config/config.guess: update from prep.
75668
75669 2002-12-11  Bruno Haible  <bruno@clisp.org>
75670
75671         * m4/setenv.m4: New file, from gettext-0.11.5.
75672
75673 2002-12-11  Bruno Haible  <bruno@clisp.org>
75674
75675         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75676         not unsetenv().
75677         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75678         modifications:
75679
75680         2002-12-11  Bruno Haible  <bruno@clisp.org>
75681
75682                 * setenv.c (alloca): Fall back to malloc.
75683                 (freea): New macro.
75684                 (setenv): Use freea() to free memory allocated with alloca().
75685
75686         2002-11-13  Bruno Haible  <bruno@clisp.org>
75687
75688                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75689                 function declarations.
75690                 * unsetenv.c (unsetenv): Likewise.
75691
75692         2002-03-04  Bruno Haible  <bruno@clisp.org>
75693
75694                 Portability to AIX 4.3.3.
75695                 * unsetenv.c: New file, extracted from setenv.c.
75696                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75697
75698         2001-12-20  Bruno Haible  <bruno@clisp.org>
75699
75700                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75701                 use malloc instead. For SunOS 4.
75702
75703         2001-12-11  Bruno Haible  <bruno@clisp.org>
75704
75705                 * setenv.c: Declare alloca.
75706                 (compar_fn_t): New typedef.
75707                 (KNOWN_VALUE, STORE_VALUE): Use it.
75708
75709         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75710         setenv.h.
75711
75712 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75713
75714         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75715         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75716         Choose values that are less likely to collide with system fnmatch
75717         options.
75718         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75719         defined (e.g., a pure POSIX system).
75720         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75721         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75722
75723 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75724
75725         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75726         a pain in practice to deal with generated m4 files.  This change
75727         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75728
75729         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75730         and jm-glibc-io.m4, as they are no longer a special case.
75731         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75732         kludge and the auto-generation stuff.  Check only whether the
75733         functions are declared, not whether they exist, since older hosts
75734         that don't declare the functions can't use the optimization anyway.
75735
75736 2002-12-06  Jim Meyering  <jim@meyering.net>
75737
75738         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75739
75740         Merge in changes from libc's misc/error.c, in preparation
75741         for the merge of gnulib's changes back into libc.
75742
75743         * lib/error.c (_): Define only if not already defined.
75744         Move definition to follow all #include directives.
75745         Include unlocked-io.h only if !_LIBC.
75746         [_LIBC]: Include <libio/libioP.h>.
75747         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75748         (fflush): Tweak definition to use INTUSE.
75749         (putc): Define.
75750
75751 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75752
75753         * lib/alloca.c [defined emacs]: Include "lisp.h".
75754         (xalloc_die) [defined emacs]: New macro.
75755         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75756         [! defined emacs]: Include <xalloc.h>.
75757         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75758         (pointer): Typedef to POINTER_TYPE *.
75759         (malloc): Remove decl; we now always use xmalloc.
75760         (alloca): Use old-style definition, since Emacs needs this.
75761         Check for arithmetic overflow when computing combined size.
75762
75763 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75764
75765         Do not generate unlocked-io.h automatically, since it's easier to
75766         maintain it by hand.
75767
75768         * lib/unlocked-io.h: New file, from GNU diffutils,
75769         but with proper copyright notice and attribution.
75770         * lib/gen-uio: Remove.
75771         * lib/Makefile.am: Add copyright notice.
75772         (libfetish_a_SOURCES): Add unlocked-io.h.
75773         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75774         (DISTCLEANFILES, io_functions): Remove macros.
75775         (EXTRA_DIST): Remove gen_uio.
75776         (unlocked-io.h): Remove rule.
75777
75778 2002-12-04  Jim Meyering  <jim@meyering.net>
75779
75780         Reflect the fact that stat.c and lstat.c are no longer generated.
75781         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75782         (DISTCLEANFILES): Likewise.
75783         (EXTRA_DIST): Likewise.
75784         (all_local): Don't depend on stat.c or lstat.c.
75785         (stat.c, lstat.c): Remove rules.
75786         (EXTRA_DIST): Remove xstat.in.
75787
75788         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75789         * lib/stat.c: New file.  Contents mostly from xstat.in.
75790         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75791         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75792
75793         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75794         too.
75795         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75796
75797 2002-12-03  Jim Meyering  <jim@meyering.net>
75798
75799         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75800         but not semantics, to minimize the differences between these two files.
75801         (safe_read): Change comment to mention SAFE_READ_ERROR.
75802
75803         * lib/safe-read.c (IS_EINTR): Define.
75804         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75805
75806 2002-12-02  Jim Meyering  <jim@meyering.net>
75807
75808         * lib/safe-read.c (EINTR): Define.
75809         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75810         (INT_MAX): Provide fallback.
75811         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75812
75813         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75814
75815 2002-12-02  Bruno Haible  <bruno@clisp.org>
75816
75817         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75818         Define, taken from safe-read.c.
75819         (INT_MAX): Provide fallback.
75820         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75821         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75822
75823         * lib/safe-read.c (EINTR): Remove definition.
75824         (safe_read): Don't use EINTR if it is absent.
75825
75826 2002-12-01  Jim Meyering  <jim@meyering.net>
75827
75828         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75829         zero.
75830         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75831
75832 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75833
75834         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75835         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75836         with `if (! (value < limit)) abort ();', for readability.
75837
75838 2002-11-26  Karl Berry  <karl@gnu.org>
75839
75840         * lib/strdup.c: copy from libc again, with jim's ok.
75841         * lib/.cppi-disable: re-add strdup.c
75842
75843 2002-11-25  Karl Berry  <karl@gnu.org>
75844
75845         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75846         instead of "strtol.c".
75847
75848 2002-11-25  Karl Berry  <karl@gnu.org>
75849
75850         * config/install-sh: update from automake for variable quoting, $0 in
75851         error msgs, etc.
75852
75853         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75854         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75855         entry.
75856
75857 2002-11-25  Jim Meyering  <jim@meyering.net>
75858
75859         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75860
75861 2002-11-24  Karl Berry  <karl@gnu.org>
75862
75863         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75864         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75865
75866 2002-11-24  Jim Meyering  <jim@meyering.net>
75867
75868         Update from coreutils:
75869
75870         * lib/mktime.c: Merge in changes from libc.
75871
75872         Avoid a link-time failure on some Linux systems.
75873         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75874         (otherwise).
75875         (__mon_yday): Declare with the STATIC attribute.
75876         (__mktime_internal): Likewise.
75877         Based on a report from Greg Schafer.
75878
75879 2002-11-23  Jim Meyering  <jim@meyering.net>
75880
75881         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75882         Use `unsigned', not `int', as type of index.
75883
75884         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75885
75886         * lib/fsusage.c: Remove unneeded parentheses around operands of
75887         `defined'.
75888
75889 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75890
75891         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75892         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75893         so that we can be included first.
75894         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75895         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75896         No need to include stddef.h or sys/types.h any more.
75897         Surround local include files with "", not "<>".
75898         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75899         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75900         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75901         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75902         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75903         (ISPRINT): Remove; no longer needed now that we assume C89.
75904
75905         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75906         Preserve errno.
75907
75908         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75909         quotearg_char): Use SIZE_MAX rather than
75910         (size_t) -1 when we are talking about "infinity".
75911
75912         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75913
75914 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75915
75916         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75917         hint that one should use `if (! x) abort ();' rather than `assert
75918         (x);', and anyway it's one less thing to worry about configuring.
75919         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75920         hash_rehash, hash_insert): Use abort rather than assert.
75921
75922 2002-11-22  Bruno Haible  <bruno@clisp.org>
75923
75924         * lib/safe-read.h: Assume C89. Add comments.
75925         (safe_read): Change return type to size_t.
75926         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75927         byte counts > SSIZE_MAX correctly.
75928         * lib/safe-write.h: New file.
75929         * lib/safe-write.c: New file.
75930         * lib/full-read.h: New file.
75931         * lib/full-read.c: New file.
75932         * lib/full-write.h: Assume C89. Add comments.
75933         * lib/full-write.c: Include safe-write.h.
75934         (full_write): Rewritten to use safe_write.
75935         Suggested by Jim Meyering and Paul Eggert.
75936
75937 2002-11-21  Jim Meyering  <jim@meyering.net>
75938
75939         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75940
75941         Merge in changes from the coreutils.
75942
75943         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75944         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75945         <stdint.h>.
75946         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75947         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75948         int.  Work more efficiently if X is the same width as uintmax_t.
75949         Do not compare X to -1, to avoid bogus compiler warning.
75950         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75951         Don't assume that f_frsize and f_bsize are the same type.
75952
75953         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75954         warning on FreeBSD.
75955
75956         * lib/makepath.c (make_path): Restore umask *before* creating the final
75957         component.
75958         (make_path): Minor reformatting.
75959
75960         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75961         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75962         HAVE_MALLOC/HAVE_REALLOC.
75963
75964         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75965         dummy ones.  At least on GNU/Linux systems, `auto' means something
75966         else.
75967         From Michael Stone.
75968
75969 2002-11-21  Bruno Haible  <bruno@clisp.org>
75970
75971         Remove case insensitive option matching.
75972         * lib/argmatch.h (argcasematch): Remove declaration.
75973         (ARGCASEMATCH): Remove macro.
75974         (__xargmatch_internal): Remove case_sensitive argument.
75975         (XARGMATCH): Update.
75976         (XARGCASEMATCH): Remove macro.
75977         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75978         case_sensitive argument.
75979         (argcasematch): Remove function.
75980         (__xargmatch_internal): Remove case_sensitive argument.
75981         (main): Use XARGMATCH instead of XARGCASEMATCH.
75982
75983         * lib/xmalloc.c: Change compile-time error message. Add comment about
75984         required autoconf version.
75985
75986 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75987
75988         Merge argmatch cleanups from Bison.  Assume C89.
75989
75990         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75991         Include stdlib.h, for EXIT_FAILURE.
75992         Always include <string.h>, since we assume C89.
75993         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75994         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75995         Include <stddef.h> instead, since it's all we need for size_t.
75996         (PARAMS): Remove.  All uses removed.
75997         (ARRAY_CARDINALITY): Do not bother to #undef.
75998         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75999         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76000         Remove unnecessary parentheses.
76001         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76002         Insert necessary parentheses.
76003         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76004         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76005
76006 2002-11-19  Bruno Haible  <bruno@clisp.org>
76007
76008         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76009         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76010
76011         * lib/mbswidth.h (PARAMS): Remove macro.
76012         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76013         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76014
76015         * lib/gcd.h (PARAMS): Remove macro.
76016         (gcd): Use ANSI C function declarations.
76017         * lib/gcd.c (gcd): Likewise.
76018
76019 2002-11-15  Bruno Haible  <bruno@clisp.org>
76020
76021         * lib/strcspn.c: Include <stddef.h>.
76022         (strcspn): Use ANSI C function declaration. Change return type to
76023         size_t. Use NULL.
76024         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76025         (strpbrk): Use NULL.
76026         * lib/strpbrk.h (PARAMS): Remove macro.
76027         (strpbrk): Use ANSI C function declaration.
76028         * lib/strstr.c: Don't include <sys/types.h>.
76029         * lib/strstr.h (PARAMS): Remove macro.
76030         (strstr): Use ANSI C function declarations.
76031
76032 2002-11-14  Karl Berry  <karl@gnu.org>
76033
76034         * config/mkinstalldirs: `do' on separate line, instead of
76035         `for var; do'.
76036
76037 2002-11-06  Bruno Haible  <bruno@clisp.org>
76038
76039         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76040         * lib/gcd.c (gcd): Likewise.
76041
76042 2002-11-05  Bruno Haible  <bruno@clisp.org>
76043
76044         * lib/gcd.h: New file, from gettext-0.11.5.
76045         * lib/gcd.c: New file, from gettext-0.11.5.
76046
76047 2002-11-05  Bruno Haible  <bruno@clisp.org>
76048
76049         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76050         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76051         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76052         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76053
76054         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76055         <libintl.h>.
76056         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76057         <libintl.h>.
76058
76059         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76060         * lib/human.c: Include gettext.h instead of <libintl.h>.
76061         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76062         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76063         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76064         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76065         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76066         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76067         (textdomain): Remove definition.
76068         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76069
76070         * lib/long-options.c: Remove include of <libintl.h> and definition of
76071         _.
76072         * lib/same.c: Remove include of <libintl.h> and definition of _.
76073
76074 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76075
76076         * lib/config.charset: A few additions for Solaris.
76077
76078 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76079
76080         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76081         * lib/localcharset.c (locale_charset): Declare as extern "C".
76082
76083 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76084
76085         * lib/config.charset: msdos in uk_UA uses CP1125.
76086
76087 2002-11-04  Bruno Haible  <bruno@clisp.org>
76088
76089         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76090         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76091         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76092         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76093         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76094
76095 2002-11-04  Bruno Haible  <bruno@clisp.org>
76096
76097         * lib/localcharset.c (locale_charset): Don't return an empty string.
76098
76099 2002-11-04  Bruno Haible  <bruno@clisp.org>
76100
76101         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76102         aliases.
76103
76104 2002-11-04  Bruno Haible  <bruno@clisp.org>
76105
76106         * lib/config.charset: Update for newest glibc. Add canonical names
76107         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76108
76109 2002-11-04  Bruno Haible  <bruno@clisp.org>
76110
76111         * lib/config.charset: Add support for NetBSD.
76112
76113 2002-11-04  Bruno Haible  <bruno@clisp.org>
76114
76115         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76116
76117 2002-11-01  Bruno Haible  <bruno@clisp.org>
76118
76119         * configure.in: Add AC_CONFIG_AUX_DIR call.
76120         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76121         test/Makefile.
76122         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76123
76124 2002-09-28  Karl Berry  <karl@gnu.org>
76125
76126         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76127         installed automake until the next release, since changes have been
76128         made.
76129
76130 2002-09-25  Karl Berry  <karl@gnu.org>
76131
76132         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76133         * lib/getopt*: copy from libc/posix.
76134         * lib/gettext.h: copy from gettext.
76135         * lib/.cppi-disable: add strdup.c, gettext.h.
76136
76137 2002-09-25  Karl Berry  <karl@gnu.org>
76138
76139         * config/srclist.txt: enable gettext.h check.
76140         * config/config.{guess,sub}: update from prep.
76141         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76142                 from automake 1.6.3.
76143         See srclist*.
76144
76145 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76146
76147         * regex.c (PATFETCH): Remove the translating fetch.
76148         (PATFETCH_RAW): Rename to PATFETCH.
76149         (set_image_of_range): New fun.
76150         (SET_RANGE_TABLE_WORK_AREA): Use it.
76151         (regex_compile): Don't translate the pattern chars so eagerly.
76152         Only do it when inserting an `exactn' bytecode or when handling
76153         a char-range.
76154         (mutually_exclusive_p): Avoid empty statement.
76155
76156 2002-07-06  Jim Meyering  <meyering@lucent.com>
76157
76158         * m4/README: Don't mention Makefile.am.in.
76159         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76160
76161 2002-07-01  Jim Meyering  <meyering@lucent.com>
76162
76163         * lib/c-stack.c: Include sys/time.h.
76164         From Volker Borchert.
76165
76166 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76167
76168         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76169
76170 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76171
76172         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76173         New macro.  Use it uniformly instead of
76174         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76175         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76176         reported by Vin Shelton.
76177
76178 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76179
76180         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76181         Do not assume SA_SIGINFO behavior.
76182         Bug reported by Jim Meyering on NetBSD 1.5.2.
76183
76184 2002-06-22  Jim Meyering  <meyering@lucent.com>
76185
76186         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76187         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76188
76189         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76190         now that configure.ac uses AC_GNU_SOURCE.
76191         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76192         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76193
76194         Update to latest tools.  Suggestions from Paul Eggert.
76195         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76196         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76197         * m4/fnmatch.m4: Likewise.
76198         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76199         to AC_HEADER_STDBOOL
76200
76201 2002-06-22  Jim Meyering  <meyering@lucent.com>
76202
76203         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76204         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76205
76206 2002-06-22  Jim Meyering  <meyering@lucent.com>
76207
76208         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76209
76210         * lib/exitfail.c, exitfail.h: Likewise.
76211         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76212
76213         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76214         of fnmatch.h.
76215         (EXTRA_DIST): Add fnmatch_loop.c.
76216         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76217
76218         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76219         * lib/fnmatch.c: Update from diffutils-2.8.2.
76220         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76221         * lib/fnmatch.h: Remove file.
76222
76223 2002-06-21  Jim Meyering  <meyering@lucent.com>
76224
76225         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76226         * m4/mbrtowc.m4: Likewise.
76227
76228         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76229         * m4/mbswidth.m4: Reflect name change:
76230         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76231         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76232
76233         * m4/lib-link.m4: Update from gettext-0.11.2.
76234         * m4/gettext.m4: Likewise.
76235
76236         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76237         From Alfred M. Szmidt.
76238
76239 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76240
76241         * lib/file-type.h: Report an error if neither S_ISREG nor
76242         S_IFREG is defined, instead of using a test specific to glibc
76243         2.2.  This should be safe, since POSIX requires S_ISREG and
76244         Unix Version 7 had S_IFREG.  We don't need to check for
76245         <sys/types.h> since we don't use any symbols that it defines.
76246
76247 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76248
76249         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76250         $@-t, so that each temporary file name is unique and valid in the first
76251         8 characters, for operation under DOS.
76252
76253 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76254
76255         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76256
76257 2002-06-15  Jim Meyering  <meyering@lucent.com>
76258
76259         Work even with DJGPP 2.03, which lacks support for symlinks.
76260         From Richard Dawe.
76261         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76262         is defined.
76263         * lib/lchown.c (S_ISLNK): Likewise.
76264
76265 2002-06-15  Jim Meyering  <meyering@lucent.com>
76266
76267         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76268         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76269         have been included before this file.
76270
76271 2002-06-14  Jim Meyering  <meyering@lucent.com>
76272
76273         * lib/file-type.h: Use the version from diffutils-2.8.2.
76274         * lib/file-type.c: Likewise.
76275
76276 2002-06-07  Jim Meyering  <meyering@lucent.com>
76277
76278         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76279         They're needed at least for NetBSD 1.5.2.
76280         ($statxfs_includes): Include those same headers.
76281         ($statxfs_includes): Include sys/vfs.h if available.
76282         ($statxfs_includes): Likewise for sys/statvfs.h.
76283         Check for the following members in both structs statfs and statvfs:
76284         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76285
76286 2002-06-01  Jim Meyering  <meyering@lucent.com>
76287
76288         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76289         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76290
76291 2002-05-28  Jim Meyering  <meyering@lucent.com>
76292
76293         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76294         Reported by Volker Borchert.
76295
76296 2002-05-27  Jim Meyering  <meyering@lucent.com>
76297
76298         Fix a problem seen only on nonconforming systems whereby ls.c's
76299         use of localtime, and then of gettimeofday would cause trouble:
76300         the localtime call used to initialize rpl_gettimeofday's save
76301         mechanism would clobber ls's current local time information so
76302         that in any long listing the first file would always be listed
76303         with date 1970-01-01.  Analysis by Volker Borchert.
76304
76305         * lib/gettimeofday.c (localtime): Undefine.
76306         (rpl_localtime): New function.
76307
76308 2002-05-27  Jim Meyering  <meyering@lucent.com>
76309
76310         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76311         localtime.
76312
76313         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76314         use the replacement function; it wouldn't resolve at link time.
76315         Reported by Volker Borchert.
76316
76317 2002-05-22  Jim Meyering  <meyering@lucent.com>
76318
76319         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76320         file-type.h.
76321         * lib/file-type.h: New file.
76322         * lib/file-type.c (file_type): New file/function.  Extracted from
76323         diffutils.
76324
76325 2002-04-30  Jim Meyering  <meyering@lucent.com>
76326
76327         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76328
76329 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76330
76331         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76332
76333 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76334
76335         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76336         Do not check for alloca.h (no longer used) or stdbool.h (was never
76337         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76338
76339 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76340
76341         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76342
76343 2002-04-29  Jim Meyering  <meyering@lucent.com>
76344
76345         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76346         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76347         Use AC_FUNC_STRNLEN here instead.
76348
76349         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76350         With autoconf-2.53a, it's part of AC_PROG_CC.
76351
76352 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76353
76354         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76355         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76356
76357 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76358
76359         * lib/sig2str.h, lib/sig2str.c: New files.
76360         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76361
76362 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76363
76364         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76365         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76366         of 127, since 64 is the largest conceivable number for ancient
76367         nonstandard hosts.
76368         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76369
76370 2002-04-28  Jim Meyering  <meyering@lucent.com>
76371
76372         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76373
76374 2002-04-24  Jim Meyering  <meyering@lucent.com>
76375
76376         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76377         (jm_PREREQ): Use it.
76378
76379         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76380         mach/mach.h fcntl.h.
76381         Check for this function: setlocale.
76382
76383 2002-04-24  Jim Meyering  <meyering@lucent.com>
76384
76385         * lib/gettext.h: New file, from Gettext.
76386         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76387         (libfetish_a_SOURCES): Add gettext.h.
76388
76389 2002-04-16  Jim Meyering  <meyering@lucent.com>
76390
76391         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76392         ut_pid, ut_id, ut_exit.
76393
76394 2002-04-16  Jim Meyering  <meyering@lucent.com>
76395
76396         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76397         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76398         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76399
76400 2002-04-12  Jim Meyering  <meyering@lucent.com>
76401
76402         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76403         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76404         existence of the getmntinfo function.  Needed for Darwin 5.3.
76405
76406         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76407         This is necessary at least on Darwin 5.3.
76408
76409         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76410         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76411         strnlen.o in the library, and that makes some versions of ranlib
76412         object.
76413
76414 2002-04-12  Jim Meyering  <meyering@lucent.com>
76415
76416         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76417
76418 2002-04-09  Jim Meyering  <meyering@lucent.com>
76419
76420         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76421         to be more precise.  Rather than saying we're checking whether the
76422         function `works', say what we're testing.
76423         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76424         Reported by Bruno Haible.
76425
76426 2002-03-10  Jim Meyering  <meyering@lucent.com>
76427
76428         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76429         Suggestion from Santiago Vila.
76430
76431 2002-03-08  Jim Meyering  <meyering@lucent.com>
76432
76433         * lib/rename.c: Mention that this wrapper is needed also on
76434         mips-dec-ultrix4.4 systems.
76435
76436 2002-03-02  Jim Meyering  <meyering@lucent.com>
76437
76438         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76439         not HAVE_CLOCK_SETTIME.
76440
76441 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76442
76443         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76444         Check for clock_settime.
76445
76446 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76447
76448         * lib/nanosleep.h: Rename to....
76449         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76450
76451         * lib/gettime.c: New file.
76452         * lib/settime.c: New file.
76453         * lib/stime.c: Remove.
76454
76455         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76456         timespec.h.  Remove nanosleep.h.
76457
76458 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76459
76460         * m4/acl.m4: New file.
76461         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76462         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76463
76464 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76465
76466         * lib/acl.c, lib/acl.h: New files.
76467         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76468
76469 2002-02-24  Jim Meyering  <meyering@lucent.com>
76470
76471         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76472         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76473         cause trouble.  Reported by Nelson Beebe.
76474
76475 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76476
76477         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76478         compilers that don't know that xalloc_die never returns.
76479
76480 2002-02-20  Jim Meyering  <meyering@lucent.com>
76481
76482         * lib/getdate.c: Regenerate using bison-1.33.
76483
76484 2002-02-17  Jim Meyering  <meyering@lucent.com>
76485
76486         * config/config.guess (main): Don't use `head -1'; it's no longer
76487         portable. Use `sed 1q' instead.
76488
76489 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76490
76491         * m4/codeset.m4: Upgrade to gettext-0.11.
76492         * m4/gettext.m4: Upgrade to gettext-0.11.
76493         * m4/glibc21.m4: Upgrade to gettext-0.11.
76494         * m4/iconv.m4: Upgrade to gettext-0.11.
76495         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76496         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76497         * m4/lib-ld.m4: New file, from gettext-0.11.
76498         * m4/lib-link.m4: New file, from gettext-0.11.
76499         * m4/lib-prefix.m4: New file, from gettext-0.11.
76500         * m4/progtest.m4: Upgrade to gettext-0.11.
76501
76502 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76503
76504         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76505         (jm_PREREQ): Use it.
76506
76507 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76508
76509         * lib/posixver.c, lib/posixver.h: New files.
76510         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76511
76512 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76513             Bruno Haible  <bruno@clisp.org>
76514
76515         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76516         (fwrite_success_callback): New declaration.
76517         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76518         print_unicode_char. Call failure callback instead of error.
76519         (fwrite_success_callback): New function.
76520         (exit_failure_callback): New function.
76521         (fallback_failure_callback): New function.
76522         (print_unicode_char): Call unicode_to_mb.
76523
76524 2002-01-26  Jim Meyering  <meyering@lucent.com>
76525
76526         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76527         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76528
76529 2002-01-26  Jim Meyering  <meyering@lucent.com>
76530
76531         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76532
76533 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76534
76535         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76536
76537 2002-01-22  Jim Meyering  <meyering@lucent.com>
76538
76539         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76540         Otherwise, some versions of automake would omit the rule that makes
76541         Makefile from Makefile.in.
76542
76543 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76544
76545         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76546         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76547         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76548         (memcoll): Set errno to zero if there is no error.
76549
76550         * lib/quotearg.c (quotearg_buffer_restyled):
76551         Fix bug with quoting buffers containing NUL when backslashing escapes.
76552         This bug was exposed by the other changes in this patch.
76553         (quotearg_n_options): New arg ARGSIZE.
76554         All callers changed.
76555         (quoting_options_from_style): New function.
76556         (quotearg_n_style): Use it.
76557         (quotearg_n_style_mem): New function.
76558
76559         * lib/quotearg.h (quotearg_n_style_mem): New function.
76560
76561 2002-01-19  Jim Meyering  <meyering@lucent.com>
76562
76563         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76564         Remove useless quotes: DF_PROG="df".
76565         * m4/strnlen.m4: New file.
76566
76567 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76568
76569         * lib/backupfile.c (ISDIGIT): Comment fix.
76570         * lib/getdate.y (ISDIGIT): Likewise.
76571         * lib/posixtm.c (ISDIGIT, year): Likewise.
76572         * lib/strverscmp.c (ISDIGIT): Likewise.
76573         * lib/userspec.c (ISDIGIT): Likewise.
76574
76575 2002-01-16  Jim Meyering  <meyering@lucent.com>
76576
76577         * lib/getdate.y: Add three semicolons, each just before a closing
76578         brace. Bison (as of version 1.31) no longer papers over that mistake.
76579
76580 2002-01-05  Jim Meyering  <meyering@lucent.com>
76581
76582         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76583
76584 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76585
76586         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76587         not silently exit merely because the output buffer happens to
76588         have nothing pending.
76589
76590 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76591
76592         See the big note in ../ChangeLog.
76593         * lib/human.c (suffixes): Prefer K to k for 1024.
76594         (generate_suffix_backwards): New function.
76595         (human_readable_inexact): Use it.
76596         * lib/xstrtol.c (__xstrtol): If there is no number but there
76597         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76598         Accept 'K' as well as 'k'.
76599
76600 2001-12-15  Jim Meyering  <meyering@lucent.com>
76601
76602         * lib/regex.h (__restrict_arr): Update from libc.
76603
76604         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76605         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76606         (STREQ): Define.
76607
76608 2001-12-14  Jim Meyering  <meyering@lucent.com>
76609
76610         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76611         Suggestion from Bruno Haible.
76612
76613 2001-12-10  Jim Meyering  <meyering@lucent.com>
76614
76615         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76616         xrealloc, Instead, include "xalloc.h".
76617         (initbuffer): Don't cast xmalloc return value to char*.
76618         (readline): Reword comment.
76619         Don't cast xrealloc return value to char*
76620         Return NULL, not 0.
76621
76622 2001-12-09  Jim Meyering  <meyering@lucent.com>
76623
76624         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76625         about `signed and unsigned type in conditional expression'.
76626         * lib/posixtm.c (posix_time_parse): Likewise.
76627
76628         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76629
76630         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76631         to avoid a pedantic warning.
76632
76633         * lib/getstr.c: Don't include assert.h.
76634         (getstr): Remove warning-evoking assertions.
76635         Return -1 if offset parameter is out of bounds.
76636         Change the type of a local from int to size_t.
76637
76638         * lib/strftime.c (my_strftime_localtime_r): Include this function
76639         definition in the `#if ! HAVE_TM_GMTOFF' block.
76640
76641         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76642         Include xalloc.h instead.
76643
76644 2001-12-02  Jim Meyering  <meyering@lucent.com>
76645
76646         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76647         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76648         included.
76649
76650         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76651         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76652
76653 2001-11-30  Akim Demaille  <akim@epita.fr>
76654
76655         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76656         before being defined.
76657
76658 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76659
76660         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76661         First arg is int, not unsigned.
76662         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76663         (SIZE_MAX, UINT_MAX): New macros.
76664         (quotearg_n_options): Abort if N is negative.
76665         Avoid overflow check on hosts where size_t is 64 bits and int
76666         is 32 bits, as overflow is impossible there.
76667         Fix off-by-one typo that caused unnecessary reallocation.
76668
76669 2001-11-27  Jim Meyering  <meyering@lucent.com>
76670
76671         * lib/tempname.c: Merge with version from libc.
76672         * lib/regex.c: Likewise.
76673
76674         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76675         systems for which STDC_HEADERS is 0, it was not included, resulting in
76676         a warning about an integer-to-pointer conversion problem with getenv.
76677         Reported by Volker Borchert.
76678
76679 2001-11-26  Jim Meyering  <meyering@lucent.com>
76680
76681         * lib/gtod.h: Remove file.
76682         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76683         * lib/gettimeofday.c: Don't include gtod.h.
76684         (GTOD_init): Remove function.
76685         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76686         Suggestion from Volker Borchert.
76687
76688 2001-11-23  Jim Meyering  <meyering@lucent.com>
76689
76690         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76691         it.
76692         * lib/hash.c (struct hash_table): Define it here instead.
76693
76694 2001-11-22  Jim Meyering  <meyering@lucent.com>
76695
76696         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76697
76698 2001-11-20  Jim Meyering  <meyering@lucent.com>
76699
76700         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76701         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76702
76703 2001-11-19  Jim Meyering  <meyering@lucent.com>
76704
76705         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76706         directory.  Use "conftestXXXXXX" as the template.
76707         Suggestion from Paul Eggert.
76708
76709         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76710         immediately, so the test doesn't mistakenly hit the max-open-files
76711         limit.
76712
76713 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76714
76715         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76716         (TEMPORARIES): New macro.
76717         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76718         removes an artificial limitation (e.g. HP-UX 10.20, where
76719         TMP_MAX is 17576).
76720
76721 2001-11-18  Jim Meyering  <meyering@lucent.com>
76722
76723         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76724
76725 2001-11-18  Jim Meyering  <meyering@lucent.com>
76726
76727         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76728         on SunOS 4.
76729
76730         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76731         files will be created before anything else.
76732
76733 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76734
76735         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76736         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76737
76738 2001-11-17  Jim Meyering  <meyering@lucent.com>
76739
76740         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76741         Prompted by a report from Bob Proulx.
76742
76743         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76744         Instead, require UTILS_FUNC_MKSTEMP.
76745
76746 2001-11-17  Jim Meyering  <meyering@lucent.com>
76747
76748         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76749         Now, that's done as part of AC_FUNC_STRTOD.
76750
76751 2001-11-17  Jim Meyering  <meyering@lucent.com>
76752
76753         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76754         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76755         rather than group writable.  Patch by Juan F. Codagnone.
76756
76757         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76758         xrealloc, Instead, include "xalloc.h".
76759
76760         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76761         Remove explicit declarations of xmalloc, xrealloc,
76762         and xstrdup.  Instead, include "xalloc.h".
76763
76764         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76765         unlocked-io.h.
76766         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76767         Likewise.
76768         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76769
76770         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76771         Reported by Padraig Brady.
76772
76773         * lib/mkstemp.c: #undef mkstemp.
76774         Include config.h.
76775         (rpl_mkstemp): Rename from mkstemp.
76776         Protoize.
76777
76778 2001-11-16  Jim Meyering  <meyering@lucent.com>
76779
76780         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76781         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76782         determine the amount of total physical memory, use pstat_getstatic.
76783         HPUX-11 doesn't define _SC_PHYS_PAGES.
76784         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76785         If sysconf couldn't be used to determine the amount of available
76786         physical memory, use both pstat_getstatic and pstat_getdynamic.
76787         Based on a patch from Bob Proulx.
76788
76789 2001-11-10  Jim Meyering  <meyering@lucent.com>
76790
76791         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76792         (jm_PREREQ): Use it.
76793
76794 2001-11-09  Jim Meyering  <meyering@lucent.com>
76795
76796         * m4/jm-macros.m4: Require autoconf-2.52f.
76797         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76798         Use these AC_-prefixed names, not the AM_-prefixed ones.
76799
76800         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76801
76802 2001-11-05  Jim Meyering  <meyering@lucent.com>
76803
76804         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76805
76806 2001-11-04  Jim Meyering  <meyering@lucent.com>
76807
76808         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76809         $DEFS.
76810
76811 2001-11-03  Jim Meyering  <meyering@lucent.com>
76812
76813         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76814         of AC_DEFUN.
76815
76816         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76817         know the name of the variable in the macro definition.
76818
76819 2001-11-03  Jim Meyering  <meyering@lucent.com>
76820
76821         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76822         in argmatch_to_argument call.
76823
76824         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76825         argument.
76826
76827         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76828         e.g., a fault due to an attempt to free a NULL pointer.
76829
76830 2001-11-01  Jim Meyering  <meyering@lucent.com>
76831
76832         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76833         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76834
76835 2001-11-01  Jim Meyering  <meyering@lucent.com>
76836
76837         * lib/dirfd.c, lib/dirfd.h: New files.
76838         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76839
76840         * lib/hash.c (hash_print) [TESTING]: Clean up.
76841
76842 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76843
76844         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76845         to avoid a warning if -Wall.
76846
76847 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76848
76849         * README: New file
76850         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76851         (per RMS's instructions, this is now the canonical source)
76852         * lgpl/, gpl/: New directories.
76853
76854 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76855
76856         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76857
76858 2001-10-21  Jim Meyering  <meyering@lucent.com>
76859
76860         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76861         this code would end up calling gettext even in packages built
76862         with --disable-nls.
76863         * lib/getopt.c (_): Likewise.
76864         * lib/regex.c (_): Likewise.
76865
76866 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76867
76868         * m4/error.m4 (jm_PREREQ_ERROR):
76869         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76870         AC_FUNC_STRERROR_R does that.
76871         Check for strerror declaration.
76872
76873         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76874         are supposed to have them these days.
76875         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76876         Merge changes from latest Autoconf CVS.
76877         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76878         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76879         POSIX decided to standardize on the int flavor of strerror_r.
76880
76881 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76882
76883         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76884         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76885         Use strerror_r that is only a macro, even if it is not a function.
76886         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76887         (private_strerror): Use prototypes, not old-style function definition.
76888         (print_errno_message): New function.
76889         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76890         char*-flavored one.
76891         (error_tail, error, error_at_line): Use it.
76892
76893 2001-10-11  Jim Meyering  <meyering@lucent.com>
76894
76895         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76896         and quote_n (1, ... to avoid clobbering a buffer.
76897
76898 2001-10-05  Jim Meyering  <meyering@lucent.com>
76899
76900         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76901         hash-pjw.h.
76902         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76903         * lib/hash-pjw.h: New file.
76904
76905 2001-09-30  Jim Meyering  <meyering@lucent.com>
76906
76907         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76908         `struct fsstat' has the `f_fstypename' member.
76909         Use that to define FS_TYPE, which is now used to make
76910         the getfsstat link test tighter.
76911
76912 2001-09-30  Jim Meyering  <meyering@lucent.com>
76913
76914         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76915         Include <sys/ucred.h>, for Apple Darwin.
76916         Include sys/mount.h and sys/fs_types.h only if available.
76917         (FS_TYPE): Define.
76918         (read_filesystem_list): Use FS_TYPE.
76919
76920 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76921
76922         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76923         a boolean context.
76924
76925 2001-09-29  Jim Meyering  <meyering@lucent.com>
76926
76927         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76928         [one-argument getmntent function]): Include stdio.h before mntent.h.
76929         SunOS 4.1.x needs it for the declaration of `FILE'.
76930         Patch by Volker Borchert.
76931
76932         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76933         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76934         sys/fs_types.h, and make the link-test for getfsstat guard #include
76935         directives with appropriate #if HAVE_*_H tests so that we can
76936         detect getfsstat on Apple Darwin1.3.7 systems.
76937         Reported by Nelson Beebe.
76938         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76939
76940 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76941
76942         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76943         #defines strtoimax.  Also treat the other strto* functions
76944         like strtoimax.
76945
76946         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76947         Check for strtoul and strtoumax,
76948         as those declarations are made even in the signed case.
76949         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76950         Likewise, for strtol and strtoimax.
76951
76952 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76953
76954         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76955         #defines strtoimax.  Also treat the other strto* functions
76956         like strtoimax.
76957
76958         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76959         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76960         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76961
76962 2001-09-26  Jim Meyering  <meyering@lucent.com>
76963
76964         Most macros in unlocked-io.h had the wrong number of arguments.
76965         * lib/gen-uio: New script.
76966         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76967         * lib/unlocked-io.hin: Remove file.
76968         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76969         rather than trying to embed it here.
76970         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76971         Reported by Padraig Brady.
76972
76973 2001-09-25  Volker Borchert  <bt@teknon.de>
76974
76975         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76976         `result'.
76977
76978 2001-09-24  Jim Meyering  <meyering@lucent.com>
76979
76980         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76981
76982 2001-09-23  Jim Meyering  <meyering@lucent.com>
76983
76984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76985         instead of the mere test for existence of mntent.h.  The latter
76986         would get a false-positive on AIX 3.4 systems.
76987         In the outer getmntent if-block, don't die if neither of the getmntent
76988         tests succeeds.  Instead, just fall through and continue with the
76989         remaining tests.
76990
76991 2001-09-23  Jim Meyering  <meyering@lucent.com>
76992
76993         * lib/mountlist.c: Remove useless parentheses in #if directives.
76994         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76995         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76996
76997 2001-09-22  Jim Meyering  <meyering@lucent.com>
76998
76999         * m4/gettext.m4: New file.  From gettext.
77000         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77001         * m4/progtest.m4: Likewise
77002         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77003         * m4/glibc21.m4: Likewise.
77004
77005         * m4/libintl.m4: Remove.  No longer used.
77006
77007 2001-09-22  Jim Meyering  <meyering@lucent.com>
77008
77009         * lib/localcharset.c: Update from latest gettext.
77010         * lib/config.charset: Likewise.
77011
77012 2001-09-20  Jim Meyering  <meyering@lucent.com>
77013
77014         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77015         strtoimax.
77016         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77017         strtoumax.
77018
77019 2001-09-20  Jim Meyering  <meyering@lucent.com>
77020
77021         * lib/xstrtol.c (strtoimax): Guard declaration with
77022         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77023         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77024         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77025         (strtoumax): Likewise, for completeness (it wasn't necessary).
77026
77027 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77028
77029         * lib/strtoimax.c (HAVE_LONG_LONG):
77030         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77031         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77032         to work around bug in IBM C compiler.
77033
77034 2001-09-17  Jim Meyering  <meyering@lucent.com>
77035
77036         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77037         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77038         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77039         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77040         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77041         whenever the right hand side need not be expanded by the shell.
77042
77043 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77044
77045         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77046         library.  It's not correct, as some older glibcs are buggy.
77047         fnmatch wasn't fixed until glibc 2.2.
77048
77049         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77050         special shell magic here.
77051
77052 2001-09-16  Jim Meyering  <meyering@lucent.com>
77053
77054         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77055         * m4/jm-macros.m4: Require it.
77056
77057 2001-09-16  Jim Meyering  <meyering@lucent.com>
77058
77059         * lib/mkdir.c: New file.
77060
77061 2001-09-15  Jim Meyering  <meyering@lucent.com>
77062
77063         * m4/jm-macros.m4: Check for help2man.
77064
77065 2001-09-11  Jim Meyering  <meyering@lucent.com>
77066
77067         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77068         The body, by Paul Eggert, was moved here from configure.in.
77069         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77070
77071 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77072
77073         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77074         (jm_PREREQ): Use it.
77075
77076 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77077
77078         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77079         Use ssize_t, not int, to store result of readlink.
77080         Check for ssize_t overflow as well as size_t overflow,
77081         as POSIX says the result of readlink is implementation-defined
77082         when ssize_t overflows.
77083         Remove unnecessary cast to char*.
77084         Use free+malloc instead of realloc, as the storage doesn't need
77085         to be preserved and it's clearer and can be more efficient that way.
77086         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77087         * lib/xreadlink.h (xreadlink): Update prototype.
77088
77089 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77090
77091         * lib/xgetcwd.c: Revert some of the previous change; intead,
77092         fix the HAVE_GETCWD_NULL code to behave more like the
77093         !HAVE_GETCWD_NULL code used to.
77094
77095         Include "xalloc.h".
77096         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77097         invoke xalloc_die.
77098
77099 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77100
77101         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77102         sys/param.h, as pathmax.h includes them.
77103
77104 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77105
77106         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77107         (jm_PREREQ_XGETCWD): New macro.
77108
77109         * m4/getcwd.m4: New file.
77110
77111 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77112
77113         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77114         like the HAVE_GETCWD_NULL code.
77115         Include pathmax.h if not HAVE_GETCWD.
77116         Do not include xalloc.h.
77117         (INITIAL_BUFFER_SIZE): New symbol.
77118         Do not use xmalloc / xrealloc, since the caller is responsible for
77119         handling errors.  Preserve errno around `free' during failure.
77120         Do not overrun buffer when using getwd.
77121
77122 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77123
77124         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77125         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77126         getcwd (NULL, 0).
77127
77128 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77129
77130         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77131         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77132         spotted by Jim Meyering.
77133
77134 2001-09-03  Jim Meyering  <meyering@lucent.com>
77135
77136         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77137         failure.
77138
77139 2001-09-02  Jim Meyering  <meyering@lucent.com>
77140
77141         * lib/error.c: Update from GNU libc.
77142
77143 2001-09-01  Jim Meyering  <meyering@lucent.com>
77144
77145         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77146         Used by df.
77147
77148 2001-09-01  Jim Meyering  <meyering@lucent.com>
77149
77150         * lib/xreadlink.c: New file.
77151         * lib/xreadlink.h: New file.
77152         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77153         xreadlink.h.
77154
77155         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77156         doesn't conflict with sparc Solaris 7's definition in
77157         /usr/include/sys/int_types.h.
77158
77159         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77160         files.
77161         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77162         and strncasecmp as r-values.  Unixware didn't have declarations.
77163
77164 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77165
77166         * lib/xstrtol.h: Add copyright notice.
77167         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77168         LONGINT_INVALID_SUFFIX_CHAR.
77169
77170 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77171
77172         * lib/xstrtol.c (strtoimax): New decl.
77173
77174 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77175
77176         * lib/xgetcwd.c: Don't include pathmax.h.
77177         Include stdlib.h and unistd.h if available.
77178         Include xalloc.h.
77179         (xmalloc, xstrdup, free): Remove decls.
77180         (xgetcwd): Don't assume sizes fit in unsigned.
77181         Check for overflow when computing sizes.
77182         Simplify reallocation code.
77183
77184 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77185
77186         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77187         a directory's st_size can have an arbitrary value, so the old
77188         usage could waste an arbitrary amount of memory.  All uses
77189         changed.
77190         * lib/savedir.h: Update prototype.
77191
77192 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77193
77194         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77195
77196         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77197         old strtoimax.c.
77198
77199         Also, make the following further changes to make this file's
77200         configuration more similar to that of strtol.c:
77201         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77202         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77203         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77204         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77205         changed to signed values.
77206
77207         And make the following changes as well:
77208         Fix copyright notice, as 1999 was missing.
77209         (verify): New macro.
77210         (strtoimax): Check sizes at compile-time, not run-time.
77211         Prefer strtol to strtoll if both work.
77212         (main): Remove; it was not that useful and was a pain to maintain.
77213
77214         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77215
77216 2001-08-31  Jim Meyering  <meyering@lucent.com>
77217
77218         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77219         Use an initial, malloc'd, buffer of length 128 rather than
77220         a statically allocated one of length 1024.
77221
77222 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77223
77224         Simplify code, partly by assuming autoconf 2.52 semantics.
77225
77226         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77227
77228         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77229         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77230         All uses removed.
77231         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77232         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77233         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77234         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77235         jm_AC_HEADER_INTTYPES_H.
77236         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77237
77238         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77239
77240         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77241         Quote first arg of AC_DEFUN.
77242         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77243         since they are needed to parse the include file even if we need
77244         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77245         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77246         but with opposite signedness.
77247
77248 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77249
77250         Merge 'exclude' changes from tar 1.13.22.
77251         This fixes one or two unlikely storage allocation overflow bugs,
77252         but doesn't change user-visible behavior otherwise.
77253
77254 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77255
77256         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77257         (jm_PREREQ_EXCLUDE): New macro.
77258
77259 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77260
77261         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77262         tm to be declared.
77263
77264 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77265
77266         * lib/hash.c: Remove '2001' from copyright notice.
77267
77268 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77269
77270         * lib/full-write.h: New file.
77271         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77272         * lib/full-write.c: Correct credits, as cccp.c no longer
77273         exists and anyway it was so heavily changed from the old cccp
77274         code as to be unrecognizable.  Include full-write.h.
77275         (full_write): Return size_t, with short writes meaning failure.
77276         All callers changed.  This fixes a bug with large buffers
77277         on 64-bit hosts.
77278         * lib/utime.c: Include full-write.h.
77279
77280 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77281
77282         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77283         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77284         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77285         Include if available.
77286         (<xalloc.h>): Include
77287         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77288         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77289         collide with FNM macros.
77290         (struct patopts): New struct.
77291         (struct exclude): Use it, as exclude patterns now come with options.
77292         (new_exclude): Support above changes.
77293         (new_exclude, add_exclude_file):
77294         Initial size must now be a power of two to simplify overflow checking.
77295         (free_exclude, fnmatch_no_wildcards): New function.
77296         (excluded_filename): No longer requires options arg, as the options
77297         are determined by add_exclude.  Now returns bool, not int.
77298         (excluded_filename, add_exclude):
77299         Add support for the fancy new exclusion options.
77300         (add_exclude, add_exclude_file): Now takes int options arg.
77301         Check for arithmetic overflow when computing sizes.
77302         (add_exclude_file): xrealloc might modify errno, so don't
77303         realloc until after errno might be used.
77304
77305         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77306         New macros.
77307         (free_exclude): New decl.
77308         (add_exclude, add_exclude_file): Now takes int options arg.
77309         (excluded_filename): No longer requires options arg, as the options
77310         are determined by add_exclude.  Now returns bool, not int.
77311
77312 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77313
77314         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77315
77316 2001-08-27  Jim Meyering  <meyering@lucent.com>
77317
77318         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77319
77320         * lib/version-etc.c (N_): Remove definition.
77321         Revert most of last change.
77322         Instead, simply don't mark the `Copyright...' string for translation.
77323         Based on advice from Paul Eggert.
77324
77325         * lib/strtoxmax.c: Tweak comment.
77326
77327 2001-08-26  Jim Meyering  <meyering@lucent.com>
77328
77329         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77330
77331         * m4/xstrtoimax.m4: New file.
77332         * m4/xstrtoumax.m4: Add comments explaining why we
77333         AC_REPLACE_FUNCS(strtol).
77334
77335 2001-08-26  Jim Meyering  <meyering@lucent.com>
77336
77337         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77338         of copyright with `%s' so translators don't get an untranslated
77339         message in 2002.
77340         (COPYRIGHT_YEAR): Define.
77341         (version_etc): Use fprintf rather than fputs.
77342         Suggestion from Ulrich Drepper.
77343
77344         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77345
77346         * lib/strtoll.c: New file, from GNU libc.
77347         * lib/xstrtoimax.c: New file.
77348
77349         * lib/xstrtol.h: Add xstrtoimax.
77350         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77351         * lib/strtoimax.c: New file.  Likewise, but first define
77352         STRTOUXMAX_SIGNED.
77353
77354         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77355         ...
77356         * lib/strtoxmax.c: ... then renamed to this.
77357
77358 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77359
77360         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77361         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77362         (jm_AC_TYPE_INTMAX_T): New macro.
77363         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77364
77365         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77366
77367         * m4/longlong.m4: Renamed from ulonglong.m4.
77368         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77369         * m4/uintmax_t.m4: Removed.
77370
77371 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77372
77373         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77374         Port to Solaris 8, where 'sed' requires a space after the 'r'
77375         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77376         Redirect output to $tmp just once.
77377
77378 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77379
77380         * lib/addext.c (<errno.h>): Include.
77381         (errno): Declare if not defined.
77382         (addext): Work correctly when pathconf returns -1 and leaves
77383         errno alone because there is no limit.  Also, work even if
77384         pathconf returns a value greater than SIZE_MAX.
77385
77386 2001-08-12  Jim Meyering  <meyering@lucent.com>
77387
77388         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77389         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77390         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77391         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77392         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77393         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77394         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77395         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77396         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77397         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77398         utime.m4, utimes.m4, xstrtoumax.m4:
77399         Quote the first argument in each use of AC_DEFUN.
77400
77401 2001-08-12  Jim Meyering  <meyering@lucent.com>
77402
77403         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77404         Simply `return getcwd (NULL, 0);'.
77405         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77406         Use 1300 as initial value for length, not PATH_MAX.
77407
77408         * lib/pathmax.h: Clean up cpp syntax.
77409
77410 2001-08-12  Jim Meyering  <meyering@lucent.com>
77411
77412         * lib/gettimeofday.c: New file.
77413         * lib/gtod.h: New file.
77414         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77415
77416 2001-08-05  Jim Meyering  <meyering@lucent.com>
77417
77418         * m4/jm-macros.m4: Require autoconf-2.52.
77419
77420 2001-08-04  Jim Meyering  <meyering@lucent.com>
77421
77422         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77423         stmt, to get in sync with glibc.
77424
77425 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77426
77427         The following changes are from gettext 0.10.39 as maintained by
77428         Bruno Haible.
77429
77430         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77431         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77432         with inverted sense.  All uses changed.
77433
77434         * lib/mbswidth.c: Don't include <limits.h>.
77435         Include <stdlib.h> and <string.h> unconditionally.
77436         (iswcntrl, mbsinit, ISCNTRL): New macros.
77437         (mbsnwidth): Use K&R style function declarations.
77438         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77439         can optimize it when MB_CUR_MAX == 1.
77440         The width of control characters is zero, not 1.
77441
77442 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77443
77444         The following changes are from gettext 0.10.39 as maintained by
77445         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77446
77447         * m4/codeset.m4: Upgrade to serial AM1.
77448         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77449         all uses changed.  Quote first arg of AC_DEFUN.
77450         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77451
77452         * m4/iconv.m4: Upgrade to serial AM2.
77453         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77454         Add --with-libconv-prefix.
77455         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77456         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77457         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77458         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77459         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77460
77461         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77462         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77463         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77464         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77465         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77466         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77467         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77468         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77469         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77470
77471         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77472         string.h any more.
77473
77474         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77475         not the default value.
77476
77477         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77478         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77479         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77480         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77481         Also check for iswcntrl, used for wcwidth fallback.
77482         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77483         to Autoconf 2.13.
77484
77485 2001-08-03  Jim Meyering  <meyering@lucent.com>
77486
77487         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77488         as it was in the original.  Reported by Paul Eggert.
77489
77490 2001-07-16  Jim Meyering  <meyering@lucent.com>
77491
77492         * m4/gettimeofday.m4: New file.
77493         Prompted by a report from Bernhard Baehr.
77494
77495 2001-07-15  Jim Meyering  <meyering@lucent.com>
77496
77497         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77498         stuff. Now it's in ../Makefile.cfg.
77499
77500 2001-07-15  Jim Meyering  <meyering@lucent.com>
77501
77502         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77503         (BUILT_SOURCES): Add unlocked-io.h.
77504         (io_functions): Define.
77505         (unlocked-io.h): New rule.
77506         (DISTCLEANFILES): Add unlocked-io.h.
77507         (all-local): Depend on unlocked-io.h, to ensure it is created.
77508
77509         * lib/unlocked-io.hin: New file
77510
77511         * lib/regex.c: Update from glibc.
77512
77513 2001-07-05  Jim Meyering  <meyering@lucent.com>
77514
77515         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77516         recommendation.
77517         (libfetish_a_SOURCES): Put all .h files here instead.
77518         Remove a thus-exposed (better checks in automake) duplicate and
77519         two unnecessary .h files.
77520
77521 2001-07-04  Jim Meyering  <meyering@lucent.com>
77522
77523         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77524         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77525         distcheck failure.
77526
77527 2001-07-02  Jim Meyering  <meyering@lucent.com>
77528
77529         The following changes were prompted by suggestions from Bruno Haible.
77530
77531         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77532         is now generated.
77533         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77534         definition of EXTRA_DIST.
77535         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77536         ensure that the generated file is created/updated whenever the list
77537         of $(unlocked_functions) is changed.
77538         (jm-glibc-io.m4): New rule.
77539         (unlocked-io.h): New rule -- currently unused.
77540
77541 2001-06-24  Jim Meyering  <meyering@lucent.com>
77542
77543         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77544         unmatched right bracket, rather than kludging it with an extra,
77545         falsely-matching quote in a comment.  Patch by Akim Demaille.
77546
77547 2001-06-11  Jim Meyering  <meyering@lucent.com>
77548
77549         * lib/regex.c: Update from GNU libc.
77550
77551 2001-05-27  Jim Meyering  <meyering@lucent.com>
77552
77553         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77554         Check for ut_type in struct utmp.
77555
77556 2001-05-27  Jim Meyering  <meyering@lucent.com>
77557
77558         * lib/readutmp.h (UT_TYPE): Define.
77559
77560 2001-05-24  Jim Meyering  <meyering@lucent.com>
77561
77562         * lib/argmatch.c: Include "quote.h".
77563         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77564         quote function.  Reported by Göran Uddeborg.
77565
77566 2001-05-22  Jim Meyering  <meyering@lucent.com>
77567
77568         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77569         now that we use the package-supplied version unconditionally.
77570         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77571
77572 2001-05-21  Jim Meyering  <meyering@lucent.com>
77573
77574         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77575         shell syntax errors.
77576
77577 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77578
77579         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77580
77581 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77582
77583         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77584         Don't bother to check library strftime, since
77585         we'll be using our own my_strftime function anyway.
77586         Define my_strftime instead of strftime.
77587
77588 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77589
77590         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77591         which is not yet declared.
77592
77593 2001-05-15  Jim Meyering  <meyering@lucent.com>
77594
77595         * m4/regex.m4: Use proper quoting so brackets appear in the test
77596         program.
77597         Reported by, and with help from, Bruno Haible.
77598
77599 2001-05-13  Jim Meyering  <meyering@lucent.com>
77600
77601         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77602         undefined.
77603
77604 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77605
77606         dirname code cleanup.  base_name now behaves more compatibly
77607         with POSIX basename when given file names that have trailing
77608         slashes, and similarly for dir_name.  Add new primitives
77609         base_len and dir_len.  Put the directory-name-related decls
77610         into dirname.h.
77611
77612         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77613         * lib/backupfile.c (base_name): Likewise.
77614         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77615         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77616         * lib/makepath.c (strip_trailing_slashes): Likewise.
77617         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77618         ISSLASH): Likewise.
77619         * lib/rename.c (strip_trailing_slashes): Likewise.
77620         * lib/same.c (base_name): Likewise.
77621         * lib/stripslash.c (ISSLASH): Likewise.
77622
77623         * lib/addext.c: Include <dirname.h> after size_t is defined.
77624         * lib/backupfile.c: Likewise.
77625
77626         * lib/addext.c (addext): Use base_len to trim redundant
77627         trailing slashes instead of doing it ourselves.
77628         But do not trim the last slash if it is not redundant.
77629
77630         * lib/backupfile.c (find_backup_file_name,
77631         max_backup_version): Use base_len instead of rolling it ourselves.
77632         Handle the case of "" and (on DOS) "C:" correctly.
77633
77634         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77635         needed. Include <string.h>, <dirname.h>.
77636         (base_name): Allow file names ending in slashes, other than names
77637         that are all slashes.  In this case, return the basename followed
77638         by the slashes.  This is more general, and can be used in places
77639         where the original base_name purposely had an assertion failure.
77640         (base_len): New function.
77641
77642         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77643         Do not include <assert.h>; no longer needed.
77644         Include xalloc.h.
77645         (memrchr): Remove decl.
77646         (dir_name_r): Remove.
77647         (dir_len): Renamed from dirlen.  All callers changed.
77648         Rewrite in terms of base_name, for simplicity and consistency.
77649         (dir_name): Never return NULL.  All callers changed.
77650         Do not include <stdlib.h> in test program; no longer needed.
77651         return 0; is fine for test program.
77652
77653         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77654         New macros.
77655         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77656
77657         * lib/path-concat.c (path_concat): Use base_len to compute
77658         base length, not strlen; this means we cannot rely on memcpy
77659         to null-terminate.
77660
77661         * lib/same.c (STREQ): Remove.
77662         (same_name): Handle the case where the basename ends in trailing '/'.
77663
77664         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77665         a slash was stripped.  Do not strip the last slash after a
77666         file system prefix.
77667
77668 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77669
77670         * lib/Makefile.am (libfetish_a_SOURCES):
77671         Add strftime.c, since we now compile it on all hosts.
77672
77673         * lib/strftime.c (my_strftime):
77674         Define to nstrftime if emacs, but only if my_strftime is not defined.
77675         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77676         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77677         Add one more extra argument: a nanoseconds value.
77678         All uses changed.
77679         (ns): New macro.
77680         (my_strftime function): Add %N format.
77681         (emacs_strftimeu): Renamed from emacs_strftime,
77682         with extra ut argument.
77683
77684 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77685
77686         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77687
77688 2001-04-21  Jim Meyering  <meyering@lucent.com>
77689
77690         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77691         doesn't interfere.
77692
77693 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77694
77695         * m4/ftruncate.m4: Check for chsize.
77696         Link with ftruncate.o unconditionally if ftruncate is missing.
77697         This was required when cross-compiling to i586-mingw32msvc.
77698
77699 2001-04-08  Jim Meyering  <meyering@lucent.com>
77700
77701         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77702         recomputed; that's necessary when the offset spans a DST transition.
77703         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77704
77705 2001-04-02  Jim Meyering  <meyering@lucent.com>
77706
77707         * lib/regex.h, regex.c: Update from GNU libc.
77708
77709 2001-03-24  Jim Meyering  <meyering@lucent.com>
77710
77711         * m4/jm-macros.m4: Require autoconf-2.49d.
77712
77713 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77714
77715         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77716
77717 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77718
77719         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77720
77721 2001-03-17  Jim Meyering  <meyering@lucent.com>
77722
77723         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77724         now that the version in autoconf is equivalent.
77725         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77726
77727         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77728         Suggestion from Akim Demaille.
77729
77730         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77731         (jm_PREREQ_TEMPNAME): New function.
77732
77733 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77734
77735         * lib/tempname.c (uint64_t): Define to uintmax_t if
77736         not defined, and if UINT64_MAX is not defined.
77737         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77738         Reported by John David Anglin.
77739
77740 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77741
77742         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77743         resolve alias if codeset is empty.
77744         * lib/config.charset (BeOS): Use wildcard syntax.
77745
77746 2001-03-13  Jim Meyering  <meyering@lucent.com>
77747
77748         * lib/path-concat.c (path_concat)
77749         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77750         concatenating e.g., `C:' and `foo'.
77751         From Bruno Haible.
77752
77753 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77754
77755         * lib/localcharset.c (locale_charset): Don't use
77756         setlocale(LC_CTYPE,NULL). Don't return NULL.
77757         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77758
77759 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77760
77761         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77762         support for DOS/DJGPP.
77763
77764 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77765
77766         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77767         lacks mkstemp.  Compile our own tempname.c if we compile our own
77768         mkstemp.c, as mkstemp relies on tempname.
77769
77770 2001-03-01  Jim Meyering  <meyering@lucent.com>
77771
77772         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77773         AH_VERBATIM really does output its argument verbatim.
77774
77775 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77776
77777         * lib/Makefile.am (libfetish_a_SOURCES):
77778         Add dup-safer.c, fopen-safer.c.
77779         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77780
77781         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77782         * lib/unistd-safer.h: New files.
77783
77784 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77785
77786         The mkstemp replacement is taken from glibc 2.2.2, with some
77787         portability fixes for use outside glibc, as follows:
77788
77789         * lib/tempname.c (struct_stat64): New macro.
77790         (direxists, __gen_tempname): Use it.
77791         This avoids a portability problem with Solaris 8.
77792
77793         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77794         (<stddef.h>, <stdint.h>, <string.h>):
77795         Include only if STDC_HEADERS || _LIBC.
77796         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77797         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77798         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77799         (__set_errno): Define this macro if <errno.h> doesn't.
77800         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77801         Define these macros if <stdio.h> doesn't.
77802         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77803         Define these macros if <sys/stat.h>
77804         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77805         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77806         __xstat64): Define if not _LIBC.
77807         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77808         (__gen_tempname): Invoke gettimeofday only if
77809         HAVE_GETTIMEOFDAY || _LIBC;
77810         otherwise, fall back on plain "time".
77811         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77812
77813         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77814
77815         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77816
77817 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77818
77819         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77820
77821 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77822
77823         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77824         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77825         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77826         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77827
77828 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77829
77830         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77831         Remove workaround macros for hosts that have mbrtowc but not
77832         mbstate_t, as we now insist on proper declarations for both
77833         before using mbrtowc.
77834
77835 2001-02-17  Jim Meyering  <meyering@lucent.com>
77836
77837         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77838         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77839         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77840         UnixWare 7.1.1.
77841
77842         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77843         rather than AC_CACHE_VAL.
77844
77845 2001-02-17  Jim Meyering  <meyering@lucent.com>
77846
77847         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77848         around included file name.
77849
77850         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77851
77852         * lib/strftime.c: Update from GNU libc (the only changes were to
77853         comments).
77854
77855 2001-02-17  Jim Meyering  <meyering@lucent.com>
77856
77857         * lib/regex.c: Update from libc.
77858
77859 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77860
77861         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77862         clash.
77863
77864 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77865
77866         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77867         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77868         Reported by Mark Hounschell via Paul Eggert.
77869
77870 2001-02-07  Jim Meyering  <meyering@lucent.com>
77871
77872         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77873
77874 2001-02-05  Jim Meyering  <meyering@lucent.com>
77875
77876         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77877         it includes the patch required for `large file' support with at least
77878         HP-UX's 10.20 /bin/cc.
77879
77880 2001-02-03  Jim Meyering  <meyering@lucent.com>
77881
77882         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77883         AS_IF, now that it works once again (mysteriously).
77884         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77885
77886 2001-01-30  Jim Meyering  <meyering@lucent.com>
77887
77888         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77889         * m4/chown.m4: Rename conftestchown to conftest.chown.
77890         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77891         s/conftestdir2/conftest.d2/.
77892         * m4/utimes.m4: s/conftestdata/conftest.data/
77893         Inspired by Pavel Roskin's change in autoconf.
77894
77895 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77896
77897         * lib/config.charset: Update for FreeBSD 4.2.
77898
77899 2001-01-27  Jim Meyering  <meyering@lucent.com>
77900
77901         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77902         a use of AS_IF.
77903         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77904
77905 2001-01-26  Jim Meyering  <meyering@lucent.com>
77906
77907         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77908         quotearg.c includes it.
77909
77910 2001-01-26  Jim Meyering  <meyering@lucent.com>
77911
77912         * lib/quotearg.c: Include stddef.h.
77913         * lib/quote.c: Include stddef.h.
77914         Reported by Axel Kittenberger.
77915
77916         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77917         line in double quotes so that it evokes a better diagnostic.
77918         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77919         Reported by Axel Kittenberger.
77920
77921 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77922
77923         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77924         as if it was a `charset'.
77925
77926 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77927
77928         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77929         has const.
77930
77931 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77932
77933         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77934         to avoid a warning.  Add back 'const' to inptr.
77935
77936 2001-01-20  Jim Meyering  <meyering@lucent.com>
77937
77938         Be sure that headers are checked before used in code compiled
77939         for the type checks.
77940         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77941         In place of that, invoke jm_CHECK_ALL_TYPES.
77942         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77943         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77944         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77945         The check for ssize_t was mistakenly run before the test for unistd.h.
77946
77947         The configure-time check for stdbool.h was missing.
77948         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77949         (jm_PREREQ_HASH): New function.
77950
77951 2001-01-17  Jim Meyering  <meyering@lucent.com>
77952
77953         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77954         for autoconf-2.49c.
77955         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77956
77957 2001-01-16  Jim Meyering  <meyering@lucent.com>
77958
77959         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77960         From Bruno Haible.
77961
77962 2001-01-14  Jim Meyering  <meyering@lucent.com>
77963
77964         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77965         foo and bar.  Create conftestdir/ in the script, not in the C code.
77966         Remove directories in the script, not in the C code.
77967         Remove conftestdir{,2} before trying to create the directory.
77968         Make the entire configure script fail if the mkdir fails.
77969
77970 2001-01-14  Jim Meyering  <meyering@lucent.com>
77971
77972         * lib/rename.c: New file.  From Volker Borchert.
77973         Include stdlib.h, string.h or strings.h, and xalloc.h.
77974         Use strip_trailing_slashes rather than open-coding it.
77975
77976 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77977
77978         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77979
77980 2001-01-03  Jim Meyering  <meyering@lucent.com>
77981
77982         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77983         of local `inptr' to avoid warning with some system declarations of
77984         iconv.
77985
77986 2001-01-02  Volker Borchert  <bt@teknon.de>
77987
77988         * m4/rename.m4: New file.
77989         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77990
77991 2001-01-01  Jim Meyering  <meyering@lucent.com>
77992
77993         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77994         even on systems with utmpx.h.  It's necessary for the declaration of
77995         utmp's ut_user member.  Reported by Andreas Jaeger.
77996
77997         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77998         available. They are required for the declarations of getgrgid and
77999         getpwuid resp.
78000         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78001         Reported by Andreas Jaeger.
78002
78003 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78004
78005         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78006         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78007         so `make install' also works in VPATH builds.
78008
78009 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78010
78011         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78012         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78013         can be used in subdirectories.
78014
78015 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78016
78017         * lib/modechange.c: Do not assume that mode_t uses the
78018         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78019         the other-execute bit of FOO even if S_IXOTH != 1.
78020
78021         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78022         WOTH, XOTH, ALLM): New macros.
78023         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78024          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78025         Use them.
78026         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78027         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78028         (mode_compile):
78029         No need to use uintmax_t; unsigned long is long enough.
78030         Don't bother to get suffix since we don't use it.
78031
78032 2000-12-26  Jim Meyering  <meyering@lucent.com>
78033
78034         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78035         better with autoheader.
78036
78037 2000-12-24  Jim Meyering  <meyering@lucent.com>
78038
78039         * lib/hash.c (is_prime): Return explicit boolean values.
78040         (hash_get_first): Return NULL to appease Irix5.6's 89.
78041         Reported by Nelson Beebe.
78042
78043 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78044
78045         * lib/localcharset.c (locale_charset): Add support for Win32.
78046
78047 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78048
78049         * lib/physmem.h, lib/physmem.c: New files.
78050
78051         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78052         (noinst_HEADERS): Add physmem.h.
78053
78054         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78055         't' for compatibility with Solaris 8 sort.
78056
78057 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78058
78059         * lib/config.charset: Add support for BeOS.
78060
78061 2000-12-17  Jim Meyering  <meyering@lucent.com>
78062
78063         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78064         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78065
78066 2000-12-16  Jim Meyering  <meyering@lucent.com>
78067
78068         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78069         N and M) would have treated it like `chown N:N FILE'.
78070
78071         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78072
78073 2000-12-16  Jim Meyering  <meyering@lucent.com>
78074
78075         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78076         SHELLS_FILE to a file name that's useful on djgpp systems.
78077         Include stdlib.h.
78078         (ADDITIONAL_DEFAULT_SHELLS): Define.
78079         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78080         Based mostly on a patch from Prashant TR.
78081
78082 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78083
78084         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78085         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78086         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78087
78088 2000-12-08  Andreas Schwab  <schwab@suse.de>
78089
78090         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78091         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78092
78093 2000-12-07  Jim Meyering  <meyering@lucent.com>
78094
78095         * lib/stripslash.c (ISSLASH): Define.
78096         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78097         `/'.
78098         From Prashant TR.
78099
78100         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78101         (dir_name_r): Declare this function as static.
78102         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78103         manifest itself on a name containing a mix of slashes and
78104         backslashes.
78105         Make this function work with names starting with a DOS-style
78106         drive letter and colon prefix.
78107         (dir_name): Append `.' if necessary.
78108         Based mostly on patches from Prashant TR and Eli Zaretskii.
78109
78110         * lib/dirname.h (dir_name_r): Remove prototype.
78111
78112 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78113
78114         * m4/off_t-format.m4: Remove this file.
78115         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78116
78117 2000-12-06  Jim Meyering  <meyering@lucent.com>
78118
78119         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78120         replacement strtoull, we may well need the replacement strtoul, too.
78121         Check for declarations of strtoul and strtoull.
78122         Check for strtol.  Mainly as a cue to cause automake to include
78123         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78124         Check for limits.h -- strtol.c needs it.
78125
78126 2000-12-05  Jim Meyering  <meyering@lucent.com>
78127
78128         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78129
78130 2000-12-04  Jim Meyering  <meyering@lucent.com>
78131
78132         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78133         Also include memory.h, stdlib.h, unistd.h if appropriate.
78134         Reported by Andreas Jaeger (conflicting declaration of malloc).
78135
78136 2000-12-02  Jim Meyering  <meyering@lucent.com>
78137
78138         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78139         * m4/jm-macros.m4 (jm_MACROS): require it.
78140
78141 2000-12-02  Jim Meyering  <meyering@lucent.com>
78142
78143         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78144
78145 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78146
78147         * lib/memrchr.c: Include <config.h> before any system include file.
78148
78149 2000-11-30  Jim Meyering  <meyering@lucent.com>
78150
78151         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78152
78153 2000-11-30  Jim Meyering  <meyering@lucent.com>
78154
78155         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78156
78157 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78158
78159         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78160
78161 2000-11-26  Jim Meyering  <meyering@lucent.com>
78162
78163         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78164
78165 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78166
78167         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78168         size of (size_t) -1; it's not portable.
78169
78170 2000-11-17  Jim Meyering  <meyering@lucent.com>
78171
78172         * lib/strstr.c: Update from GNU libc.
78173
78174 2000-11-17  Akim Demaille  <akim@epita.fr>
78175
78176         * lib/obstack.h: Formatting changes.
78177         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78178         prevent type checking.
78179         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78180         cast the value to (void *): assigning a `foo *' to a `void *'
78181         variable is valid.
78182         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78183
78184 2000-11-16  Jim Meyering  <meyering@lucent.com>
78185
78186         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78187
78188 2000-11-11  Jim Meyering  <meyering@lucent.com>
78189
78190         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78191
78192 2000-11-10  Jim Meyering  <meyering@lucent.com>
78193
78194         * lib/obstack.h: Update from GNU libc.
78195         * lib/obstack.c: Likewise.
78196
78197 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78198
78199         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78200
78201 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78202
78203         * lib/getusershell.c (setusershell): Use rewind rather than
78204         fseek/fseeko, to avoid configuration hassles with fseeko.
78205         Don't bother opening SHELLS_FILE if shellstream is NULL;
78206         it's not necessary.
78207
78208 2000-11-05  Jim Meyering  <meyering@lucent.com>
78209
78210         * lib/makepath.h (make_dir): Declare.
78211         * lib/makepath.c (make_dir): Remove `static' attribute.
78212         Tweak a comment.
78213
78214 2000-11-04  Jim Meyering  <meyering@lucent.com>
78215
78216         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78217
78218 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78219
78220         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78221         last one in a bucket, advance to the next bucket.
78222
78223 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78224
78225         * lib/fnmatch.c: Do not comment out all the code if we are using
78226         the GNU C library, because in some cases we are replacing buggy
78227         code in the GNU C library itself.
78228
78229 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78230
78231         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78232         (regex_compile): Catch bogus \(\1\).
78233
78234 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78235
78236         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78237         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78238         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78239
78240 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78241
78242         * lib/error.h, getline.h, modechange.h:
78243         Remove "2000" from Copyright line, as the file hasn't been
78244         changed this year other than in the copyright notice.
78245
78246         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78247         was changed this year.
78248
78249 2000-10-29  Jim Meyering  <meyering@lucent.com>
78250
78251         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78252         renaming.
78253         * m4/ls-mntd-fs.m4: Likewise
78254
78255 2000-10-29  Jim Meyering  <meyering@lucent.com>
78256
78257         * lib/xstat.in: Fix grammar in comment.
78258
78259 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78260
78261         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78262         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78263         doesn't define __restrict_arr.
78264
78265 2000-10-28  Jim Meyering  <meyering@lucent.com>
78266
78267         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78268         (jm_PREREQ_MEMCHR): New function.
78269
78270 2000-10-28  Jim Meyering  <meyering@lucent.com>
78271
78272         * lib/memchr.c: Update from libc.
78273         Adjust for portability:
78274         [HAVE_STDLIB_H]: Include stdlib.h.
78275         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78276         Undef __memchr, too.
78277         [!weak_alias]: Define __memchr to memchr.
78278
78279         * lib/regex.c: Update from libc.
78280         * lib/regex.h: Likewise.
78281         * lib/getopt1.c: Likewise.
78282         * lib/memcmp.c: Likewise.
78283
78284         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78285         Avoid using fseek, when possible -- it's broken by design.
78286         Patch by Ulrich Drepper.
78287
78288 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78289
78290         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78291         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78292         Giving in to popular pressure to shut up the compiler with casts.
78293
78294 2000-10-26  Jim Meyering  <meyering@lucent.com>
78295
78296         * lib/strftime.c: Update from libc.
78297
78298 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78299
78300         * regex.c: More `unsigned char' -> `re_char' changes.
78301         Also change several `int' into `re_wchar_t'.
78302         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78303         (PUSH_FAILURE_POINTER): Don't cast any more.
78304         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78305         We want GCC to complain, since this piece of code makes
78306         re_match non-reentrant, which *should* be fixed.
78307         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78308         (EXTEND_BUFFER): Use RETALLOC.
78309         (SET_LIST_BIT): Don't cast.
78310         (re_wchar_t): New type.
78311         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78312         that those two functions will always properly return.
78313         (IMMEDIATE_QUIT_CHECK): Cast to void.
78314         (analyse_first): Use recursion rather than an explicit stack.
78315         (re_compile_fastmap): Can't fail anymore.
78316         (re_search_2): Don't check re_compile_fastmap for failure.
78317         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78318         Now also sets the new value (passed in a new argument).
78319         (re_match_2_internal): Use it.
78320         Also, use a new var `reg' of type size_t when looping through regs
78321         rather than reuse the inappropriate `mcnt'.
78322
78323 2000-10-25  Jim Meyering  <meyering@lucent.com>
78324
78325         * lib/obstack.c: Update from libc.
78326
78327 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78328
78329         * regex.c (regex_compile): Change the way of handling a range from
78330         a char less than 256 to a char not less than 256.
78331
78332 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78333
78334         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78335         NT-Emacs only.
78336         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78337         so that re_search functions only quit when callers expect them to.
78338
78339 2000-10-23  Jim Meyering  <meyering@lucent.com>
78340
78341         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78342         wrong.  That set_locale call must not have any side effects.
78343         From Paul Eggert.
78344
78345 2000-10-22  Jim Meyering  <meyering@lucent.com>
78346
78347         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78348         [CYCLIC]: Remove now-unused definition.
78349
78350         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78351         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78352         Suggestion from Ulrich Drepper.
78353
78354 2000-10-21  Jim Meyering  <meyering@lucent.com>
78355
78356         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78357         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78358         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78359
78360 2000-10-21  Jim Meyering  <meyering@lucent.com>
78361
78362         * lib/dirname.c (memrchr): Declare if necessary.
78363         (dir_name): Remove the restriction that there be no
78364         trailing slashes.  Now, this code skips past them, effectively
78365         ignoring them.
78366         [TEST_DIRNAME] (main): New unit tests.
78367
78368         * lib/memrchr.c: New file from GNU libc.
78369         Undef __memrchr, too.
78370         [!weak_alias]: Define __memrchr to memrchr.
78371         Guard weak_alias use with `#ifdef weak_alias'.
78372
78373 2000-10-21  Jim Meyering  <meyering@lucent.com>
78374
78375         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78376         (dir_name): Use dir_name_r.
78377         * lib/dirname.h (dir_name_r): Declare it.
78378
78379 2000-10-17  Jim Meyering  <meyering@lucent.com>
78380
78381         * lib/quote.h (PARAMS): Define and use.
78382         Reported by Akim Demaille.
78383
78384         * lib/getopt.c: Update from libc.
78385
78386 2000-10-16  Jim Meyering  <meyering@lucent.com>
78387
78388         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78389         setlocale.
78390         From Jan Fedak.
78391
78392 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78393
78394         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78395
78396 2000-09-25  Jim Meyering  <meyering@lucent.com>
78397
78398         * lib/md5.h (rol): Define (from GnuPG).
78399
78400         * lib/sha.c: Give credit (GnuPG) where due.
78401         (M): Use rol rather than open-coding it.
78402         Add a FIXME comment.
78403
78404 2000-09-21  Jim Meyering  <meyering@lucent.com>
78405
78406         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78407         Reported by Michael Stone.
78408
78409 2000-09-20  Jim Meyering  <meyering@lucent.com>
78410
78411         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78412         (noinst_HEADERS): Add sha.h.
78413         Based on code from Scott G. Miller and from GnuPG.
78414
78415 2000-09-18  Jim Meyering  <meyering@lucent.com>
78416
78417         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78418         LIBS. Otherwise, everyone ends up linking with -lelf for some
78419         configurations.
78420         Reported by Mike Stone.
78421
78422 2000-09-15  Jim Meyering  <meyering@lucent.com>
78423
78424         * lib/regex.c: Update from libc.
78425
78426 2000-09-10  Jim Meyering  <meyering@lucent.com>
78427
78428         * lib/getopt.c (_getopt_internal): Update from glibc.
78429
78430 2000-09-09  Jim Meyering  <meyering@lucent.com>
78431
78432         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78433         think it should be used as a general replacement for isascii.
78434         * lib/fnmatch.c: Likewise.
78435         * lib/mbswidth.c: Likewise
78436         * lib/regex.c: Likewise.
78437
78438         Don't use atoi.
78439         * lib/userspec.c: Include sys/param.h and limits.h.
78440         Include xstrtol.h.
78441         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78442         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78443         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78444         UID, GID.  Check range.
78445
78446 2000-09-06  Jim Meyering  <meyering@lucent.com>
78447
78448         * lib/getopt.c (_getopt_internal): Update from glibc.
78449
78450 2000-08-30  Jim Meyering  <meyering@lucent.com>
78451
78452         * lib/strftime.c: Merge in changes from GNU libc.
78453
78454 2000-08-26  Jim Meyering  <meyering@lucent.com>
78455
78456         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78457         * m4/fpending.m4: New file.
78458
78459 2000-08-26  Jim Meyering  <meyering@lucent.com>
78460
78461         * lib/closeout.c: Include "__fpending.h".
78462         (close_stdout_status): Return right away if there's nothing to flush.
78463
78464         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78465         * lib/__fpending.c: New file.
78466         * lib/__fpending.h: New file.
78467
78468 2000-08-20  Jim Meyering  <meyering@lucent.com>
78469
78470         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78471         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78472         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78473
78474 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78475
78476         Improve fileutils installation on systems where running
78477         programs (like install) can't be unlinked.
78478         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78479         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78480
78481 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78482
78483         Standardize on "memory exhausted" instead of "Memory exhausted"
78484         or "virtual memory exhausted".
78485         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78486         "virtual memory exhausted".
78487         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78488         our own message.
78489         * lib/userspec.c (parse_user_spec): Likewise.
78490         * lib/bumpalloc.h: comment fix
78491         * lib/same.c, userspec.c: Include xalloc.h.
78492
78493         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78494         not char *const and pointing to a constant array.
78495         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78496         (xrealloc): Comment fix.
78497
78498         * lib/userspec.c (parse_user_spec):
78499         Don't translate a message until just before returning,
78500         to avoid unnecessary translation.
78501
78502 2000-08-07  Jim Meyering  <meyering@lucent.com>
78503
78504         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78505         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78506         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78507         getgroups.c, gethostname.c, getopt.h, group-member.c,
78508         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78509         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78510         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78511         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78512         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78513         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78514         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78515         yesno.c: Back out Copyright date changes for each file with no change
78516         this year.  This eases coordination with other programs using the same
78517         source code modules.  From Paul Eggert.
78518
78519 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78520
78521         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78522         not char, for compatibility with glibc 2.1.3 strftime.c.
78523
78524 2000-08-03  Greg McGary  <greg@mcgary.org>
78525
78526         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78527         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78528         (EXTEND_BUFFER): Use them.
78529
78530 2000-08-01  Jim Meyering  <meyering@lucent.com>
78531
78532         * lib/dirname.c (ISSLASH): Define.
78533         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78534         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78535         both `\' and `/' may be use as path separators.
78536         Based on a patch from Prashant TR.
78537
78538 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78539
78540         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78541         slot vector a constant, since it might get modified.
78542
78543 2000-07-31  Jim Meyering  <meyering@lucent.com>
78544
78545         * lib/xmalloc.c: Use `virtual memory exhausted', not
78546         `Memory exhausted'.
78547         * lib/obstack.c (print_and_abort): Likewise.
78548
78549 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78550
78551         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78552         buffer, so that the caller can always quote one small
78553         component of a "memory exhausted" message in slot 0.
78554         From a suggestion by Jim Meyering.
78555
78556 2000-07-30  Jim Meyering  <meyering@lucent.com>
78557
78558         * lib/makepath.c (make_path): Quote the other instance, too.
78559
78560         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78561         (STATIC_BUF_SIZE): Define.
78562         (quotearg_n_options): Use only statically allocated storage when
78563         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78564         than STATIC_BUF_SIZE.
78565
78566 2000-07-29  Jim Meyering  <meyering@lucent.com>
78567
78568         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78569         * lib/dirname.c (dir_name): Likewise.
78570
78571         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78572         `/'.
78573
78574         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78575         (dir_name): Assert that there are no trailing slashes.
78576
78577 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78578
78579         * lib/mbswidth.h (mbswidth): Add a flags argument.
78580         (mbswidth): New declaration.
78581         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78582         * lib/mbswidth.c (mbswidth): Add a flags argument.
78583         (mbsnwidth): New function.
78584
78585 2000-07-24  Jim Meyering  <meyering@lucent.com>
78586
78587         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78588
78589 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78590
78591         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78592
78593 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78594
78595         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78596         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78597         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78598         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78599         invoke multibyte primitives.
78600
78601 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78602
78603         * lib/quotearg.c:
78604         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78605         so that mbstate_t is always defined.
78606
78607         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78608         be 1 in at least one GCC installation, and this configuration
78609         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78610         performance on hosts that have mbrtowc but have only unibyte
78611         locales, but I assume these hosts are rare.
78612
78613 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78614
78615         * lib/mbswidth.c (_XOPEN_SOURCE):
78616         Don't define; this causes problems on Solaris 7.
78617         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78618
78619 2000-07-23  Jim Meyering  <meyering@lucent.com>
78620
78621         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78622         too: getgrgid, getpwuid, getuid.
78623
78624 2000-07-23  Jim Meyering  <meyering@lucent.com>
78625
78626         * lib/basename.c (base_name): Add an assertion.
78627
78628 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78629
78630         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78631         shadow its mbsinit function.
78632
78633 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78634
78635         * lib/mbswidth.h: New file.
78636         * lib/mbswidth.c: New file.
78637         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78638         (noinst_HEADERS): Add mbswidth.h.
78639
78640 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78641
78642         * lib/config.charset: Add support for FreeBSD. Improve support for
78643         HP-UX and IRIX 6.
78644
78645 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78646
78647         * m4/mbswidth.m4: New file.
78648         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78649
78650 2000-07-15  Jim Meyering  <meyering@lucent.com>
78651
78652         * lib/makepath.c: Include quote.h.
78653         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78654         corresponding argument in a `quote (...)' call.
78655         Give better diagnostics.
78656
78657         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78658         (noinst_HEADERS): Add quote.h.
78659
78660         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78661         from tar's src/misc.c.
78662         * lib/quote.h: New file.  Prototypes for same.
78663
78664 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78665
78666         From a suggestion by Bruno Haible.
78667         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78668         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78669         to decide whether to define the BeOS workaround macro;
78670         this adjusts to the change to AC_MBSTATE_T.
78671
78672 2000-07-14  Jim Meyering  <meyering@lucent.com>
78673
78674         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78675         jm_AC_TYPE_UINTMAX_T.
78676
78677 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78678
78679         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78680
78681         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78682         quotearg_buffer_restyled): Add support for
78683         clocale_quoting_style.  Undo previous change to
78684         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78685         and "{RIGHT QUOTATION MARK}" msgids.
78686
78687 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78688
78689         From a suggestion by Bruno Haible.
78690         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78691         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78692         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78693         and mbstate_t, to a single-part test that simply defines mbstate_t.
78694         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78695         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78696
78697 2000-07-10  Jim Meyering  <meyering@lucent.com>
78698
78699         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78700
78701         * m4/gnu-source.m4: Output to confdefs.h directly.
78702         Suggestion from Akim Demaille.
78703
78704 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78705
78706         The old behavior of quoting `like this' doesn't look good with
78707         newer, ISO-style fonts.  See:
78708         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78709
78710         Instead, quote "like this" by default.  Let the translator
78711         tailor the locale-specific quoting behavior by providing
78712         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78713
78714         * lib/quotearg.c (N_): New macro.
78715         (gettext_default): New function.
78716         (quotearg_buffer_restyled): Use
78717         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78718         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78719
78720 2000-07-09  Jim Meyering  <meyering@lucent.com>
78721
78722         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78723         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78724
78725         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78727
78728 2000-07-09  Jim Meyering  <meyering@lucent.com>
78729
78730         * lib/Most files: Update copyright dates to include 2000.
78731
78732 2000-07-08  Jim Meyering  <meyering@lucent.com>
78733
78734         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78735         if not defined.
78736         (xgethostname): Remove now-unnecessary #ifdef.
78737         Move declaration of `err' into loop where it's used.
78738
78739 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78740         and Bruno Haible  <haible@clisp.cons.org>
78741
78742         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78743         only if the test for an object-type mbstate_t fails.  This
78744         prevents us from mistakenly reporting that mbstate_t is a
78745         system object type after we "#define mbstate_t int" to work
78746         around its lack.
78747
78748 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78749         and Bruno Haible  <haible@clisp.cons.org>
78750
78751         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78752
78753 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78754
78755         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78756         to strerror_r.
78757         Include <ctype.h> for use of isalpha.
78758
78759 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78760
78761         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78762         by allocating a larger buffer. Test the gethostname return value for
78763         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78764         returns an error and ENAMETOOLONG isn't defined.
78765
78766 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78767
78768         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78769         dimension.
78770
78771 2000-07-04  Jim Meyering  <meyering@lucent.com>
78772
78773         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78774         of the deprecated AC_CHECKING.
78775
78776 2000-07-04  Jim Meyering  <meyering@lucent.com>
78777
78778         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78779         Reported by Bruno Haible.
78780
78781 2000-07-04  Jim Meyering  <meyering@lucent.com>
78782
78783         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78784         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78785         lacks mbrtowc.
78786
78787 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78788
78789         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78790         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78791
78792 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78793         and Bruno Haible  <haible@clisp.cons.org>
78794
78795         * lib/quotearg.c (mbrtowc):
78796         Assign to *pwc, and return 1 only if result is nonzero.
78797         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78798
78799 2000-07-03  Jim Meyering  <meyering@lucent.com>
78800
78801         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78802
78803 2000-07-03  Jim Meyering  <meyering@lucent.com>
78804
78805         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78806         This is necessary to get a definition of e.g., UTMP_FILE on
78807         HP-UX 10.20.
78808         From Bob Proulx.
78809
78810 2000-07-02  Jim Meyering  <meyering@lucent.com>
78811
78812         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78813
78814         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78815         AC_LIBOBJ(function_name).
78816         * m4/chown.m4: Likewise.
78817         * m4/fnmatch.m4: Likewise.
78818         * m4/ftruncate.m4: Likewise.
78819         * m4/getgroups.m4: Likewise.
78820         * m4/getline.m4: Likewise.
78821         * m4/group-member.m4: Likewise.
78822         * m4/jm-macros.m4: Likewise.
78823         * m4/lstat.m4: Likewise.
78824         * m4/malloc.m4: Likewise.
78825         * m4/memcmp.m4: Likewise.
78826         * m4/nanosleep.m4: Likewise.
78827         * m4/putenv.m4: Likewise.
78828         * m4/realloc.m4: Likewise.
78829         * m4/regex.m4: Likewise.
78830         * m4/stat.m4: Likewise.
78831         * m4/strftime.m4: Likewise.
78832
78833 2000-07-02  Jim Meyering  <meyering@lucent.com>
78834
78835         * lib/quotearg.c (mbstate_t): Don't define here.
78836
78837 2000-07-02  Jim Meyering  <meyering@lucent.com>
78838
78839         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78840
78841 2000-07-01  Jim Meyering  <meyering@lucent.com>
78842
78843         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78844
78845 2000-07-01  Jim Meyering  <meyering@lucent.com>
78846
78847         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78848         problem.
78849
78850 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78851
78852         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78853         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78854
78855 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78856
78857         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78858         per change in ../m4/ls-mntd-fs.m4.
78859         (read_filesystem_list): Ignore symbolic links.
78860
78861 2000-06-29  Jim Meyering  <meyering@lucent.com>
78862
78863         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78864         for declaration of strcmp.
78865
78866         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78867
78868         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78869         Avoid warning by casting result to `char *' to remove `const'.
78870
78871 2000-06-28  Jim Meyering  <meyering@lucent.com>
78872
78873         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78874         included by quotearg.c, for which we perform this test.  From
78875         Bruno Haible.
78876
78877 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78878
78879         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78880         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78881         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78882
78883 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78884
78885         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78886
78887 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78888
78889         savedir now sets errno on failure and invokes xmalloc to get memory.
78890         Fix a couple of other minor bugs while we're at it.
78891
78892         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78893         (NAMLEN): Remove macro.
78894         (malloc, realloc): Remove decls.
78895         (stpcpy): Likewise.
78896         ("xalloc.h"): Include.
78897         (NAME_SIZE_DEFAULT): New macro.
78898         (savedir): Use xmalloc / xrealloc to allocate memory.
78899         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78900         Skip "" directory entries.
78901         Use strlen to calculate directory entry length, since the old method
78902         is rarely used these days and isn't worth supporting.
78903         Don't use a pointer after freeing it.
78904         Check for integer overflow when calculating allocation size.
78905         Use memcpy to copy entries, instead of stpcpy.
78906         Set errno properly when returning NULL.
78907         Check for readdir error.
78908
78909 2000-06-26  Jim Meyering  <meyering@lucent.com>
78910
78911         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78912
78913 2000-06-25  Jim Meyering  <meyering@lucent.com>
78914
78915         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78916         Linux header bug when _XOPEN_SOURCE is defined to 500.
78917
78918 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78919
78920         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78921         deficiency.
78922
78923 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78924
78925         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78926         Include xalloc.h.
78927         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78928
78929 2000-06-24  Jim Meyering  <meyering@lucent.com>
78930
78931         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78932         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78933         for which strerror does return char*, but which lacks a conveniently
78934         accessible declaration of the function.  If the compile-test says
78935         strerror_r doesn't work, then resort to a `run'-test that works on
78936         BeOS and segfaults on DEC Unix.
78937
78938 2000-06-24  Jim Meyering  <meyering@lucent.com>
78939
78940         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78941
78942 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78943
78944         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78945         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78946
78947 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78948
78949         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78950         (mbrtowc, mbstate_t): Define substitutes if
78951         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78952         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78953         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78954
78955 2000-06-23  Jim Meyering  <meyering@lucent.com>
78956
78957         * m4/afs.m4: Add missing AC_MSG_RESULT.
78958         Reported by Bruno Haible.
78959
78960         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78961         Suggestion from Bruno Haible.
78962
78963 2000-06-23  Jim Meyering  <meyering@lucent.com>
78964
78965         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78966
78967 2000-06-21  Jim Meyering  <meyering@lucent.com>
78968
78969         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78970
78971 2000-06-21  Jim Meyering  <meyering@lucent.com>
78972
78973         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78974         (noinst_HEADERS): Add getstr.h.
78975
78976         * lib/getline.c (getstr): Move into a separate file.
78977         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78978         the following changes: new parameter, delim2; both delim[12]
78979         parameters have type `int', not `char'.  The latter would lose
78980         with 8-bit delimiters.
78981         * lib/getstr.h: New file.
78982
78983 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78984
78985         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78986         than 1024, return a memory chunk of least possible size, instead
78987         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78988         Use free/xmalloc instead of xrealloc to avoid copying for very long
78989         paths.
78990
78991 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78992
78993         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78994         the empty string.
78995
78996 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78997
78998         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78999         address, not strdup.  Include <stdlib.h> and don't declare free().
79000
79001 2000-06-19  Jim Meyering  <meyering@lucent.com>
79002
79003         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79004
79005 2000-06-18  Jim Meyering  <meyering@lucent.com>
79006
79007         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79008
79009         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79010         `checking whether...' message to be consistent with that of the
79011         lstat test.
79012
79013 2000-06-18  Jim Meyering  <meyering@lucent.com>
79014
79015         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79016         Besides, these days every porting target provides a mkdir function.
79017
79018         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79019         needed. (this snippet comes from src/system.h).
79020
79021 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79022
79023         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79024
79025 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79026
79027         * lib/human.c (adjust_value): New function.
79028         (human_readable_inexact): Apply rounding style even when
79029         printing approximate values.
79030
79031 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79032
79033         * lib/human.c (human_readable_inexact): Allow an input block
79034         size that is not a multiple of the output block size, and vice versa.
79035         Reported by Piergiorgio Sartor.
79036
79037 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79038
79039         * lib/getdate.y (get_date): Apply relative times after time
79040         zone indicator, not before.  Reported by Todd A. Jacobs.
79041
79042 2000-06-13  Jim Meyering  <meyering@lucent.com>
79043
79044         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79045
79046         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79047
79048 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79049
79050         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79051
79052 2000-06-12  Jim Meyering  <meyering@lucent.com>
79053
79054         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79055         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79056         optional argument.
79057         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79058         the optional argument, `lib'.
79059
79060 2000-06-08  Jim Meyering  <meyering@lucent.com>
79061
79062         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79063
79064 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79065
79066         Rewrite largefile configuration so that we don't need to run
79067         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79068         AC_CANONICAL_HOST in configure.in -- jmm]
79069
79070         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79071         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79072         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79073         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79074         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79075         All uses changed.
79076         Instead of inspecting the output of getconf, try to compile the
79077         test program without and with the macro definition.
79078         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79079         for getconf.  Instead, check for the needed flags by compiling
79080         test programs.
79081
79082 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79083
79084         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79085
79086 2000-06-04  Jim Meyering  <meyering@lucent.com>
79087
79088         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79089         SunOS 4.1.4 for which gid_t is an unsigned type.
79090
79091 2000-06-03  Jim Meyering  <meyering@lucent.com>
79092
79093         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79094         now that autoconf requires that.
79095
79096         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79097         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79098         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79099
79100 2000-06-03  Jim Meyering  <meyering@lucent.com>
79101
79102         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79103
79104 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79105
79106         * m4/glibc21.m4: New file.
79107         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79108
79109 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79110
79111         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79112         newer, don't install charset.alias.
79113         * lib/config.charset: Change the Linux/glibc rules so they become empty
79114         on glibc-2.1 or newer.
79115
79116 2000-06-02  Jim Meyering  <meyering@lucent.com>
79117
79118         * lib/mountlist.c: Back out last change.  Instead, do this...
79119         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79120         me_dummy member using the same `ignore'-testing code.
79121         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79122         fs_type strings.
79123         From Mark D. Roth.
79124
79125 2000-05-29  Jim Meyering  <meyering@lucent.com>
79126
79127         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79128         mounts with the `ignore' attribute.  Based on a patch from
79129         Mark D. Roth.
79130
79131 2000-05-28  Jim Meyering  <meyering@lucent.com>
79132
79133         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79134         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79135         * m4/stat.m4: Likewise.
79136         * m4/lstat.m4: Likewise.
79137         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79138
79139         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79140         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79141
79142 2000-05-26  Jim Meyering  <meyering@lucent.com>
79143
79144         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79145
79146 2000-05-24  Jim Meyering  <meyering@lucent.com>
79147
79148         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79149         autoconf requires that.
79150         * m4/lib-check.m4: Likewise.
79151         * m4/jm-macros.m4: Likewise.
79152         * m4/strftime.m4: Likewise.
79153
79154         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79155         AC_CHECK_DECLS, now that autoconf requires that.
79156
79157 2000-05-22  Jim Meyering  <meyering@lucent.com>
79158
79159         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79160         * m4/lstat.m4: Likewise.
79161
79162 2000-05-22  Jim Meyering  <meyering@lucent.com>
79163
79164         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79165
79166 2000-05-20  Jim Meyering  <meyering@lucent.com>
79167
79168         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79169         (jm_PREREQ): Use it.
79170
79171 2000-05-18  Jim Meyering  <meyering@lucent.com>
79172
79173         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79174         back, too, since it may have been modified by allocate_entry.
79175         (hash_delete): Rewrite to use neither the assignment operator
79176         nor the comma operator in an if-expression.
79177
79178 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79179
79180         * lib/closeout.c:
79181         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79182         Remove; no longer needed.
79183         "quotearg.h": Add include.
79184         (file_name): Do not bother to explicitly initialize to NULL; it's less
79185         efficient on some hosts.
79186         (close_stdout_status): Remove test as to whether stdout was already
79187         closed; it breaks for the case "echo x | sort >&-".
79188         Quote file name colons.
79189         Do not assume that _("write error") lacks format strings.
79190
79191 2000-05-15  Jim Meyering  <meyering@lucent.com>
79192
79193         * lib/version-etc.c (version_etc_copyright): Update the copyright
79194         string used in all --version output.
79195
79196 2000-05-14  Jim Meyering  <meyering@lucent.com>
79197
79198         * lib/closeout.c (close_stdout_set_file_name): New function.
79199         (close_stdout_status): Use new file-scoped global.
79200         Return right away if fstat says the stdout file descriptor is invalid.
79201         * lib/closeout.h (close_stdout_set_file_name): Declare.
79202
79203 2000-05-10  Jim Meyering  <meyering@lucent.com>
79204
79205         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79206         (close_stdout_set_status): New function.
79207         * lib/closeout.h (close_stdout_set_status): Declare.
79208
79209 2000-05-09  Jim Meyering  <meyering@lucent.com>
79210
79211         * m4/gettext.m4: Rename this...
79212         * m4/libintl.m4: ...to this.
79213
79214 2000-05-08  Jim Meyering  <meyering@lucent.com>
79215
79216         * lib/long-options.c: Don't include closeout.h.
79217         (parse_long_options): Don't call close_stdout for --version.
79218
79219 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79220
79221         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79222         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79223         2.1.3 bug.  This avoids a clash when files like regex.c define
79224         _GNU_SOURCE.
79225
79226 2000-05-06  Jim Meyering  <meyering@lucent.com>
79227
79228         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79229         (AC_REPLACE_FUNCS): Add strnlen.
79230
79231         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79232         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79233
79234         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79235         AC_SEARCH_LIBS call for nanosleep.
79236         (LIB_NANOSLEEP): Set and AC_SUBST.
79237
79238 2000-05-06  Jim Meyering  <meyering@lucent.com>
79239
79240         * lib/strnlen.c: Undefine __strnlen and strnlen.
79241         [!weak_alias]: Define __strnlen to strnlen.
79242
79243         * lib/atexit.c: New file, from libiberty.
79244
79245 2000-05-06  Jim Meyering  <meyering@lucent.com>
79246
79247         * lib/closeout.c (close_stdout_status): Also check for errors on the
79248         stderr stream.
79249
79250 2000-05-05  Jim Meyering  <meyering@lucent.com>
79251
79252         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79253         AC_SEARCH_LIBS call for clock_gettime.
79254         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79255
79256         * m4/search-libs.m4: Update from autoconf.
79257
79258         su doesn't work on Solaris 2.6.
79259         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79260         <shadow.h>.  Reported by Dragos Harabor.
79261
79262 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79263
79264         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79265         memcpy instead of xmalloc, xrealloc, path_concat.
79266         (locale_charset): Treat empty environment variables as absent.
79267         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79268
79269 2000-05-04  Jim Meyering  <meyering@lucent.com>
79270
79271         * lib/getopt.c: Update from glibc.
79272         * lib/obstack.c: Likewise.
79273         * lib/obstack.h: Likewise.
79274         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79275         file
79276
79277         * lib/regex.h: Likewise.
79278         * lib/strndup.c: Likewise.
79279         * lib/strnlen.c: New file, from glibc.
79280
79281 2000-05-03  Jim Meyering  <meyering@lucent.com>
79282
79283         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79284
79285 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79286
79287         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79288         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79289         compile-time test, rather than inspecting host and OS, to
79290         decide whether to define _LARGEFILE_SOURCE.
79291
79292 2000-05-01  Jim Meyering  <meyering@lucent.com>
79293
79294         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79295
79296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79297         Based on a patch from Bruno Haible.
79298
79299 2000-05-01  Jim Meyering  <meyering@lucent.com>
79300
79301         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79302
79303 2000-04-29  Jim Meyering  <meyering@lucent.com>
79304
79305         * lib/path-concat.c: Declare strdup only if it's not defined.
79306         * lib/canon-host.c: Likewise.
79307
79308 2000-04-28  Jim Meyering  <meyering@lucent.com>
79309
79310         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79311         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79312         is included first, then limits.h is included by locale.h by libintl.h.
79313         From John David Anglin.
79314
79315 2000-04-25  Jim Meyering  <meyering@lucent.com>
79316
79317         * lib/makepath.c (S_IRWXUGO): Define.
79318         (make_path): Always perform explicit chmod if MODE specifies any
79319         of the `special' permission bits.  Prompted by a bug report against
79320         install from Mate Wierdl and Joost van Baal.
79321
79322 2000-04-18  Jim Meyering  <meyering@lucent.com>
79323
79324         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79325         (jm_PREREQ): Use it.
79326
79327 2000-04-18  Jim Meyering  <meyering@lucent.com>
79328
79329         * lib/README: New file.
79330
79331         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79332         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79333
79334 2000-04-17  Jim Meyering  <meyering@lucent.com>
79335
79336         Get it right :-)
79337         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79338         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79339         Suggestion from Akim Demaille.
79340
79341 2000-04-17  Jim Meyering  <meyering@lucent.com>
79342
79343         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79344         the definition of it to rpl_strftime also defined-away the system's
79345         declaration.
79346
79347 2000-04-15  Jim Meyering  <meyering@lucent.com>
79348
79349         Use `C' to denote so-called `contiguous' files, the same way
79350         that tar does.
79351         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79352         (ftypelet): Use S_ISCTG.
79353         From Michael Deutschmann.
79354
79355 2000-04-14  Jim Meyering  <meyering@lucent.com>
79356
79357         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79358         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79359         clobbered.
79360
79361 2000-04-14  Jim Meyering  <meyering@lucent.com>
79362
79363         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79364
79365 2000-04-13  Jim Meyering  <meyering@lucent.com>
79366
79367         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79368         AH_VERBATIM to insert required #ifndef into config.h.in.
79369         Suggestion from Akim Demaille.
79370
79371 2000-04-12  Jim Meyering  <meyering@lucent.com>
79372
79373         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79374         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79375         Christian Krackowizer.
79376
79377         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79378         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79379         (AC_SYS_LARGEFILE): Require.
79380         (AM_C_PROTOTYPES): Require.
79381
79382 2000-04-08  Jim Meyering  <meyering@lucent.com>
79383
79384         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79385         names don't conflict.  Reported by Eli Zaretskii.
79386
79387 2000-04-07  Jim Meyering  <meyering@lucent.com>
79388
79389         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79390         sys/types.h, to work around system header problems on AIX 3.2.5.
79391         From Bruno Haible.
79392
79393 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79394
79395         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79396         bug.  Deal with the different error behavior of Irix iconv.
79397
79398 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79399
79400         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79401         IRIX if the installer said otherwise.
79402
79403 2000-04-05  Jim Meyering  <meyering@lucent.com>
79404
79405         Portability tweaks required for ultrix4.3.
79406         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79407         (jm_CHECK_DECLS): Add getutent to the list of functions.
79408         (_jm_DECL_HEADERS): Add utmpx.h.
79409         From John David Anglin.
79410
79411         * m4/strftime.m4: Back out the 2000-04-02 change.
79412         Instead of that change, simply undefine putenv in the test program.
79413
79414 2000-04-05  Jim Meyering  <meyering@lucent.com>
79415
79416         Portability tweaks required for ultrix4.3.
79417         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79418         getutent.
79419         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79420         * lib/canon-host.c: Declare strdup.
79421         * lib/path-concat.c: Likewise.
79422         From John David Anglin.
79423
79424 2000-04-04  Jim Meyering  <meyering@lucent.com>
79425
79426         Be more DOS 8.3-friendly.
79427         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79428         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79429         * lib/Makefile.am: Reflect renaming.
79430         Reported by Eli Zaretskii.
79431
79432         Use a temporary file name that won't clash with `charset.alias'
79433         in the DOS 8.3 name space.
79434         * lib/Makefile.am (charset_tmp): Define.
79435         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79436         (uninstall-local): Likewise.
79437         Reported by Eli Zaretskii.
79438
79439 2000-04-03  Jim Meyering  <meyering@lucent.com>
79440
79441         * m4/gettext.m4: Fix typo in comment.
79442
79443         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79444         textutils/configure.in).  Suggestion from Paul Eggert.
79445         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79446
79447 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79448
79449         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79450         variable in the shell rather than using putenv, which isn't
79451         portable.  This avoids the configure-time inter-test dependency
79452         on the potentially-renamed putenv function.
79453
79454 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79455
79456         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79457         before checking struct stat.st_blksize, so that
79458         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79459
79460 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79461
79462         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79463         since strftime.c uses HAVE_STRFTIME to decide whether to use
79464         the underlying strftime.
79465
79466 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79467
79468         * lib/time/strftime.c (my_strftime): Make sure we call the system
79469         strftime, not ourselves, when invoking the underlying strftime.
79470
79471 2000-03-24  Jim Meyering  <meyering@lucent.com>
79472
79473         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79474         (charset_alias): Define.
79475         (install-exec-local): Factor out common code.
79476         (uninstall-local): Split lines longer than 80.
79477         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79478         (SUFFIXES): Define.
79479         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79480         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79481
79482 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79483
79484         * lib/config.charset: Output a line containing "Packages using this
79485         file".
79486         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79487         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79488         ref-del.sed): New rules.
79489
79490 2000-03-17  Jim Meyering  <meyering@lucent.com>
79491
79492         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79493         Otherwise, include <strings.h>
79494
79495 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79496
79497         * lib/unicodeio.c (utf8_wctomb): New function.
79498         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79499         format instead of in UCS-4 with platform dependent endianness.
79500
79501 2000-03-10  Jim Meyering  <meyering@lucent.com>
79502
79503         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79504         From Marco Franzen.
79505
79506 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79507
79508         * lib/savedir.c (savedir): Work even if directory size is
79509         negative; this can happen with some screwy NFS configurations.
79510
79511 2000-03-06  Jim Meyering  <meyering@lucent.com>
79512
79513         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79514         if it's NULL (because we ran out of memory).  From Bruno Haible.
79515
79516 2000-03-05  Jim Meyering  <meyering@lucent.com>
79517
79518         * lib/localcharset.c ("path-concat.h"): Include.
79519         (get_charset_aliases): Use path_concat instead of ANSI string
79520         concatenation.
79521
79522         * lib/unicodeio.h (PARAMS): Define.
79523         Use it to guard prototype.
79524
79525 2000-03-04  Jim Meyering  <meyering@lucent.com>
79526
79527         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79528         for lib/localcharset.c.
79529
79530 2000-03-04  Jim Meyering  <meyering@lucent.com>
79531
79532         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79533         installing into it.
79534         (uninstall-local): Uncomment this rule so `make distcheck' works
79535         once again.
79536
79537         * lib/unicodeio.c (<errno.h>): Include it.
79538         (errno): Declare if not defined.
79539
79540         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79541
79542         * lib/config.charset: New version, incorporating remarks from a linux
79543         i18n mailing list.  From Bruno Haible.
79544
79545 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79546
79547         * m4/codeset.m4: New file.
79548         * m4/iconv.m4: New file.
79549         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79550
79551 2000-03-03  Jim Meyering  <meyering@lucent.com>
79552
79553         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79554
79555 2000-03-02  Jim Meyering  <meyering@lucent.com>
79556
79557         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79558         the messages come out on separate lines.
79559
79560         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79561         rather than jm_CHECK_DECLARATIONS.
79562         * m4/decl.m4: Remove now-unused file.
79563
79564         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79565         geteuid.
79566
79567 2000-03-02  Jim Meyering  <meyering@lucent.com>
79568
79569         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79570
79571 2000-03-01  Jim Meyering  <meyering@lucent.com>
79572
79573         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79574         * lib/unicodeio.c: Likewise.
79575
79576 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79577
79578         * lib/config.charset: New file.
79579         * lib/localcharset.c: New file.
79580         * lib/unicodeio.h, lib/unicodeio.c: New files.
79581         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79582         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79583         (noinst_HEADERS): Add unicodeio.h.
79584         (all-local, install-exec-local, charset.alias): New targets.
79585
79586 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79587
79588         * lib/quotearg.c (ALERT_CHAR): New macro.
79589         (quotearg_buffer_restyled): Use it.
79590
79591 2000-02-27  Jim Meyering  <meyering@lucent.com>
79592
79593         * m4/check-decl.m4: Add getenv to the list.
79594
79595 2000-02-27  Jim Meyering  <meyering@lucent.com>
79596
79597         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79598         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79599
79600         * lib/backupfile.c: Guard inclusion of stdlib.h with
79601         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79602         Declare malloc if needed.
79603
79604         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79605         `#ifndef HAVE_DECL..'
79606         now that autoconf always defines the HAVE_DECL_ symbols.
79607         * lib/human.c: Likewise.
79608         * lib/same.c: Likewise.
79609         * lib/strtoumax.c: Likewise.
79610
79611         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79612         declaration check was not run.
79613         * lib/hash.c: Likewise.
79614         * lib/human.c: Likewise.
79615         * lib/same.c: Likewise.
79616         * lib/strtoumax.c: Likewise.
79617
79618         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79619         `.', then first look up the entire `.'-containing string as a login
79620         name.
79621
79622 2000-02-23  Jim Meyering  <meyering@lucent.com>
79623
79624         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79625         in place of my hack.
79626
79627 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79628
79629         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79630         (textint): New typedef.
79631         (parser_control): Member year changed from int to textint.
79632         All uses changed.
79633         (YYSTYPE): Removed; replaced by %union with int and textint members.
79634         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79635         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79636         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79637         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79638         (date, number, to_year): Use width of number in digits, not its value,
79639         to determine whether it's a 2-digit year, or a 2-digit time.
79640         (yylex): Store number of digits of numeric tokens.
79641         Reported by John Kendall.
79642
79643         (parser_control): Changed from struct parser_control to typedef (for
79644         consistency).  All uses changed.
79645
79646         (tID): Removed; not used.
79647         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79648
79649 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79650
79651         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79652         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79653
79654 2000-02-12  Jim Meyering  <meyering@lucent.com>
79655
79656         * lib/userspec.c (ISDIGIT): Define it.
79657         (isdigit): Remove definition.
79658         (is_number): Use ISDIGIT, not isdigit.
79659         <libintl.h>: Include.
79660         (_ and N_): Define.
79661         (parse_user_spec): Mark translatable strings.
79662
79663 2000-02-10  Jim Meyering  <meyering@lucent.com>
79664
79665         With these changes, nanosleep.[ch] are finally enough like the other
79666         lib/* replacement files to compile on a few more losing systems.
79667
79668         * lib/nanosleep.h: Don't include config.h.
79669         Remove prototype from declaration of nanosleep.
79670         (PARAMS): Remove now-unneeded definition.
79671         * lib/nanosleep.c: #undef nanosleep.
79672         (rpl_nanosleep): Rename from nanosleep.
79673
79674 2000-02-10  Jim Meyering  <meyering@lucent.com>
79675
79676         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79677         gnu_nanosleep to rpl_nanosleep.
79678
79679 2000-02-09  Jim Meyering  <meyering@lucent.com>
79680
79681         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79682         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79683
79684 2000-02-08  Akim Demaille  <akim@epita.fr>
79685
79686         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79687         `[' and `]' and remove uses of `changequote'.
79688         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79689         (AC_SYS_LARGEFILE): Likewise.
79690         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79691         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79692         of changequote.
79693         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79694         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79695         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79696         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79697
79698 2000-02-05  Jim Meyering  <meyering@lucent.com>
79699
79700         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79701         Remove explicit use of AC_HEADER_TIME.  It is required by
79702         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79703         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79704         in autoconf whereby the expansion of the latter ended up preceding
79705         the expansion of its prerequisite, AC_HEADER_TIME.
79706         Reported by Volker Borchert.
79707
79708 2000-02-03  Jim Meyering  <meyering@lucent.com>
79709
79710         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79711
79712 2000-02-03  Jim Meyering  <meyering@lucent.com>
79713
79714         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79715         rather than with `#if HAVE_UTMPNAME'.
79716
79717 2000-02-02  Jim Meyering  <meyering@lucent.com>
79718
79719         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79720         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79721         Reported by Eli Zaretskii.
79722
79723 2000-02-01  Jim Meyering  <meyering@lucent.com>
79724
79725         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79726
79727 2000-01-31  Jim Meyering  <meyering@lucent.com>
79728
79729         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79730         functions.  Add the time.h and sys/time.h headers along with the
79731         AC_REQUIRE'ment of AC_HEADER_TIME.
79732
79733 2000-01-31  Jim Meyering  <meyering@lucent.com>
79734
79735         * lib/nanosleep.h (nanosleep): Guard declaration with
79736         `#if ! HAVE_DECL_NANOSLEEP'.
79737         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79738         the declaration in that vendor's sys/timers.h.
79739         Reported by Christian Krackowizer.
79740
79741         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79742         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79743         (ISPRINT): Likewise.
79744         Reported by Tom Tromey.
79745
79746 2000-01-30  Jim Meyering  <meyering@lucent.com>
79747
79748         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79749
79750         * m4/prereq.m4 (utmp_includes): Define.
79751         Check for ut_user and ut_name members in both struct utmpx
79752         and struct utmp.
79753
79754 2000-01-30  Jim Meyering  <meyering@lucent.com>
79755
79756         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79757         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79758         header files where only utmpx.ut_user is declared.
79759
79760         * lib/readutmp.h (UT_USER): Define.
79761
79762 2000-01-29  Jim Meyering  <meyering@lucent.com>
79763
79764         * m4/lib-check.m4: New file containing library-related checks from
79765         fileutils and sh-utils (textutils had none).
79766
79767 2000-01-28  Jim Meyering  <meyering@lucent.com>
79768
79769         * m4/perl.m4: Change format of warning message to look more like that
79770         from the missing script.  Suggestion from François Pinard.
79771
79772 2000-01-25  Jim Meyering  <meyering@lucent.com>
79773
79774         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79775         well as time.h in the compile check.
79776         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79777         Fix typo in cross-compiling case: s/yes/no/.
79778
79779 2000-01-23  Jim Meyering  <meyering@lucent.com>
79780
79781         * m4/jm-macros.m4: Move df-related tests here from
79782         fileutils/configure.in
79783
79784         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79785         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79786
79787         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79788         s/space/ac_fsusage_space/.
79789         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79790
79791         * m4/ftruncate.m4: New file (derived from part of
79792         fileutils/configure.in).
79793         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79794         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79795
79796         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79797         AC_SUBST these here, rather than just in sh-util/configure.in, so
79798         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79799         all the same.
79800         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79801         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79802         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79803         (AC_SUBST(POW_LIBM)): Likewise.
79804         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79805
79806 2000-01-23  Jim Meyering  <meyering@lucent.com>
79807
79808         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79809         obstack.c.
79810
79811 2000-01-22  Jim Meyering  <meyering@lucent.com>
79812
79813         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79814
79815         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79816
79817         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79818         configure.in
79819         (AC_CHECK_HEADERS): Likewise for sh-utils.
79820         (AC_CHECK_HEADERS): Likewise for textutils.
79821         Merge the three lists of headers.
79822
79823         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79824         from fileutils' configure.in.
79825
79826         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79827         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79828         check-decl.m4.
79829
79830         * m4/check-decl.m4: Use #if rather than #ifdef.
79831         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79832         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79833         (_jm_DECL_HEADERS): Define new function.
79834         (jm_CHECK_DECLARATIONS): Require it.
79835
79836 2000-01-22  Jim Meyering  <meyering@lucent.com>
79837
79838         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79839         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79840         Required for some AIX systems.  Reported by Christian Krackowizer.
79841         [TESTING] (main): New function.
79842
79843         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79844         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79845         letters.
79846
79847         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79848         iswprint.
79849
79850         * lib/strverscmp.c (ISDIGIT): Define.
79851         (strverscmp): Use ISDIGIT, not isdigit.
79852
79853 2000-01-19  Jim Meyering  <meyering@lucent.com>
79854
79855         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79856         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79857         defines `struct timespec' in <sys/time.h>
79858
79859         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79860         Thanks to Akim for explaining.
79861
79862 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79863
79864         * lib/nanosleep.c (nanosleep):
79865         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79866         POSIX.1 doesn't require SA_INTERRUPT and some systems
79867         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79868         it's been part of POSIX.1 since day 1 (in 1988).
79869
79870 2000-01-17  Jim Meyering  <meyering@lucent.com>
79871
79872         * lib/interlock: Remove unused file.  Reported by François Pinard.
79873
79874 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79875
79876         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79877         alert, backslash, formfeed, and vertical tab unnecessarily in
79878         shell quoting style.
79879
79880 2000-01-16  Jim Meyering  <meyering@lucent.com>
79881
79882         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79883         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79884         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79885         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79886
79887 2000-01-16  Jim Meyering  <meyering@lucent.com>
79888
79889         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79890         because the latter didn't work.
79891
79892 2000-01-15  Jim Meyering  <meyering@lucent.com>
79893
79894         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79895         (AC_REPLACE_FUNCS): Add memcpy and memset.
79896         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79897         Add strpbrk.
79898         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79899
79900 2000-01-12  Jim Meyering  <meyering@lucent.com>
79901
79902         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79903         (jm_PREREQ): Use it.
79904         (jm_PREREQ_READUTMP): New macro.
79905         (jm_PREREQ): Use it.
79906
79907 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79908
79909         Quote multibyte characters correctly.
79910         * m4/c-bs-a.m4: New file.
79911         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79912         (jm_PREREQ): Use it.
79913
79914 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79915
79916         * m4/uintmax_t.m4: Port to autoconf 2.13.
79917
79918 2000-01-08  Jim Meyering  <meyering@ascend.com>
79919
79920         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79921         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79922
79923 2000-01-04  Jim Meyering  <meyering@ascend.com>
79924
79925         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79926         jm_STRUCT_DIRENT_D_TYPE.
79927         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79928         jm_STRUCT_DIRENT_D_INO.
79929         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79930         jm_STRUCT_UTIMBUF.
79931         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79932         renamings.
79933         * m4/utime.m4: Likewise.
79934
79935         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79936         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79937
79938 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79939
79940         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79941         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79942
79943 2000-01-02  Jim Meyering  <meyering@ascend.com>
79944
79945         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79946         remember if this is necessary.
79947
79948 1999-12-26  Jim Meyering  <meyering@ascend.com>
79949
79950         * m4/jm-macros.m4: Use it here.
79951         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79952
79953 1999-12-23  Jim Meyering  <meyering@ascend.com>
79954
79955         * m4/jm-macros.m4: Check for clock_gettime (moved from
79956         fileutils/configure.in)
79957         Check for gettimeofday.
79958
79959 1999-12-20  Jim Meyering  <meyering@ascend.com>
79960
79961         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79962         autoconf-2.14a-1999-12-20.
79963
79964 1999-12-19  Jim Meyering  <meyering@ascend.com>
79965
79966         * m4/lstat-slash.m4: New file.
79967         * m4/jm-macros.m4: Use the new macro:
79968         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79969
79970 1999-12-07  Jim Meyering  <meyering@ascend.com>
79971
79972         * m4/perl.m4: Require that File::Compare be available, too.
79973         Too many systems seem to lack it.
79974
79975         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79976         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79977
79978 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79979
79980         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79981         problem with the QNX 4.25 shell, which doesn't propagate exit
79982         status of failed commands inside shell assignments.
79983
79984 1999-11-17  Jim Meyering  <meyering@ascend.com>
79985
79986         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79987
79988 1999-11-07  Jim Meyering  <meyering@ascend.com>
79989
79990         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79991
79992 1999-11-06  Jim Meyering  <meyering@ascend.com>
79993
79994         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79995         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79996
79997 1999-11-05  Jim Meyering  <meyering@ascend.com>
79998
79999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80000         configure.in of textutils, fileutils, and sh-utils into this one
80001         (shared between those packages) file.
80002         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80003         AC_STRUCT_ST_BLKSIZE.
80004
80005 1999-11-03  Jim Meyering  <meyering@ascend.com>
80006
80007         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80008         of AC_CHECK_TYPE checks includes unistd.h.
80009         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80010         Suggestion from Akim Demaille.
80011
80012 1999-10-30  Jim Meyering  <meyering@ascend.com>
80013
80014         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80015         m4-quoted string.
80016         * m4/ls-mntd-fs.m4: Likewise.
80017         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80018         * m4/jm-winsz1.m4: Likewise.
80019
80020         * m4/const.m4: Remove file, since the fix made it into the experimental
80021         version of autoconf.
80022         * m4/mktime.m4: Likewise.
80023
80024         * m4/check-type.m4: Remove file, now that the latest version of
80025         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80026
80027         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80028         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80029         AC_CHECK_TYPE.
80030
80031 1999-10-04  Jim Meyering  <meyering@ascend.com>
80032
80033         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80034
80035 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80036
80037         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80038         2.95.1 bug with HP-UX 10.20.
80039
80040 1999-09-17  Jim Meyering  <meyering@ascend.com>
80041
80042         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80043         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80044         due to missing strdup (against sh-utils-2.0).
80045
80046 1999-08-29  Jim Meyering  <meyering@ascend.com>
80047
80048         * m4/jm-macros.m4: Require jm_BISON.
80049         * m4/bison.m4: New file.
80050
80051 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80052
80053         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80054         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80055
80056 1999-08-05  Jim Meyering  <meyering@ascend.com>
80057
80058         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80059         to avoid conflicts with `conftest' on 8+3 filesystems.
80060         Suggestion from Eli Zaretskii.
80061
80062 1999-08-04  Jim Meyering  <meyering@ascend.com>
80063
80064         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80065         fileutils and sh-utils (textutils's getline test was inadequate).
80066         (AM_FUNC_GETLINE): Run this test.
80067         (AC_CHECK_FUNCS): Check for getdelim.
80068         Reported by Bob Proulx.
80069
80070 1999-08-02  Jim Meyering  <meyering@ascend.com>
80071
80072         * m4/jm-macros.m4: Add a comment.
80073
80074 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80075
80076         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80077         <inttypes.h> defines strtoumax as a macro (and not as a
80078         function).
80079
80080 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80081
80082         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80083         that we can shift, multiply and divide unsigned long long
80084         values; Ultrix cc can't do it.
80085
80086 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80087
80088         * m4/mktime.m4: New file, which is a preview of what should appear
80089         in the next public autoconf release.
80090
80091 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80092
80093         * m4/lfs.m4: Remove this file.
80094         * m4/largefile.m4: New file.  It contains the old contents of
80095         lfs.m4, except that all names with prefix AC_LFS have been
80096         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80097         compatible with future autoconf versions.  Also, some minor m4
80098         quoting problems have been fixed.
80099
80100 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80101
80102         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80103         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80104         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80105         and simplify the shell code.
80106
80107 1999-08-01  Jim Meyering  <meyering@ascend.com>
80108
80109         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80110         m4.
80111
80112 1999-07-20  Jim Meyering  <meyering@ascend.com>
80113
80114         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80115
80116 1999-07-15  Jim Meyering  <meyering@ascend.com>
80117
80118         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80119
80120 1999-05-22  Jim Meyering  <meyering@ascend.com>
80121
80122         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80123
80124 1999-05-20  Jim Meyering  <meyering@ascend.com>
80125
80126         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80127         Add a colon after each `then' in case $4 is empty.
80128
80129 1999-05-16  Jim Meyering  <meyering@ascend.com>
80130
80131         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80132
80133 1999-05-10  Jim Meyering  <meyering@ascend.com>
80134
80135         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80136
80137         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80138         AC_FUNC_MKTIME.
80139
80140 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80141
80142         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80143
80144 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80145
80146         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80147         not CPPFLAGS, so that linking works correctly in IRIX.
80148
80149 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80150
80151         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80152
80153 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80154
80155         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80156         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80157         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80158         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80159         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80160
80161         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80162
80163 1999-04-20  Jim Meyering  <meyering@ascend.com>
80164
80165         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80166         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80167         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80168
80169 1999-04-18  Jim Meyering  <meyering@ascend.com>
80170
80171         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80172         * m4/jm-macros.m4: Use it.
80173
80174 1999-04-06  Jim Meyering  <meyering@ascend.com>
80175
80176         * m4/strftime.m4: Remove test for %f.
80177
80178 1999-03-29  Jim Meyering  <meyering@ascend.com>
80179
80180         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80181         superset of the AC_TYPE_* checks in the textutils, fileutils,
80182         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80183         AC_TYPE_PID_T.
80184
80185 1999-03-28  Jim Meyering  <meyering@ascend.com>
80186
80187         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80188         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80189         replaced e.g., in the *.sh files of the sh-utils.
80190
80191 1999-03-20  Jim Meyering  <meyering@ascend.com>
80192
80193         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80194         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80195         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80196
80197 1999-03-19  Jim Meyering  <meyering@ascend.com>
80198
80199         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80200
80201 1999-03-12  Jim Meyering  <meyering@ascend.com>
80202
80203         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80204
80205 1999-03-07  Jim Meyering  <meyering@ascend.com>
80206
80207         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80208         declared.
80209
80210 1999-02-17  Jim Meyering  <meyering@ascend.com>
80211
80212         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80213         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80214
80215 1999-02-07  Jim Meyering  <meyering@ascend.com>
80216
80217         * m4/group-member.m4: New file -- extracted from sh-utils'
80218         configure.in.
80219
80220         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80221         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80222
80223 1999-02-06  Jim Meyering  <meyering@ascend.com>
80224
80225         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80226         * m4/fnmatch.m4: Likewise.
80227         * m4/getgroups.m4: Likewise.
80228         * m4/lstat.m4: Likewise.
80229         * m4/malloc.m4: Likewise.
80230         * m4/putenv.m4: Likewise.
80231         * m4/realloc.m4: Likewise.
80232         * m4/regex.m4: Likewise.
80233         * m4/stat.m4: Likewise.
80234         * m4/strftime.m4: Likewise.
80235         Suggestion from Alain Magloire.
80236
80237         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80238         * m4/fnmatch.m4: Likewise.
80239         * m4/getgroups.m4: Likewise.
80240         * m4/getline.m4: Likewise.
80241         * m4/lstat.m4: Likewise.
80242         * m4/malloc.m4: Likewise.
80243         * m4/memcmp.m4: Likewise.
80244         * m4/putenv.m4: Likewise.
80245         * m4/realloc.m4: Likewise.
80246         * m4/regex.m4: Likewise.
80247         * m4/stat.m4: Likewise.
80248         * m4/strftime.m4: Likewise.
80249         Suggestion from Alain Magloire.
80250
80251         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80252         an argument.
80253
80254         * m4/regex.m4: Add a run-time Test for proper operation of
80255         re_compile_pattern.
80256
80257 1999-01-31  Jim Meyering  <meyering@ascend.com>
80258
80259         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80260
80261 1999-01-30  Jim Meyering  <meyering@ascend.com>
80262
80263         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80264
80265         * m4/jm-mktime.m4: Make this a wrapper around the official
80266         AM_FUNC_MKTIME rather than my private copy, now that the official one
80267         is up to date.
80268         * m4/mktime.m4: Remove file.
80269
80270         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80271         * m4/uptime.m4: Likewise.
80272         * m4/uintmax_t.m4: Likewise.
80273
80274 1999-01-28  Jim Meyering  <meyering@ascend.com>
80275
80276         * m4/jm-macros.m4: Use jm_AFS.
80277         * m4/afs.m4: New file (from fileutils' configure.in).
80278
80279         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80280         * m4/chown.m4: Likewise.
80281         * m4/d-ino.m4: Likewise.
80282         * m4/d-type.m4: Likewise.
80283         * m4/fnmatch.m4: Likewise.
80284         * m4/getgroups.m4: Likewise.
80285         * m4/gettext.m4: Likewise.
80286         * m4/jm-mktime.m4: Likewise.
80287         * m4/jm-winsz2.m4: Likewise.
80288         * m4/lcmessage.m4: Likewise.
80289         * m4/ls-mntd-fs.m4: Likewise.
80290         * m4/malloc.m4: Likewise.
80291         * m4/memcmp.m4: Likewise.
80292         * m4/putenv.m4: Likewise.
80293         * m4/realloc.m4: Likewise.
80294         * m4/st_mtim.m4: Likewise.
80295         * m4/strftime.m4: Likewise.
80296
80297 1999-01-16  Jim Meyering  <meyering@ascend.com>
80298
80299         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80300         (ARGMATCH_DIE_DECL): Define.
80301
80302 1999-01-12  Jim Meyering  <meyering@ascend.com>
80303
80304         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80305         Reported by Lars Hecking.
80306
80307 1999-01-10  Jim Meyering  <meyering@ascend.com>
80308
80309         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80310         gross kludge.
80311         * m4/inttypes_h.m4: Likewise.
80312         * m4/lstat.m4: Likewise.
80313         * m4/malloc.m4: Likewise.
80314         * m4/readdir.m4: Likewise.
80315         * m4/realloc.m4: Likewise.
80316         * m4/st_dm_mode.m4: Likewise.
80317         * m4/stat.m4: Likewise.
80318         * m4/utimbuf.m4: Likewise.
80319         * m4/utimes.m4: Likewise.
80320
80321         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80322         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80323         comments in config.h.in are meaningful.
80324
80325         * m4/jm-macros.m4: Require autoconf-2.13 here.
80326
80327         * m4/regex.m4: By default, don't use the included regex.c on systems
80328         with glibc 2.  Suggestion from Uli Drepper.
80329
80330 1999-01-02  Jim Meyering  <meyering@ascend.com>
80331
80332         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80333
80334 1998-12-18  Jim Meyering  <meyering@ascend.com>
80335
80336         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80337         Based on a suggestion from Lars Hecking.
80338
80339 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80340
80341         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80342
80343 1998-11-16  Jim Meyering  <meyering@ascend.com>
80344
80345         * m4/lfs.m4: Double-quote the `uname...` expression.
80346
80347 1998-11-14  Jim Meyering  <meyering@ascend.com>
80348
80349         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80350         * m4/stat.m4: Likewise.
80351
80352 1998-11-03  Jim Meyering  <meyering@ascend.com>
80353
80354         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80355         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80356
80357 1998-10-18  Jim Meyering  <meyering@ascend.com>
80358
80359         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80360
80361 1998-10-17  Jim Meyering  <meyering@ascend.com>
80362
80363         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80364         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80365         calls for those previously hard-coded headers.  Instead, take a new
80366         parameter.
80367         (jm_CHECK_DECLARATIONS): Reflect interface change.
80368         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80369         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80370
80371         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80372
80373 1998-10-14  Jim Meyering  <meyering@ascend.com>
80374
80375         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80376         instead of "TZ=America/Vancouver".  From Paul Eggert.
80377
80378 1998-10-11  Jim Meyering  <meyering@ascend.com>
80379
80380         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80381         This adds a test for a recently added compatibility fix for mktime.c.
80382         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80383
80384 1998-09-27  Jim Meyering  <meyering@ascend.com>
80385
80386         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80387
80388         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80389         ../configure.in, including a change from Gordon Matzigkeit to allow
80390         cross-compiling for the Hurd.
80391
80392         * m4/glibc.m4: New file/macro to test for the GNU C Library
80393         versions 1 and 2.  From Gordon Matzigkeit.
80394         Indent.
80395
80396 1998-09-21  Jim Meyering  <meyering@ascend.com>
80397
80398         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80399
80400 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80401
80402         Port nanosecond-resolution times to UnixWare 2.1.2 and
80403         pedantic Solaris 2.6.
80404
80405         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80406         AC_STRUCT_ST_MTIM.
80407         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80408         Generate name of ns member, instead of just 1 or undef.
80409         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80410
80411 1998-08-15  Jim Meyering  <meyering@ascend.com>
80412
80413         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80414         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80415         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80416         instead of jm_TYPE_SSIZE_T.
80417
80418 1998-08-12  Jim Meyering  <meyering@ascend.com>
80419
80420         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80421
80422 1998-08-02  Jim Meyering  <meyering@ascend.com>
80423
80424         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80425         in acconfig.h manually.
80426
80427 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80428
80429         * m4/st_mtim.m4: New file.
80430
80431 1998-07-28  Jim Meyering  <meyering@ascend.com>
80432
80433         * m4/utimes.m4: Undef stat.
80434
80435 1998-07-25  Jim Meyering  <meyering@ascend.com>
80436
80437         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80438         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80439
80440 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80441
80442         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80443         uid and gid actually remain unchanged.
80444
80445 1998-07-07  Jim Meyering  <meyering@ascend.com>
80446
80447         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80448
80449 1998-07-04  Jim Meyering  <meyering@ascend.com>
80450
80451         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80452         to prove that this macro can be used in packages without regex.c.
80453
80454 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80455
80456         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80457         is to be used.
80458
80459 1998-07-03  Jim Meyering  <meyering@ascend.com>
80460
80461         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80462
80463         * m4/gettext.m4: New file -- from gettext-0.10.35.
80464         * m4/lcmessage.m4: Likewise.
80465         * m4/progtest.m4: Likewise.
80466
80467         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80468         * m4/jm-macros.m4: Require the new macro.
80469
80470 1998-06-29  Jim Meyering  <meyering@ascend.com>
80471
80472         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80473         for the definition of NGROUPS (used in a system header included
80474         by sys/mount.h).
80475
80476 1998-06-28  Jim Meyering  <meyering@ascend.com>
80477
80478         * m4/ls-mntd-fs.m4: New file.
80479         * m4/fstypename.m4: New file.
80480
80481         * m4/jm-macros.m4: Require the new macro.
80482         * m4/jm-glibc-io.m4: New file.
80483
80484 1998-05-19  Jim Meyering  <meyering@ascend.com>
80485
80486         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80487         * m4/lchown.m4: New file.
80488
80489         * m4/Makefile.am.in: New file.
80490         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80491
80492 1998-05-14  Jim Meyering  <meyering@ascend.com>
80493
80494         * m4/Makefile.am (EXTRA_DIST): Add them.
80495         * m4/jm-macros.m4: New file.
80496         * m4/utimbuf.m4: New file.
80497
80498 1998-05-12  Jim Meyering  <meyering@ascend.com>
80499
80500         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80501
80502 1998-05-11  Jim Meyering  <meyering@ascend.com>
80503
80504         * m4/isc-posix.m4: New file.
80505
80506 1998-05-10  Jim Meyering  <meyering@ascend.com>
80507
80508         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80509
80510 1998-05-09  Jim Meyering  <meyering@ascend.com>
80511
80512         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80513         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80514         with automake.
80515
80516         * m4/ssize_t.m4: New file.
80517         * m4/mktime.m4: Remove file -- the new automake has this now.
80518
80519 1998-04-26  Jim Meyering  <meyering@ascend.com>
80520
80521         * m4/assert.m4: New file.
80522         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80523
80524 1998-04-05  Jim Meyering  <meyering@ascend.com>
80525
80526         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80527         (jm_PREREQ): Use it here.
80528
80529 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80530
80531         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80532         in acconfig.h.
80533
80534 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80535
80536         * m4/prereq.m4: New file.
80537         * m4/error.m4: New file.
80538         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80539
80540 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80541
80542         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80543         cache-check for the same variable -- that defeated the purpose of
80544         the test; the test program was never run.  This was a problem only
80545         on systems with losing getline functions -- HP-UX 10.20 is one.
80546         Reported by Bjorn Helgaas.
80547
80548 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80549
80550         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80551
80552 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80553
80554         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80555
80556         * m4/const.m4: New file.  Use an initializer in this declaration
80557         typedef int charset[2]; const charset x;
80558         Reported by Bob Glickstein.
80559
80560 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80561
80562         * m4/chown.m4: Fix reversed types on -1 args to chown.
80563         From Kaveh Ghazi.
80564
80565 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80566
80567         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80568         Add lseek and memchr.
80569
80570         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80571         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80572         have a 20-character limit on names.
80573
80574 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80575
80576         * m4/inttypes_h.m4: New file.
80577         * m4/uintmax_t.m4: New file.
80578         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80579
80580
80581         -----
80582
80583         Local Variables:
80584         coding: utf-8
80585         End:
80586
80587         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80588
80589         Copying and distribution of this file, with or without
80590         modification, are permitted provided the copyright notice
80591         and this notice are preserved.